S390: Add arch13 memmem ifunc variant.
[glibc.git] / ChangeLog
blobcf47118b78557412e0cd696352e40f8f97a63a8e
1 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
3         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
4         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
6         New defines.
7         * sysdeps/s390/memmem-arch13.S: New file.
8         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
9         if it is only used as fallback.
10         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
11         * sysdeps/s390/multiarch/ifunc-impl-list.c
12         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
14 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
16         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
17         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
18         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
19         New defines.
20         * sysdeps/s390/multiarch/ifunc-impl-list.c
21         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
22         * sysdeps/s390/strstr-arch13.S: New file.
23         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
24         if it is only used as fallback.
25         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
27 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
29         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
30         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
31         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
32         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
33         ifunc selector.
34         * sysdeps/s390/multiarch/ifunc-impl-list.c
35         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
36         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
37         S390_IS_ARCH13_MIE3): New defines.
39 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
41         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
42         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
43         * sysdeps/s390/configure.ac: Add checks for arch13 support.
44         * sysdeps/s390/configure: Regenerated.
46 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
48         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
49         Add vxe2, vxp, dflt, sort flags.
50         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
51         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
52         capabilities.
53         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
54         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
55         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
56         HWCAP_S390_DFLT): Define.
58 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
60         [BZ #24372]
61         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
62         of compiler warning.
63         * locale/programs/ld-collate.c (collate_output): Likewise.
65 2019-03-21  DJ Delorie  <dj@redhat.com>
67         [BZ #24372]
68         * iconv/iconvconfig.c (write_output): Replace floating point math
69         with integer math to avoid imprecise results.
70         * locale/programs/ld-collate.c (collate_output): Likewise.
72 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
74         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
75         Add HWCAP_S390_VX and HWCAP_S390_VXE.
77 2019-03-20  mansayk  <6688000@gmail.com>
79         [BZ #24296]
80         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
81         (abday): Likewise, but remove the trailing dots.
83 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
85         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
86         macro.
87         (HWCAP_PACA): Likewise.
88         (HWCAP_PACG): Likewise.
89         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
90         Increase to 32.
91         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
93 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
95         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
96         should be handled.
98 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
100         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
101         version to 5.0.
102         (old_getpagesize): New syscall.
104 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
106         [BZ #24293]
107         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
108         * localedata/locales/cmn_TW (era): Likewise.
109         * localedata/locales/hak_TW (era): Likewise.
110         * localedata/locales/lzh_TW (era): Likewise.
111         * localedata/locales/nan_TW (era): Likewise.
113 2019-03-14  Florian Weimer  <fweimer@redhat.com>
115         Remove obsolete, never-implemented XSI STREAMS declarations.
116         * manual/terminal.texi (Allocation): Remove portability note and
117         adjust example.
118         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
119         _SC_STREAMS.
120         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
121         * sysdeps/unix/inet/Subdirs (streams): Remove.
122         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
123         (conformtest-headers-UNIX98): Likewise.
124         (conformtest-headers-XOPEN2K): Likewise.
125         (conformtest-headers-POSIX2008): Likewise.
126         * posix/compat-streams.c: New file.
127         * posix/Makefile (routines): Add it.
128         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
129         getpmsg, isastream, putmsg, putpmsg.
130         (GLIBC_2.30): New section.
131         * bits/stropts.h: Remove file.
132         * bits/xtitypes.h: Likewise.
133         * conform/data/stropts.h-data: Likewise.
134         * include/stropts.h: Likewise.
135         * include/sys/stropts.h: Likewise.
136         * include/xtitypes.h: Likewise.
137         * streams/Makefile: Likewise.
138         * streams/fattach.c: Likewise.
139         * streams/fdetach.c: Likewise.
140         * streams/getmsg.c: Likewise.
141         * streams/getpmsg.c: Likewise.
142         * streams/isastream.c: Likewise.
143         * streams/putmsg.c: Likewise.
144         * streams/putpmsg.c: Likewise.
145         * streams/stropts.h: Likewise.
146         * streams/sys/stropts.h: Likewise.
147         * sysdeps/ia64/bits/xtitypes.h: Likewise.
148         * sysdeps/s390/bits/xtitypes.h: Likewise.
149         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
150         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
151         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
152         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
153         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
154         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
155         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
156         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
157         * sysdeps/x86/bits/xtitypes.h: Likewise.
159 2019-03-14  Florian Weimer  <fweimer@redhat.com>
161         * nss/tst-nss-files-alias-truncated.c (do_test): Load
162         libnss_files.
163         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
164         but not with libnss_files.
165         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
167 2019-03-14  Zack Weinberg  <zackw@panix.com>
169         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
170         Specify encoding="utf-8" when opening headers to check.
172 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
174         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
175         version to 5.0.
176         (Context.checkout_tar): Handle variable major version for Linux
177         kernel.
179 2019-03-13  Florian Weimer  <fweimer@redhat.com>
181         [BZ #24047]
182         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
184 2019-03-13  Zack Weinberg  <zackw@panix.com>
186         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
187         Move to stdlib.
188         * include/inttypes.h: Adjust to match.
189         * include/stdint.h: New wrapper.
191 2019-03-13  Zack Weinberg  <zackw@panix.com>
193         * scripts/check-obsolete-constructs.py: New test script.
194         * scripts/check-installed-headers.sh: Remove tests for
195         obsolete typedefs, superseded by check-obsolete-constructs.py.
196         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
197         as a special test.  Update commentary.
198         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
199         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
200         Update commentary.
201         * posix/sys/types.h (__u_intN_t): Remove.
202         (u_int8_t): Typedef using __uint8_t.
203         (u_int16_t): Typedef using __uint16_t.
204         (u_int32_t): Typedef using __uint32_t.
205         (u_int64_t): Typedef using __uint64_t.
207 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
209         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
210         call _dl_procinfo.
211         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
212         Ignore types other than AT_HWCAP.
213         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
214         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
215         Likewise.
216         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
217         in the case of falling back to generic output mechanism.
218         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
219         Likewise.
221 2019-03-12  Florian Weimer  <fweimer@redhat.com>
223         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
225 2019-03-12  Florian Weimer  <fweimer@redhat.com>
227         [BZ #24047]
228         resolv: Enable full ICMP errors for UDP DNS sockets
229         * resolv/res_enable_icmp.c: New file.
230         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
231         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
232         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
233         socket.
235 2019-03-11  Mao Han  <han_mao@c-sky.com>
237         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
238         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
240 2019-03-11  Mao Han  <han_mao@c-sky.com>
242         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
243         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
244         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
246 2019-03-11  Mao Han  <han_mao@c-sky.com>
248         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
249         directly.
250         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
251         definition.
253 2019-03-11  Mao Han  <han_mao@c-sky.com>
255         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
256         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
257         in mcontext_t
259 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
261         [BZ #24307]
262         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
263         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
264         Unicode 12.0.0.
265         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
266         * localedata/unicode-gen/PropList.txt: Likewise.
267         * localedata/unicode-gen/UnicodeData.txt: Likewise.
268         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
269         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
270         * localedata/charmaps/UTF-8: Regenerate.
271         * localedata/locales/i18n_ctype: Likewise.
272         * localedata/locales/tr_TR: Likewise.
273         * localedata/locales/translit_circle: Likewise.
274         * localedata/locales/translit_cjk_compat: Likewise.
275         * localedata/locales/translit_combining: Likewise.
276         * localedata/locales/translit_compat: Likewise.
277         * localedata/locales/translit_font: Likewise.
278         * localedata/locales/translit_fraction: Likewise.
280 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
282         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
283         than after operators.
284         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
285         (setitimer_locked): Likewise.
286         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
287         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
288         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
289         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
290         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
291         (PPC_CPU_SUPPORTED): Likewise.
292         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
293         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
294         (stat_overflow): Likewise.
295         (statfs_overflow): Likewise.
296         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
297         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
298         (eq_ttyname_r): Likewise.
299         (run_chroot_tests): Likewise.
301 2019-03-07  Florian Weimer  <fweimer@redhat.com>
303         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
304         header check.
306 2019-03-07  Martin Liska  <mliska@suse.cz>
308         * math/Makefile: Change location where math-vector-fortran.h is
309         installed.
310         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
311         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
312         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
313         * scripts/check-installed-headers.sh: Skip Fortran header files.
314         * scripts/check-wrapper-headers.py: Likewise.
316 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
318         * nptl/nptl-init.c (__have_futex_clock_realtime,
319         __have_futex_clock_realtime): Remove definition.
320         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
321         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
322         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
323         __ASSUME_FUTEX_CLOCK_REALTIME support.
324         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
325         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
326         * sysdeps/unix/sysv/linux/kernel-features.h
327         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
328         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
329         Adjust comment.
331 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
333         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
334         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
335         __GI___wcscpy and wcscpy.
337 2019-03-04  Florian Weimer  <fweimer@redhat.com>
339         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
340         declaration.
341         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
342         defined.
344 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
346         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
347         * sysdeps/s390/s390-32/sysdep.h: Likewise.
349 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
351         [BZ #24162]
352         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
353         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
355 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
357         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
358         tests.
359         (do_test): Likewise.
360         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
361         (do_test_call_varg): Likewise.
362         (do_test_call_rarg): Likewise.
363         * sysdeps/ieee754/ldbl-opt/Makefile
364         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
365         tst-nldbl-error.
366         ($(objpfx)tst-nldbl-warn.c): New rule.
367         ($(objpfx)tst-nldbl-error.c): Likewise.
368         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
369         New variables.
371 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
373         [BZ #23984]
374         * include/bits/error-ldbl.h: New file.
375         * include/error.h: Include stdarg.h.  Declare internal functions
376         __error_internal and __error_at_line_internal.
377         * misc/Makefile (headers): Add bits/error-ldbl.h.
378         * misc/bits/error-ldbl.h: New file.
379         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
380         avoid the inclusion of bits/error.h.
381         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
382         and __nldbl_error_at_line.
383         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
384         (__nldbl_error, __ndlbl_error_at_line): New functions.
385         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
386         Redirect error and error_at_line.
387         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
389         Likewise.
390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
391         Likewise.
392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
393         Likewise.
394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
395         Likewise.
396         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
397         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
398         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
400 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
402         [BZ #23984]
403         * include/bits/err-ldbl.h: New file.
404         * include/err.h: Add prototypes for the internal functions:
405         __vwarnx_internal and __vwarn_internal.
406         * misc/Makefile (headers): Add bits/err-ldbl.h.
407         * misc/bits/err-ldbl.h: New file.
408         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
409         defined, i.e.: when -mlong-double-64 is in use.
410         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
411         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
412         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
413         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
414         (VA_CALL): New macro.
415         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
416         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
417         functions.
418         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
419         declare prototypes for the new functions.
420         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
422         Likewise.
423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
424         Likewise.
425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
426         Likewise.
427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
428         Likewise.
429         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
430         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
431         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
433 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
435         * sysdeps/ieee754/ldbl-opt/Makefile
436         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
437         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
438         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
440 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
442         [BZ #23983]
443         * argp/Makefile (headers): Add bits/argp-ldbl.h.
444         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
445         * argp/bits/argp-ldbl.h: New file.
446         * include/argp.h: Include stdarg.h.  Add prototypes for internal
447         functions: __argp_error_internal and __argp_failure_internal.
448         * include/bits/argp-ldbl.h: New file.
449         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
450         __nldbl_argp_error and __nldbl_argp_failure.
451         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
452         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
453         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
454         Redirect argp_error and argp_failure calls.
455         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
457         Likewise.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
459         Likewise.
460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
461         Likewise.
462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
463         Likewise.
464         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
465         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
466         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
468 2019-03-01  Florian Weimer  <fweimer@redhat.com>
470         [BZ #20419]
471         * elf/tst-big-note-lib.S: Create a syntactically valid note.
472         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
473         code, to avoid creating an ABI tag note.
474         (modules-names-nobuild): Add tst-big-note-lib.
476 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
478         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
479         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
481 2019-03-01  Florian Weimer  <fweimer@redhat.com>
483         [BZ #20271]
484         * sysdeps/unix/sysv/linux/netlink_assert_response.c
485         (__netlink_assert_response): Add additional missing newlines.
487 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
489         * sysdeps/powerpc/powerpc32/dl-machine.c
490         (__elf_machine_fixup_plt): Use space before '('.
491         (__process_machine_rela): Likewise.
492         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
493         Likewise.
494         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
495         Likewise.
496         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
497         Likewise.
498         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
499         (pattern): Likewise.
500         (delta): Likewise.
501         (check_result): Likewise.
502         (check_excepts): Likewise.
503         (check_op): Likewise.
504         (fail_xr): Likewise.
505         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
506         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
507         (SCNHSZ): Likewise.
508         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
509         Likewise.
510         (ARGS): Likewise.
511         (__makecontext): Likewise.
512         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
513         Likewise.
515 2019-02-28  Florian Weimer  <fweimer@redhat.com>
517         [BZ #23937]
518         elf: Add test with a local IFUNC resolver.
519         * elf/ifuncmain9.c: New file.
520         * elf/ifuncmain9pic.c: Likewise.
521         * elf/ifuncmain9picstatic.c: Likewise.
522         * elf/ifuncmain9pie.c: Likewise.
523         * elf/ifuncmain9static.c: Likewise.
524         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
525         ifuncmain9static, ifuncmain9picstatic.
526         * elf/Makefile [multi-arch && build-shared] (tests-internal):
527         Add ifuncmain9, ifuncmain9pic.
528         * elf/Makefile [multi-arch && build-shared && have-fpie]
529         (ifunc-pie-tests): Add ifuncmain9pie.
530         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
531         (CFLAGS-ifuncmain9picstatic.c): Likewise.
532         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
534 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
536         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
537         * configure: Regenerated.
538         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
540 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
542         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
543         symbol as __wcspcy instead of wcscpy.
545 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
547         * include/stdio.h (__renameat2): New hidden prototype.
548         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
549         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
550         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
551         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
553 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
555         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
556         if statement.
558         * benchtests/bench-strcpy.c (do_test): Use space before '('.
559         * benchtests/bench-string.h (cmdline_process_function): Likewise.
560         * benchtests/bench-strlen.c (do_test): Likewise.
561         (test_main): Likewise.
562         * catgets/gencat.c (read_old): Likewise.
563         * elf/cache.c (load_aux_cache): Likewise.
564         * iconvdata/bug-iconv8.c (do_test): Likewise.
565         * math/test-tgmath-ret.c (do_test): Likewise.
566         * nis/nis_call.c (rec_dirsearch): Likewise.
567         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
568         * nptl/tst-audit-threads.c (do_test): Likewise.
569         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
570         * nss/nss_test1.c (init): Likewise.
571         * nss/test-netdb.c (test_hosts): Likewise.
572         * posix/execvpe.c (maybe_script_execute): Likewise.
573         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
574         * stdio-common/tst-printf.c (do_test): Likewise.
575         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
576         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
577         * stdlib/qsort.c (STACK_SIZE): Likewise.
578         * stdlib/test-canon.c (do_test): Likewise.
579         * stdlib/tst-swapcontext1.c (do_test): Likewise.
580         * string/memcmp.c (OPSIZ): Likewise.
581         * string/test-strcpy.c (do_test): Likewise.
582         (do_random_tests): Likewise.
583         * string/test-strlen.c (do_test): Likewise.
584         (test_main): Likewise.
585         * string/test-strrchr.c (do_test): Likewise.
586         (do_random_tests): Likewise.
587         * string/tester.c (test_memrchr): Likewise.
588         (test_memchr): Likewise.
589         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
590         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
591         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
592         (read_encoded_value_with_base): Likewise.
593         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
594         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
595         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
596         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
597         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
598         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
599         Likewise.
600         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
601         Likewise.
602         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
603         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
604         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
605         Likewise.
606         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
607         Likewise.
608         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
609         Likewise.
610         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
611         Likewise.
612         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
613         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
614         (FP_XSTATE_MAGIC2_SIZE): Likewise.
615         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
616         * time/test_time.c (main): Likewise.
618 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
620         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
622         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
623         wmemcpy.
625         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
626         wmemcpy.
628         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
630         * include/wchar.h (__wcscpy): New prototype.
631         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
632         (__wcscpy): Route internal symbol to generic implementation.
633         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
634         Add internal __wcscpy alias.
635         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
636         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
637         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
638         * wcsmbs/wcscpy.c (wcscpy): Add
639         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
640         use generic implementation.
641         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
643         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
644         wmemset.
646         * sysdeps/m68k/wcpcpy.c: Remove file.
647         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
649 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
651         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
652         than after operators.
653         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
654         * sysdeps/mach/hurd/getcwd.c
655         (__hurd_canonicalize_directory_name_internal): Likewise.
656         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
657         (pthread_mutex_consistent): Likewise.
658         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
659         Likewise.
660         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
661         (__pthread_mutex_transfer_np): Likewise.
662         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
663         (__pthread_mutex_unlock): Likewise.
664         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
665         (mtx_owned_p): Likewise.
666         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
667         (pthread_mutexattr_getrobust): Likewise.
668         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
669         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
670         Likewise.
671         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
672         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
673         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
674         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
675         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
676         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
677         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
678         Likewise.
679         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
680         Likewise.
681         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
682         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
683         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
684         (____longjmp_chk): Likewise.
685         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
686         Likewise.
687         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
688         (INTERNAL_SYSCALL): Likewise.
689         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
690         (INTERNAL_SYSCALL): Likewise.
691         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
692         (__get_clockfreq_via_cpuinfo): Likewise.
694         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
695         comments.
696         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
697         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
698         (WORD_COPY_BWD): Likewise.
699         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
700         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
701         Likewise.
702         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
703         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
704         comment.
705         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
707 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
709         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
710         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
711         rather than after operators.
712         * elf/cache.c (print_cache): Likewise.
713         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
714         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
715         * hurd/hurdinit.c (_hurd_setproc): Likewise.
716         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
717         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
718         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
719         (reauth_proc): Likewise.
720         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
721         (__file_name_split_at): Likewise.
722         (__directory_name_split_at): Likewise.
723         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
724         * hurd/port2fd.c (_hurd_port2fd): Likewise.
725         * iconv/gconv_dl.c (do_print): Likewise.
726         * inet/netinet/in.h (struct sockaddr_in): Likewise.
727         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
728         * locale/setlocale.c (new_composite_name): Likewise.
729         * malloc/memusagestat.c (main): Likewise.
730         * misc/fstab.c (fstab_convert): Likewise.
731         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
732         Likewise.
733         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
734         (getgrent_next_file): Likewise.
735         (internal_getgrnam_r): Likewise.
736         (internal_getgrgid_r): Likewise.
737         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
738         Likewise.
739         (internal_getgrent_r): Likewise.
740         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
741         (getpwent_next_nss): Likewise.
742         (getpwent_next_file): Likewise.
743         (internal_getpwnam_r): Likewise.
744         (internal_getpwuid_r): Likewise.
745         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
746         Likewise.
747         (getspent_next_nss): Likewise.
748         (internal_getspnam_r): Likewise.
749         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
750         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
751         * string/strchr.c (STRCHR): Likewise.
752         * string/strchrnul.c (STRCHRNUL): Likewise.
753         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
754         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
755         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
756         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
757         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
758         Likewise.
759         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
760         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
761         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
762         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
763         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
764         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
765         (open_file): Likewise.
766         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
767         (pthread_mutexattr_setprotocol): Likewise.
768         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
769         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
770         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
771         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
772         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
773         Likewise.
774         (elf_machine_rela): Likewise.
775         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
776         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
777         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
778         * sysdeps/posix/rename.c (rename): Likewise.
779         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
780         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
781         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
782         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
783         * sysdeps/unix/grantpt.c (grantpt): Likewise.
784         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
785         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
786         Likewise.
787         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
788         Likewise.
789         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
790         * time/tzfile.c (__tzfile_compute): Likewise.
792 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
794         * benchtests/bench-memmem.c (simple_memmem): Break lines before
795         rather than after operators.
796         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
797         * crypt/md5.c (md5_finish_ctx): Likewise.
798         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
799         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
800         * elf/cache.c (load_aux_cache): Likewise.
801         * elf/dl-load.c (open_verify): Likewise.
802         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
803         * elf/readelflib.c (process_elf_file): Likewise.
804         * elf/rtld.c (dl_main): Likewise.
805         * elf/sprof.c (generate_call_graph): Likewise.
806         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
807         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
808         * hurd/dtable.c (reauth_dtable): Likewise.
809         * hurd/getdport.c (__getdport): Likewise.
810         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
811         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
812         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
813         Likewise.
814         * hurd/hurdioctl.c (fioctl): Likewise.
815         * hurd/hurdselect.c (_hurd_select): Likewise.
816         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
817         (STOPSIGS): Likewise.
818         * hurd/hurdstartup.c (_hurd_startup): Likewise.
819         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
820         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
821         * hurd/msgportdemux.c (msgport_server): Likewise.
822         * hurd/setauth.c (_hurd_setauth): Likewise.
823         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
824         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
825         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
826         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
827         * login/tst-utmp.c (do_check): Likewise.
828         (simulate_login): Likewise.
829         * mach/lowlevellock.h (lll_lock): Likewise.
830         (lll_trylock): Likewise.
831         * math/test-fenv.c (ALL_EXC): Likewise.
832         * math/test-fenvinline.c (ALL_EXC): Likewise.
833         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
834         * nis/nis_call.c (__do_niscall3): Likewise.
835         * nis/nis_callback.c (cb_prog_1): Likewise.
836         * nis/nis_defaults.c (searchaccess): Likewise.
837         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
838         * nis/nis_ismember.c (internal_ismember): Likewise.
839         * nis/nis_local_names.c (nis_local_principal): Likewise.
840         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
841         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
842         Likewise.
843         * nis/ypclnt.c (yp_match): Likewise.
844         (yp_first): Likewise.
845         (yp_next): Likewise.
846         (yp_master): Likewise.
847         (yp_order): Likewise.
848         * nscd/hstcache.c (cache_addhst): Likewise.
849         * nscd/initgrcache.c (addinitgroupsX): Likewise.
850         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
851         (internal_getpwuid_r): Likewise.
852         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
853         * posix/glob.h (__GLOB_FLAGS): Likewise.
854         * posix/regcomp.c (peek_token): Likewise.
855         (peek_token_bracket): Likewise.
856         (parse_expression): Likewise.
857         * posix/regexec.c (sift_states_iter_mb): Likewise.
858         (check_node_accept_bytes): Likewise.
859         * posix/tst-spawn3.c (do_test): Likewise.
860         * posix/wordexp-test.c (testit): Likewise.
861         * posix/wordexp.c (parse_tilde): Likewise.
862         (exec_comm): Likewise.
863         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
864         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
865         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
866         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
867         * stdio-common/tst-fileno.c (do_test): Likewise.
868         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
869         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
870         * stdlib/strtod_l.c (round_and_return): Likewise.
871         (____STRTOF_INTERNAL): Likewise.
872         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
873         * string/strcspn.c (STRCSPN): Likewise.
874         * string/test-memmem.c (simple_memmem): Likewise.
875         * termios/tcsetattr.c (tcsetattr): Likewise.
876         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
877         * time/asctime.c (asctime_internal): Likewise.
878         * time/strptime_l.c (__strptime_internal): Likewise.
879         * time/sys/time.h (timercmp): Likewise.
880         * time/tzfile.c (__tzfile_compute): Likewise.
882 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
884         [BZ #21915]
885         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
887 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
889         * argp/argp-help.c (__argp_error_internal): New function,
890         renamed from __argp_error, but that takes a 'mode_flags'
891         parameter to control the format of long double parameters.
892         (__argp_error): Converted into a call __argp_error_internal.
893         (__argp_failure_internal): New function, renamed from
894         __argp_failure, but that takes a 'mode_flags' parameter.
895         (__argp_failure): Converted into a call __argp_failure_internal.
896         * misc/err.c (__vwarnx_internal): New function, renamed from
897         vwarnx, but that takes a 'mode_flags' parameter.
898         (vwarnx): Converted into a call to __vwarnx_internal.
899         (__vwarn_internal): New function, renamed from vwarn, but that
900         takes a 'mode_flags' parameter.
901         (vwarn): Converted into a call to __vwarn_internal.
902         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
903         call to __vfxprintf with 'mode_flags'.
904         (__error_internal): New function, renamed from error, but that
905         takes a 'mode_flags' parameter.
906         (error): Converted into a call to __error_internal.
907         (__error_at_line_internal): New function, renamed from
908         error_at_line, but that takes a 'mode_flags' parameter.
909         (error_at_line): Converted into a call to
910         __error_at_line_internal.
911         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
912         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
913         Likewise.
915 2019-02-20  Martin Liska  <mliska@suse.cz>
917         * math/Makefile: Install math-vector-fortran.h.
918         * bits/math-vector-fortran.h: New file.
919         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
921 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
923         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
924         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
926 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
928         * nptl/pthread_mutex_trylock.c: Fix comment.
930 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
932         * nptl/pthread_tryjoin.c: Fix comment.
934 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
936         [BZ #24231]
937         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
938         after R_SPARC_H34 case.
940 2019-02-18  Florian Weimer  <fweimer@redhat.com>
942         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
943         (getanswer): Do not call Dprintf.
944         (res_gethostbyname2_context): Likewise.
945         (res_gethostbyaddr_context): Likewise.
947 2019-02-18  Florian Weimer  <fweimer@redhat.com>
949         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
950         declaration.
951         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
952         Remove definitions.
953         * libio/stdfiles.c: Update comment.
954         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
955         set _IO_stdin, _IO_stdout, _IO_stderr.
956         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
957         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
958         inline function.
959         (_IO_deallocate_file): New inline function.
960         * libio/iolibio.h (_IO_vprintf): Remove definition.
961         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
962         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
963         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
964         _IO_legacy_file.
965         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
966         __builtin_expect.  Use _IO_legacy_file.
968 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
970         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
971         Initialize ctid with a known value and remove update of ctid
972         after clone.
973         (wait_tid): Adjust arguments and call futex_wait with ctid_val
974         as assumed current value of ctid_ptr.
976 2019-02-15  Florian Weimer  <fweimer@redhat.com>
978         Check that non-sysdeps headers have wrapper headers.
979         * scripts/check-wrapper-headers.py: New file.
980         * Makefile (tests-special): Add check-wrapper-headers.out.
981         (check-wrapper-headers.out): New target.
982         * Rules (tests-special): Add check-wrapper-headers.out.
983         (check-wrapper-headers.out): New target.
985 2019-02-15  Florian Weimer  <fweimer@redhat.com>
987         Add missing header wrappers under include/.
988         * include/ar.h: New file.
989         * include/bits/mqueue2.h: Likewise.
990         * include/bits/stdio.h: Likewise.
991         * include/bits/stdio2.h: Likewise.
992         * include/fstab.h: Likewise.
993         * include/fts.h: Likewise.
994         * include/lastlog.h: Likewise.
995         * include/netinet/icmp6.h: Likewise.
996         * include/netinet/igmp.h: Likewise.
997         * include/netinet/ip6.h: Likewise.
998         * include/re_comp.h: Likewise.
999         * include/regexp.h: Likewise.
1000         * include/rpcsvc/bootparam.h: Likewise.
1001         * include/rpcsvc/yp_prot.h: Likewise.
1002         * include/sys/random.h: Likewise.
1003         * include/sys/stropts.h: Likewise.
1004         * include/sys/ttychars.h: Likewise.
1005         * include/sys/vfs.h: Likewise.
1006         * include/wait.h: Likewise.
1008 2019-02-15  Florian Weimer  <fweimer@redhat.com>
1010         * nptl_db/proc_service.h: Move to ...
1011         * sysdeps/nptl/proc_service.h: ... here.
1012         * nptl_db/thread_db.h: Move to ...
1013         * sysdeps/nptl/thread_db.h: ... here.
1014         * nptl/descr.h: Include <thread_db.h>.
1016 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1018         * io/Makefile (tests): Add tst-lockf.
1019         * io/lockf.c (lockf): Use __fcntl and only define for
1020         !__OFF_T_MATCHES_OFF64_T.
1021         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1022         __OFF_T_MATCHES_OFF64_T case.
1023         * io/tst-lockf.c: New file.
1024         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1025         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1026         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1027         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1028         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1030         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1031         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1032         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1034 2019-02-15  Florian Weimer  <fweimer@redhat.com>
1036         [BZ #24211]
1037         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1038         pd->result after the thread descriptor has been freed.
1040 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
1042         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1043         from function return type.
1045         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1047 2019-02-14  Jan Kratochvil <jan.kratochvil@redhat.com>
1049         * scripts/test_printers_common.py: Set TERM to a known harmless
1050         value.
1052 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
1054         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1055         (xdr_u_int): Likewise.
1056         (xdr_enum): Likewise.
1057         (xdr_bytes): Reword fall-through comment.
1058         (xdr_string): Likewise.
1060 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1062         [BZ #2421]
1063         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1064         (tests): Add tst-join8 tst-join9.
1065         * nptl/lll_timedwait_tid.c: Remove file.
1066         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1067         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1068         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1069         * nptl/pthread_join_common.c (timedwait_tid): New function.
1070         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1071         is set.
1072         * nptl/tst-join5.c (thread_join): New function.
1073         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1074         check.
1075         * nptl/tst-join8.c: New file.
1076         * nptl/tst-join9.c: Likewise.
1077         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1078         lll_futex_timed_wait_cancel): Add generic macros.
1079         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1080         Remove definitions.
1081         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1082         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1083         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1084         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1085         Remove function.
1086         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1087         Likewise.
1088         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1089         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1090         (lll_futex_timed_wait_cancel): New macro.
1092 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
1094         * benchtests/Makefile: Add malloc-simple benchmark.
1095         * benchtests/bench-malloc-simple.c: New benchmark.
1097 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1099         * benchtests/bench-memmove.c (do_one_test): Remove unused
1100         ORIG_SRC.
1101         (do_test): Adjust.
1102         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1103         ORIG_SRC.
1104         (do_test): Adjust.
1106 2019-01-13  Jim Wilson  <jimw@sifive.com>
1108         [BZ #24040]
1109         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1110         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1111         (func): New.
1112         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
1113         call func directly.
1114         * nptl/Makefile (tests): Add tst-unwind-thread.
1115         (CFLAGS-tst-unwind-thread.c): Define.
1116         * nptl/tst-unwind-thread.c: New file.
1117         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1118         as undefined.
1120 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
1122         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1123         comment wording.
1124         * nis/nis_call.c (__do_niscall3): Likewise.
1126         * catgets/gencat.c (normalize_line): Use braces around empty
1127         'else' body.
1128         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1129         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1130         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1131         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1132         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1133         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1134         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1135         definition.
1137         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1138         execlp returns.
1140 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
1142         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1143         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1144         * benchtests/bench-strchr.c (stupid_strchr): Remove.
1145         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1146         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1147         * benchtests/bench-strlen.c (builtin_strlen): Remove.
1148         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1149         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1150         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1151         * benchtests/bench-strspn.c (stupid_strspn): Remove.
1152         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1153         * benchtests/bench-bcopy.c: Delete file.
1154         * benchtests/bench-bzero.c: Likewise.
1155         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1156         (simple_memccpy): Remove.
1157         (generic_memccpy): Add function.
1158         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1159         * benchtests/bench-memmove.c (simple_bcopy): Remove.
1160         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1161         (generic_mempcpy): Add new function.
1162         * benchtests/bench-memset.c (simple_bzero): Remove.
1163         (builtin_bzero): Remove.
1164         (builtin_memset): Remove.
1165         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1166         (generic_rawmemchr): Add new function.
1168 2019-02-12  Florian Weimer  <fweimer@redhat.com>
1170         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1172 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1174         [BZ #24122]
1175         * elf/Makefile (tests): Add tst-audit13.
1176         (modules-names): Add tst-audit13mod1.
1177         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1178         rule.
1179         * elf/tst-audit13.c: New file.
1180         * elf/tst-audit13mod1.c: Likewise.
1182 2019-02-12  Florian Weimer  <fweimer@redhat.com>
1184         [BZ #24122]
1185         * elf/rtld.c (unload_audit_module): New function.
1186         (report_audit_module_load_error): Likewise.
1187         (load_audit_module): Likewise.  Extracted from dl_main.  Call
1188         _dl_close if the laversion symbol cannot be found.  Use early
1189         returns for error handling.  Add malloc error check.  Check for a
1190         zero return value from la_version.  Remove spurious comment about
1191         static TLS initialization.  Remove useless casts.
1192         (notify_audit_modules_of_loaded_object): New function.  Extracted
1193         from dl_main.
1194         (load_audit_module): Likewise.
1195         (dl_main): Call load_audit_modules.
1197 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
1199         * elf/dl-exception.c (_dl_exception_create_format): Add
1200         fall-through comments.
1201         * elf/ldconfig.c (parse_conf_include): Likewise.
1202         * elf/rtld.c (print_statistics): Likewise.
1203         * locale/programs/charmap.c (parse_charmap): Likewise.
1204         * misc/mntent_r.c (__getmntent_r): Likewise.
1205         * posix/wordexp.c (parse_arith): Likewise.
1206         (parse_backtick): Likewise.
1207         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1208         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1209         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1211 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
1213         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1214         Use float instead of double.
1216 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1218         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1220 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
1222         * sysdeps/powerpc/bits/mathinline.h: Remove.
1224 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1226         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1227         * math/bits/math-finite.h: Move to ...
1228         * bits/math-finite.h: ... here.
1230 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1232         * sysdeps/generic/bits/unistd_ext.h: Move to ...
1233         * bits/unistd_ext.h: here.
1235 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
1237         [BZ #21915]
1238         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1239         * nss/tst-nss-files-hosts-long.c: New file.
1240         * nss/tst-nss-files-hosts-long.root: New directory.
1241         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1242         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1244 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1246         * include/bits/unistd_ext.h: Remove file.
1247         * posix/bits/unistd_ext.h: Move to ...
1248         * sysdeps/generic/bits/unistd_ext.h: ... here.
1250 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1252         * include/bits/unistd_ext.h: New file.
1254 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1256         * time/tst-strftime2.c: Use array_length macros instead of magic
1257         numbers.
1259 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1261         [BZ #24161]
1262         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1263         argument.
1264         * nptl/register-atfork.c (__run_fork_handlers): Only perform
1265         locking if the new do_locking argument is true.
1266         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1267         __run_fork_handlers.
1269 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1271         [BZ #6399]
1272         Linux: Add gettid system call wrapper.
1273         * posix/Makefile (headers): Add bits/unistd_ext.h.
1274         * posix/bits/unistd_ext.h: New file.
1275         * posix/unistd.h: Include it.
1276         * manual/process.texi (Process Identification): Document gettid.
1277         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1278         tst-gettid, tst-gettid-kill.
1279         (tst-gettid): Link with $(shared-thread-library).
1280         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1281         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1282         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1283         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1284         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1285         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1286         Add gettid.
1287         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1288         Likewise.
1289         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1290         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1291         Likewise.
1292         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1293         Likewise.
1294         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1295         Likewise.
1296         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1297         Likewise.
1298         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1299         Likewise.
1300         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1301         Likewise.
1302         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1303         Likewise.
1304         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1305         (GLIBC_2.30): Likewise.
1306         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1307         (GLIBC_2.30): Likewise.
1308         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1309         (GLIBC_2.30): Likewise.
1310         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1311         (GLIBC_2.30): Likewise.
1312         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1313         Likewise.
1314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1315         (GLIBC_2.30): Likewise.
1316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1317         (GLIBC_2.30): Likewise.
1318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1319         (GLIBC_2.30): Likewise.
1320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1321         (GLIBC_2.30): Likewise.
1322         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1323         Likewise.
1324         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1325         Likewise.
1326         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1327         Likewise.
1328         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1329         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1330         Likewise.
1331         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1332         Likewise.
1333         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1334         Likewise.
1335         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1336         Likewise.
1337         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1339 2019-02-07  Florian Weimer  <fweimer@redhat.com>
1341         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1342         compatibility symbols.
1344 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
1346         [BZ #24180]
1347         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1348         Add compiler barriers and comments.
1350 2019-02-07  Florian Weimer  <fweimer@redhat.com>
1352         * include/array_length.h (array_length): Do not use a statement
1353         expression and _Static_assert, so that array_length can be used at
1354         file scope and as a constant expression.
1356 2019-02-07  Florian Weimer  <fweimer@redhat.com>
1358         * support/xdlfcn.h (xdlmopen): Declare.
1359         * support/xdlmopen.c: New file.
1360         * support/Makefile (libsupport-routines): Add xdlmopen.
1362 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
1364         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1365         before return type, without separate inline.
1366         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1367         * elf/dl-tunables.h (tunable_is_name): Likewise.
1368         * malloc/malloc.c (do_set_trim_threshold): Likewise.
1369         (do_set_top_pad): Likewise.
1370         (do_set_mmap_threshold): Likewise.
1371         (do_set_mmaps_max): Likewise.
1372         (do_set_mallopt_check): Likewise.
1373         (do_set_perturb_byte): Likewise.
1374         (do_set_arena_test): Likewise.
1375         (do_set_arena_max): Likewise.
1376         (do_set_tcache_max): Likewise.
1377         (do_set_tcache_count): Likewise.
1378         (do_set_tcache_unsorted_limit): Likewise.
1379         * nis/nis_subr.c (count_dots): Likewise.
1380         * nptl/allocatestack.c (advise_stack_range): Likewise.
1381         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1382         (do_sin): Likewise.
1383         (reduce_sincos): Likewise.
1384         (do_sincos): Likewise.
1385         * sysdeps/unix/sysv/linux/x86/elision-conf.c
1386         (do_set_elision_enable): Likewise.
1387         (TUNABLE_CALLBACK_FNDECL): Likewise.
1389 2019-02-06  Florian Weimer  <fweimer@redhat.com>
1391         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1392         (xdlsym): Use dlerror to detect a NULL symbol.
1394 2019-02-06  Florian Weimer  <fweimer@redhat.com>
1396         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1397         <stap-probe.h>.
1398         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1400 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1402         * libio/tst-bz24153.c (wide): Use wide char format specifier.
1404 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1406         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1407         __wmemcmp and weak alias to wmemcmp.
1409 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1411         [BZ #23403]
1412         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1413         TLS_TCB_AT_TP tls variant.
1414         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1415         Add alignment checks.
1416         * support/Makefile (libsupport-routines): Add xposix_memalign and
1417         xpthread_setstack.
1418         * support/support.h: Add xposix_memalign.
1419         * support/xthread.h: Add xpthread_attr_setstack.
1420         * support/xposix_memalign.c: New File.
1421         * support/xpthread_attr_setstack.c: Likewise.
1423 2019-02-05  Florian Weimer  <fweimer@redhat.com>
1425         [BZ #24164]
1426         arm: Use "nr" constraint for Systemtap probes, to avoid the
1427         compiler using memory operands for constants, due to the "o"
1428         alternative in the default "nor" constraint.
1429         * include/stap-probe.h [USE_STAP_PROBE]: Include
1430         <stap-probe-machine.h>
1431         * sysdeps/generic/stap-probe-machine.h: New file.
1432         * sysdeps/arm/stap-probe-machine.h: Likewise.
1434 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
1436         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1437         with 0, not tcache->entries[tc_idx].
1439         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1440         once.
1442 2019-02-04  Andreas Schwab  <schwab@suse.de>
1444         [BZ #16976]
1445         [BZ #17396]
1446         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1447         looking up collating elements match against (wide) character
1448         sequence instead of name.  Correct alignment adjustment.
1449         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1450         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1451         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1452         (LOCALES): Add cs_CZ.ISO-8859-2.
1453         * posix/tst-fnmatch4.c: New file.
1454         * posix/tst-fnmatch5.c: New file.
1455         * include/wchar.h (__wmemcmp): Declare.
1456         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1457         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1458         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1459         * sysdeps/s390/wmemcmp.c: Likewise.
1461 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1463         [BZ #24155]
1464         CVE-2019-7309
1465         * NEWS: Updated for CVE-2019-7309.
1466         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
1467         upper 32 bits of RDX register for x32.  Use unsigned Jcc
1468         instructions, instead of signed.
1469         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1470         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1472 2019-02-04  Florian Weimer  <fweimer@redhat.com>
1474         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1475         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1476         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1477         Likewise.
1478         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1479         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1480         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1481         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1482         Likewise.
1483         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1484         Likewise.
1485         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1486         Likewise.
1487         (posix_spawn_file_actions_addopen): Likewise.
1488         (posix_spawn_file_actions_addclose): Likewise.
1489         (posix_spawn_file_actions_adddup2): Likewise.
1490         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
1491         qualifiers.
1492         (posix_spawn_file_actions_addfchdir_np): Likewise.
1494 2019-02-04  David Newall  <glibc@davidnewall.com>
1496         elf: Implement --preload option for the dynamic linker.
1497         * elf/rtld.c (preloadarg): New variable.
1498         (handle_preload_list): Pass through “where” argument to
1499         do_preload.
1500         (dl_main): Handle "--preload" and add second call to
1501         handle_preload_list.
1502         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1503         (tst-rtld-preload-OBJS): Set variable.
1504         (tst-rtld-preload.out): New target.
1505         * elf/tst-rtld-preload.sh: New file.
1507 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
1509         * Makefile (testrun.sh): Exit in case of incorrect argument.
1511 2019-02-04  Florian Weimer  <fweimer@redhat.com>
1513         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1514         alignment gaps.
1516 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1518         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1519         implicit overflow checks.
1521 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
1523         * stdlib/isomac.c: Include <unistd.h>.
1525 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1527         * include/time.h (__tzfile_default): Use int, not long int, for
1528         the GMT offsets.
1529         * time/tzfile.c (struct ttinfo): Change type of the offset member
1530         to int.
1531         (__tzfile_read): Remove useless cast.
1532         (__tzfile_default): Adjust prototype.
1533         * time/tzset.c (tz_rule): Change type of the offset member to int.
1534         (parse_offset): Change the type of the sign variable to int.
1536 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1538         [BZ #24153]
1539         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1540         * libio/getchar.c (getchar): Likewise.
1541         * libio/getchar_u.c (getchar_unlocked): Likewise.
1542         * libio/getwchar.c (getwchar): Likewise.
1543         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1544         * libio/iogets.c (_IO_gets): Likewise.
1545         * libio/vscanf.c (_IO_vscanf): Likewise.
1546         * libio/vwscanf.c (__vwscanf): Likewise.
1547         * libio/tst-bz24153.c: New file.
1548         * libio/Makefile (tests): Add it.
1550 2019-02-02  Florian Weimer  <fweimer@redhat.com>
1552         [BZ #14829]
1553         * manual/resource.texi (Basic Scheduling Functions): Add
1554         portability note.  Change process to task throughout the section.
1555         Remove incorrect comment about sched_yield as it affects
1556         tasks/threads, not entire processes.
1557         * sysdeps/unix/sysv/linux/bits/posix_opt.h
1558         (_POSIX_PRIORITY_SCHEDULING): Update comment.
1560 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
1562         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1563         * configure: Regenerated.
1564         * manual/install.texi (Tools for Compilation): Update minimum GCC
1565         version.
1566         * INSTALL: Regenerated.
1568 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1570         * support/support_test_compare_string.c
1571         (support_test_compare_string): Use "string" in error message.
1572         * support/tst-test_compare_string.c (do_test): Adjust.
1574 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1576         * support/support_format_address_family.c
1577         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1579 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1581         * manual/socket.texi (Internet Address Formats): Clarify the byte
1582         order of struct sockaddr_in, struct sockaddr_in6.  Document
1583         sin6_flowinfo and sin6_scope_id.
1585 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
1587         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1588         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1589         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1590         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1591         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1592         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1594 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1596         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1597         [!MEMCHR](MEMCHR): Set to __memchr.
1598         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1599         Add memchr_generic and memchr_nosimd.
1600         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1601         (__libc_ifunc_impl_list): Add memchr ifuncs.
1602         * sysdeps/aarch64/multiarch/memchr.c: New file.
1603         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1604         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1606 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1608         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1609         Add memset_emag.
1610         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1611         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1612         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1613         Add IS_EMAG check for ifunc dispatch.
1614         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1615         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1617 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1619         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1620         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1621         Add emag.
1622         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1623         New macro.
1625 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
1627         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1629 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
1631         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1632         syscall-template file.
1634 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
1635             Torvald Riegel  <triegel@redhat.com>
1636             Rik Prohaska  <prohaska7@gmail.com>
1638         [BZ# 23844]
1639         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1640         tst-rwlock-trywrlock-stall.
1641         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1642         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1643         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1644         Set __wrphase_fute to 1 only if we started the write phase.
1645         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1646         * nptl/tst-rwlock-trywrlock-stall.c: New file.
1647         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1648         * support/xpthread_rwlock_destroy.c: New file.
1649         * support/xthread.h: Declare xpthread_rwlock_destroy.
1651 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
1653         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1654         version to 4.0.2.
1656 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
1658         [BZ #24051]
1659         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1660         * libio/fileops.c (_IO_new_file_underflow): Likewise
1661         * libio/wfileops.c (_IO_wfile_underflow): Likewise
1662         * libio/putchar.c (putchar): Likewise.
1663         * libio/putchar_u.c (putchar_unlocked): Likewise.
1664         * libio/putwchar.c (putchar): Likewise.
1665         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1666         * libio/tst-bz24051.c: New test.
1667         * libio/Makefile (tests): Add tst-bz24051
1669 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1671         CVE-2019-9169
1672         regex: fix read overrun [BZ #24114]
1673         Problem found by AddressSanitizer, reported by Hongxu Chen in:
1674         https://debbugs.gnu.org/34140
1675         * posix/regexec.c (proceed_next_node):
1676         Do not read past end of input buffer.
1678 2019-01-31  Florian Weimer  <fweimer@redhat.com>
1680         [BZ #24059]
1681         * nss/nss_files/files-alias.c (get_next_alias): Handle
1682         continuation line without newline at the end.
1683         * nss/tst-nss-files-alias-truncated.c: New file.
1684         * nss/Makefile [$(build-shared)] (tests): Add
1685         tst-nss-files-alias-truncated.
1686         (tst-nss-files-alias-truncated): Link with libnss_files.so.
1687         * support/namespace.h (struct support_chroot_configuration): Add
1688         aliases member.
1689         (struct support_chroot): Add path_aliases member.
1690         * support/support_chroot.c (support_chroot_create): Handle
1691         aliases.
1692         (support_chroot_free): Free path_aliases.
1694 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1696         * version.h (RELEASE): Set to "development".
1697         (VERSION): Set to "2.29.9000".
1698         * NEWS: Add section for 2.30.
1700         * version.h (RELEASE): Set to "stable".
1701         (VERSION): Set to "2.29".
1702         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1704         * NEWS: Add the list of bugs fixed in 2.29.
1705         * manual/contrib.texi: Update contributors list with some more
1706         names.
1707         * manual/install.texi: Update latest versions of packages
1708         tested.
1709         * INSTALL: Regenerated.
1711 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1713         * po/be.po: Update translations.
1714         * po/bg.po: Likewise.
1715         * po/ca.po: Likewise.
1716         * po/cs.po: Likewise.
1717         * po/da.po: Likewise.
1718         * po/de.po: Likewise.
1719         * po/el.po: Likewise.
1720         * po/eo.po: Likewise.
1721         * po/es.po: Likewise.
1722         * po/fi.po: Likewise.
1723         * po/fr.po: Likewise.
1724         * po/gl.po: Likewise.
1725         * po/hr.po: Likewise.
1726         * po/hu.po: Likewise.
1727         * po/ia.po: Likewise.
1728         * po/id.po: Likewise.
1729         * po/it.po: Likewise.
1730         * po/ja.po: Likewise.
1731         * po/ko.po: Likewise.
1732         * po/lt.po: Likewise.
1733         * po/nb.po: Likewise.
1734         * po/nl.po: Likewise.
1735         * po/pl.po: Likewise.
1736         * po/pt_BR.po: Likewise.
1737         * po/ru.po: Likewise.
1738         * po/rw.po: Likewise.
1739         * po/sk.po: Likewise.
1740         * po/sl.po: Likewise.
1741         * po/sv.po: Likewise.
1742         * po/tr.po: Likewise.
1743         * po/uk.po: Likewise.
1744         * po/vi.po: Likewise.
1745         * po/zh_CN.po: Likewise.
1746         * po/zh_TW.po: Likewise.
1748 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
1750         [BZ #24130]
1751         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1752         of $f3 register on $y_is_neg path.
1754 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1756         [BZ #24110]
1757         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1758         sigaltstack.ss_flags.
1760 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1762         [BZ #23758]
1763         * manual/time.texi (strftime): Document "%Ey".
1764         * time/strftime_l.c (__strftime_internal): Set the default width
1765         padding with zero of "%Ey" to 2.
1767         [BZ #24096]
1768         * manual/time.texi (strftime): Document "%EC" and "%EY".
1769         * time/Makefile (tests): Add tst-strftime2.
1770         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1771         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1772         override padding for "%Ey".
1773         If an optional flag ('_' or '-') is specified to "%EY", interpret the
1774         "%Ey" in the subformat as if decorated with that flag.
1775         * time/tst-strftime2.c: New file.
1777 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1779         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1780         are not defined.
1782         [BZ #24122]
1783         * elf/Makefile (tests): Add tst-audit13.
1784         (modules-names): Add tst-audit13mod1.
1785         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1786         rule.
1787         * elf/rtld.c (dl_main): Handle invalid audit module version.
1788         * elf/tst-audit13.c: New file.
1789         * elf/tst-audit13mod1.c: Likewise.
1791 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1793         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1794         returned by __hurd_at_flags.
1795         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1796         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1797         directly instead of __hurd_file_name_lookup.
1799 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
1801         * scripts/build-many-glibcs.py (Context.checkout): Default
1802         binutils version to 2.32 branch.
1804 2019-01-21  Florian Weimer  <fweimer@redhat.com>
1806         [BZ #20018]
1807         CVE-2016-10739
1808         resolv: Reject trailing characters in host names
1809         * include/arpa/inet.h (__inet_aton_exact): Declare.
1810         (inet_aton): Remove hidden prototype.  No longer used internally.
1811         * nscd/gai.c (__inet_aton): Do not define.
1812         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1813         * nss/digits_dots.c (__inet_aton): Likewise.
1814         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1815         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1816         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1817         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1818         (tst-resolv-trailing): Likewise.
1819         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1820         libc.
1821         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1822         Make static.  Add endp parameter.
1823         (__inet_aton_exact): New function.
1824         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1825         (__inet_addr): Call inet_aton_end.
1826         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1827         not just IPv6.  Call __inet_aton_exact.
1828         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1829         (tests): Make const.  Add additional test cases with trailing
1830         characters.
1831         (do_test): Use array_length.
1832         * resolv/tst-inet_aton_exact.c: New file.
1833         * resolv/tst-resolv-trailing.c: Likewise.
1834         * resolv/tst-resolv-nondecimal.c: Likewise.
1835         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1837 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1839         [BZ# 24097]
1840         CVE-2019-6488
1841         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1842         Clear the upper 32 bits of RSI register.
1843         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1844         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1845         and tst-size_t-wcsnlen.
1846         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1847         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1849 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1851         [BZ# 24097]
1852         CVE-2019-6488
1853         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1854         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1855         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1856         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1857         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1859 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1861         [BZ# 24097]
1862         CVE-2019-6488
1863         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1864         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1865         * sysdeps/x86_64/strcmp.S: Likewise.
1866         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1867         tst-size_t-strncmp and tst-size_t-wcsncmp.
1868         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1869         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1870         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1872 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1874         [BZ# 24097]
1875         CVE-2019-6488
1876         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1877         RDX_LP for length.  Clear the upper 32 bits of RDX register.
1878         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1879         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1880         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1881         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1883 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1885         [BZ# 24097]
1886         CVE-2019-6488
1887         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1888         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1889         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1890         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1892 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1894         [BZ# 24097]
1895         CVE-2019-6488
1896         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1897         length.  Clear the upper 32 bits of RDX register.
1898         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1899         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1900         Likewise.
1901         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1902         Likewise.
1903         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1904         tst-size_t-wmemchr.
1905         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1907 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1909         [BZ# 24097]
1910         CVE-2019-6488
1911         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1912         length.  Clear the upper 32 bits of RDX register.
1913         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1914         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1915         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1916         tst-size_t-wmemcmp.
1917         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1918         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1920 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1922         [BZ# 24097]
1923         CVE-2019-6488
1924         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
1925         upper 32 bits of RDX register.
1926         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1927         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1928         tst-size_t-wmemchr.
1929         * sysdeps/x86_64/x32/test-size_t.h: New file.
1930         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1931         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1933 2019-01-18  Florian Weimer  <fweimer@redhat.com>
1935         [BZ #24112]
1936         resolv: Do not send queries for non-host-names in nss_dns.
1937         * resolv/nss_dns/dns-host.c (check_name): New function.
1938         (_nss_dns_gethostbyname2_r): Use it.
1939         (_nss_dns_gethostbyname_r): Likewise.
1940         (_nss_dns_gethostbyname4_r): Likewise.
1942 2019-01-21  Florian Weimer  <fweimer@redhat.com>
1944         * resolv/inet_addr.c: Reformat to GNU style.
1945         (__inet_addr, __inet_aton): Update comment.
1947 2019-01-18  Florian Weimer  <fweimer@redhat.com>
1949         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1950         ("malloc: Use current (C11-style) atomics for fastbin access").
1951         This commit introduces a substantial performance regression on
1952         POWER and Aarch64.
1953         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1954         (REMOVE_FB): Define.
1955         (_int_malloc): Use it and reindent.
1956         (_int_free): Use CAS loop with
1957         catomic_compare_and_exchange_val_rel.
1958         (malloc_consolidate): Use atomic_exchange_acq.
1961 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
1963         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
1964         -Wl,-z,now.
1965         (LDFLAGS-tst-minsigstksz-2): Likewise.
1966         (LDFLAGS-tst-minsigstksz-3): Likewise.
1967         (LDFLAGS-tst-minsigstksz-3a): Likewise.
1968         (LDFLAGS-tst-minsigstksz-4): Likewise.
1970 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1972         * manual/time.texi (strftime): Fix the wording to "alternative" rather
1973         than "alternate".
1975 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
1977         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1979 2019-01-16  Zack Weinberg  <zackw@panix.com>
1981          * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1982          (xget_sigstack_location): New test support functions.
1983          * support/xsigstack.c: New file, implementing them.
1984          * support/tst-xsigstack.c: New test for them.
1985          * support/Makefile: Update.
1987          * signal/tst-minsigstksz-1.c
1988          * signal/tst-minsigstksz-2.c
1989          * signal/tst-minsigstksz-3.c
1990          * signal/tst-minsigstksz-3a.c
1991          * signal/tst-minsigstksz-4.c: New tests.
1992          * signal/Makefile: Run them.
1994 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1996         * po/libc.pot: Regenerate.
1998 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
2000         * math/libm-test-fma.inc (fma_test_data): Set
2001         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2003 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
2005         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2006         (do_test): Changed __vector __int128_t to __vector unsigned int.
2008 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
2010         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2011         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2012         stpcpy-avx2 and stpncpy-avx2.
2013         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2014         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2015         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2016         and __stpncpy_avx2.
2017         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2018         ifunc-strcpy.h}: rename header for a more generic name.
2019         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2020         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2021         AVX unaligned load is fast and vzeroupper is preferred.
2022         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2023         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2024         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2025         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2026         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2027         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2029 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
2031         * argp/argp-help.c: Fix typo in comment.
2032         * misc/sys/cdefs.h: Likewise.
2033         * posix/regexec.c (sift_states_iter_mb): Likewise.
2034         * socket/sockatmark.c: Likewise.
2035         * socket/sys/socket.h: Likewise.
2036         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2037         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2038         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2039         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2040         * sysdeps/unix/sockatmark.c: Likewise.
2041         * time/strptime_l.c: Likewise.
2043 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2045         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2046         missing space after the cast of "_NL_CURRENT".
2048 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
2050         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2051         ifdef to fix read of VSCR.
2052         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2053         tst-ucontext-ppc64-vscr.c to test list.
2054         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2056 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
2058         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2059         fall-through.
2061 2019-01-09  Jim Wilson  <jimw@sifive.com>
2063         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2065 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
2067         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2068         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2069         __memcpy_falkor for ares.
2070         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2071         Add new define.
2072         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2073         Add ares cpu.
2075 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
2077         [BZ #24066]
2078         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2079         4_FP_W_TYPEs are used for IEEE quad precision.
2080         * soft-fp/extendhftf2.c: Likewise.
2081         * soft-fp/extendsftf2.c: Likewise.
2082         * soft-fp/extendxftf2.c: Likewise.
2083         * soft-fp/trunctfdf2.c: Likewise.
2084         * soft-fp/trunctfhf2.c: Likewise.
2085         * soft-fp/trunctfsf2.c: Likewise.
2086         * soft-fp/trunctfxf2.c: Likewise.
2087         * sysdeps/alpha/ots_cvttx.c: Likewise.
2088         * sysdeps/alpha/ots_cvtxt.c: Likewise.
2089         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2090         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2091         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2092         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2093         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2094         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2095         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2096         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2097         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2098         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2099         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2100         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2101         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2102         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2103         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2104         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2106 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
2108         [BZ #24024]
2109         * Makeconfig: Build libm with -fno-math-errno but build the remaining
2110         code with -fmath-errno.
2111         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2112         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2113         * string/test-strerror-errno.c: New file.
2115 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
2117         [BZ #24046]
2118         * localedata/locales/en_US (date_fmt): Add, set to
2119         "%a %d %b %Y %r %Z".
2121 2019-01-07  Florian Weimer  <fweimer@redhat.com>
2123         [BZ #24063]
2124         * manual/arith.texi (Math Error Reporting): Use @code{errno}
2125         instead of @var{errno}.
2126         (Parsing of Integers): Likewise.
2127         (Parsing of Floats): Likewise.
2128         * manual/filesys.texi (Working with Directory Trees): Likewise.
2129         (Temporary Files): Likewise.
2130         * manual/job.texi (Terminal Access Functions): Likewise.
2131         * manual/llio.texi (Synchronizing I/O): Likewise.
2132         * manual/math.texi (SVID Random): Likewise.
2133         * manual/message.texi (The catgets Functions): Likewise.
2134         (Translation with gettext): Likewise.
2135         (Locating gettext catalog): Likewise.
2136         (Charset conversion in gettext): Likewise.
2137         * manual/nss.texi (NSS Module Function Internals): Likewise.
2138         * manual/search.texi (Hash Search Function): Likewise.
2139         * manual/setjmp.texi (System V contexts): Likewise.
2140         * manual/time.texi (Sleeping): Likewise.
2141         * manual/users.texi (Lookup User): Likewise.
2142         (Lookup Group): Likewise.
2144 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2146         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2147         fix typo.
2149 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
2151         [BZ #19444]
2152         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2153         __builtin_unreachable for default case in switch.
2154         (__ieee754_yn): Likewise.
2155         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2156         (__ieee754_ynl): Likewise.
2157         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2158         (__ieee754_ynl): Likewise.
2159         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2160         (__ieee754_ynl): Likewise.
2162 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2164         * manual/maint.texi: Use @{ and @}.
2166 2019-01-04  Florian Weimer  <fweimer@redhat.com>
2168         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2169         function.
2170         (do_in_chroot_1): Call it.
2171         (run_chroot_tests):
2172         Improve error reporting in case it is not possible to create a
2173         collision for the PTY name required by the test.
2175 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2177         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2178         lll_wait_tid with timeout.
2179         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2180         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2181         futex_reltimed_wait_cancelable for cancelabla mode.
2182         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2183         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2184         macros.
2185         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2186         * sysdeps/posix/waitid.c (__sigwait): Likewise.
2187         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2188         SYSCALL_CANCEL_NCS): New macro.
2189         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2190         (lll_timedwait_tid): Remove macro.
2191         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2192         Likewise.
2193         (lll_timedwait_tid): Likewise.
2194         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2195         Likewise.
2196         (lll_timedwait_tid): Likewise.
2197         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2198         Likewise.
2199         (lll_timedwait_tid): Likewise.
2200         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2201         Use INTERNAL_SYSCALL_CANCEL.
2202         * sysdeps/unix/sysv/linux/futex-internal.h
2203         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2204         instead of __pthread_{enable,disable}_asynccancel.
2205         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2206         (lll_futex_wait_cancel): New macro.
2208         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2209         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2211         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2212         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2214         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2215         in backtrace analysis.
2216         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2217         side-effects.
2218         (tf_send): Likewise.
2220         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2221         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2222         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2223         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2224         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2225         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2226         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2227         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2228         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2229         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2230         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2231         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2232         Likewise.
2233         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2234         tst-cancel-wrappers.sh.
2235         (generated): Remove tst-cancel-wrappers.out.
2236         (tst-cancel-wrappers.out): Remove rule.
2237         * nptl/tst-cancel-wrappers.sh: Remove file.
2239 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2241         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2242         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2243         Update.
2245 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2247         [BZ #23640]
2248         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2249         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2250         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2251         close-on-exec reset for adddup2 file action.
2252         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2254 2019-01-03  Zack Weinberg  <zackw@panix.com>
2256         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2257         parameter.  Only use deprecated scanf when __USE_GNU is defined
2258         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2259         than 201103L, whichever is relevant for the language being compiled.
2261         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2262         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2263         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2264         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2265         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2267         * libio/iovsscanf.c
2268         * libio/fwscanf.c
2269         * libio/iovswscanf.c
2270         * libio/swscanf.c
2271         * libio/vscanf.c
2272         * libio/vwscanf.c
2273         * libio/wscanf.c
2274         * stdio-common/fscanf.c
2275         * stdio-common/scanf.c
2276         * stdio-common/vfscanf.c
2277         * stdio-common/vfwscanf.c
2278         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2279         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2280         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2281         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2282         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2283         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2284         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2285         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2286         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2287         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2288         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2289         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2290         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2291         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2292         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2294         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
2295         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2296         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2297         not sscanf.
2298         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2299         with a preprocessor macro.
2301         * stdio-common/bug21.c, stdio-common/scanf14.c:
2302         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2303         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2304         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
2305         to xscanf, xfscanf, xsscanf.
2307         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2308         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2309         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2310         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
2311         xfscanf, xsscanf.
2312         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2313         override feature selection macros or provide definitions of u_char etc.
2314         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2315         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2316         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
2317         with -std=gnu89.
2319 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2321         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2322         bits/termios-misc.h.
2323         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2324         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2325         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2326         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2327         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2328         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2330         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2331         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2332         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2333         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2334         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2335         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2336         termios-misc.h.
2337         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2338         (sysdep_headers): Add termios-misc.h.
2340         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2341         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2342         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2344         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2345         termios-tcflow.h.
2346         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2347         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2348         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2349         TCSAFLUSH): Move to termios-tcflow.h.
2350         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2351         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2352         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2353         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2355         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2356         termios-c_lflag.h.
2357         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2358         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2359         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2360         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2361         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2362         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2363         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2364         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2365         Likewise.
2366         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2367         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2368         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2369         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2371         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2372         termios-c_cflag.h.
2373         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2374         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2375         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2376         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2377         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2378         termios-c_cflag.h.
2379         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2380         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2381         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2382         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2384         [BZ #23783]
2385         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2386         termios-baud.h.
2387         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2388         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2389         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2390         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2391         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2392         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2393         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2394         __MAX_BAUD): Move to termios-baud.h.
2395         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2396         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2397         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2398         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2399         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2401         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2402         termios-c_oflag.h.
2403         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2404         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2405         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2406         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2407         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2408         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
2409         termios-c_oflag.h.
2410         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2411         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2412         FFR1): Likewise.
2413         [USE_MISC] (XTABS): Likewise.
2414         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2415         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2416         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2417         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2419         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2420         termios-c_iflag.h.
2421         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2422         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2423         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2424         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2425         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2426         IUTF8): Move to termios-c_iflag.h.
2427         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2428         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2429         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2430         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2432         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2433         termios-cc.h.
2434         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2435         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2436         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2437         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2438         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2439         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2440         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2441         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2442         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2443         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2444         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2445         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2447         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2448         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2449         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2450         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2451         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2452         termios-struct.h.
2453         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2454         termios-struct.h.
2455         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2456         Likewise.
2457         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2458         Likewise.
2459         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2460         Likewise.
2461         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2462         Likewise.
2463         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2464         _HAVE_C_OSPEED): Define.
2465         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2466         _HAVE_C_OSPEED): Likewise.
2467         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2468         _HAVE_C_OSPEED): Likewise.
2469         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2470         (cfsetospeed): Check for define value instead of existence.
2471         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2472         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2473         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2474         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2475         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2477         [BZ #17783]
2478         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2479         Define.
2480         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2481         (TIOCSER_TEMT): Likewise.
2482         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2483         (TEOCSER_TEMT): Likewise.
2485 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
2487         [BZ #24011]
2488         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2490 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
2492         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2494 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2496         * sysdeps/htl/pt-barrierattr-setpshared.c
2497         (pthread_barrierattr_setpshared): Add stub warning.
2498         * sysdeps/htl/pt-condattr-setpshared.c
2499         (pthread_condattr_setpshared): Likewise.
2500         * sysdeps/htl/pt-mutexattr-setpshared.c
2501         (pthread_mutexattr_setpshared): Likewise.
2502         * sysdeps/htl/pt-rwlockattr-setpshared.c
2503         (pthread_rwlockattr_setpshared): Likewise.
2504         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2505         (pthread_mutexattr_setpshared): Likewise.
2507 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
2509         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2510         constants to match with Linux 4.20.
2512         * sysdeps/mips/mips32/libm-test-ulps: Update.
2513         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2515 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
2517         [BZ #24034]
2518         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2519         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2520         than __typeof (...) for the a_ptr variable.
2522 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2524         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2525         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2526         * libio/Makefile (tests): Add tst-sprintf-ub and
2527         tst-sprintf-chk-ub.
2528         (CFLAGS-tst-sprintf-ub.c): New variable.
2529         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2530         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2531         destination buffer and check for overflows in fortified mode.
2532         * libio/libioP.h (PRINTF_CHK): New macro.
2533         * libio/tst-sprintf-chk-ub.c: New file.
2534         * libio/tst-sprintf-ub.c: Likewise.
2536 2019-01-02  Florian Weimer  <fweimer@redhat.com>
2538         [BZ #24018]
2539         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2540         failure.
2542 2019-01-02  Florian Weimer  <fweimer@redhat.com>
2544         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2546 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
2548         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2549         macro.
2551         * sysdeps/unix/sysv/linux/netpacket/packet.h
2552         (PACKET_IGNORE_OUTGOING): New macro.
2554         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2555         macro.
2557         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2558         version to 4.20.
2559         (riscv_flush_icache): New syscall.
2561         * manual/texinfo.tex: Update to version 2018-12-28.17 with
2562         trailing whitespace removed.
2563         * scripts/config.guess: Update to version 2019-01-01.
2564         * scripts/config.sub: Update to version 2019-01-01.
2565         * scripts/move-if-change: Update from gnulib.
2567         * NEWS: Update copyright dates.
2568         * catgets/gencat.c (print_version): Likewise.
2569         * csu/version.c (banner): Likewise.
2570         * debug/catchsegv.sh: Likewise.
2571         * debug/pcprofiledump.c (print_version): Likewise.
2572         * debug/xtrace.sh (do_version): Likewise.
2573         * elf/ldconfig.c (print_version): Likewise.
2574         * elf/ldd.bash.in: Likewise.
2575         * elf/pldd.c (print_version): Likewise.
2576         * elf/sotruss.sh: Likewise.
2577         * elf/sprof.c (print_version): Likewise.
2578         * iconv/iconv_prog.c (print_version): Likewise.
2579         * iconv/iconvconfig.c (print_version): Likewise.
2580         * locale/programs/locale.c (print_version): Likewise.
2581         * locale/programs/localedef.c (print_version): Likewise.
2582         * login/programs/pt_chown.c (print_version): Likewise.
2583         * malloc/memusage.sh (do_version): Likewise.
2584         * malloc/memusagestat.c (print_version): Likewise.
2585         * malloc/mtrace.pl: Likewise.
2586         * manual/libc.texinfo: Likewise.
2587         * nptl/version.c (banner): Likewise.
2588         * nscd/nscd.c (print_version): Likewise.
2589         * nss/getent.c (print_version): Likewise.
2590         * nss/makedb.c (print_version): Likewise.
2591         * posix/getconf.c (main): Likewise.
2592         * scripts/test-installation.pl: Likewise.
2593         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2595         * All files with FSF copyright notices: Update copyright dates
2596         using scripts/update-copyrights.
2597         * locale/programs/charmap-kw.h: Regenerated.
2598         * locale/programs/locfile-kw.h: Likewise.
2600 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
2602         * timezone/zdump.c: Update from tzcode 2018i.
2603         * timezone/zic.c: Likewise.
2605 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2607         regex: improve Gnulib port to AIX
2608         From the glibc point of view, this removes duplicate macro
2609         definitions and is obviously safe.
2610         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2611         * posix/regex_internal.h:
2612         (__attribute__, __attribute_warn_unused_result__):
2613         Remove; already defined elsewhere.
2615 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
2617         [BZ #24027]
2618         * malloc/malloc.c (_int_realloc): Always call memcpy for the
2619         copying operation.  (ncopies had the wrong type, resulting in an
2620         integer wraparound and too few elements being copied.)
2622 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
2624         [BZ #24022]
2625         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2626         <asm/syscalls.h> exists with __has_include__ before including it.
2628 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
2630         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2631         version to 4.20.
2633 2018-12-28  Justus Winter <4winter@informatik.uni-hamburg.de>
2635         * hurd/lookup-retry: Include <unistd.h>.
2636         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2637         Release it on return.  Handle "pid" magical lookup retry.
2639 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
2641         [BZ #10496]
2642         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2643         (t_fmt_ampm): Likewise.
2644         * localedata/locales/aa_ER (t_fmt): Likewise.
2645         (t_fmt_ampm): Likewise.
2646         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2647         (t_fmt_ampm): Likewise.
2648         * localedata/locales/aa_ET (t_fmt): Likewise.
2649         (t_fmt_ampm): Likewise.
2650         * localedata/locales/am_ET (t_fmt): Likewise.
2651         (t_fmt_ampm): Likewise.
2652         * localedata/locales/byn_ER (t_fmt): Likewise.
2653         (t_fmt_ampm): Likewise.
2654         * localedata/locales/om_ET (t_fmt): Likewise.
2655         (t_fmt_ampm): Likewise.
2656         * localedata/locales/sid_ET (t_fmt): Likewise.
2657         (t_fmt_ampm): Likewise.
2658         * localedata/locales/so_DJ (t_fmt): Likewise.
2659         (t_fmt_ampm): Likewise.
2660         * localedata/locales/so_ET (t_fmt): Likewise.
2661         (t_fmt_ampm): Likewise.
2662         * localedata/locales/so_SO (t_fmt): Likewise.
2663         (t_fmt_ampm): Likewise.
2664         * localedata/locales/ti_ER (t_fmt): Likewise.
2665         (t_fmt_ampm): Likewise.
2666         * localedata/locales/ti_ET (t_fmt): Likewise.
2667         (t_fmt_ampm): Likewise.
2668         * localedata/locales/tig_ER (t_fmt): Likewise.
2669         (t_fmt_ampm): Likewise.
2670         * localedata/locales/wal_ET (t_fmt): Likewise.
2671         (t_fmt_ampm): Likewise.
2673         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2674         * localedata/locales/ar_IN (t_fmt): Likewise.
2675         * localedata/locales/bhb_IN (t_fmt): Likewise.
2676         * localedata/locales/bho_IN (t_fmt): Likewise.
2677         * localedata/locales/bi_VU (t_fmt): Likewise.
2678         * localedata/locales/bn_BD (t_fmt): Likewise.
2679         * localedata/locales/bn_IN (t_fmt): Likewise.
2680         * localedata/locales/brx_IN (t_fmt): Likewise.
2681         * localedata/locales/doi_IN (t_fmt): Likewise.
2682         * localedata/locales/en_HK (t_fmt): Likewise.
2683         (t_fmt_ampm): Likewise.
2684         * localedata/locales/en_IN (t_fmt): Likewise.
2685         * localedata/locales/en_PH (t_fmt): Likewise.
2686         * localedata/locales/gu_IN (t_fmt): Likewise.
2687         * localedata/locales/hi_IN (t_fmt): Likewise.
2688         * localedata/locales/hif_FJ (t_fmt): Likewise.
2689         * localedata/locales/hne_IN (t_fmt): Likewise.
2690         * localedata/locales/kn_IN (t_fmt): Likewise.
2691         * localedata/locales/kok_IN (t_fmt): Likewise.
2692         * localedata/locales/ks_IN (t_fmt): Likewise.
2693         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2694         * localedata/locales/mag_IN (t_fmt): Likewise.
2695         * localedata/locales/mai_IN (t_fmt): Likewise.
2696         * localedata/locales/mjw_IN (t_fmt): Likewise.
2697         * localedata/locales/ml_IN (t_fmt): Likewise.
2698         * localedata/locales/mni_IN (t_fmt): Likewise.
2699         * localedata/locales/mr_IN (t_fmt): Likewise.
2700         * localedata/locales/ms_MY (t_fmt): Likewise.
2701         * localedata/locales/pa_IN (t_fmt): Likewise.
2702         * localedata/locales/raj_IN (t_fmt): Likewise.
2703         * localedata/locales/sa_IN (t_fmt): Likewise.
2704         * localedata/locales/sat_IN (t_fmt): Likewise.
2705         * localedata/locales/sd_IN (t_fmt): Likewise.
2706         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2707         * localedata/locales/tcy_IN (t_fmt): Likewise.
2708         * localedata/locales/the_NP (t_fmt): Likewise.
2709         * localedata/locales/to_TO (t_fmt): Likewise.
2710         * localedata/locales/ur_IN (t_fmt): Likewise.
2712         * localedata/locales/hif_FJ (d_t_fmt): Set to
2713         "%A %d %b %Y %I:%M:%S %p".
2714         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2716         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2717         * localedata/locales/ar_BH (t_fmt): Likewise.
2718         * localedata/locales/ar_DZ (t_fmt): Likewise.
2719         * localedata/locales/ar_EG (t_fmt): Likewise.
2720         * localedata/locales/ar_IQ (t_fmt): Likewise.
2721         * localedata/locales/ar_JO (t_fmt): Likewise.
2722         * localedata/locales/ar_KW (t_fmt): Likewise.
2723         * localedata/locales/ar_LB (t_fmt): Likewise.
2724         * localedata/locales/ar_LY (t_fmt): Likewise.
2725         * localedata/locales/ar_OM (t_fmt): Likewise.
2726         * localedata/locales/ar_QA (t_fmt): Likewise.
2727         * localedata/locales/ar_SD (t_fmt): Likewise.
2728         * localedata/locales/ar_SS (t_fmt): Likewise.
2729         * localedata/locales/ar_SY (t_fmt): Likewise.
2730         * localedata/locales/ar_TN (t_fmt): Likewise.
2731         * localedata/locales/ar_YE (t_fmt): Likewise.
2733         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2734         (t_fmt_ampm): Likewise.
2735         * localedata/locales/gez_ET (t_fmt): Likewise.
2736         (t_fmt_ampm): Likewise.
2738         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2739         (t_fmt_ampm): Likewise.
2740         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2742         * localedata/locales/zh_HK (t_fmt):
2743         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2745         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2746         because this locale does not use the 12-hour clock.
2747         (t_fmt): Set to "%Z %H:%M:%S".
2748         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2750         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2751         because this locale does not use the 12-hour clock.
2752         (t_fmt): Set to "%H:%M:%S %Z".
2753         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2755         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2756         because this locale does not use the 12-hour clock.
2757         (t_fmt): Set to "%T".
2758         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2759         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2761         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2762         because this locale does not use the 12-hour clock.
2763         (t_fmt): Set to "%H:%M:%S %Z".
2764         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2766         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2767         because this locale does not use the 12-hour clock.
2768         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2769         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2771 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
2773         [BZ #10496]
2774         [BZ #23724]
2775         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2776         (t_fmt_ampm): Likewise.
2777         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2778         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2779         (d_fmt): Set to "%-d.%-m.%y".
2781 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2783         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2784         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2785         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2786         Likewise.
2787         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2788         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2789         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2790         function.
2791         * support/blob_repeat.c (check_mul_overflow_size_t,
2792         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2794 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
2796         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2798 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2800         regex: simplify Gnulib port
2801         This simplifies the code, by removing stuff intended for porting
2802         to Gnulib but no longer needed there.
2803         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2804         uses of libc_hidden_def, weak_alias.
2805         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2806         _Restrict_ except for public-facing headers.
2807         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2808         Remove; already defined elsewhere.
2809         * posix/regex.c, posix/regex_internal.h:
2810         Use __GNUC_PREREQ instead of rolling our own.
2811         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2813 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
2815         * benchtests/bench-strlen.c (generic_strlen): New function.
2816          (memchr_strlen): New function.
2818 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2820         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2821         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2822         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2824 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2826         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2828 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2830         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2831         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2832         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
2833         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2834         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2835         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2836         <sysdeps/ieee754/flt-32/s_sincosf.c>.
2838 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
2840         [BZ #24023]
2841         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2842         PLT reference in libc.so.
2843         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2844         _Q_lltoq and _Q_qtod PLT references in libc.so.
2846 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
2848         * benchtests/bench-memchr.c: Cleanup defines.
2849         * benchtests/bench-memcmp.c: Likewise.
2850         * benchtests/bench-memset.c: Likewise.
2851         * benchtests/bench-memset-large.c: Likewise.
2852         * benchtests/bench-memset-walk.c: Likewise.
2853         * benchtests/bench-stpcpy.c: Likewise.
2854         * benchtests/bench-stpncpy.c: Likewise.
2855         * benchtests/bench-strcat.c: Likewise.
2856         * benchtests/bench-strchr.c: Likewise.
2857         * benchtests/bench-strcmp.c: Likewise.
2858         * benchtests/bench-strcpy.c: Likewise.
2859         * benchtests/bench-strcspn.c: Likewise.
2860         * benchtests/bench-string.h: Likewise.
2861         * benchtests/bench-strlen.c: Likewise.
2862         * benchtests/bench-strncat.c: Likewise.
2863         * benchtests/bench-strncmp.c: Likewise.
2864         * benchtests/bench-strncpy.c: Likewise.
2865         * benchtests/bench-strnlen.c: Likewise.
2866         * benchtests/bench-strpbrk.c: Likewise.
2867         * benchtests/bench-strrchr.c: Likewise.
2868         * benchtests/bench-strspn.c: Likewise.
2870 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
2872         * stdlib/longlong.h: Update from GCC.
2874         [BZ #23993]
2875         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2876         * configure: Regenerated.
2877         * manual/install.texi (Tools for Compilation): Update minimum GCC
2878         version.
2879         * INSTALL: Regenerated.
2881 2018-12-21  Istvan Kurucsai <pistukem@gmail.com>
2883         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2885 2018-12-20  Istvan Kurucsai <pistukem@gmail.com>
2887         * malloc/malloc.c (mremap_chunk): Additional checks.
2889 2018-12-21  Mao Han  <han_mao@c-sky.com>
2891         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2892         * scripts/build-many-glibcs.py: Add C-SKY targets.
2893         * sysdeps/csky/Implies: New file.
2894         * sysdeps/csky/Makefile: Likewise.
2895         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2896         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2897         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2898         * sysdeps/csky/abiv2/memcmp.S: Likewise.
2899         * sysdeps/csky/abiv2/memcpy.S: Likewise.
2900         * sysdeps/csky/abiv2/memmove.S: Likewise.
2901         * sysdeps/csky/abiv2/memset.S: Likewise.
2902         * sysdeps/csky/abiv2/setjmp.S: Likewise.
2903         * sysdeps/csky/abiv2/start.S: Likewise.
2904         * sysdeps/csky/abiv2/strcmp.S: Likewise.
2905         * sysdeps/csky/abiv2/strcpy.S: Likewise.
2906         * sysdeps/csky/abiv2/strlen.S: Likewise.
2907         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2908         * sysdeps/csky/abort-instr.h: Likewise.
2909         * sysdeps/csky/atomic-machine.h: Likewise.
2910         * sysdeps/csky/bits/endian.h: Likewise.
2911         * sysdeps/csky/bits/fenv.h: Likewise.
2912         * sysdeps/csky/bits/link.h: Likewise.
2913         * sysdeps/csky/bits/setjmp.h: Likewise.
2914         * sysdeps/csky/bsd-_setjmp.S: Likewise.
2915         * sysdeps/csky/bsd-setjmp.S: Likewise.
2916         * sysdeps/csky/configure: Likewise.
2917         * sysdeps/csky/configure.ac: Likewise.
2918         * sysdeps/csky/dl-machine.h: Likewise.
2919         * sysdeps/csky/dl-procinfo.c: Likewise.
2920         * sysdeps/csky/dl-procinfo.h: Likewise.
2921         * sysdeps/csky/dl-sysdep.h: Likewise.
2922         * sysdeps/csky/dl-tls.h: Likewise.
2923         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2924         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2925         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2926         * sysdeps/csky/fpu/fegetenv.c: Likewise.
2927         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2928         * sysdeps/csky/fpu/fegetmode.c: Likewise.
2929         * sysdeps/csky/fpu/fegetround.c: Likewise.
2930         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2931         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2932         * sysdeps/csky/fpu/fenv_private.h: Likewise.
2933         * sysdeps/csky/fpu/fesetenv.c: Likewise.
2934         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2935         * sysdeps/csky/fpu/fesetmode.c: Likewise.
2936         * sysdeps/csky/fpu/fesetround.c: Likewise.
2937         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2938         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2939         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2940         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2941         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2942         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2943         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2944         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2945         * sysdeps/csky/fpu_control.h: Likewise.
2946         * sysdeps/csky/gccframe.h: Likewise.
2947         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2948         * sysdeps/csky/ldsodefs.h: Likewise.
2949         * sysdeps/csky/libc-tls.c: Likewise.
2950         * sysdeps/csky/linkmap.h: Likewise.
2951         * sysdeps/csky/machine-gmon.h: Likewise.
2952         * sysdeps/csky/memusage.h: Likewise.
2953         * sysdeps/csky/nofpu/Implies: Likewise.
2954         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2955         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2956         * sysdeps/csky/nptl/Makefile: Likewise.
2957         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2958         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2959         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2960         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2961         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2962         * sysdeps/csky/nptl/tls.h: Likewise.
2963         * sysdeps/csky/preconfigure: Likewise.
2964         * sysdeps/csky/sfp-machine.h: Likewise.
2965         * sysdeps/csky/sotruss-lib.c: Likewise.
2966         * sysdeps/csky/stackinfo.h: Likewise.
2967         * sysdeps/csky/sysdep.h: Likewise.
2968         * sysdeps/csky/tininess.h: Likewise.
2969         * sysdeps/csky/tst-audit.h: Likewise.
2970         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2971         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2972         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2973         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2974         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2975         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2976         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2977         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2978         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2979         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2980         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2981         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2982         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2983         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2984         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2985         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2986         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2987         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2988         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2989         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2990         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2991         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2992         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2993         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2994         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2995         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2996         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2997         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2998         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2999         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3000         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3001         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3002         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3003         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3004         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3005         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3006         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3007         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3008         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3009         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3010         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3011         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3012         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3013         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3015 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
3017         * include/time.h (__difftime64): Add.
3018         * time/difftime.c (subtract): convert to 64-bit time.
3019         * time/difftime.c (__difftime64): Add.
3020         * time/difftime.c (__difftime): Wrap around __difftime64.
3022 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
3024         * manual/examples/add.c: Remove redundant "if not".
3025         * manual/examples/argp-ex1.c: Likewise.
3026         * manual/examples/argp-ex2.c: Likewise.
3027         * manual/examples/argp-ex3.c: Likewise.
3028         * manual/examples/argp-ex4.c: Likewise.
3029         * manual/examples/atexit.c: Likewise.
3030         * manual/examples/db.c: Likewise.
3031         * manual/examples/dir.c: Likewise.
3032         * manual/examples/dir2.c: Likewise.
3033         * manual/examples/execinfo.c: Likewise.
3034         * manual/examples/filecli.c: Likewise.
3035         * manual/examples/filesrv.c: Likewise.
3036         * manual/examples/fmtmsgexpl.c: Likewise.
3037         * manual/examples/genpass.c: Likewise.
3038         * manual/examples/inetcli.c: Likewise.
3039         * manual/examples/inetsrv.c: Likewise.
3040         * manual/examples/isockad.c: Likewise.
3041         * manual/examples/longopt.c: Likewise.
3042         * manual/examples/memopen.c: Likewise.
3043         * manual/examples/memstrm.c: Likewise.
3044         * manual/examples/mkdirent.c: Likewise.
3045         * manual/examples/mkfsock.c: Likewise.
3046         * manual/examples/mkisock.c: Likewise.
3047         * manual/examples/mygetpass.c: Likewise.
3048         * manual/examples/pipe.c: Likewise.
3049         * manual/examples/popen.c: Likewise.
3050         * manual/examples/rprintf.c: Likewise.
3051         * manual/examples/search.c: Likewise.
3052         * manual/examples/select.c: Likewise.
3053         * manual/examples/setjmp.c: Likewise.
3054         * manual/examples/sigh1.c: Likewise.
3055         * manual/examples/sigusr.c: Likewise.
3056         * manual/examples/stpcpy.c: Likewise.
3057         * manual/examples/strdupa.c: Likewise.
3058         * manual/examples/strftim.c: Likewise.
3059         * manual/examples/subopt.c: Likewise.
3060         * manual/examples/swapcontext.c: Likewise.
3061         * manual/examples/termios.c: Likewise.
3062         * manual/examples/testopt.c: Likewise.
3063         * manual/examples/testpass.c: Likewise.
3064         * manual/examples/timeval_subtract.c: Likewise.
3066 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
3068         * sysdeps/x86/fpu/math_private.h: New file.
3069         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3071         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3072         definition.
3073         (cosh): Likewise.
3074         (tanh): Likewise.
3076 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3078         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3079         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3080         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3081         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
3082         fields.
3083         (_dl_show_auxv): Give a special treatment to
3084         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3085         and AT_L3_CACHEGEOMETRY.
3086         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3087         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3088         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
3089         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3091 2018-12-19  Andreas Schwab  <schwab@suse.de>
3093         * nscd/connections.c (check_use): Don't abort on invalid len.
3095 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3097         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3098         values in the 64bit value cases.
3100 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
3102         * include/time.h
3103         (__ctime64_r): Add.
3104         * time/ctime_r.c
3105         (__ctime64_r): Add.
3106         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3108         * include/time.h
3109         (__ctime64): Add.
3110         * time/gmtime.c
3111         (__ctime64): Add.
3112         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3114         * include/time.h
3115         (__gmtime64_r): Add.
3116         * time/gmtime.c
3117         (__gmtime64_r): Add.
3118         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3120         * include/time.h
3121         (__gmtime64): Add.
3122         * time/gmtime.c
3123         (__gmtime64): Add.
3124         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3126         * include/time.h
3127         (__localtime64_r): Add.
3128         * time/localtime.c
3129         (__localtime64_r): Add.
3130         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3132 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3134         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3135         kernel_sigction definition.
3137         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3139         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3141         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3142         __syscall_rt_sigaction.
3143         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3144         (kernel_sigaction): Use Linux generic defintion.
3145         (STUB): Define.
3146         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3147         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3148         (__syscall_rt_sigaction): Remove implementation.
3149         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3150         hidden.
3151         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3152         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3153         INTERNAL_SYSCALL): Remove definitions.
3154         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3155         action and signal set size.
3156         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3157         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3159 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3160             James Clarke  <jrtc27@jrtc27.com>
3162         [BZ #23967]
3163         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3164         Define if SA_RESTORER is defined.
3165         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3166         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3167         already defined.
3168         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3169         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3170         definitions.
3171         (HAS_SA_RESTORER): Define.
3172         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3173         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3174         (HAS_SA_RESTORER): Define.
3175         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3176         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3177         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3178         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3179         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3181 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
3183         * sysdeps/unix/sysv/linux/kernel-features.h
3184         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3185         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3186         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3187         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3188         (__ASSUME_ST_INO_64_BIT): Likewise.
3189         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3190         <kernel-features.h>.
3191         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3192         Remove conditional code.
3193         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3194         <kernel-features.h>.
3195         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3196         Remove conditional code.
3197         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3198         <kernel-features.h>.
3199         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3200         Remove conditional code.
3201         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3202         <kernel-features.h>.
3203         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3204         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3206 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3208         * sysdeps/s390/multiarch/ifunc-resolve.h
3209         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3210         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3211         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3212         Delete macro definition.
3213         (s390_libc_ifunc_init): Rename to
3214         s390_libc_ifunc_expr_stfle_init.
3215         * sysdeps/s390/bzero: Use
3216         s390_libc_ifunc_expr_stfle_init instead of
3217         s390_libc_ifunc_init.
3218         * sysdeps/s390/memcmp.c: Likewise.
3219         * sysdeps/s390/memcpy.c: Likewise.
3220         * sysdeps/s390/mempcpy.c: Likewise.
3221         * sysdeps/s390/memset.c: Likewise.
3223 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3225         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3226         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3228 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3230         * sysdeps/s390/multiarch/Makefile
3231         (sysdep_routines): Remove wmemcmp variants.
3232         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3233         * sysdeps/s390/multiarch/ifunc-impl-list.c
3234         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3235         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3236         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3237         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3238         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3239         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3240         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3241         * sysdeps/s390/ifunc-wmemcmp.h: New file.
3243 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3245         * sysdeps/s390/multiarch/Makefile
3246         (sysdep_routines): Remove wmemset variants.
3247         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3248         * sysdeps/s390/multiarch/ifunc-impl-list.c
3249         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3250         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3251         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3252         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3253         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3254         * sysdeps/s390/multiarch/wmemset.c: Move to ...
3255         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3256         * sysdeps/s390/ifunc-wmemset.h: New file.
3258 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3260         * sysdeps/s390/multiarch/Makefile
3261         (sysdep_routines): Remove wmemchr variants.
3262         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3263         * sysdeps/s390/multiarch/ifunc-impl-list.c
3264         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3265         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3266         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3267         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3268         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3269         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3270         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3271         * sysdeps/s390/ifunc-wmemchr.h: New file.
3273 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3275         * sysdeps/s390/multiarch/Makefile
3276         (sysdep_routines): Remove wcscspn variants.
3277         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3278         * sysdeps/s390/multiarch/ifunc-impl-list.c
3279         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3280         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3281         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3282         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3283         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3284         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3285         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3286         * sysdeps/s390/ifunc-wcscspn.h: New file.
3288 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3290         * sysdeps/s390/multiarch/Makefile
3291         (sysdep_routines): Remove wcspbrk variants.
3292         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3293         * sysdeps/s390/multiarch/ifunc-impl-list.c
3294         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3295         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3296         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3297         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3298         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3299         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3300         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3301         * sysdeps/s390/ifunc-wcspbrk.h: New file.
3303 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3305         * sysdeps/s390/multiarch/Makefile
3306         (sysdep_routines): Remove wcsspn variants.
3307         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3308         * sysdeps/s390/multiarch/ifunc-impl-list.c
3309         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3310         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3311         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3312         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3313         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3314         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3315         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3316         * sysdeps/s390/ifunc-wcsspn.h: New file.
3318 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3320         * sysdeps/s390/multiarch/Makefile
3321         (sysdep_routines): Remove wcsrchr variants.
3322         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3323         * sysdeps/s390/multiarch/ifunc-impl-list.c
3324         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3325         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3326         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3327         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3328         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3329         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3330         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3331         * sysdeps/s390/ifunc-wcsrchr.h: New file.
3333 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3335         * sysdeps/s390/multiarch/Makefile
3336         (sysdep_routines): Remove wcschrnul variants.
3337         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3338         * sysdeps/s390/multiarch/ifunc-impl-list.c
3339         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3340         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3341         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3342         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3343         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3344         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3345         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3346         * sysdeps/s390/ifunc-wcschrnul.h: New file.
3348 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3350         * sysdeps/s390/multiarch/Makefile
3351         (sysdep_routines): Remove wcschr variants.
3352         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3353         * sysdeps/s390/multiarch/ifunc-impl-list.c
3354         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3355         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3356         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3357         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3358         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3359         * sysdeps/s390/multiarch/wcschr.c: Move to ...
3360         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3361         * sysdeps/s390/ifunc-wcschr.h: New file.
3363 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3365         * sysdeps/s390/multiarch/Makefile
3366         (sysdep_routines): Remove wcsncmp variants.
3367         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3368         * sysdeps/s390/multiarch/ifunc-impl-list.c
3369         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3370         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3371         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3372         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3373         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3374         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3375         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3376         * sysdeps/s390/ifunc-wcsncmp.h: New file.
3378 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3380         * sysdeps/s390/multiarch/Makefile
3381         (sysdep_routines): Remove wcscmp variants.
3382         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3383         * sysdeps/s390/multiarch/ifunc-impl-list.c
3384         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3385         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3386         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3387         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3388         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3389         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3390         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3391         * sysdeps/s390/ifunc-wcscmp.h: New file.
3393 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3395         * sysdeps/s390/multiarch/Makefile
3396         (sysdep_routines): Remove wcsncat variants.
3397         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3398         * sysdeps/s390/multiarch/ifunc-impl-list.c
3399         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3400         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3401         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3402         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3403         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3404         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3405         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3406         * sysdeps/s390/ifunc-wcsncat.h: New file.
3408 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3410         * sysdeps/s390/multiarch/Makefile
3411         (sysdep_routines): Remove wcscat variants.
3412         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3413         * sysdeps/s390/multiarch/ifunc-impl-list.c
3414         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3415         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3416         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3417         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3418         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3419         * sysdeps/s390/multiarch/wcscat.c: Move to ...
3420         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3421         * sysdeps/s390/ifunc-wcscat.h: New file.
3423 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3425         * sysdeps/s390/multiarch/Makefile
3426         (sysdep_routines): Remove wcpncpy variants.
3427         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3428         * sysdeps/s390/multiarch/ifunc-impl-list.c
3429         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3430         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3431         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3432         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3433         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3434         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3435         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3436         * sysdeps/s390/ifunc-wcpncpy.h: New file.
3438 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3440         * sysdeps/s390/multiarch/Makefile
3441         (sysdep_routines): Remove wcsncpy variants.
3442         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3443         * sysdeps/s390/multiarch/ifunc-impl-list.c
3444         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3445         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3446         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3447         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3448         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3449         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3450         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3451         * sysdeps/s390/ifunc-wcsncpy.h: New file.
3453 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3455         * sysdeps/s390/multiarch/Makefile
3456         (sysdep_routines): Remove wcpcpy variants.
3457         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3458         * sysdeps/s390/multiarch/ifunc-impl-list.c
3459         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3460         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3461         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3462         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3463         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3464         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3465         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3466         * sysdeps/s390/ifunc-wcpcpy.h: New file.
3468 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3470         * sysdeps/s390/multiarch/Makefile
3471         (sysdep_routines): Remove wcscpy variants.
3472         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3473         * sysdeps/s390/multiarch/ifunc-impl-list.c
3474         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3475         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3476         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3477         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3478         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3479         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3480         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3481         * sysdeps/s390/ifunc-wcscpy.h: New file.
3483 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3485         * sysdeps/s390/multiarch/Makefile
3486         (sysdep_routines): Remove wcsnlen variants.
3487         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3488         * sysdeps/s390/multiarch/ifunc-impl-list.c
3489         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3490         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3491         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3492         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3493         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3494         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3495         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3496         * sysdeps/s390/ifunc-wcsnlen.h: New file.
3498 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3500         * sysdeps/s390/multiarch/Makefile
3501         (sysdep_routines): Remove wcslen variants.
3502         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3503         * sysdeps/s390/multiarch/ifunc-impl-list.c
3504         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3505         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3506         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3507         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3508         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3509         * sysdeps/s390/multiarch/wcslen.c: Move to ...
3510         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3511         * sysdeps/s390/ifunc-wcslen.h: New file.
3513 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3515         * sysdeps/s390/multiarch/Makefile
3516         (sysdep_routines): Remove memrchr variants.
3517         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3518         * sysdeps/s390/multiarch/ifunc-impl-list.c
3519         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3520         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3521         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3522         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3523         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3524         * sysdeps/s390/multiarch/memrchr.c: Move to ...
3525         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3526         * sysdeps/s390/ifunc-memrchr.h: New file.
3528 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3530         * sysdeps/s390/multiarch/Makefile
3531         (sysdep_routines): Remove memccpy variants.
3532         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3533         * sysdeps/s390/multiarch/ifunc-impl-list.c
3534         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3535         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3536         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3537         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3538         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3539         * sysdeps/s390/multiarch/memccpy.c: Move to ...
3540         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3541         * sysdeps/s390/ifunc-memccpy.h: New file.
3543 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3545         * sysdeps/s390/multiarch/Makefile
3546         (sysdep_routines): Remove rawmemchr variants.
3547         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3548         * sysdeps/s390/multiarch/ifunc-impl-list.c
3549         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3550         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3551         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3552         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3553         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3554         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3555         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3556         * sysdeps/s390/ifunc-rawmemchr.h: New file.
3558 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3560         * sysdeps/s390/multiarch/Makefile
3561         (sysdep_routines): Remove memchr variants.
3562         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3563         * sysdeps/s390/multiarch/ifunc-impl-list.c
3564         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3565         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3566         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3567         * sysdeps/s390/multiarch/memchr.c: Move to ...
3568         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3569         * sysdeps/s390/ifunc-memchr.h: New file.
3570         * sysdeps/s390/s390-64/memchr.S: Move to ...
3571         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3572         for 31/64bit and ifunc handling.
3573         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3574         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3575         * sysdeps/s390/s390-32/memchr.S: Likewise.
3577 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3579         * sysdeps/s390/multiarch/Makefile
3580         (sysdep_routines): Remove strcspn variants.
3581         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3582         * sysdeps/s390/multiarch/ifunc-impl-list.c
3583         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3584         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3585         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3586         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3587         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3588         * sysdeps/s390/multiarch/strcspn.c: Move to ...
3589         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3590         * sysdeps/s390/ifunc-strcspn.h: New file.
3592 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3594         * sysdeps/s390/multiarch/Makefile
3595         (sysdep_routines): Remove strpbrk variants.
3596         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3597         * sysdeps/s390/multiarch/ifunc-impl-list.c
3598         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3599         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3600         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3601         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3602         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3603         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3604         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3605         * sysdeps/s390/ifunc-strpbrk.h: New file.
3607 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3609         * sysdeps/s390/multiarch/Makefile
3610         (sysdep_routines): Remove strspn variants.
3611         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3612         * sysdeps/s390/multiarch/ifunc-impl-list.c
3613         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3614         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3615         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3616         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3617         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3618         * sysdeps/s390/multiarch/strspn.c: Move to ...
3619         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3620         * sysdeps/s390/ifunc-strspn.h: New file.
3622 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3624         * sysdeps/s390/multiarch/Makefile
3625         (sysdep_routines): Remove strrchr variants.
3626         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3627         * sysdeps/s390/multiarch/ifunc-impl-list.c
3628         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3629         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3630         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3631         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3632         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3633         * sysdeps/s390/multiarch/strrchr.c: Move to ...
3634         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3635         * sysdeps/s390/ifunc-strrchr.h: New file.
3637 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3639         * sysdeps/s390/multiarch/Makefile
3640         (sysdep_routines): Remove strchrnul variants.
3641         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3642         * sysdeps/s390/multiarch/ifunc-impl-list.c
3643         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3644         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3645         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3646         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3647         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3648         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3649         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3650         * sysdeps/s390/ifunc-strchrnul.h: New file.
3652 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3654         * sysdeps/s390/multiarch/Makefile
3655         (sysdep_routines): Remove strchr variants.
3656         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3657         * sysdeps/s390/multiarch/ifunc-impl-list.c
3658         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3659         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3660         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3661         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3662         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3663         * sysdeps/s390/multiarch/strchr.c: Move to ...
3664         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3665         * sysdeps/s390/ifunc-strchr.h: New file.
3667 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3669         * sysdeps/s390/multiarch/Makefile
3670         (sysdep_routines): Remove strncmp variants.
3671         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3672         * sysdeps/s390/multiarch/ifunc-impl-list.c
3673         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3674         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3675         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3676         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3677         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3678         * sysdeps/s390/multiarch/strncmp.c: Move to ...
3679         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3680         * sysdeps/s390/ifunc-strncmp.h: New file.
3682 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3684         * sysdeps/s390/multiarch/Makefile
3685         (sysdep_routines): Remove strcmp variants.
3686         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3687         * sysdeps/s390/multiarch/ifunc-impl-list.c
3688         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3689         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3690         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3691         * sysdeps/s390/multiarch/strcmp.c: Move to ...
3692         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3693         * sysdeps/s390/ifunc-strcmp.h: New file.
3694         * sysdeps/s390/s390-64/strcmp.S: Move to ...
3695         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3696         for 31/64bit and ifunc handling.
3697         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3698         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3699         * sysdeps/s390/s390-32/strcmp.S: Likewise.
3701 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3703         * sysdeps/s390/multiarch/Makefile
3704         (sysdep_routines): Remove strncat variants.
3705         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3706         * sysdeps/s390/multiarch/ifunc-impl-list.c
3707         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3708         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3709         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3710         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3711         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3712         * sysdeps/s390/multiarch/strncat.c: Move to ...
3713         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3714         * sysdeps/s390/ifunc-strncat.h: New file.
3716 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3718         * sysdeps/s390/multiarch/Makefile
3719         (sysdep_routines): Remove strcat variants.
3720         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3721         * sysdeps/s390/multiarch/ifunc-impl-list.c
3722         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3723         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3724         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3725         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3726         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3727         * sysdeps/s390/multiarch/strcat.c: Move to ...
3728         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3729         * sysdeps/s390/ifunc-strcat.h: New file.
3731 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3733         * sysdeps/s390/multiarch/Makefile
3734         (sysdep_routines): Remove stpncpy variants.
3735         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3736         * sysdeps/s390/multiarch/ifunc-impl-list.c
3737         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3738         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3739         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3740         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3741         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3742         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3743         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3744         * sysdeps/s390/ifunc-stpncpy.h: New file.
3746 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3748         * sysdeps/s390/multiarch/Makefile
3749         (sysdep_routines): Remove strncpy variants.
3750         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3751         * sysdeps/s390/multiarch/ifunc-impl-list.c
3752         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3753         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3754         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3755         * sysdeps/s390/multiarch/strncpy.c: Move to ...
3756         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3757         * sysdeps/s390/ifunc-strncpy.h: New file.
3758         * sysdeps/s390/s390-64/strncpy.S: Move to ...
3759         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3760         and adjust ifunc handling.
3761         * sysdeps/s390/s390-32/strncpy.S: Move to ...
3762         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3763         and adjust ifunc handling.
3764         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3765         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3767 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3769         * sysdeps/s390/multiarch/Makefile
3770         (sysdep_routines): Remove stpcpy variants.
3771         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3772         * sysdeps/s390/multiarch/ifunc-impl-list.c
3773         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3774         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3775         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3776         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3777         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3778         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3779         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3780         * sysdeps/s390/ifunc-stpcpy.h: New file.
3782 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3784         * sysdeps/s390/multiarch/Makefile
3785         (sysdep_routines): Remove strcpy variants.
3786         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3787         * sysdeps/s390/multiarch/ifunc-impl-list.c
3788         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3789         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3790         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3791         * sysdeps/s390/multiarch/strcpy.c: Move to ...
3792         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3793         * sysdeps/s390/ifunc-strcpy.h: New file.
3794         * sysdeps/s390/s390-64/strcpy.S: Move to ...
3795         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3796         for 31/64bit and ifunc handling.
3797         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3798         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3799         * sysdeps/s390/s390-32/strcpy.S: Likewise.
3801 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3803         * sysdeps/s390/multiarch/Makefile
3804         (sysdep_routines): Remove strnlen variants.
3805         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3806         * sysdeps/s390/multiarch/ifunc-impl-list.c
3807         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3808         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3809         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3810         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3811         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3812         * sysdeps/s390/multiarch/strnlen.c: Move to ...
3813         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3814         * sysdeps/s390/ifunc-strnlen.h: New file.
3816 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3818         * sysdeps/s390/multiarch/Makefile
3819         (sysdep_routines): Remove strlen variants.
3820         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3821         * sysdeps/s390/multiarch/ifunc-impl-list.c
3822         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3823         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3824         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3825         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3826         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3827         * sysdeps/s390/multiarch/strlen.c: Move to ...
3828         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3829         * sysdeps/s390/ifunc-strlen.h: New file.
3831 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3833         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3834         * sysdeps/s390/multiarch/ifunc-impl-list.c
3835         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3836         * sysdeps/s390/ifunc-memmem.h: New file.
3837         * sysdeps/s390/memmem.c: Likewise.
3838         * sysdeps/s390/memmem-c.c: Likewise.
3839         * sysdeps/s390/memmem-vx.c: Likewise.
3841 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3843         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3844         * sysdeps/s390/multiarch/ifunc-impl-list.c
3845         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3846         * sysdeps/s390/ifunc-strstr.h: New file.
3847         * sysdeps/s390/strstr.c: Likewise.
3848         * sysdeps/s390/strstr-c.c: Likewise.
3849         * sysdeps/s390/strstr-vx.c: Likewise.
3851 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3853         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3854         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3855         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3856         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3857         New defines.
3858         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3859         * sysdeps/s390/memmove-c.c: New file.
3860         * sysdeps/s390/memmove.c: Likewise.
3861         * sysdeps/s390/multiarch/ifunc-impl-list.c
3862         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3864 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3866         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3867         * sysdeps/s390/configure.ac: Add check for z13 support.
3868         * sysdeps/s390/configure: Regenerated.
3870 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3872         * sysdeps/s390/memcopy.h: New file.
3874 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3876         * sysdeps/s390/s390-32/bcopy.S: Remove.
3877         * sysdeps/s390/s390-64/bcopy.S: Likewise.
3879 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3881         * sysdeps/s390/ifunc-memcpy.h: New File.
3882         * sysdeps/s390/memcpy.S: Move to ...
3883         * sysdeps/s390/memcpy-z900.S ... here.
3884         Move implementations from memcpy-s390x.s to here.
3885         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3886         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3887         Remove memcpy/mempcpy variants.
3888         * sysdeps/s390/Makefile (sysdep_routines):
3889         Add memcpy/mempcpy variants.
3890         * sysdeps/s390/multiarch/ifunc-impl-list.c
3891         (__libc_ifunc_impl_list): Adjust ifunc variants for
3892         memcpy and mempcpy.
3893         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3894         to ...
3895         * sysdeps/s390/memcpy.c: ... here.
3896         Adjust ifunc variants for memcpy.
3897         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3898         * sysdeps/s390/mempcpy.c: ... here.
3899         Adjust ifunc variants for mempcpy.
3900         * sysdeps/s390/mempcpy.S: Delete file.
3902 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3904         * sysdeps/s390/s390-64/memcpy.S: Move to ...
3905         * sysdeps/s390/memcpy.S: ... here.
3906         Adjust to be usable for 31/64bit.
3907         * sysdeps/s390/s390-32/memcpy.S: Delete File.
3908         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3909         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3910         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3911         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3912         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3913         Adjust to be usable for 31/64bit.
3914         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3915         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3916         * sysdeps/s390/multiarch/memcpy.c: ... here.
3917         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3919 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3921         * sysdeps/s390/ifunc-memcmp.h: New File.
3922         * sysdeps/s390/memcmp.S: Move to ...
3923         * sysdeps/s390/memcmp-z900.S ... here.
3924         Move implementations from memcmp-s390x.s to here.
3925         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3926         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3927         Remove memcmp variants.
3928         * sysdeps/s390/Makefile (sysdep_routines):
3929         Add memcmp variants.
3930         * sysdeps/s390/multiarch/ifunc-impl-list.c
3931         (__libc_ifunc_impl_list): Adjust ifunc variants for
3932         memcmp.
3933         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3934         to ...
3935         * sysdeps/s390/memcmp.c: ... here.
3936         Adjust ifunc variants for memcmp.
3938 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3940         * sysdeps/s390/s390-64/memcmp.S: Move to ...
3941         * sysdeps/s390/memcmp.S: ... here.
3942         Adjust to be usable for 31/64bit.
3943         * sysdeps/s390/s390-32/memcmp.S: Delete File.
3944         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3945         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3946         Remove memcmp.
3947         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3948         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3949         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3950         Adjust to be usable for 31/64bit.
3951         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3952         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3953         * sysdeps/s390/multiarch/memcmp.c: ... here.
3954         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3956 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3958         * sysdeps/s390/s390-32/bzero.S: Delete file.
3959         * sysdeps/s390/s390-64/bzero.S: Likewise.
3960         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3961         * sysdeps/s390/bzero.c: New file.
3962         * sysdeps/s390/memset-z900.S: Add bzero entry points.
3963         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3964         * sysdeps/s390/multiarch/ifunc-impl-list.c
3965         (__libc_ifunc_impl_list): Add bzero ifunc variants.
3967 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3969         * sysdeps/s390/ifunc-memset.h: New File.
3970         * sysdeps/s390/memset.S: Move to ...
3971         * sysdeps/s390/memset-z900.S ... here.
3972         Move implementations from memset-s390x.s to here.
3973         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3974         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3975         Remove memset variants.
3976         * sysdeps/s390/Makefile (sysdep_routines):
3977         Add memset variants.
3978         * sysdeps/s390/multiarch/ifunc-impl-list.c
3979         (__libc_ifunc_impl_list): Adjust ifunc variants for
3980         memset.
3981         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3982         to ...
3983         * sysdeps/s390/memset.c: ... here.
3984         Adjust ifunc variants for memset.
3986 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3988         * sysdeps/s390/s390-64/memset.S: Move to ...
3989         * sysdeps/s390/memset.S: ... here.
3990         Adjust to be usable for 31/64bit.
3991         * sysdeps/s390/s390-32/memset.S: Delete File.
3992         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3993         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3994         Remove memset.
3995         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3996         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3997         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3998         Adjust to be usable for 31/64bit.
3999         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4000         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4001         * sysdeps/s390/multiarch/memset.c: ... here.
4002         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4004 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4006         * sysdeps/s390/multiarch/ifunc-resolve.h
4007         (s390_libc_ifunc_init, s390_libc_ifunc,
4008         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4010 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4012         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4013         * sysdeps/s390/configure.ac: Add check for z10 support.
4014         * sysdeps/s390/configure: Regenerated.
4016 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4018         * sysdeps/i386/atomic-machine.h: Merged with ...
4019         * sysdeps/x86_64/atomic-machine.h: To ...
4020         * sysdeps/x86/atomic-machine.h: This.  New file.
4022 2018-12-18  Florian Weimer  <fweimer@redhat.com>
4024         Rewrite locale/gen-translit.pl in Python.
4025         * locale/Makefile (generated): Add C-translit.h.
4026         (before-compile): Add $(objpfx)C-translit.h.
4027         (C-translit.h): Move to $(objpfx).  Create target directory.
4028         Build using Python script.
4029         * locale/gen-translit.py: New file.
4030         * locale/gen-translit.pl: Remove file.
4031         * locale/C-translit.h.in: Change comment character to '#' for
4032         easier parsing without a C preprocessor.
4033         * locale/C-translit.h: Remove generated file.
4034         * manual/install.texi (Tools for Compilation): Do not mention
4035         C-translit.h.
4036         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4037         Remove locale/C-translit.h.
4038         * scripts/update-copyrights: Likewise.
4039         * INSTALL: Regenerate.
4041 2018-12-18  Florian Weimer  <fweimer@redhat.com>
4043         [BZ #23995]
4044         * localedata/locales/bi_VU: Remove executable bit from file.
4046 2018-12-17  Albert ARIBAUD <albert.aribaud@3adev.fr>
4048         * include/time.h
4049         (__localtime64): Add.
4050         * manual/maint.texi: Document Y2038 symbol handling.
4051         * time/localtime.c
4052         (__localtime64): Add.
4053         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4055 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
4057         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4058         Do not clobber r12.
4060         * scripts/glibcextract.py (compare_macro_consts): Take parameters
4061         to allow extra macros from first or second sources.
4062         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4063         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4064         (tests-special): Add $(objpfx)tst-mman-consts.out.
4065         ($(objpfx)tst-mman-consts.out): New makefile target.
4067 2018-12-17  Mao Han  <han_mao@c-sky.com>
4069         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4070         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4071         without stat64 system call support.
4072         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4073         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4074         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4075         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4076         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4077         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4078         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4079         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4080         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4081         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4082         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4084 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4086         regex: fix storage-exhaustion error
4087         [BZ #18040]
4088         * posix/regexec.c (get_subexp):
4089         Do not continue if storage is exhausted.
4091 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
4093         regex: fix heap-use-after-free error
4094         [BZ #18040]
4095         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4096         https://debbugs.gnu.org/32592
4097         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4098         call extend_buffers which reallocates the re_string_t internal buffer.
4099         Local variable 'buf' was not updated in such case, resulting in
4100         use-after-free.
4101         * posix/regexec.c (get_subexp): Update 'buf' after call to
4102         get_subexp_sub.
4104 2018-12-15  Florian Weimer  <fweimer@redhat.com>
4106         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4107         (minimum_stride_size): Use it.
4108         (support_blob_repeat_allocate): Likewise.
4110 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
4112         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4113         definition.
4114         (acosh): Likewise.
4115         (atanh): Likewise.
4117 2018-12-14  Florian Weimer  <fweimer@redhat.com>
4119         * manual/process.texi (Process Creation Concepts): Remove
4120         documentation of process (ID) lifetime.  List more process
4121         creation functions.  Reference Process Identification section.
4122         (Process Identification): Add information about process ID
4123         lifetime.  Describe Linux thread/task IDs.
4124         * manual/signal.texi (Signaling Another Process): Mention that the
4125         signal is always sent to the process.
4127 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4129         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
4130         and tst-ldbl-efgcvt.
4131         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4132         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4133         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4134         (fcvt_tests, output_error, output_r_error, do_test): Use the
4135         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4136         select the type of floating-point variables and arguments; to
4137         produce extra tests for double and conversion specifiers for
4138         printf; and to set the names of called functions.
4139         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4140         in tst-efgcvt-template.c.
4141         * misc/tst-ldbl-efgcvt.c: Likewise.
4143 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
4145         * nss/Makefile (tst-nss-test3.out): New rule.
4147 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
4149         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4150         clobber sp.
4152 2018-12-13  fanjinke  <fanjinke@hygon.cn>
4154         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4155         "HygonGenuine".
4157 2018-12-13  Andreas Schwab  <schwab@suse.de>
4159         [BZ #23861]
4160         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
4161         (__pthread_rwlock_rdlock_full): Update expected value for
4162         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4163         * nptl/tst-rwlock-pwn.c: New file.
4164         * nptl/Makefile (tests): Add tst-rwlock-pwn.
4166 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
4168         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4169         definition.
4171 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4173         * benchtests/scripts/compare_bench.py (do_compare): write to
4174         stderr in casestat is not present.
4175         * benchtests/scripts/compare_bench.py (plot_graphs): write to
4176         stderr in case timings field is not present. Also string showing
4177         the output filename goes into the stderr.
4179 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4181         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4182         and ZeroDivisorError exceptions.
4183         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4184         argument to loop through user provided statistics.
4185         * benchtests/scripts/compare_bench.py (main): Include the --stats
4186         argument.
4188 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4190         * benchtests/scripts/compare_bench.py (compare_runs): Continue
4191         instead of return.
4193 2018-12-12  Florian Weimer  <fweimer@redhat.com>
4195         * sysdeps/posix/timespec_get.c: Add missing “any later version”
4196         clause to copyright header.
4198 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4200         [BZ #23614]
4201         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4202         registers saved in the stack frame.
4203         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4204         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4206 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4208         * include/bits/monetary-ldbl.h: New file.
4209         * include/bits/printf-ldbl.h: Likewise.
4210         * include/bits/stdio-ldbl.h: Likewise.
4211         * include/bits/stdlib-ldbl.h: Likewise.
4212         * include/bits/syslog-ldbl.h: Likewise.
4213         * include/bits/wchar-ldbl.h: Likewise.
4215 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4217         * libio/libio.h: Remove redirection for _IO_vfprintf.
4219 2018-12-11  Andreas Schwab  <schwab@suse.de>
4221         * Makerules: Remove all references to abilist-pattern.
4222         (update-all-abi): Simplify find expression.
4224 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4226         [BZ #23961]
4227         * math/auto-libm-test-in: Add new test case.
4228         * math/auto-libm-test-out-pow: Regenerated.
4229         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4231 2018-12-10  DJ Delorie  <dj@redhat.com>
4233         [BZ #23948]
4234         * support/test-container.c: Move postclean step to before we
4235         change namespaces.
4237 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
4239         * scripts/gen-as-const.py (main): Handle --python option.
4240         * scripts/gen-py-const.awk: Remove.
4241         * Makerules (py-const-script): Use gen-as-const.py.
4242         ($(py-const)): Likewise.
4243         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4244         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4245         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4246         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4247         ~PTHREAD_MUTEX_NO_ELISION_NP.
4248         * manual/README.pretty-printers: Update reference to
4249         gen-py-const.awk.
4251         * scripts/glibcextract.py: New file.
4252         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4253         or tempfile.  Import glibcexctract.
4254         (compute_c_consts): Remove.  Moved to glibcextract.py.
4255         (gen_test): Update reference to compute_c_consts.
4256         (main): Likewise.
4257         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4258         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4259         * sysdeps/unix/sysv/linux/Makefile
4260         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4261         Redirect stderr as well as stdout.
4263 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
4265         [BZ #19767]
4266         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4267         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4268         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4269         ALWAYS_USE_VSYSCALL.
4270         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4271         ALWAYS_USE_VSYSCALL.
4272         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4273         ALWAYS_USE_VSYSCALL.
4275 2018-12-10  Florian Weimer  <fweimer@redhat.com>
4277         [BZ #23972]
4278         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4279         offset instead of count for clarity.  Fix typo in comment.
4280         (__old_getdents64): Keep track of previous offset.  Use it to call
4281         handle_overflow.
4282         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4283         that d_off is never zero.
4285 2018-12-10  Andreas Schwab  <schwab@suse.de>
4287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4288         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4290         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4291         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4293 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
4295         * timezone/private.h: Update from tzcode 2018g.
4296         * timezone/tzfile.h: Likewise.
4297         * timezone/tzselect.ksh: Likewise.
4298         * timezone/zdump.c: Likewise.
4299         * timezone/zic.c: Likewise.
4301 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
4303         [BZ #23490]
4304         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4305         (do_test): Adjust buffer size and fix format.
4307 2018-12-07  DJ Delorie  <dj@redhat.com>
4309         [BZ #23907]
4310         * malloc/tst-tcfree3.c: New.
4311         * malloc/Makefile: Add it.
4313 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
4315         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4317 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4319         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4320         used as a mask for the mode argument of __vfscanf_internal and
4321         __vfwscanf_internal.
4322         * stdio-common/vfscanf-internal.c
4323         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4324         (__strtof128_internal): Define to __wcstof128_internal.
4325         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4326         __strtof128_internal or __wcstof128_internal when the format of
4327         long double is the same as _Float128.
4329 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4331         * include/unistd.h (__confstr): Add prototype and hidden prototype.
4332         * posix/confstr.c (confstr): Rename to __confstr.
4333         (__confstr): Add hidden def.
4334         (confstr): Add weak alias for __confstr.
4335         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4336         confstr.
4338 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
4340         * NEWS: Mention getcpu.
4341         * include/sched.h (__getcpu): New libc_hidden_proto.
4342         * manual/resource.texi: Document getcpu.
4343         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4344         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4345         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4346         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4347         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4348         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4349         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4350         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4351         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4352         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4353         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4354         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4355         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4356         Likewise.
4357         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4358         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4359         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4361         Likewise.
4362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4363         Likewise.
4364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4365         Likewise.
4366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4367         Likewise.
4368         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4369         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4370         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4371         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4372         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4373         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4374         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4375         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4376         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4377         * sysdeps/unix/sysv/linux/getcpu.c: New file.
4378         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4379         Also check getcpu.
4381 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4383         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4384         functions.
4385         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4387 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4389         [BZ #17405]
4390         * posix/Makefile (routines): Add spawn_faction_addfchdir.
4391         * posix/Versions (GLIBC_2.29): Export
4392         posix_spawn_file_actions_addfchdir_np.
4393         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4394         * posix/spawn_faction_destroy.c
4395         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4396         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4397         and the field action.fchdir_action.
4398         * posix/tst-spawn-chdir.c (add_chdir): New function.
4399         (do_test): Add do_fchdir loop.  Call add_chdir.
4400         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4401         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4402         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4403         posix_spawn_file_actions_addfchdir_np.
4404         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4405         Likewise.
4406         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4407         Likewise.
4408         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4409         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4410         Likewise.
4411         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4412         Likewise.
4413         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4414         Likewise.
4415         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4416         Likewise.
4417         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4418         Likewise.
4419         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4420         Likewise.
4421         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4422         (GLIBC_2.29): Likewise.
4423         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4424         (GLIBC_2.29): Likewise.
4425         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4426         (GLIBC_2.29): Likewise.
4427         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4428         (GLIBC_2.29): Likewise.
4429         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4430         Likewise.
4431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4432         (GLIBC_2.29): Likewise.
4433         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4434         (GLIBC_2.29): Likewise.
4435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4436         (GLIBC_2.29): Likewise.
4437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4438         (GLIBC_2.29): Likewise.
4439         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4440         Likewise.
4441         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4442         Likewise.
4443         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4444         Likewise.
4445         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4446         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4447         Likewise.
4448         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4449         Likewise.
4450         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4451         Likewise.
4452         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4453         Likewise.
4455 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
4457         * manual/texinfo.tex: Update to version 2018-09-21.20 with
4458         trailing whitespace removed.
4459         * scripts/config.guess: Update to version 2018-11-28.
4460         * scripts/config.sub: Update to version 2018-11-28.
4461         * scripts/install-sh: Update to version 2018-03-11.20.
4462         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4463         * scripts/move-if-change: Update to version 2018-03-07 03:47.
4465 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4467         [BZ #23927]
4468         CVE-2018-19591
4469         * inet/tst-if_index-long.c: New file.
4470         * inet/Makefile (tests): Add tst-if_index-long.
4472 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4474         * support/check.h (support_record_failure_is_failed): Declare.
4475         * support/descriptors.h: New file.
4476         * support/support_descriptors.c: Likewise.
4477         * support/tst-support_descriptors.c: Likewise.
4478         * support/support_record_failure.c
4479         (support_record_failure_is_failed): New function.
4480         * support/Makefile (libsupport-routines): Add support_descriptors.
4481         (tests): Add tst-support_descriptors.
4483 2018-12-05  Zack Weinberg  <zackw@panix.com>
4484             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4486         * stdio-common/vfprintf-internal.c
4487         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4488         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4489         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4490         and __no_long_double.
4491         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4492         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4493         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4494         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4495         and __nldbl_*syslog* functions.
4496         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4497         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4498         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4499         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4500         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4501         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4502         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4503         (__nldbl_vwprintf, __nldbl_wprintf):
4504         Directly call the appropriate __v*printf_internal routine, passing
4505         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
4506         variable names.
4507         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4508         (__nldbl___printf_chk, __nldbl___snprintf_chk)
4509         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4510         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4511         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4512         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4513         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4514         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4515         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4516         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4517         Likewise, and also pass PRINTF_FORTIFY when appropriate.
4518         (__nldbl_syslog, __nldbl_vsyslog):
4519         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4520         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4521         appropriate.
4522         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4523         appropriate.
4525 2018-12-05  Zack Weinberg  <zackw@panix.com>
4526             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4528         [BZ #11319]
4529         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4530         Moved here from debug/vsprintf_chk.c.
4531         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
4532         and completion logic for the strfile to match exactly what
4533         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4534         _IO_str_init_static_internal instead of maxlen-1.
4535         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4536         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4537         __vsprintf_internal.
4539         * debug/vsprintf_chk.c (__vsprintf_chk)
4540         * debug/sprintf_chk.c (__sprintf_chk):
4541         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4542         'flags' argument is positive, and slen as maxlen.  No need to lock
4543         the FILE and/or construct a temporary FILE.  Minimize and normalize
4544         header inclusions and variable names.  Do not libc_hidden_def anything.
4546         * debug/asprintf_chk.c (__asprintf_chk)
4547         * debug/dprintf_chk.c (__dprintf_chk)
4548         * debug/fprintf_chk.c (__fprintf_chk)
4549         * debug/fwprintf_chk.c (__fwprintf_chk)
4550         * debug/printf_chk.c (__printf_chk)
4551         * debug/snprintf_chk.c (__snprintf_chk)
4552         * debug/swprintf_chk.c (__swprintf_chk)
4553         * debug/vasprintf_chk.c (__vasprintf_chk)
4554         * debug/vdprintf_chk.c (__vdprintf_chk)
4555         * debug/vfprintf_chk.c (__vfprintf_chk)
4556         * debug/vfwprintf_chk.c (__vfwprintf_chk)
4557         * debug/vprintf_chk.c (__vprintf_chk)
4558         * debug/vsnprintf_chk.c (__vsnprintf_chk)
4559         * debug/vswprintf_chk.c (__vswprintf_chk)
4560         * debug/vwprintf_chk.c (__vwprintf_chk)
4561         * debug/wprintf_chk.c (__wprintf_chk):
4562         Directly call the corresponding vxxprintf_internal function, passing
4563         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
4564         the FILE and/or construct a temporary FILE.  Minimize and normalize
4565         header inclusions and variable names.  Do not libc_hidden_def anything.
4567         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4568         __obstack_vprintf_internal.
4569         (__obstack_vprintf_chk): Convert into a wrapper that calls
4570         __obstack_vprintf_internal (these two functions already had the
4571         same code) and move to new file...
4572         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
4573         file.
4574         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4575         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4576         * debug/Makefile (routines): Add vobprintf_chk.
4578         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4579         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4580         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4581         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4582         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4583         (__nldbl___obstack_vfprintf_chk):
4584         Directly call the corresponding vxxprintf_internal function,
4585         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
4586         duplicate comparison of slen with 0 or maxlen from the corresponding
4587         non-__nldbl function.
4589         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4590         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4591         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4592         Remove libc_hidden_proto.
4594         * stdio-common/vfprintf-internal.c
4595         (__vfprintf_internal, __vfwprintf_internal):
4596         Do not check _IO_FLAGS2_FORTIFY.
4597         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4598         * libio/libioP.h: Update prototype of __vsprintf_internal and add
4599         a comment explaining why it has the maxlen argument.
4600         (_IO_acquire_lock_clear_flags2_fct): Remove.
4601         (_IO_acquire_lock_clear_flags2): Remove.
4602         (_IO_release_lock): Remove conditional statement which will
4603         now never execute.
4604         (_IO_acquire_lock): Remove variable which is now unused.
4605         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4606         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4608         * stdio-common/Makefile (tests): Add tst-bz11319 and
4609         tst-bz11319-fortify2.
4610         (CFLAGS-tst-bz11319-fortify2.c): New macro.
4611         * stdio-common/tst-bz11319-fortify2.c: New file.
4612         * stdio-common/tst-bz11319.c: Likewise.
4614 2018-12-05  Zack Weinberg  <zackw@panix.com>
4615             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4617         * misc/syslog.c: Include libioP.h, not iolibio.h.
4618         (__vsyslog_internal): New function with the former body of
4619         __vsyslog_chk; takes mode_flags argument same as
4620         __v*printf_internal.  Call __vfprintf_internal directly.
4622         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4623         Remove libc_hidden_def.
4624         (__syslog, __syslog_chk): Use __vsyslog_internal.
4625         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
4627         * include/sys/syslog.h: Add multiple inclusion guard.
4628         Add prototype for __vsyslog_internal.
4629         Remove declaration and libc_hidden_proto for __vsyslog_chk.
4631         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4632         Use __vsyslog_internal.
4634 2018-12-05  Zack Weinberg  <zackw@panix.com>
4635             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4637         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4638         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4639         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4640         New functions.
4641         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4642         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4644         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4645         Include wctype.h here if COMPILE_WPRINTF is defined.
4646         Define __vfprintf_internal or __vfwprintf_internal, depending
4647         on COMPILE_WPRINTF.
4648         Temporarily, on entry to this function, update mode_flags
4649         according to the environmental settings corresponding to
4650         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4651         Throughout, check mode_flags instead of __ldbl_is_dbl and
4652         _IO_FLAGS2_FORTIFY on the destination FILE.
4653         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4654         Include vfprintf-internal.c.  Don't include wctype.h.
4655         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
4656         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4657         and vfprintf.
4658         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
4659         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4660         and vfwprintf.
4661         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4663         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4664         and add mode_flags argument; use __vfprintf_internal.
4665         (__vdprintf): New function.  Alias vdprintf to this.
4666         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4667         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4668         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4669         (__obstack_printf): Use __obstack_printf_internal.
4670         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4671         public aliases __vsnprintf and vsnprintf.
4672         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4673         called internally.
4674         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4675         public aliases _IO_vsprintf and vsprintf.
4676         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4677         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4678         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4679         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4680         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4682         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4683         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4684         * stdio-common/fprintf.c, stdio-common/fxprintf.c
4685         * stdio-common/printf.c: Use __vfprintf_internal.
4687         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4688         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4689         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4691         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4692         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4693         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4694         __vfwprintf_internal.
4696         * libio/libio.h: Remove libc_hidden_proto and declaration for
4697         _IO_vfprintf.
4698         Remove declaration of _IO_vfwprintf.
4699         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4700         _IO_vsprintf.
4701         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4702         _IO_obstack_printf.
4703         * include/stdio.h: Add prototype for __vasprintf.
4704         (__vsnprintf): Remove declaration, because there are no more
4705         internal calls.
4706         * include/wchar.h (__vfwprintf, __vswprintf): Remove
4707         declaration, because there are no more internal calls.
4709         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4710         __vsnprintf_internal, instead of _IO_vsnprintf.
4711         * argp/argp-help.c (__argp_error, __argp_failure): Use
4712         __vasprintf_internal, instead of _IO_vasprintf.
4713         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4714         redefine, because there are no more internal calls.
4716 2018-12-05  Zack Weinberg  <zackw@panix.com>
4717             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4719         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4720         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4721         Include libio/strfile.h instead of libioP.h.
4722         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4723         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4724         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4725         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4726         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4727         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
4728         necessary.  Do not set __no_long_double.  Normalize variable names.
4729         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4730         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4731         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4732         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4733         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4734         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4735         Call __vfscanf_internal / __vfwscanf_internal directly, passing
4736         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
4737         Do not set __no_long_double.  Normalize variable names.
4739 2018-12-05  Zack Weinberg  <zackw@panix.com>
4740             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4742         * stdio-common/isoc99_scanf.c
4743         * stdio-common/isoc99_fscanf.c
4744         * stdio-common/isoc99_sscanf.c
4745         * stdio-common/isoc99_vscanf.c
4746         * stdio-common/isoc99_vfscanf.c
4747         * stdio-common/isoc99_vsscanf.c
4748         * wcsmbs/isoc99_wscanf.c
4749         * wcsmbs/isoc99_fwscanf.c
4750         * wcsmbs/isoc99_swscanf.c
4751         * wcsmbs/isoc99_vwscanf.c
4752         * wcsmbs/isoc99_vfwscanf.c
4753         * wcsmbs/isoc99_vswscanf.c:
4754         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4755         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4756         No need to lock and unlock the FILE passed to that function.
4758         * stdio-common/vfscanf-internal.c
4759         (__vfscanf_internal, __vfwscanf_internal):
4760         Don't look at _IO_FLAGS2_SCANF_STD.
4761         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4762         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4763         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4765 2018-12-05  Zack Weinberg  <zackw@panix.com>
4766             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4768         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4769         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4770         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4771         * libio/strfile.h: Add multiple inclusion guard.
4772         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4774         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4775         consistency with the other version of this file.
4776         (ldbl_compat_symbol): New macro.
4777         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4778         New macro.
4780         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4781         Define __vfscanf_internal or __vfwscanf_internal, depending on
4782         COMPILE_WSCANF; don't define any other public symbols.
4783         Remove errval and code to set errp.
4784         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4785         as the mode_flags argument.
4786         (encode_error, conv_error, input_error): Don't set errval.
4787         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4788         Include vfscanf-internal.c.
4789         * stdio-common/vfscanf.c: New file defining the public entry
4790         point vfscanf, which calls __vfscanf_internal.
4791         * stdio-common/vfwscanf.c: New file defining the public entry
4792         point vfwscanf, which calls __vfwscanf_internal.
4794         * stdio-common/iovfscanf.c: New file.
4795         * stdio-common/iovfwscanf.c: Likewise.
4797         * stdio-common/Makefile (routines): Add vfscanf-internal,
4798         vfwscanf-internal, iovfscanf, iovfwscanf.
4799         * stdio-common/Versions: Mention GLIBC_2.29, so that
4800         it can be used in SHLIB_COMPAT expressions.
4801         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4802         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4803         Call __vfscanf_internal, instead of _IO_vfscanf.
4804         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4805         _IO_vfscanf.
4806         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4807         _IO_vfwscanf.
4809         * libio/iovsscanf.c: Clean up includes, when possible.  Use
4810         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
4811         __vfscanf_internal or __vfwscanf_internal directly.
4812         * libio/iovswscanf.c: Likewise.
4813         * libio/swscanf.c: Likewise.
4814         * libio/vscanf.c: Likewise.
4815         * libio/vwscanf.c: Likewise.
4816         * libio/wscanf.c: Likewise.
4817         * stdio-common/isoc99_fscanf.c: Likewise.
4818         * stdio-common/isoc99_scanf.c: Likewise.
4819         * stdio-common/isoc99_sscanf.c: Likewise.
4820         * stdio-common/isoc99_vfscanf.c: Likewise.
4821         * stdio-common/isoc99_vscanf.c: Likewise.
4822         * stdio-common/isoc99_vsscanf.c: Likewise.
4823         * stdio-common/scanf.c: Likewise.
4824         * stdio-common/sscanf.c: Likewise.
4825         * wcsmbs/isoc99_fwscanf.c: Likewise.
4826         * wcsmbs/isoc99_swscanf.c: Likewise.
4827         * wcsmbs/isoc99_vfwscanf.c: Likewise.
4828         * wcsmbs/isoc99_vswscanf.c: Likewise.
4829         * wcsmbs/isoc99_vwscanf.c: Likewise.
4830         * wcsmbs/isoc99_wscanf.c: Likewise.
4832 2018-12-05  Albert ARIBAUD <albert.aribaud@3adev.fr>
4834         * include/time.h
4835         (__tz_compute): Replace time_t with __time64_t.
4836         (__tz_convert): Replace time_t* with __time64_t.
4837         (__offtime): Replace time_t* with __time64_t.
4838         * time/gmtime.c
4839         (__gmtime_r): Adjust call to __tz_convert.
4840         (gmtime): Likewise.
4841         * time/localtime.c
4842         (__localtime_r): Likewise.
4843         (localtime): Likewise.
4844         * time/offtime.c: Replace time_t with __time64_t.
4845         * time/tzset.c: Likewise.
4847 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
4849         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4850         dynamic linker unless [$(run-built-tests) = yes].
4852 2018-12-03  DJ Delorie  <dj@delorie.com>
4854         * support/test-container.c (check_for_unshare_hints): New.
4855         (main): Call it if unshare fails.  Add support for "su" scriptlet
4856         command.
4858 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
4860         * scripts/gen-as-const.py (compute_c_consts): Take an argument
4861         'START' to indicate that start text should be output.
4862         (gen_test): Likewise.
4863         (main): Generate 'START' for first symbol or '--' line, or at end
4864         of input if not previously generated.
4866 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
4868         [BZ #19767]
4869         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4870         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4871         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4872         ALWAYS_USE_VSYSCALL.
4874 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4876         [BZ #23913]
4877         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4878         new_argv by one.
4880 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
4882         [BZ #23923]
4883         * locale/programs/localedef.c: Declare boolean hard_links default true.
4884         (options): Add --no-hard-links option.
4885         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4886         * locale/programs/localedef.h: Declare prototype for hard_links.
4887         * locale/programs/locfile.c (write_locale_data): Don't use hard
4888         links if hard_links is false.
4890 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
4892         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4893         cpu_features_basic.
4894         (__cache_sysconf): Likewise.
4895         (init_cacheinfo): Likewise.
4896         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4897         populate COMMON_CPUID_INDEX_80000007 and
4898         COMMON_CPUID_INDEX_80000008.
4899         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4900         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4901         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
4902         (init_cpu_features): Use _Static_assert on
4903         index_arch_Fast_Unaligned_Load.
4904         __get_cpuid_registers and __get_arch_feature.  Updated for
4905         cpu_features_basic.  Set stepping in cpu_features.
4906         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4907         (FEATURE_INDEX_2): New.
4908         (FEATURE_INDEX_MAX): Changed to enum.
4909         (COMMON_CPUID_INDEX_D_ECX_1): New.
4910         (COMMON_CPUID_INDEX_80000007): Likewise.
4911         (COMMON_CPUID_INDEX_80000008): Likewise.
4912         (cpuid_registers): Likewise.
4913         (cpu_features_basic): Likewise.
4914         (CPU_FEATURE_USABLE): Likewise.
4915         (bit_arch_XXX_Usable): Likewise.
4916         (cpu_features): Use cpuid_registers and cpu_features_basic.
4917         (bit_arch_XXX): Reweritten.
4918         (bit_cpu_XXX): Likewise.
4919         (index_cpu_XXX): Likewise.
4920         (reg_XXX): Likewise.
4921         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4922         <support/check.h>.
4923         (CHECK_CPU_FEATURE): New.
4924         (CHECK_CPU_FEATURE_USABLE): Likewise.
4925         (cpu_kinds): Likewise.
4926         (do_test): Print vendor, family, model and stepping.  Check
4927         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4928         (TEST_FUNCTION): Removed.
4929         Include <support/test-driver.c> instead of
4930         "../../test-skeleton.c".
4931         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4932         Check POPCNT instead of POPCOUNT.
4933         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4935 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4937         * scripts/gen-as-const.py (main): Avoid emitting empty line when
4938         there is no element in `consts'.
4940 2018-12-01  Florian Weimer  <fweimer@redhat.com>
4942         * support/support_capture_subprocess.c
4943         (support_capture_subprocess): Check that pipe descriptors have
4944         expected values.  Close original pipe descriptors in subprocess.
4946 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4948         [BZ #23032]
4949         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4950         attr with __pthread_default_barrierattr.
4951         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4952         attr with __pthread_default_condattr.
4953         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4954         attr with __pthread_default_mutexattr.
4955         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4956         attr with __pthread_default_rwlockattr.
4958 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
4960         * manual/tunables.texi (POSIX Thread Tunables): New node.
4961         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4962         * nptl/nptl-init.c: Include pthread_mutex_conf.h
4963         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4964         __pthread_tunables_init.
4965         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4966         (max_adaptive_count): Define.
4967         * nptl/pthread_mutex_conf.c: New file.
4968         * nptl/pthread_mutex_conf.h: New file.
4969         * sysdeps/generic/adaptive_spin_count.h: New file.
4970         * sysdeps/nptl/dl-tunables.list: New file.
4971         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4972         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4973         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4974         Likewise.
4976 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
4978         [BZ #20544]
4979         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4980         * stdlib/on_exit.c (__on_exit): Likewise.
4981         * stdlib/Makefile (tests): Add tst-bz20544.
4982         * stdlib/tst-bz20544.c: New test.
4984 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
4986         [BZ #19767]
4987         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4988         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4989         New.
4991 2018-11-30  Florian Weimer  <fweimer@redhat.com>
4993         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4994         Extend error logging.
4995         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4996         symbol.
4998 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5000         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5001         __sigismember instead of sigismember.
5002         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5003         cancel_handler): New definitions.
5004         (do_system): Use posix_spawn instead of fork and execl and remove
5005         reentracy code.
5006         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5007         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5008         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5009         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5010         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5011         * sysdeps/unix/sysv/linux/system.c: Likewise.
5013         [BZ #22834]
5014         [BZ #17490]
5015         * NEWS: Add new semantic for atfork with popen and system.
5016         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5017         fork and execl.
5019 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5021         [BZ #23690]
5022         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5023         modification order when accessing reloc_result->addr.
5024         * include/link.h (reloc_result): Add field init.
5025         * nptl/Makefile (tests): Add tst-audit-threads.
5026         (modules-names): Add tst-audit-threads-mod1 and
5027         tst-audit-threads-mod2.
5028         Add rules to build tst-audit-threads.
5029         * nptl/tst-audit-threads-mod1.c: New file.
5030         * nptl/tst-audit-threads-mod2.c: Likewise.
5031         * nptl/tst-audit-threads.c: Likewise.
5032         * nptl/tst-audit-threads.h: Likewise.
5034 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
5036         * scripts/gen-as-const.py: New file.
5037         * scripts/gen-as-const.awk: Remove.
5038         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5039         gen-as-const.py.
5040         ($(objpfx)test-as-const-%.c): Likewise.
5042 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
5044         * elf/dl-exception.c: Include <_itoa.h>.
5046 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5048         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5049         returned by __f_setlk.
5051 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
5052             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5054         * elf/Makefile (tests-internal): Add tst-create_format1.
5055         * elf/dl-exception.c (_dl_exception_create_format): Support
5056         %x, %lx and %zx.
5057         * elf/tst-create_format1.c: New file.
5059 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
5061         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5062         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
5063         gnulib.)
5064         * argp/argp-help.c (__argp_failure): Likewise.
5066 2018-11-29  Mao Han  <han_mao@c-sky.com>
5068         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5069         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5070         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5071         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5072         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5073         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5074         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5075         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5076         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5077         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5078         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5079         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5080         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5081         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5082         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5083         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5084         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5085         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5086         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5087         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5088         (R_CKCORE_TLS_TPOFF32): New defines.
5090 2018-11-29  Florian Weimer  <fweimer@redhat.com>
5092         * posix/Makefile (before-compile): Remove testcases.h and
5093         ptestcases.h.
5094         (generated): Add testcases.h and ptestcases.h.
5095         (testcases.h, ptestcases.h): Move to $(objpfx).
5096         (runtests.o): Add dependency on testcases.h.
5097         (runptests.o): Add dependency on ptestcases.h.
5098         * posix/testcases.h, posix/ptestcases.h: Remove files.
5099         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5100         not touch posix/testcases.h and posix/ptestcases.h.
5102 2018-11-28  Florian Weimer  <fweimer@redhat.com>
5104         support: Add signal support to support_capture_subprocess_check.
5105         * support/capture_subprocess.h (support_capture_subprocess_check):
5106         Adjust comment and rename parameter.
5107         * support/support_capture_subprocess_check.c
5108         (print_actual_status): New function.
5109         (support_capture_subprocess_check): Support negative
5110         status_or_signal.  Call print_actual_status.
5111         * support/tst-support_capture_subprocess.c (do_test): Call
5112         support_capture_subprocess_check.
5113         * libio/tst-vtables-common.c (termination_status)
5114         (init_termination_status): Remove.
5115         (check_for_termination): Adjust support_capture_subprocess_check
5116         call.
5117         (do_test): Remove call to init_termination_status.
5119 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
5121         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5122         source directory instead of a copy.
5123         (CommandList.create_copy_dir): Remove.
5125 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
5127         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5129 2018-11-28  Florian Weimer  <fweimer@redhat.com>
5131         * support/support.h (support_quote_string): Do not use str
5132         parameter name.
5134 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
5136         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5137         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5139 2018-11-27  Florian Weimer  <fweimer@redhat.com>
5141         * support/support.h (support_quote_string): Declare.
5142         * support/support_quote_string.c: New file.
5143         * support/tst-support_quote_string.c: Likewise.
5144         * support/Makefile (libsupport-routines): Add
5145         support_quote_string.
5146         (tests): Add tst-support_quote_string.
5148 2018-11-27  Florian Weimer  <fweimer@redhat.com>
5150         [BZ #23927]
5151         CVE-2018-19591
5152         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5153         descriptor leak in case of ENODEV error.
5155 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
5157         [BZ #19767]
5158         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5159         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5160         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5162 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
5164         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5165         Error for unknown lines.
5167 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
5169         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5170         Touch additional files.
5172 2018-11-26  Florian Weimer  <fweimer@redhat.com>
5174         [BZ #23907]
5175         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5176         double-frees.
5178 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
5180         [BZ #19767]
5181         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5182         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5183         SHARED.  Include sysdep.h.
5184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5185         ALWAYS_USE_VSYSCALL.
5186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5187         ALWAYS_USE_VSYSCALL.
5189 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
5191         [BZ #19767]
5192         * nptl/Makefile (tests-static): Add tst-cond11-static.
5193         (tests): Likewise.
5194         * nptl/tst-cond11-static.c: New File.
5195         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5196         tst-affinity-static.
5197         (tests): Likewise.
5198         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5199         instead of SHARED.
5200         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5201         (USE_VSYSCALL): Likewise.
5202         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5203         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5204         instead of SHARED.
5205         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5206         SHARED.
5207         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5208         New.
5210 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
5212         [BZ #23915]
5213         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5214         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5215         Undefine.
5217 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
5219         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5220         (tst-cet-legacy-1a-ARGS): New.
5221         ($(objpfx)tst-cet-legacy-1a): New target.
5222         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5224 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
5226         * conform/conformtest.py (CompileSubTest.__init__): Set
5227         self.run_early to False.
5228         (ExecuteSubTest.__init__): Likewise.
5229         (HeaderTests.run): Try running all non-optional, non-XFAILed
5230         compilation tests in a single execution of the compiler.
5232         * conform/conformtest.py (CompileSubTest): New class.
5233         (ExecuteSubTest): Likewise.
5234         (ElementTest.run): Rename to gen_subtests.  Append tests to
5235         self.subtests instead of running them.
5236         (ConstantTest.run): Likewise.
5237         (SymbolTest.run): Likewise.
5238         (TypeTest.run): Likewise.
5239         (TagTest.run): Likewise.
5240         (FunctionTest.run): Likewise.
5241         (VariableTest.run): Likewise.
5242         (MacroFunctionTest.run): Likewise.
5243         (MacroStrTest.run): Likewise.
5244         (HeaderTests.handle_test_line): Generate subtests for tests.
5245         (HeaderTests.run): Run subtests for tests.
5247 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5249         * math/Versions (GLIBC_2.29): Add pow.
5250         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5251         symbol.
5252         * math/w_pow.c: New file.
5253         * sysdeps/i386/fpu/w_pow.c: New file.
5254         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5255         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5256         and add necessary aliases.
5257         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5258         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5259         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5260         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5261         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5262         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5263         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5264         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5265         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5266         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5267         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5268         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5269         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5270         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5271         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5276         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5277         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5278         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5279         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5280         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5281         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5282         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5283         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5284         __pow.
5285         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5286         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5287         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5289 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5291         * math/Versions (GLIBC_2.29): Add log2.
5292         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5293         symbol.
5294         * math/w_log2.c: New file.
5295         * sysdeps/i386/fpu/w_log2.c: New file.
5296         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5297         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5298         and add necessary aliases.
5299         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5300         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5301         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5302         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5303         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5304         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5305         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5306         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5307         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5308         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5309         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5310         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5311         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5312         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5313         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5318         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5319         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5320         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5321         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5322         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5323         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5324         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5326 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5328         * math/Versions (GLIBC_2.29): Add log.
5329         * math/w_log_compat.c (__log_compat): Change to versioned compat
5330         symbol.
5331         * math/w_log.c: New file.
5332         * sysdeps/i386/fpu/w_log.c: New file.
5333         * sysdeps/ia64/fpu/e_log.S: Update.
5334         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5335         and add necessary aliases.
5336         * sysdeps/ieee754/dbl-64/w_log.c: New file.
5337         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5338         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5339         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5340         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5341         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5342         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5343         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5344         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5345         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5346         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5347         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5348         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5349         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5350         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5355         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5356         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5357         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5358         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5359         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5360         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5361         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5362         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5363         __log.
5364         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5365         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5366         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5367         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5369 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5371         * math/Versions (GLIBC_2.29): Add exp and exp2.
5372         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5373         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5374         * math/w_exp_compat.c (__exp_compat): Likewise.
5375         * math/w_exp.c: New file.
5376         * math/w_exp2.c: New file.
5377         * sysdeps/i386/fpu/w_exp.c: New file.
5378         * sysdeps/i386/fpu/w_exp2.c: New file.
5379         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5380         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5381         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5382         and add necessary aliases.
5383         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5384         and add necessary aliases.
5385         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5386         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5387         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5388         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5389         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5390         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5391         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5392         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5393         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5394         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5395         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5396         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5397         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5398         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5399         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5400         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5401         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5406         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5407         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5408         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5409         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5410         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5411         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5412         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5413         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5414         (__ieee754_exp): Rename to __exp.
5415         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5416         (__ieee754_exp): Rename to __exp.
5417         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5418         (__ieee754_exp): Rename to __exp.
5419         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5420         __exp.
5421         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5423 2018-11-20  DJ Delorie  <dj@redhat.com>
5425         * malloc/malloc.c (tcache_entry): Add key field.
5426         (tcache_put): Set it.
5427         (tcache_get): Likewise.
5428         (_int_free): Check for double free in tcache.
5429         * malloc/tst-tcfree1.c: New.
5430         * malloc/tst-tcfree2.c: New.
5431         * malloc/Makefile: Run the new tests.
5432         * manual/probes.texi: Document memory_tcache_double_free probe.
5434         * dlfcn/dlerror.c (check_free): Prevent double frees.
5436 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
5438         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5440 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
5442         * conform/conformtest.py (ElementTest.run): Use unique identifiers
5443         in tests.  Use names for format arguments.
5444         (ConstantTest.run): Likewise.
5445         (SymbolTest.run): Likewise.
5446         (TypeTest.run): Likewise.
5447         (TagTest.run): Likewise.
5448         (FunctionTest.run): Likewise.
5449         (VariableTest.run): Likewise.
5450         (MacroFunctionTest.run): Likewise.
5451         (MacroStrTest.run): Likewise.
5452         (HeaderTests.__init__): Set self.num_tests.
5453         (HeaderTests.handle_test_line): Set test.num.  Increment
5454         self.num_tests.
5456 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5458         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5459         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5460         SEEK_SET.
5462 2018-11-19  Mao Han  <han_mao@c-sky.com>
5464         * scripts/config.guess: Update to version 2018-08-29.
5465         * scripts/config.sub: Update to version 2018-08-29.
5467 2018-11-19  Florian Weimer  <fweimer@redhat.com>
5469         support: Print timestamps in timeout handler.
5470         * support/support_test_main.c (print_timestamp): New function.
5471         (signal_handler): Use it to print the termination time and the
5472         time of the last write to standard output.
5474 2018-11-16  Zack Weinberg  <zackw@panix.com>
5475             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5477         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5478         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5479         argument.
5480         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5481         and add flags argument.  Check flags instead of __ldbl_is_dbl when
5482         deciding whether to set is_long_double.
5483         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5484         passing zero for flags argument.
5485         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5487         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5488         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5489         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5490         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
5491         variable names.  Remove libc_hidden_def/libc_hidden_proto from
5492         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5493         longer called from within the library.
5494         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5495         for __nldbl___vstrfmon_l, declare it explicitly.
5497         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5499 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5501         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5502         macros
5503         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5504         F_SETLK64, F_SETLKW64, respectively.
5505         * sysdeps/mach/hurd/f_setlk.c: New file.
5506         * sysdeps/mach/hurd/f_setlk.h: New file.
5507         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5508         f_setlk.
5509         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5510         (__libc_fcntl): Move non-flock operations to...
5511         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5512         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5514 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5516         mktime: DEBUG_MKTIME cleanup
5517         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5518         And it’s no longer needed now that glibc and Gnulib both have
5519         their own testing mechanisms for mktime.
5520         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
5522         mktime: fix non-EOVERFLOW errno handling
5523         [BZ#23789]
5524         mktime was not properly reporting failures when the underlying
5525         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5526         them like EOVERFLOW failures, and set errno to EOVERFLOW.
5527         The problem could happen on non-glibc platforms, with Gnulib.
5528         * time/mktime.c (guess_time_tm): Remove, replacing with ...
5529         (tm_diff): ... this simpler function, which does not change errno.
5530         All callers changed to deal with errno themselves.
5531         (ranged_convert, __mktime_internal): Return failure immediately if
5532         the underlying function reports any failure other than EOVERFLOW.
5533         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5534         gap code fails.
5536         mktime: fix bug with Y2038 DST transition
5537         [BZ#23789]
5538         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5539         mishandle a DST transition that jumps over the Y2038 boundary.
5540         No such DST transitions are known so this is only a theoretical
5541         bug, but we might as well do things right.
5543         mktime: make more room for overflow
5544         [BZ#23789]
5545         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5546         This is so that we can add tm_diff results to a previous guess,
5547         which will be useful in a later patch.
5549         mktime: simplify offset guess
5550         [BZ#23789]
5551         * time/mktime.c (__mktime_internal): Omit excess precision.
5553         mktime: new test for mktime failure
5554         [BZ#23789]
5555         Based on a test suggested by Albert Aribaud in:
5556         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5557         * time/Makefile (tests): Add bug-mktime4.
5558         * time/bug-mktime4.c: New file.
5560         mktime: fix EOVERFLOW bug
5561         [BZ#23789]
5562         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5563         Include libc-config.h, not config.h, for __set_errno.
5564         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5566 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5568         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5569         __attribute_copy__ to copy attributes from name. Drop static qualifier
5570         to avoid warnings about leaf attribute not having effect on static
5571         functions.
5573 2018-11-13  Florian Weimer  <fweimer@redhat.com>
5575         * malloc/malloc.c (fastbin_push_entry): New function.
5576         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
5577         (REMOVE_FB): Remove macro.
5578         (_int_malloc): Use fastbin_pop_entry and reindent.
5579         (_int_free): Use fastbin_push_entry.
5580         (malloc_consolidate): Use atomic_exchange_acquire.
5582 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
5584         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5585         alias attribute, not with strong_alias.
5587         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5588         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
5589         with additional parameter thread.
5590         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5591         in terms of __hidden_ver2.
5592         (hidden_tls_def): New macro.
5593         (libc_hidden_tls_def): Likewise.
5594         (rtld_hidden_tls_def): Likewise.
5595         (libm_hidden_tls_def): Likewise.
5596         (libmvec_hidden_tls_def): Likewise.
5597         (libresolv_hidden_tls_def): Likewise.
5598         (librt_hidden_tls_def): Likewise.
5599         (libdl_hidden_tls_def): Likewise.
5600         (libnss_files_hidden_tls_def): Likewise.
5601         (libnsl_hidden_tls_def): Likewise.
5602         (libnss_nisplus_hidden_tls_def): Likewise.
5603         (libutil_hidden_tls_def): Likewise.
5604         (libutil_hidden_tls_def): Likweise.
5605         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5606         libc_hidden_tls_def.
5607         (__sim_disabled_exceptions_thread): Likewise.
5608         (__sim_round_mode_thread): Likewise.
5610         * sysdeps/sparc/sparc-ifunc.h [SHARED]
5611         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5612         copy attributes from name.
5614 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
5616         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5617         Use __attribute_copy__ to copy attributes from name.
5619         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5620         with __hidden_ver1 call.
5621         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5622         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5623         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5624         (__cosf): Do not declare here.
5625         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5626         (__sincosf): Do not declare here.
5627         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5628         (__sinf): Do not declare here.
5630         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5631         (__BIG_ENDIAN): Likewise.
5632         (__BYTE_ORDER): Likewise.
5633         (strong_alias): Likewise.
5634         (_strong_alias): Likewise.
5636 2018-11-12  Florian Weimer  <fweimer@redhat.com>
5638         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5639         function.  Move after the definition of in_smallbin_range.  Do not
5640         use __builtin_expect for paths that lead to a noreturn function.
5641         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5642         because it is unclear whether this is in fact an unlikely
5643         condition.
5644         (_int_malloc, _int_free): Adjust.
5645         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
5646         variables.
5647         * malloc/arena.c (heap_trim): Likewise.
5649 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5651         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5652         it, free it if needed.
5653         (reauthenticate): Test and use ccwdir.
5654         (child_init_port): In non-resetids case, test and use ccwdir.
5655         (child_chdir): New nested function to set ccwdir.
5656         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5657         * hurd/hurd/port.h (_hurd_port_move): New function.
5658         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5659         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5660         * hurd/Versions (_hurd_port_move): Export function.
5661         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5662         symbol.
5663         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5664         of dtablesize for allocating dtable_cloexec.
5666 2018-11-09  Martin Sebor  <msebor@redhat.com>
5668         * include/libc-symbols.h (__attribute_copy__): Define macro unless
5669         it's already defined.
5670         (_strong_alias): Use __attribute_copy__.
5671         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
5672         * misc/sys/cdefs.h (__attribute_copy__): New macro.
5673         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5674         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5675         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5676         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5677         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5678         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5679         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5680         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5681         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5682         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5683         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5684         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5685         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5686         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5687         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5688         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5689         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5691 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5693         * misc/tst-efgcvt.c: Include support/check.h and
5694         support/test-driver.c.  Do not include test-skeleton.c.
5695         (error_count): Remove.
5696         (output_error): Replace increments to error_count with calls to
5697         support_record_failure.
5698         (output_r_error): Likewise.
5699         (special): Likewise.
5700         (do_test): Unconditionally return zero.
5701         (TEST_FUNCTION): Remove.
5703 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
5705         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5706         not $(@D)/scratch.
5707         ($(linknamespace-header-tests)): Likewise.
5709         * conform/conformtest.py: New file.
5710         * conform/conformtest.pl: Remove.
5711         * conform/GlibcConform.pm: Likewise.
5712         * conform/glibcconform.py (KEYWORDS_C90): New constant.
5713         (KEYWORDS_C99): Likewise.
5714         (KEYWORDS): Likewise.
5715         * conform/Makefile ($(conformtest-header-tests)): Use
5716         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
5717         option.  Use --header instead of --headers.
5718         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5719         function entries.
5720         * conform/data/spawn.h-data: Likewise.
5721         * conform/data/fcntl.h-data (openat): Add space after function
5722         name.
5723         * conform/data/wchar.h-data (wcscasecmp): Likewise.
5724         (wcscasecmp_l): Likewise.
5725         * conform/data/termios.h-data (c_cc): Add space after element
5726         name.
5728 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5730         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5731         instead of manually comparing and reporting mismatching strings.
5732         * misc/tst-ldbl-error.c (do_one_test): Likewise.
5733         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5735 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
5737         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5738         __ASSUME_SOCKETCALL.
5739         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5740         (__ASSUME_SOCKETCALL): Remove.
5741         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5742         (__ASSUME_SOCKETCALL): Likewise.
5743         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5744         (__ASSUME_SOCKETCALL): Likewise.
5745         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5746         (__ASSUME_SOCKETCALL): Likewise.
5747         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5748         (__ASSUME_SOCKETCALL): Likewise.
5749         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5750         (__ASSUME_SOCKETCALL): Likewise.
5751         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5752         (__ASSUME_SOCKETCALL): Likewise.
5754 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5756         [BZ #23509]
5757         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5758         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5759         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5760         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5761         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
5762         lc_unknown.
5764 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
5766         [BZ #17630]
5767         * resolv/tst-resolv-network.c: Add test for getnetbyname.
5769 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
5771         [BZ #23867]
5772         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5773         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5774         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5775         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5777 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5779         * support/support_test_compare_string.c
5780         (support_test_compare_string): Fix printf format.
5782 2018-11-07  Florian Weimer  <fweimer@redhat.com>
5784         Implement TEST_COMPARE_STRING.
5785         * support/check.h (TEST_COMPARE_STRING): Define.
5786         (support_test_compare_string): Declare.
5787         * support/Makefile (libsupport-routines): Add
5788         support_test_compare_string.
5789         (tests): Add tst-test_compare_string.
5790         * support/support_test_compare_string.c: New file.
5791         * support/tst-test_compare_string.c: Likewise.
5793 2018-11-07  Andreas Schwab  <schwab@suse.de>
5795         [BZ #23864]
5796         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5797         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5798         Undef.
5800 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
5802         [BZ #23862]
5803         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5804         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5805         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5806         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5807         Likewise.
5809 2018-11-06  Florian Weimer  <fweimer@redhat.com>
5811         [BZ #17405]
5812         * posix/Makefile (routines): Add spawn_faction_addchdir.
5813         (tests): Add tst-spawn-chdir.
5814         * posix/Versions (GLIBC_2.29): Add
5815         posix_spawn_file_actions_addchdir_np.
5816         * posix/spawn_faction_addchdir.c: New file.
5817         * posix/spawn_faction_destroy.c
5818         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5819         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5820         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5821         chdir_action.
5822         * posix/tst-spawn-chdir.c: New file.
5823         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5824         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5825         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5826         posix_spawn_file_actions_addchdir_np.
5827         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5828         Likewise.
5829         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5830         Likewise.
5831         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5832         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5833         Likewise.
5834         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5835         Likewise.
5836         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5837         Likewise.
5838         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5839         Likewise.
5840         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5841         Likewise.
5842         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5843         Likewise.
5844         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5845         (GLIBC_2.29): Likewise.
5846         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5847         (GLIBC_2.29): Likewise.
5848         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5849         (GLIBC_2.29): Likewise.
5850         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5851         (GLIBC_2.29): Likewise.
5852         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5853         Likewise.
5854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5855         (GLIBC_2.29): Likewise.
5856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5857         (GLIBC_2.29): Likewise.
5858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5859         (GLIBC_2.29): Likewise.
5860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5861         (GLIBC_2.29): Likewise.
5862         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5863         Likewise.
5864         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5865         Likewise.
5866         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5867         Likewise.
5868         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5869         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5870         Likewise.
5871         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5872         Likewise.
5873         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5874         Likewise.
5875         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5876         Likewise.
5878 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5880         * misc/Makefile (tests): Add tst-ldbl-error.
5881         * misc/tst-ldbl-error.c: New file.
5883 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5885         * misc/Makefile (tests): Add tst-ldbl-warn.
5886         * misc/tst-ldbl-warn.c: New file.
5888 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5890         * argp/Makefile (tests): Add tst-ldbl-argp.
5891         * argp/tst-ldbl-argp.c: New file.
5893 2018-11-05  Arjun Shankar  <arjun@redhat.com>
5895         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5896         __gconv_path_elem and call __gconv_get_path unconditionally.
5898 2018-11-05  Andreas Schwab  <schwab@suse.de>
5900         [BZ #22927]
5901         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5902         creating the first helper thread failed.
5904 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5906         * sysdeps/mach/hurd/msync.c: New file.
5908 2018-11-02  Florian Weimer  <fweimer@redhat.com>
5910         * support/shell-container.c (copy_func): Call
5911         support_copy_file_range instead of copy_file_range to support
5912         cross-device copies.
5914 2018-11-02  Florian Weimer  <fweimer@redhat.com>
5916         * support/test-container.c: Include <libc-pointer-arith.h> for
5917         ALIGN_UP.
5919 2018-11-01  Zong Li  <zong@andestech.com>
5921         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5922         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5923         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5924         (__FP_FRAC_SET_8): Add implementation for RV32 use.
5926         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5927         variable to avoid overlap arguments.
5929 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
5931         * posix/bug-regex22.c (main): Use puts with distinct error
5932         messages for unexpected success of re_compile_pattern, not printf
5933         with NULL argument to %s.
5935         * stdio-common/bug22.c: Include <libc-diag.h>.
5936         (do_test): Disable -Wformat-overflow= warnings around fprintf
5937         calls outputting more than INT_MAX characters.
5938         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5939         around printf call with NULL %s argument.
5941         [BZ #23848]
5942         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5943         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5944         Undefine.
5945         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5946         (__ASSUME_RECVMSG_SYSCALL): Likewise.
5947         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5948         (__ASSUME_SENDTO_SYSCALL): Likewise.
5949         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5950         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5951         [!__arch64__].
5952         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5953         (__ASSUME_CONNECT_SYSCALL): Likewise.
5954         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5955         (__ASSUME_RECVFROM_SYSCALL): Likewise.
5956         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5957         Define.
5958         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5959         Likewise.
5960         [__LINUX_KERNEL_VERSION >= 0x040400]
5961         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5962         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5963         Remove.
5964         (listen): Likewise.
5965         (setsockopt): Likewise.
5967 2018-11-01  Fredrik Noring  <noring@nocrew.org>
5969         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5970         with the ISA override.
5972 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
5974         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5975         #endif.
5977 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5979         * manual/errno.texi (EIEIO): Document how translators should
5980         translate the error message.
5981         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
5982         printing trailing whitespaces refused by git.
5983         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5984         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5985         * hurd/Makefile (user-interfaces): Add pci.
5987 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
5989         * conform/linknamespace.py: New file.
5990         * conform/linknamespace.pl: Remove file.
5991         * conform/Makefile ($(linknamespace-header-tests)): Use
5992         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
5993         option.
5995 2018-10-30  Florian Weimer  <fweimer@redhat.com>
5997         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5998         memory leaks.
6000 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6002         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6004 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6006         * stdlib/tst-strtod-overflow.c (do_test): Switch to
6007         support_blob_repeat.
6009 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6011         Avoid spurious test failures in stdlib/test-bz22786.
6012         * support/Makefile (libsupport-routines): Add blob_repeat.
6013         (tests): Add tst-support_blob_repeat.
6014         * support/blob_repeat.h: New file.
6015         * support/blob_repeat.c: Likewise.
6016         * support/tst-support_blob_repeat.c: Likewise.
6017         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6018         support_blob_repeat_allocate.
6020 2018-10-30  Andreas Schwab  <schwab@suse.de>
6022         [BZ #23125]
6023         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6024         Don't use tail call.
6025         * elf/tst-unwind-main.c: New file.
6026         * elf/Makefile (tests): Add tst-unwind-main.
6027         (CFLAGS-tst-unwind-main.c): Define.
6029 2018-10-29  Sergi Almacellas Abellana <sergi@koolpi.com>
6031         [BZ #23791]
6032         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6033         n_cs_precedes to 0.
6034         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6036 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6038         * conform/glibcconform.py: Do not import shutil.
6039         (list_exported_functions): Use tempfile.TemporaryDirectory instead
6040         of mkdtemp.
6042         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
6043         critic_missing for versions before 3.4.
6044         * configure: Regenerated.
6045         * manual/install.texi (Tools for Compilation): Document
6046         requirement for Python to build glibc.
6047         * INSTALL: Regenerated.
6048         * Rules [PYTHON]: Make code unconditional.
6049         * benchtests/Makefile [PYTHON]: Likewise.
6050         * conform/Makefile [PYTHON]: Likewise.
6051         * manual/Makefile [PYTHON]: Likewise.
6052         * math/Makefile [PYTHON]: Likewise.
6054 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6056         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6057         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6058         answer to interrupt_operation, return EIEIO instead of EINTR.
6059         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6060         _hurd_intr_rpc_msg_about_to global point to start of controlled
6061         assembly snippet. Make it check canceled flag.
6062         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6063         the _hurd_intr_rpc_msg_about_to point.
6064         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6065         issue, remove cancel flag check.
6067 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
6069         * scripts/build-many-glibcs.py: Remove compatibility for missing
6070         os.cpu_count and re.fullmatch.
6072 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6074         [BZ #23822]
6075         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6076         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6077         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6079 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
6081         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6082         macro.
6084 2018-10-25  Florian Weimer  <fweimer@redhat.com>
6086         [BZ #23562]
6087         [BZ #23821]
6088         XFAIL siginfo_t si_band conform test on sparc64.
6089         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6090         (__SI_BAND_TYPE): Only override long int default type on sparc64.
6091         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6092         (conformtest-xfail-conds): Add sparc64-linux.
6093         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6094         sparc64.
6095         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6097 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
6099         * elf/elf.h (NT_MIPS_DSP): New macro.
6100         (NT_MIPS_FP_MODE): Likewise.
6102 2018-10-25  Zong Li  <zong@andestech.com>
6104         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6105         name by adding the file extension (.so).
6107 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6109         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6110         (test-xfail-ISO11/threads.h/linknamespace,
6111         test-xfail-ISO11/threads.h/conform): Add.
6113 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
6115         * math/gen-libm-test.py: Import os.
6116         (ALL_FLOATS_MANUAL): New constant.
6117         (ALL_FLOATS_SUFFIX): Likewise.
6118         (Ulps.all_functions): New function.
6119         (real_all_ulps): Likewise.
6120         (generate_err_table_sub): Likewise.
6121         (generate_err_table): Likewise.
6122         (main): Handle -s and -m options.
6123         * manual/libm-err-tab.pl: Remove.
6124         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6125         instead of libm-err-tab.pl.
6126         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6127         != no].
6128         * manual/install.texi (Tools for Compilation): Document
6129         requirement for Python to build manual.
6130         * INSTALL: Regenerated.
6132 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
6134         * bits/time64.h: New file.
6135         * include/time.h: Replace internal_time_t with __time64_t.
6136         * posix/bits/types (__time64_t): Add.
6137         * stdlib/Makefile: Add bits/time64.h to includes.
6138         * time/tzfile.c: Replace internal_time_t with __time64_t.
6140 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6142         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6143         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6144         __posix_spawn_file_actions_init, __posix_spawnattr_init,
6145         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6146         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6147         prototype.
6148         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6149         * posix/spawn_faction_addclose.c
6150         (__posix_spawn_file_actions_addclose): Add hidden definition.
6151         * posix/spawn_faction_adddup2.c
6152         (__posix_spawn_file_actions_adddup2): Likewise.
6153         * posix/spawn_faction_destroy.c
6154         (__posix_spawn_file_actions_destroy): Likewise.
6155         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6156         Likewise.
6157         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6158         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6159         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6160         Likewise.
6161         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6162         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6163         Likewise.
6165 2018-10-24  Andreas Schwab  <schwab@suse.de>
6167         [BZ #18093]
6168         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6169         format cache.
6170         * elf/cache.c (print_cache): Likewise.
6172 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
6174         * bits/timesize.h: New file.
6175         * stdlib/Makefile (headers): Add bits/timesize.h.
6176         * sysdeps/unix/sysv/linux/bits/msq-pad.h
6177         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6178         * sysdeps/unix/sysv/linux/bits/sem-pad.h
6179         (__SEM_PAD_AFTER_TIME): Likewise.
6180         * sysdeps/unix/sysv/linux/bits/shm-pad.h
6181         (__SHM_PAD_AFTER_TIME): Likewise.
6182         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6183         (__MSQ_PAD_BEFORE_TIME): Likewise.
6184         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6185         (__SEM_PAD_BEFORE_TIME): Likewise.
6186         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6187         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6188         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6189         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6190         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6191         (__MSQ_PAD_BEFORE_TIME): Likewise.
6192         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6193         (__SEM_PAD_BEFORE_TIME): Likewise.
6194         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6195         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6196         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6197         (__MSQ_PAD_BEFORE_TIME): Likewise.
6198         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6199         (__SEM_PAD_BEFORE_TIME): Likewise.
6200         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6201         (__SHM_PAD_BEFORE_TIME): Likewise.
6202         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6203         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6204         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6206 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
6208         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6209         USE_RDTSCP is defined.
6210         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6211         USE_RDTSCP is defined.
6213 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6215         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6216         defined.
6218         [BZ #23709]
6219         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6220         independently of other flags.
6222 2018-10-23  Florian Weimer  <fweimer@redhat.com>
6224         * time/tst-mktime2.c (N_STRINGS): Remove.
6225         (set_timezone): New function.
6226         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
6227         (mktime_test1): Report localtime failure and check errno value.
6228         Use TEST_COMPARE.
6229         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6230         (do_test): Remove alarm call. Use set_timezone and array_length.
6232 2018-10-23  Andreas Schwab  <schwab@suse.de>
6234         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6235         (__start_context): Use END instead of PSEUDO_END.
6237 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
6239         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6240         version to 4.19.
6242         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6243         version to 4.19.
6245         [BZ #23793]
6246         * wcsmbs/c32rtomb.c: New file.
6247         * wcsmbs/mbrtoc32.c: Likewise.
6248         * wcsmbs/tst-c32-state.c: Likewise.
6249         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6250         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6251         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6252         (tests): Add tst-c32-state.
6253         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6254         $(gen-locales).
6256 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6258         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6259         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6261 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
6263         [BZ #23794]
6264         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6265         pair and return 0 in that case, and use saved character to
6266         interpret following character.
6267         * wcsmbs/tst-c16-surrogate.c: New file.
6268         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6269         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6270         Depend on $(gen-locales)
6272 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
6274         [BZ #23562]
6275         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6276         (struct siginfo_t): Use correct type for si_band.
6278 2018-10-19  Florian Weimer  <fweimer@redhat.com>
6280         [BZ #23689]
6281         * resource/bits/types/struct_rusage.h (struct rusage): Update
6282         comment on struct.  Remove extraneous field comment.
6284 2018-10-18  David S. Miller  <davem@davemloft.net>
6286         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6287         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6288         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6289         sysdep_routines in subdir elf.
6290         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6291         version for __vdso_clock_gettime.
6292         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6293         Define.
6294         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6295         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6297         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6299 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
6301         * sysdeps/i386/init-arch.h: Removed.
6302         * sysdeps/i386/i586/init-arch.h: Likewise.
6303         * sysdeps/i386/i686/init-arch.h: Likewise.
6304         * sysdeps/i386/i686/hp-timing.h: Likewise.
6305         * sysdeps/x86_64/hp-timing.h: Likewise.
6306         * sysdeps/i386/isa.h: New file.
6307         * sysdeps/i386/i586/isa.h: Likewise.
6308         * sysdeps/i386/i686/isa.h: Likewise.
6309         * sysdeps/x86_64/isa.h: Likewise.
6310         * sysdeps/x86/hp-timing.h: New file.
6311         * sysdeps/x86/init-arch.h: Include <isa.h>.
6313 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
6315         * math/libm-test-pow.inc (pow_test_data): Do not allow
6316         divide-by-zero exception for pow(+/- 0, -Inf).
6318 2018-10-17  Zack Weinberg  <zackw@panix.com>
6320         * manual/job.texi (Job Control is Optional): Remove node, as
6321         job control has not been optional in quite some time.
6322         (Job Control): Mention briefly that systems older than
6323         POSIX.1-2001 might not support job control.
6324         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6325         defined on systems conforming to POSIX.1-2001.
6327 2018-10-17  Arjun Shankar  <arjun@redhat.com>
6329         [BZ #22062]
6330         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6331         indentation.
6332         * (__gconv_read_conf): Mark function static.
6333         * (once): New static variable.
6334         * (__gconv_load_conf): New function.
6335         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6336         * iconv/gconv_db.c (once): Remove static variable.
6337         * (__gconv_compare_alias): Use __gconv_load_conf instead of
6338         __gconv_read_conf.
6339         * (__gconv_find_transform): Likewise.
6340         * iconv/tst-iconv-mt.c: New test.
6341         * iconv/Makefile: Add tst-iconv_mt.
6343 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
6345         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6346         bits/shm-pad.h.
6347         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6348         (shmatt_t): Define as __syscall_ulong_t.
6349         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6350         and [__SHM_PAD_AFTER_TIME].
6351         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6352         Define shm_segsz and associated padding based on
6353         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6354         Use __syscall_ulong_t instead of unsigned long int.
6355         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6356         unsigned long int.
6357         [__USE_MISC] (struct shm_info): Likewise.
6358         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6359         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6360         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6361         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6362         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6363         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6364         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6365         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6366         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6367         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6368         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6371         bits/shmlba.h.
6372         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6373         (SHMLBA): Remove macro.
6374         (__getpagesize): Remove function declaration.
6375         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6376         <bits/shmlba.h>.
6377         (SHMLBA): Remove macro.
6378         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6379         <bits/shmlba.h>.
6380         (SHMLBA): Remove macro.
6381         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6382         <bits/shmlba.h>.
6383         (SHMLBA): Remove macro.
6384         (__getpagesize): Remove function declaration.
6385         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6386         <bits/shmlba.h>.
6387         (SHMLBA): Remove macro.
6388         (__getshmlba): Remove function declaration.
6389         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6390         (SHMLBA): Remove macro.
6391         (__getpagesize): Remove function declaration.
6392         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6393         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6394         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6395         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6396         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6397         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6398         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6399         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6400         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6401         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6403 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
6405         [BZ #23275]
6406         * nptl/tst-mutex10.c: New File.
6407         * nptl/Makefile (tests): Add tst-mutex10.
6408         (tst-mutex10-ENV): New variable.
6409         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6410         Ensure that elision path is used if elision is available.
6411         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6412         Likewise.
6413         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6414         Likewise.
6415         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6416         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6417         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6418         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6419         Likewise.
6420         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6421         (__pthread_mutex_cond_lock_adjust): Likewise.
6422         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6423         Likewise.
6424         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6425         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6426         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6427         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6428         Add comments.
6429         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6430         Use atomic_load_relaxed and atomic_store_relaxed.
6431         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6432         Use atomic_store_relaxed.
6434 2018-10-17  Andreas Schwab  <schwab@suse.de>
6436         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6437         * crypt/badsalttest.c (TIMEOUT): Likewise.
6438         * crypt/sha256c-test.c (TIMEOUT): Likewise.
6439         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6440         * io/test-lfs.c (TIMEOUT): Likewise.
6441         * libio/tst-atime.c (TIMEOUT): Likewise.
6442         * localedata/tst-leaks.c (TIMEOUT): Likewise.
6443         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6444         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6445         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6446         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6447         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6448         * nptl/tst-cond11.c (TIMEOUT): Likewise.
6449         * nptl/tst-cond14.c (TIMEOUT): Likewise.
6450         * nptl/tst-cond15.c (TIMEOUT): Likewise.
6451         * nptl/tst-cond24.c (TIMEOUT): Likewise.
6452         * nptl/tst-cond25.c (TIMEOUT): Likewise.
6453         * nptl/tst-kill2.c (TIMEOUT): Likewise.
6454         * nptl/tst-kill3.c (TIMEOUT): Likewise.
6455         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6456         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6457         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6458         * nptl/tst-once2.c (TIMEOUT): Likewise.
6459         * nptl/tst-once3.c (TIMEOUT): Likewise.
6460         * nptl/tst-once4.c (TIMEOUT): Likewise.
6461         * nptl/tst-robust8.c (TIMEOUT): Likewise.
6462         * nptl/tst-robust9.c (TIMEOUT): Likewise.
6463         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6464         * nptl/tst-sem14.c (TIMEOUT): Likewise.
6465         * nptl/tst-sem6.c (TIMEOUT): Likewise.
6466         * nptl/tst-signal3.c (TIMEOUT): Likewise.
6467         * nptl/tst-spin4.c (TIMEOUT): Likewise.
6468         * nptl/tst-tls3.c (TIMEOUT): Likewise.
6469         * nptl/tst-tls4.c (TIMEOUT): Likewise.
6470         * posix/tst-chmod.c (TIMEOUT): Likewise.
6471         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6472         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6473         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6474         * posix/tst-regex2.c (TIMEOUT): Likewise.
6475         * posix/tst-waitid.c (TIMEOUT): Likewise.
6476         * rt/tst-aio.c (TIMEOUT): Likewise.
6477         * rt/tst-aio10.c (TIMEOUT): Likewise.
6478         * rt/tst-aio4.c (TIMEOUT): Likewise.
6479         * rt/tst-aio5.c (TIMEOUT): Likewise.
6480         * rt/tst-aio6.c (TIMEOUT): Likewise.
6481         * rt/tst-aio64.c (TIMEOUT): Likewise.
6482         * rt/tst-aio7.c (TIMEOUT): Likewise.
6483         * rt/tst-aio9.c (TIMEOUT): Likewise.
6484         * rt/tst-clock.c (TIMEOUT): Likewise.
6485         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6486         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6487         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6488         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6489         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6490         * rt/tst-timer4.c (TIMEOUT): Likewise.
6491         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6492         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6493         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6494         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6495         * time/tst-ftime.c (TIMEOUT): Likewise.
6496         * timezone/tst-tzset.c (TIMEOUT): Likewise.
6498 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6500         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6501         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6502         for thunderX2.
6504 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
6506         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6507         bits/sem-pad.h.
6508         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6509         instead of <bits/wordsize.h>.
6510         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6511         and [__SEM_PAD_AFTER_TIME].
6512         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
6513         __syscall_ulong_t instead of unsigned long int.
6514         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6515         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6516         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6517         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6518         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6519         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6520         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6521         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6522         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6523         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6524         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6526 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6528         regex: simplify by using intprops.h
6529         [BZ#23744]
6530         * posix/regex_internal.h [_LIBC]: Include intprops.h.
6531         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6532         intprops.h defines them.
6534         regex: __builtin_expect → __glibc_unlikely
6535         [BZ#23744]
6536         This refactoring was prompted by a problem when the regex code is
6537         used as part of Gnulib and when the builder’s compiler does not grok
6538         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
6539         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6540         Although this refactoring does not fix the problem directly,
6541         we might as well have Gawk use the now-preferred glibc style for when
6542         __builtin_expect is unavailable.
6543         * posix/regex_internal.h (BE): Remove.
6544         All uses replaced by __glibc_unlikely or __glibc_likely.
6546 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
6548         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6549         bits/msq-pad.h.
6550         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6551         instead of <bits/wordsize.h>.
6552         (msgqnum_t): Define as __syscall_ulong_t.
6553         (msglen_t): Likewise.
6554         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6555         and [__MSQ_PAD_AFTER_TIME].
6556         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
6557         __syscall_ulong_t instead of unsigned long int.
6558         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6559         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6560         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6561         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6562         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6563         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6564         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6565         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6566         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6567         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6568         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6570 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
6572         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6573         (struct shmid_ds): Condition padding after time fields on
6574         [__WORDSIZE == 32].
6575         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6576         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6577         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6579         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6580         (struct semid_ds): Condition padding after time fields on
6581         [__WORDSIZE == 32].
6582         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6583         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6584         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6585         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6587         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6588         (struct msqid_ds): Condition padding after time fields on
6589         [__WORDSIZE == 32].
6590         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6591         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6592         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6593         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6595 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6597         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6599 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6601         * libio/tst-readline.c (TIMEOUT): Define.
6603 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6605         mktime fix for Gnulib + coreutils
6606         [BZ#23745]
6607         This fix affects only Gnulib.  Problem discovered when
6608         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6609         * time/mktime.c:
6610         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6611         Do not define since it is not used.  Defining an unused static
6612         function prompts a warning from GCC when Coreutils is configured
6613         with --enable-gcc-warnings.
6615 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6617         * benchtests/scripts/compare_bench.py (main): set float type on
6618         threshold argument.
6620 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
6622         [BZ #23740]
6623         * localedata/locales/kl_GL (mon): Update, the relative case.
6624         (alt_mon): Add, fill with month names in the nominative case.
6625         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6626         (d_fmt): Set to "%b %d %Y".
6628 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
6630         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6631         <bits/mman-linux.h>.
6632         (PROT_READ): Don't define here.
6633         (PROT_WRITE): Likewise.
6634         (PROT_EXEC): Likewise.
6635         (PROT_NONE): Likewise.
6636         (PROT_GROWSDOWN): Likewise.
6637         (PROT_GROWSUP): Likewise.
6638         (MAP_SHARED): Likewise.
6639         (MAP_PRIVATE): Likewise.
6640         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6641         [__USE_MISC] (MAP_FILE): Likewise.
6642         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6643         [__USE_MISC] (MAP_ANON): Likewise.
6644         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6645         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6646         (MCL_CURRENT): Likewise.
6647         (MCL_FUTURE): Likewise.
6648         (MCL_ONFAULT): Likewise.
6649         [__USE_MISC] (MADV_NORMAL): Likewise.
6650         [__USE_MISC] (MADV_RANDOM): Likewise.
6651         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6652         [__USE_MISC] (MADV_WILLNEED): Likewise.
6653         [__USE_MISC] (MADV_DONTNEED): Likewise.
6654         [__USE_MISC] (MADV_FREE): Likewise.
6655         [__USE_MISC] (MADV_REMOVE): Likewise.
6656         [__USE_MISC] (MADV_DONTFORK): Likewise.
6657         [__USE_MISC] (MADV_DOFORK): Likewise.
6658         [__USE_MISC] (MADV_HWPOISON): Likewise.
6659         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6660         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6661         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6662         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6663         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6664         (__MAP_ANONYMOUS): New macro.
6665         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6666         <bits/mman-linux.h> inclusion.
6667         (MAP_FIXED): Likewise.
6668         (MS_SYNC): Likewise.
6669         (MS_ASYNC): Likewise.
6670         (MS_INVALIDATE): Likewise.
6671         [__USE_MISC] (MADV_MERGEABLE): Likewise.
6672         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6673         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6674         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6675         [__USE_MISC] (MADV_DONTDUMP): Likewise.
6676         [__USE_MISC] (MADV_DODUMP): Likewise.
6677         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6678         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6680         [BZ #23735]
6681         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6682         Define.
6683         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6684         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6685         Add test-nldbl-redirect.
6686         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6687         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6688         $(objpfx)libnldbl_nonshared.a.
6690 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
6692         * support/support.h (support_objdir_elf_ldso): New variable.
6693         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6694         * support/Makefile (CFLAGS-support_paths.c): Add definition
6695         for OBJDIR_ELF_LDSO_PATH.
6696         * support/test-container.c (main): Search for the ld.so
6697         which is also used by the testsuite.
6699 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
6701         [BZ #20209]
6702         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6703         should be "sap" rather than "sab".
6704         (day): Fix spelling of Sunday, should be "sapaat" rather than
6705         "sabaat".
6707 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
6709         * math/libm-test-fma.inc (fma_test_data): Add more tests.
6711 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
6713         [BZ #19444]
6714         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6715         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6716         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6718 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6720         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6722 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6724         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6725         Add -mrtm.
6726         (CFLAGS-elision-unlock.c): Likewise.
6727         (CFLAGS-elision-timed.c): Likewise.
6728         (CFLAGS-elision-trylock.c): Likewise.
6729         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6731 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6733         [BZ #21037]
6734         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6735         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6736         new fd_to_filename interface.
6737         * libio/freopen64.c (freopen64): Likewise.
6738         * libio/tst-memstream.h: New file.
6739         * libio/tst-memstream4.c: Likewise.
6740         * libio/tst-wmemstream4.c: Likewise.
6741         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6742         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6743         and remove internal dynamic allocation.
6745 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
6747         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6748         (MREMAP_MAYMOVE): Do not define here.
6749         [__USE_GNU] (MREMAP_FIXED): Likewise.
6750         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6751         (MREMAP_MAYMOVE): Define here instead.
6752         [__USE_GNU] (MREMAP_FIXED): Likewise.
6753         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6754         (MREMAP_MAYMOVE): Remove.
6755         [__USE_GNU] (MREMAP_FIXED): Likewise.
6757 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
6759         * math/fromfp.h: Do not include <math_private.h>.
6760         * math/s_cacosh_template.c: Likewise.
6761         * math/s_casin_template.c: Likewise.
6762         * math/s_casinh_template.c: Likewise.
6763         * math/s_ccos_template.c: Likewise.
6764         * math/s_cproj_template.c: Likewise.
6765         * math/s_fdim_template.c: Likewise.
6766         * math/s_fmaxmag_template.c: Likewise.
6767         * math/s_fminmag_template.c: Likewise.
6768         * math/s_iseqsig_template.c: Likewise.
6769         * math/s_ldexp_template.c: Likewise.
6770         * math/s_nextdown_template.c: Likewise.
6771         * math/w_log1p_template.c: Likewise.
6772         * math/w_scalbln_template.c: Likewise.
6773         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6774         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6775         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6776         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6777         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6778         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6779         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6780         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6781         * sysdeps/i386/fpu/s_atanl.c: Likewise.
6782         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6783         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6784         * sysdeps/i386/fpu/s_fdim.c: Likewise.
6785         * sysdeps/i386/fpu/s_logbl.c: Likewise.
6786         * sysdeps/i386/fpu/s_rintl.c: Likewise.
6787         * sysdeps/i386/fpu/s_significandl.c: Likewise.
6788         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6789         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6790         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6791         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6792         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6793         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6794         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6795         * sysdeps/ieee754/k_standardf.c: Likewise.
6796         * sysdeps/ieee754/k_standardl.c: Likewise.
6797         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6798         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6799         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6800         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6801         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6802         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6803         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6804         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6805         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6806         * sysdeps/ieee754/s_signgam.c: Likewise.
6807         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6808         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6809         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6810         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6811         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6812         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6813         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6814         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6815         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6816         * sysdeps/riscv/rvd/s_finite.c: Likewise.
6817         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6818         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6819         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6820         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6821         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6822         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6823         * sysdeps/riscv/rvf/fegetround.c: Likewise.
6824         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6825         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6826         * sysdeps/riscv/rvf/fesetround.c: Likewise.
6827         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6828         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6829         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6830         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6831         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6832         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6833         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6834         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6835         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6836         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6837         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6838         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6839         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6840         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6841         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6842         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6843         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6844         <math_private.h>.
6845         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6847 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
6849         [BZ #23716]
6850         * sysdeps/i386/dl-cet.c: Removed.
6851         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6852         prototype.
6853         (_dl_runtime_profile_shstk): Likewise.
6854         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6855         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6857 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6859         [BZ #23579]
6860         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6861         do_test_with_invalid_iov): New tests.
6862         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6863         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6864         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6865         errno is ENOSYS.
6866         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6867         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6868         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6870 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
6872         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6873         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6874         (MATH_REDIRECT_BINARY_ARGS): New macro.
6875         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6876         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6877         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6878         header inclusion.
6879         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6880         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6881         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6882         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6883         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6884         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6885         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6886         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6887         Likewise.
6888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6889         Likewise.
6890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6891         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6892         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6893         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6895         Likewise.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6897         Likewise.
6898         * sysdeps/generic/math_private_calls.h
6899         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6900         Do not declare and define as an inline function.
6901         * math/divtc3.c (__divtc3): Use copysign functions instead of
6902         __copysign variants.
6903         * math/multc3.c (__multc3): Likewise.
6904         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6905         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6906         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6907         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6908         Likewise.
6909         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6910         (__ieee754_yn): Likewise.
6911         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6912         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6913         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6914         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6915         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6916         (__sin): Likewise.
6917         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6918         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6919         Likewise.
6920         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6921         Likewise.
6922         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6923         Likewise.
6924         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6925         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6926         Likewise.
6927         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6928         (__ieee754_ynf): Likewise.
6929         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6930         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6931         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6932         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6933         Likewise.
6934         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6935         (__ieee754_ynl): Likewise.
6936         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6937         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6938         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6939         Likewise.
6940         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6941         (__ieee754_ynl): Likewise.
6942         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6943         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6944         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6945         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6946         Likewise.
6947         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6948         (__ieee754_ynl)
6949         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6950         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6951         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6952         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6953         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6955         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6956         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6957         using MATH_REDIRECT.
6958         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6959         header inclusion.
6960         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6961         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6962         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6963         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6964         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6968         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6970         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6971         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6972         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6973         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6974         (round): Redirect to __round.
6975         (__roundl): Call round instead of __round.
6976         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6977         Remove macro.
6978         [_ARCH_PWR5X] (__roundf): Likewise.
6979         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6980         functions instead of __round variants.
6981         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6982         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6983         Likewise.
6984         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6985         Likewise.
6986         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6987         Likewise.
6988         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6989         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6990         __lroundl.
6991         (__ieee754_expl): Call roundl instead of __roundl.
6993 2018-09-27  Andreas Schwab  <schwab@suse.de>
6995         [BZ #23717]
6996         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6997         (do_test): Make st1 static.
6999 2018-09-26  Andreas Schwab  <schwab@suse.de>
7001         [BZ #23707]
7002         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7003         * elf/Makefile (tests): Add tst-unwind-ctor.
7004         (modules-names): Add tst-unwind-ctor-lib.
7005         ($(objpfx)tst-unwind-ctor): Depend on
7006         $(objpfx)tst-unwind-ctor-lib.so.
7008 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
7010         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7011         file.  Most contents moved from ....
7012         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
7013         and include <bits/mman-map-flags-generic.h>.
7014         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7015         (sysdep_headers): Add bits/mman-map-flags-generic.h.
7016         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7017         <bits/mman-map-flags-generic.h>.
7018         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7019         macros defined in <bits/mman-map-flags-generic.h>.
7020         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7021         <bits/mman-map-flags-generic.h>.
7022         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7023         defined in <bits/mman-map-flags-generic.h>.
7025 2018-09-26  Andreas Schwab  <schwab@suse.de>
7027         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7028         output.
7030 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
7031             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7032             Fangrui Song  <maskray@google.com>
7034         [BZ #20480]
7035         * config.make.in (have-textrel_ifunc): New define.
7036         * configure.ac: Add check if linker supports textrel relocation with
7037         ifunc.
7038         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7039         tst-ifunc-textrel.
7040         (CFLAGS-tst-ifunc-textrel.c): New rule.
7041         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7042         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7043         * elf/tst-ifunc-textrel.c: New file.
7045 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
7047         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7048         <bits/procfs-prregset.h>.
7049         (prgregset_t): Define using __prgregset_t.
7050         (prfpregset_t): Define using __prfpregset_t.
7051         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7052         (sysdep_headers): Add bits/procfs-prregset.h.
7053         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7054         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7055         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7056         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7058         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7059         <bits/procfs-id.h> and <bits/procfs-extra.h>.
7060         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7061         pr_uid and pr_gid.
7062         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7063         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7064         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7065         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7066         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7067         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7068         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7069         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7070         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7071         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7072         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7073         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7074         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7075         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7076         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7077         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7078         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7079         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7080         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7081         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7082         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7083         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7084         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7085         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7087         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7088         AArch64 version.  Include <bits/procfs.h>.
7089         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7090         (sysdep_headers): Add bits/procfs.h.
7091         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7092         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7093         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7094         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7095         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7096         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7097         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7098         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7099         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7100         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7101         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7102         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7103         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7104         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7105         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7106         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7107         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7109 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7111         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7112         Use libsupport.
7114 2018-09-25  Arjun Shankar  <arjun@redhat.com>
7116         * iconv/gconv_int.h (__gconv_path_elem): Remove.
7117         (__gconv_max_path_elem_len): Likewise.
7118         (__gconv_nmodules): Likewise.
7119         (__gconv_get_path): Likewise.
7120         (path_elem): Move to ...
7121         * iconv/gconv_conf.c: ... here.
7122         (__gconv_get_path): Mark function static.
7123         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7124         * iconv/gconv_open.c: ... here.
7126 2018-09-24  Andreas Schwab  <schwab@suse.de>
7128         * scripts/haveversions.awk: New file.
7129         * Makerules ($(common-objpfx)Versions.def)
7130         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7131         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7132         Move rules ...
7133         * Makeconfig ($(common-objpfx)Versions.def)
7134         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7135         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7136         ... here.
7137         ($(common-objpfx)Versions.mk): New rule.  Include it.
7138         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7139         Emit error if build-obsolete-nsl = yes.
7140         * manual/install.texi (Configuring and compiling): Describe
7141         --enable-obsolete-nsl as unavaiable after version 2.28.
7142         * INSTALL: Regenerate.
7144 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7146         * NEWS: Add note about new TLE support on powerpc64le.
7147         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7148         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7149         __ununsed1.
7150         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7151         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7152         * sysdeps/powerpc/powerpc32/sysdep.h,
7153         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7154         ABORT_TRANSACTION): Remove macros.
7155         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7156         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7157         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7159         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7160         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7161         usage.
7162         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7164 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
7166         [BZ #10425]
7167         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7168         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7169         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7170         which is the same as in it_IT.
7171         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7172         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7174 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
7176         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7177         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7178         using MATH_REDIRECT.
7179         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7180         header inclusion.
7181         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7182         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7183         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7184         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7185         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7186         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7191         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7192         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7193         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7194         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7195         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7196         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7197         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7198         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7199         (ceil): Redirect to __ceil.
7200         (floor): Redirect to __floor.
7201         (trunc): Redirect to __trunc.
7202         (__truncl): Call trunc instead of __trunc.
7203         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7204         Remove macro.
7205         [_ARCH_PWR5X] (__truncf): Likewise.
7206         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7207         trunc functions instead of __trunc variants.
7208         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7209         Likewise.
7210         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7211         Likewise.
7212         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7213         Likewise.
7214         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7215         Likewise.
7217         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7218         [__i586__ || __pentium__].
7219         [__i486__]: Handle explicitly.
7220         (HAS_CPUID): Define to 1 if above macros are undefined.
7221         (HAS_I586): Likewise.
7222         (HAS_I686): Likewise.
7224 2018-09-20  Florian Weimer  <fweimer@redhat.com>
7226         * misc/tst-gethostid.c: New file.
7227         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7228         (tst-gethostid): Link with -ldl.
7230 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
7232         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7233         value from gethostbyname_r.
7235 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
7237         * stdlib/tst-setcontext9.c (f1): Rename to...
7238         (f1a): ... this.
7239         (f1b): New function implementing lower half of f1 in alternate stack.
7241 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7243         Fix mktime localtime offset confusion
7244         [BZ #23603]
7245         * include/time.h (__mktime_internal): The localtime offset is now
7246         of type long int instead of time_t.  This is the longstanding type
7247         in glibc, and it is more than enough to represent difference
7248         between localtime and gmtime even if it is 32 bits and time_t is
7249         64.  Changing it now will let us avoid an unnecessary change when
7250         time_t is widened to 64 bits on 32-bit platforms.
7251         * time/mktime-internal.h (mktime_offset_t): Now long int.
7253         Merge mktime, timegm from upstream Gnulib
7254         [BZ #23603][BZ #16346]
7255         This fixes some obscure problems with integer overflow.
7256         Although it looks scary, it is almost all a byte-for-byte copy
7257         from Gnulib, and the Gnulib code has been tested reasonably well.
7258         * include/intprops.h: New file, copied from Gnulib.
7259         * include/verify.h, time/mktime-internal.h:
7260         New tiny files, simplified from Gnulib.
7261         * time/mktime.c: Copy from Gnulib.  This has the following changes:
7262         Do not include config.h if DEBUG_MKTIME is nonzero.
7263         Include stdbool.h, intprops.h, verify.h.
7264         Include string.h only if needed.
7265         Include stdlib.h on MS-Windows.
7266         Include mktime-internal.h.
7267         (DEBUG_MKTIME): Default to 0, and simplify later uses.
7268         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7269         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7270         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7271         simplify later conditionals; default the others to zero.  Use
7272         these conditionals to express only the code needed on the current
7273         platform.  In uses of these conditionals, explicitly spell out how
7274         _LIBC affects things, so it’s easier to review from a glibc
7275         viewpoint.
7276         (WRAPV): Remove; no longer needed now that we have
7277         systematic overflow checking.
7278         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7279         compartmentalize tzset issues.  Move system-dependent tzsettish
7280         code here from mktime.
7281         (verify): Remove; now done by verify.h.  All uses changed.
7282         (long_int): Use a more-conservative definition, to avoid
7283         integer overflow.
7284         (SHR): Remove, replacing with ...
7285         (shr): New function, which means we needn’t worry about side
7286         effects in args, and conversion analysis is simpler.
7287         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7288         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7289         (time_t_avg, time_t_add_ok): Remove.
7290         (mktime_min, mktime_max): New constants.
7291         (leapyear, isdst_differ): Use bool for booleans.
7292         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7293         Use long_int, not time_t, for mktime differences.
7294         (long_int_avg): New function, replacing time_t_avg.
7295         INT_ADD_WRAPV replaces time_t_add_ok.
7296         (guess_time_tm): 6th arg is now long_int, not time_t const *.
7297         All uses changed.
7298         (convert_time): New function.
7299         (ranged_convert): Use it.
7300         (__mktime_internal): Last arg now points to mktime_offset_t, not
7301         time_t.  All uses changed.  This is a no-op on glibc, where
7302         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
7303         offset guess.  Directly check for integer overflow instead of
7304         using a heuristic that works only 99.9...% of the time.
7305         Access *OFFSET only once, to avoid an unlikely race if the
7306         compiler delays a load and if this cascades into a signed integer
7307         overflow.
7308         (mktime): Move tzsettish code to my_tzset, and move
7309         localtime_offset to within mktime so that it doesn’t
7310         need a separate ifdef.
7311         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7312         instead of localtime.
7313         * time/timegm.c: Copy from Gnulib.  This has the following changes:
7314         Include mktime-internal.h.
7315         [!_LIBC]: Include config.h and time.h.  Do not include
7316         timegm.h or time_r.h.  Make __mktime_internal a macro,
7317         and include mktime-internal.h to get its declaration.
7318         (timegm): Temporary is now mktime_offset_t, not time_t.
7319         This affects only Gnulib.
7321 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
7323         [BZ #23637]
7324         * string/test-strstr.c (pr23637): New function.
7325         (test_main): Add tests with longer needles.
7326         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7327         * string/strstr.c (AVAILABLE): Likewise.
7329 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7331         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7333 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7335         * NEWS: Mention pow improvements.
7336         * math/Makefile (type-double-routines): Add e_pow_log_data.
7337         * sysdeps/generic/math_private.h (__exp1): Remove.
7338         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7339         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7340         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7341         contraction.
7342         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7343         (exp_inline): Remove.
7344         (__ieee754_exp): Only single double input is handled.
7345         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7346         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7347         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7348         (__pow_log_data): Define.
7349         * sysdeps/ieee754/dbl-64/upow.h: Remove.
7350         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7351         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7352         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7353         contraction.
7354         (CFLAGS-e_pow-fma4.c): Likewise.
7356 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7358         Simplify tzfile fstat failure code
7359         [BZ #21716]
7360         * time/tzfile.c (__tzfile_read): Simplify slightly.
7362         Fix tzfile low-memory assertion failure
7363         [BZ #21716]
7364         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7365         when registering time zone abbreviations.
7367 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
7369         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7370         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7371         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7372         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7373         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7374         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7375         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7376         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7377         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7379         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7380         __ceil.
7381         (__ceill): Call ceil instead of __ceil.
7382         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7383         __floor.
7384         (__floorl): Call floor instead of __floor.
7386 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
7388         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7389         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7390         using MATH_REDIRECT.
7391         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7392         header inclusion.
7393         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7394         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7395         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7396         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7397         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7398         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7399         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7400         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7404         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7405         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7406         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7407         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7408         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7409         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7410         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7411         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7412         Remove macro.
7413         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7414         functions instead of __ceil variants.
7415         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7416         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7417         Likewise.
7418         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7419         Likewise.
7420         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7421         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7422         Likewise.
7423         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7424         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7426         [BZ #21286]
7427         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7428         constant.
7429         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7430         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7431         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7432         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7433         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7434         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7435         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7436         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7437         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7438         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7439         (ILL_BADIADDR): Remove constant.
7440         (TRAP_BRANCH): Likewise.
7441         (TRAP_HWBKPT): Likewise.
7443 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
7445         [BZ #23656]
7446         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7447         Remove [_MIPS_SIM = _ABIN32] conditional case.
7448         (struct elf_prpsinfo): Likewise.
7450         [BZ #23649]
7451         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7452         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7453         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7454         Likewise.
7455         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7456         elf_prpsinfo): Likewise.
7457         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7458         elf_prpsinfo): Likewise.
7459         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7460         Likewise.
7462         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7463         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7464         using MATH_REDIRECT.
7465         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7466         header inclusion.
7467         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7468         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7469         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7470         * sysdeps/i386/fpu/s_rintl.c: Likewise.
7471         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7472         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7473         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7474         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7475         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7476         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7477         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7478         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7479         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7480         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7481         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7482         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7483         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7484         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7485         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7488         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7489         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7490         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7491         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7492         * sysdeps/x86_64/fpu/math_private.h: Remove file.
7493         * math/e_scalb.c (invalid_fn): Use rint functions instead of
7494         __rint variants.
7495         * math/e_scalbf.c (invalid_fn): Likewise.
7496         * math/e_scalbl.c (invalid_fn): Likewise.
7497         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7498         Likewise.
7499         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7500         Likewise.
7501         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7502         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7503         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7504         Likewise.
7505         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7506         Likewise.
7507         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7508         Likewise.
7509         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7510         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7512         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7513         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7514         New macro.
7515         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7516         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7517         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7518         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7519         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7520         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7521         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7522         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7523         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7524         && !NO_MATH_REDIRECT] (floor): Likewise.
7525         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7526         header inclusion.
7527         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7528         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7529         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7530         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7531         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7532         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7533         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7534         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7536         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7538         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7539         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7540         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7541         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7542         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7543         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7544         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7545         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7546         Remove macro.
7547         [_ARCH_PWR5X] (__floorf): Likewise.
7548         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7549         inline function.
7550         [__SSE4_1__] (__floorf): Likewise.
7551         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7552         instead of __floor variants.
7553         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7554         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7555         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7556         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7557         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7558         * math/w_tgamma_compat.c (__tgamma): Likewise.
7559         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7560         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7561         * math/w_tgammal_compat.c (__tgammal): Likewise.
7562         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7563         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7564         Likewise.
7565         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7566         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7567         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7568         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7569         Likewise.
7570         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7571         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7572         Likewise.
7573         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7574         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7575         Likewise.
7576         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7577         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7578         Likewise.
7579         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7580         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7581         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7582         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7583         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7584         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7586 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
7588         * elf/Makefile (modules-names-tests): New variable.
7590 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7592         * NEWS: Mention log2 improvements.
7593         * math/Makefile (type-double-routines): Add e_log2_data.
7594         * sysdeps/i386/fpu/e_log2_data.c: New file.
7595         * sysdeps/ia64/fpu/e_log2_data.c: New file.
7596         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7597         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7598         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7599         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7600         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7602 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7604         * NEWS: Mention log improvement.
7605         * math/Makefile (type-double-routines): Add e_log_data.
7606         * sysdeps/i386/fpu/e_log_data.c: New file.
7607         * sysdeps/ia64/fpu/e_log_data.c: New file.
7608         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7609         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7610         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7611         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7612         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7613         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7615 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
7616             Xuepeng Guo  <xuepeng.guo@intel.com>
7618         [BZ #23606]
7619         * sysdeps/i386/start.S: Include <sysdep.h>
7620         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7621         enabled.  Add cfi_undefined (eip).
7623 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
7625         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7626         (MOVQ): Likewise.
7627         (EXTRACT_WORDS64): Likewise.
7628         (INSERT_WORDS64): Likewise.
7629         (GET_FLOAT_WORD): Likewise.
7630         (SET_FLOAT_WORD): Likewise.
7632         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7633         argument.
7634         (Config.build_gcc): Use --disable-libsanitizer for first GCC
7635         build, but not for second build if --full-gcc.  Use
7636         --enable-languages=all for second build if --full-gcc.
7637         (get_parser): Add --full-gcc option.
7638         (main): Update call to Context.
7640 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
7642         [BZ #10797]
7643         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7644         Single Quotation Mark).
7645         (thousands_sep): Likewise.
7646         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7647         * localedata/locales/it_IT (thousands_sep): Use ".".
7648         (grouping): Use "3;3".
7650 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
7652         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7653         x86_64 and i686 configs using --enable-obsolete-rpc
7654         --enable-obsolete-nsl.
7656 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
7658         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7660 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
7662         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7663         Increment size of new_argv by one.
7665 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
7667         [BZ #17426]
7668         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7669         * localedata/locales/ar_IN (d_fmt): Likewise.
7670         * localedata/locales/bhb_IN (d_fmt): Likewise.
7671         * localedata/locales/bho_IN (d_fmt): Likewise.
7672         * localedata/locales/bn_BD (d_fmt): Likewise.
7673         * localedata/locales/bn_IN (d_fmt): Likewise.
7674         * localedata/locales/doi_IN (d_fmt): Likewise.
7675         * localedata/locales/gu_IN (d_fmt): Likewise.
7676         * localedata/locales/hi_IN (d_fmt): Likewise.
7677         * localedata/locales/hne_IN (d_fmt): Likewise.
7678         * localedata/locales/kn_IN (d_fmt): Likewise.
7679         * localedata/locales/mag_IN (d_fmt): Likewise.
7680         * localedata/locales/mai_IN (d_fmt): Likewise.
7681         * localedata/locales/mjw_IN (d_fmt): Likewise.
7682         * localedata/locales/ml_IN (d_fmt): Likewise.
7683         * localedata/locales/mni_IN (d_fmt): Likewise.
7684         * localedata/locales/mr_IN (d_fmt): Likewise.
7685         * localedata/locales/pa_IN (d_fmt): Likewise.
7686         * localedata/locales/raj_IN (d_fmt): Likewise.
7687         * localedata/locales/sat_IN (d_fmt): Likewise.
7688         * localedata/locales/sd_IN (d_fmt): Likewise.
7689         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7690         * localedata/locales/ta_IN (d_fmt): Likewise.
7691         * localedata/locales/ta_LK (d_fmt): Likewise.
7692         * localedata/locales/tcy_IN (d_fmt): Likewise.
7693         * localedata/locales/ur_IN (d_fmt): Likewise.
7695         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7696         * localedata/locales/ks_IN (d_fmt): Likewise.
7697         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7699         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7700         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7701         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7702         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7704 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7706         * NEWS: Mention exp and exp2 improvements.
7707         * math/Makefile (libm-support): Remove t_exp.
7708         (type-double-routines): Add math_err and e_exp_data.
7709         * sysdeps/aarch64/libm-test-ulps: Update.
7710         * sysdeps/arm/libm-test-ulps: Update.
7711         * sysdeps/i386/fpu/e_exp_data.c: New file.
7712         * sysdeps/i386/fpu/math_err.c: New file.
7713         * sysdeps/i386/fpu/t_exp.c: Remove.
7714         * sysdeps/ia64/fpu/e_exp_data.c: New file.
7715         * sysdeps/ia64/fpu/math_err.c: New file.
7716         * sysdeps/ia64/fpu/t_exp.c: Remove.
7717         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7718         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7719         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7720         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7721         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7722         * sysdeps/ieee754/dbl-64/math_config.h: New file.
7723         * sysdeps/ieee754/dbl-64/math_err.c: New file.
7724         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7725         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7726         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7727         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7728         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7729         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7730         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7731         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7732         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7734 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
7736         * sysdeps/alpha/fpu/math_private.h: Remove.
7738         * sysdeps/generic/math_private.h
7739         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7740         Move this inline function ....
7741         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7742         * include/math.h [!_ISOMAC]: To here....
7744 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
7746         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7747         code ....
7748         [!FE_HAVE_ROUNDING_MODES]: And this code ....
7749         * include/fenv.h [!_ISOMAC]: ... to here.
7750         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7751         (feraiseexcept): Likewise.
7752         * math/fromfp.h: Do not include <fenv_private.h>.
7753         * math/s_cexp_template.c: Likewise.
7754         * math/s_csin_template.c: Likewise.
7755         * math/s_csinh_template.c: Likewise.
7756         * math/s_ctan_template.c: Likewise.
7757         * math/s_ctanh_template.c: Likewise.
7758         * math/s_iseqsig_template.c: Likewise.
7759         * math/w_acos_compat.c: Likewise.
7760         * math/w_acosf_compat.c: Likewise.
7761         * math/w_acosl_compat.c: Likewise.
7762         * math/w_asin_compat.c: Likewise.
7763         * math/w_asinf_compat.c: Likewise.
7764         * math/w_asinl_compat.c: Likewise.
7765         * math/w_j0_compat.c: Likewise.
7766         * math/w_j0f_compat.c: Likewise.
7767         * math/w_j0l_compat.c: Likewise.
7768         * math/w_j1_compat.c: Likewise.
7769         * math/w_j1f_compat.c: Likewise.
7770         * math/w_j1l_compat.c: Likewise.
7771         * math/w_jn_compat.c: Likewise.
7772         * math/w_jnf_compat.c: Likewise.
7773         * math/w_log10_compat.c: Likewise.
7774         * math/w_log10f_compat.c: Likewise.
7775         * math/w_log10l_compat.c: Likewise.
7776         * math/w_log2_compat.c: Likewise.
7777         * math/w_log2f_compat.c: Likewise.
7778         * math/w_log2l_compat.c: Likewise.
7779         * math/w_log_compat.c: Likewise.
7780         * math/w_logf_compat.c: Likewise.
7781         * math/w_logl_compat.c: Likewise.
7782         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7783         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7784         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7785         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7786         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7787         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7788         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7789         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7790         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7791         * sysdeps/ieee754/k_standardl.c: Likewise.
7792         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7793         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7794         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7795         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7796         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7797         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7798         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7799         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7800         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7801         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7802         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7803         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7804         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7805         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7806         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7807         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7808         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7809         * math/w_ilogb_template.c: Include <fenv.h> instead of
7810         <fenv_private.h>.
7811         * math/w_llogb_template.c: Likewise.
7812         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7813         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7815 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
7817         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7818         * math/fromfp.h: Include <fenv_private.h>.
7819         * math/math-narrow.h: Likewise.
7820         * math/s_cexp_template.c: Likewise.
7821         * math/s_csin_template.c: Likewise.
7822         * math/s_csinh_template.c: Likewise.
7823         * math/s_ctan_template.c: Likewise.
7824         * math/s_ctanh_template.c: Likewise.
7825         * math/s_iseqsig_template.c: Likewise.
7826         * math/w_acos_compat.c: Likewise.
7827         * math/w_acosf_compat.c: Likewise.
7828         * math/w_acosl_compat.c: Likewise.
7829         * math/w_asin_compat.c: Likewise.
7830         * math/w_asinf_compat.c: Likewise.
7831         * math/w_asinl_compat.c: Likewise.
7832         * math/w_ilogb_template.c: Likewise.
7833         * math/w_j0_compat.c: Likewise.
7834         * math/w_j0f_compat.c: Likewise.
7835         * math/w_j0l_compat.c: Likewise.
7836         * math/w_j1_compat.c: Likewise.
7837         * math/w_j1f_compat.c: Likewise.
7838         * math/w_j1l_compat.c: Likewise.
7839         * math/w_jn_compat.c: Likewise.
7840         * math/w_jnf_compat.c: Likewise.
7841         * math/w_llogb_template.c: Likewise.
7842         * math/w_log10_compat.c: Likewise.
7843         * math/w_log10f_compat.c: Likewise.
7844         * math/w_log10l_compat.c: Likewise.
7845         * math/w_log2_compat.c: Likewise.
7846         * math/w_log2f_compat.c: Likewise.
7847         * math/w_log2l_compat.c: Likewise.
7848         * math/w_log_compat.c: Likewise.
7849         * math/w_logf_compat.c: Likewise.
7850         * math/w_logl_compat.c: Likewise.
7851         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7852         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7853         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7854         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7855         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7856         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7857         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7858         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7859         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7860         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7861         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7862         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7863         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7864         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7865         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7866         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7867         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7868         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7869         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7870         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7871         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7872         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7873         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7874         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7875         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7876         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7877         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7878         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7879         * sysdeps/ieee754/float128/float128_private.h: Likewise.
7880         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7881         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7882         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7883         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7884         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7885         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7886         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7887         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7888         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7889         * sysdeps/ieee754/k_standardl.c: Likewise.
7890         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7891         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7892         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7893         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7894         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7895         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7896         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7897         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7898         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7899         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7900         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7901         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7902         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7903         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7904         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7905         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7906         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7907         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7908         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7909         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7910         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7911         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7912         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7913         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7914         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7915         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7916         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7917         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7918         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7919         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7920         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7921         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7922         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7923         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7924         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7925         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7926         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7927         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7928         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7929         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7930         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7931         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7932         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7933         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7934         * sysdeps/riscv/rvd/s_finite.c: Likewise.
7935         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7936         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7937         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7938         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7939         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7940         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7941         * sysdeps/riscv/rvf/fegetround.c: Likewise.
7942         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7943         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7944         * sysdeps/riscv/rvf/fesetround.c: Likewise.
7945         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7946         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7947         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7948         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7949         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7950         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7951         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7952         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7953         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7954         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7955         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7956         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7957         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7958         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7959         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7960         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7962 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
7964         [BZ #20271]
7965         * include/stdio.h (__libc_fatal): Mention newline in comment.
7966         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7967         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7968         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7969         * nss/nsswitch.c (__nss_next2): Likewise.
7970         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7971         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7972         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7973         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7974         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7975         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7976         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7977         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7978         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7979         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7980         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7981         * sysdeps/unix/sysv/linux/netlink_assert_response.c
7982         (__netlink_assert_response): Likewise.
7984 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
7986         * conform/glibcconform.py: New file.
7987         * conform/list-header-symbols.py: Likewise.
7988         * conform/list-header-symbols.pl: Remove.
7989         * conform/Makefile (tests-special): Only add linknamespace tests
7990         if [PYTHON].
7991         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7993 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
7995         [BZ #23597]
7996         * support/Makefile (libsupport-routines): Add
7997         support_copy_file_range and xcopy_file_range.
7998         * support/support.h: Include <sys/types.h>.
7999         (support_copy_file_range): New prototype.
8000         * support/support_copy_file_range.c: New file.  Copied and
8001         modified from io/copy_file_range-compat.c.
8002         * support/test-container.c (copy_one_file): Call xcopy_file_rang
8003         instead of copy_file_range.
8004         * support/xcopy_file_range.c: New file.
8005         * support/xunistd.h (xcopy_file_range): New prototype.
8007 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
8009         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8010         xpthread_create and xpthread_join.
8012 2018-08-30  Florian Weimer  <fweimer@redhat.com>
8014         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8016 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
8018         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8019         if malloc fails.
8021 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
8023         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8024         and minus_oflow as non-finite.
8026 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
8028         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
8029         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
8030         moved to fenv_private.h except for ...
8031         (TOINT_INTRINSICS): Kept in math_private.h.
8032         (roundtoint): Likewise.
8033         (converttoint): Likewise.
8034         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8035         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8036         * sysdeps/arm/math_private.h: Remove.
8037         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
8038         ....
8039         * sysdeps/generic/math_private.h: ... this file.  Include
8040         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
8041         Include <fenv_private.h>.  Remove functions and macros moved to
8042         fenv_private.h.
8043         * sysdeps/i386/fpu/math_private.h: Remove.
8044         * sysdeps/mips/math_private.h: Move to ....
8045         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
8046         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
8047         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
8048         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8049         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8050         * sysdeps/powerpc/fpu/math_private.h: Do not include
8051         <fenv_private.h>.
8052         * sysdeps/riscv/rvf/math_private.h: Move to ....
8053         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
8054         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
8055         <fenv_private.h>.
8056         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8057         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8058         * sysdeps/sparc/fpu/math_private.h: Remove.
8059         * sysdeps/i386/fpu/fenv_private.h: Move to ....
8060         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
8061         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
8062         <fenv_private.h>.
8063         * sysdeps/x86_64/fpu/math_private.h: Do not include
8064         <sysdeps/i386/fpu/fenv_private.h>.
8066 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8068         [BZ #23578]
8069         * posix/tst-regcomp-truncated.c: New file.
8070         * posix/Makefile (tests): Add it.
8071         (tst-regcomp-truncated.out): Depend on generated locales.
8073 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8075         * support/test-container.c (main): Treat unshare failure with
8076         EPERM as an unsupported test.
8078 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8080         [BZ #23520]
8081         nscd: Fix use-after-free in addgetnetgrentX and its callers.
8082         * nscd/netgroupcache.c
8083         (addgetnetgrentX): Add tofreep parameter.  Do not free
8084         heap-allocated buffer.
8085         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8086         (addgetnetgrentX_ignore): New function.
8087         (addgetnetgrent): Call it.
8088         (readdgetnetgrent): Likewise.
8090 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8092         * string/memmem.c: Use memcmp for first match.
8094 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
8096         [BZ #17426]
8097         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8099 2018-08-27  DJ Delorie  <dj@redhat.com>
8101         * support/Makefile (others): Don't list programs explicitly as a
8102         dependency of "others".
8104 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
8106         * sysdeps/generic/math-tests-trap-force.h: New file.
8107         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8108         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8109         * sysdeps/powerpc/math-tests.h: Remove file.
8110         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8112 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
8113            Torvald Riegel  <triegel@redhat.com>
8115         [BZ #23538]
8116         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8117         Update r to include the set wake-request flag if waiters are
8118         remaining after spinning.
8120 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
8122         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8124 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8126         [BZ #23578]
8127         regex: fix uninitialized memory access
8128         I introduced this bug into gnulib in commit
8129         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8130         eventually it was merged into glibc.  The bug was found by
8131         project-repo <bugs@feusi.co> and reported here:
8132         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8133         Diagnosis and draft fix reported by Assaf Gordon here:
8134         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8135         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8136         * posix/regex_internal.c (build_wcs_upper_buffer):
8137         Fix bug when mbrtowc returns 0.
8139 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
8141         * po/be.po: Update translation.
8143 2018-08-24  DJ Delorie  <dj@delorie.com>
8145         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8146         $(libunwind).
8148 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
8150         [BZ #23400]
8151         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8152         create temporary files in source tree.
8154 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
8156         * sysdeps/generic/math-tests-trap.h: New file.
8157         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8158         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8159         * sysdeps/aarch64/math-tests.h: Remove file.
8160         * sysdeps/arm/math-tests.h: Likewise.
8161         * sysdeps/riscv/math-tests.h: Likewise.
8162         * sysdeps/aarch64/math-tests-trap.h: New file.
8163         * sysdeps/arm/math-tests-trap.h: Likewise.
8164         * sysdeps/riscv/math-tests-trap.h: Likewise.
8166 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
8168         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8169         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8170         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8171         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8172         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8173         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8174         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8175         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8176         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8177         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8178         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8179         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8180         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8181         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8182         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8183         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8184         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8185         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8187 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
8189         * sysdeps/generic/math-tests-exceptions.h: New file.
8190         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8191         (EXCEPTION_TESTS_float): Do not define here.
8192         (EXCEPTION_TESTS_double): Likewise.
8193         (EXCEPTION_TESTS_long_double): Likewise.
8194         (EXCEPTION_TESTS_float128): Likewise.
8195         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8196         Likewise.
8197         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8198         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8199         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8200         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8201         * sysdeps/mips/math-tests.h: Likewise.
8202         * sysdeps/nios2/math-tests.h: Likewise.
8203         * sysdeps/riscv/math-tests.h [!__riscv_flen]
8204         (EXCEPTION_TESTS_float): Do not define here.
8205         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8206         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8207         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8209 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
8211         * NEWS: Move optimized sinf entry to 2.29.
8213 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
8215         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8217 2018-08-22  DJ Delorie  <dj@redhat.com>
8219         * Makefile (testroot.pristine): New rules to initialize the
8220         test-in-container "testroot".
8221         * Makerules (all-testsuite): Add tests-container.
8222         * Rules (tests-expected): Add tests-container.
8223         (binaries-all-tests): Likewise.
8224         (tests-container): New, run these tests in the testroot container.
8225         * support/Makefile (others): Add *-container, support_paths.c,
8226         xmkdirp, and links-dso-program.
8227         * support/links-dso-program-c.c: New.
8228         * support/links-dso-program.cc: New.
8229         * support/test-container.c: New.
8230         * support/shell-container.c: New.
8231         * support/echo-container.c: New.
8232         * support/true-container.c: New.
8233         * support/xmkdirp.c: New.
8234         * support/xsymlink.c: New.
8235         * support/support_paths.c: New.
8236         * support/support.h: Add support paths prototypes.
8237         * support/xunistd.h: Add xmkdirp () and xsymlink ().
8239         * nss/tst-nss-test3.c: Convert to test-in-container.
8240         * nss/tst-nss-test3.root/: New.
8242 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
8244         regex: port Gnulib code to z/OS POSIX environment
8245         Problem reported by Arnold Robbins in:
8246         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8247         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8248         Undef.
8250 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
8252         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8253         (ROUNDING_TESTS_double): Remove.
8254         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8255         (ROUNDING_TESTS_double): Remove.
8256         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8257         (ROUNDING_TESTS_double): Remove.
8258         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8259         (ROUNDING_TESTS_float): Remove.
8260         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8261         (ROUNDING_TESTS_float): Remove.
8262         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8263         (ROUNDING_TESTS_float): Remove.
8264         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8265         !TEST_MATHVEC here.
8266         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8267         (IF_ROUND_INIT_FE_UPWARD): Likewise.
8269         * sysdeps/generic/math-tests-rounding.h: New file.
8270         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8271         (ROUNDING_TESTS_float): Do not define here.
8272         (ROUNDING_TESTS_double): Likewise.
8273         (ROUNDING_TESTS_long_double): Likewise.
8274         (ROUNDING_TESTS_float128): Likewise.
8275         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8276         (ROUNDING_TESTS_double): Undefine before defining.
8277         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8278         (ROUNDING_TESTS_double): Undefine before defining.
8279         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8280         (ROUNDING_TESTS_double): Undefine before defining.
8281         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8282         (ROUNDING_TESTS_float): Undefine before defining.
8283         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8284         (ROUNDING_TESTS_float): Undefine before defining.
8285         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8286         (ROUNDING_TESTS_float): Undefine before defining.
8287         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8288         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8289         not define here.
8290         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8291         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8292         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8293         * sysdeps/riscv/math-tests.h [!__riscv_flen]
8294         (ROUNDING_TESTS_float): Do not define here.
8295         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8296         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8297         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8298         (ROUNDING_TESTS_float): Likewise.
8299         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8300         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8301         * sysdeps/mips/math-tests.h [__mips_soft_float]
8302         (ROUNDING_TESTS_float): Likewise.
8303         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8304         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8305         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8306         (ROUNDING_TESTS_double): Likewise.
8307         (ROUNDING_TESTS_long_double): Likewise.
8309 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
8311         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8312         (PF_XDP): New macro.
8313         (AF_XDP): New macro.
8314         (SOL_XDP): New macro.
8316 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
8318         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8319         (TCP_INQ): Likewise.
8320         (TCP_CM_INQ): Likewise.
8321         (TCP_REPAIR_ON): Likewise.
8322         (TCP_REPAIR_OFF): Likewise.
8323         (TCP_REPAIR_OFF_NO_WP): Likewise.
8324         (struct tcp_zerocopy_receive): New type.
8326 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8328         * support/support.h (support_descriptor_supports_holes): Declare.
8329         * support/Makefile (libsupport-routines): Add
8330         support_descriptor_supports_holes.
8331         * support/support_descriptor_supports_holes.c: New file.
8332         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8333         and stop testing if holes are not supported.
8334         * io/test-lfs.c (do_prepare): Likewise.
8335         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8336         Likewise.
8337         * timezone/tst-tzset.c (create_tz_file): Likewise.
8338         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8339         variable.
8340         (do_prepare): Set it.
8341         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8343 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8345         [BZ #17248]
8346         * Makeconfig (+cflags): Do not sort (and deduplicate).
8348 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8350         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8351         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8353 2018-08-20  Florian Weimer  <fweimer@redhat.com>
8355         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8356         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
8358 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
8360         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8361         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8362         and ssi_arch members.
8364         * elf/elf.c (NT_VMCOREDD): New macro.
8365         (AT_MINSIGSTKSZ): Likewise.
8367 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8369         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8370         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8371         s_cosf-ppc64 and s_cosf-power8.
8372         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8373         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8374         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8375         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8378         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8380         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8382         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8383         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8385 2018-08-17  Florian Weimer  <fweimer@redhat.com>
8387         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8389 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
8391         * malloc/malloc.c (_int_malloc): Additional binning code checks.
8393 2018-08-16  Florian Weimer  <fweimer@redhat.com>
8395         * configure.ac: Add --with-nonshared-cflags option.
8396         * config.make.in (extra-nonshared-cflags): Set variable.
8397         * Makeconfig (CFLAGS-.oS): Use it.
8398         * manual/install.texi (Configuring and compiling): Document
8399         --with-nonshared-cflags.
8400         * configure: Regenerate.
8401         * INSTALL: Likewise.
8403 2018-08-16  Florian Weimer  <fweimer@redhat.com>
8405         * Makeconfig (ASFLAGS): Always append required assembler flags.
8407 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
8409         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8410         (malloc_consolidate): Likewise.
8412 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
8414         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8416 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8418         * benchtests/bench-strlen.c (do_test): Allocate buffers before
8419         every strlen call.
8421         * benchtests/bench-strlen.c: Print performance numbers in json.
8423 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8425         * sysdeps/powerpc/powerpc64/multiarch/Makefile
8426         (sysdep_routines): Build strcmp-power9 and strncmp-power9
8427         only for little endian.
8428         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8429         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8430         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8431         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8432         Add check for little endian.
8433         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8434         (__strcmp_power9): Add check for little endian.
8435         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8436         Add check for little endian.
8437         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8438         (__strncmp_power9): Add check for little endian.
8439         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8440         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8441         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8442         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8443         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8445 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8447         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8448         [!STRLEN](STRLEN): Set to __strlen.
8449         * sysdeps/aarch64/multiarch/strlen.c: New file.
8450         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8451         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8452         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8453         (__libc_ifunc_impl_list): Add strlen.
8454         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8455         strlen_generic and strlen_asimd.
8457 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
8459         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8460         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8461         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8463 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
8465         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8467 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8469         [BZ #23519]
8470         * include/stdio.h (__vfxprintf): Declare.
8471         * stdio-common/fxprintf.c (__vfxprintf): New function.
8472         (__fxprintf): Call it.
8473         * misc/err.c (convert_and_print): Remove function.
8474         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8475         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8476         * misc/Makefile (tests): Add tst-warn-wide.
8477         * misc/tst-warn-wide.c: New file.
8479 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
8480             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8482         * NEWS: Mention sinf, cosf, sincosf.
8483         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8484         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8485         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8486         constants rather than including generic sincosf.h.
8487         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8488         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8489         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8490         (reduced_cos): Remove.
8491         (sinf_poly): New function.
8492         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8494 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8496         [BZ #23521]
8497         [BZ #23522]
8498         * nss/nss_files/files-alias.c (get_next_alias): During :include:
8499         processing, bail out if no room, and close the stream before
8500         returning ERANGE.
8501         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8502         (tst-nss-files-alias-leak): Link with libdl.
8503         (tst-nss-files-alias-leak.out): Depend on nss_files.
8505         * nss/tst-nss-files-alias-leak.c: New file.
8507 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8509         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8510         server_user, stat_user.
8512 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
8514         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8515         version to 4.18.
8516         (io_pgetevents): New syscall.
8517         (rseq): Likewise.
8519         * manual/install.texi (Configuring and compiling): Do not list
8520         tools used for testing pretty printers here.
8521         (Tools for Compilation): List Python, PExpect and GDB here.
8522         Update descriptions of uses of Perl and Python.
8523         * INSTALL: Regenerate.
8525         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8526         version to 4.18.
8528 2018-08-13  Florian Weimer  <fweimer@redhat.com>
8530         * misc/error.c (error): Add missing va_end call.
8531         (error_at_line): Likewise.
8533 2018-08-13  Florian Weimer  <fweimer@redhat.com>
8535         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8537 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8539         * benchtests/scripts/benchout.schema.json (properties): Add
8540         new properties.
8542         * benchtests/bench-skeleton.c (main): Add duration and
8543         iterations attributes.
8545 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8547         regex: Gnulib unibyte RRI uses bytes not chars
8548         Adjust the non-glibc code to agree with what Gawk needs for
8549         rational range interpretation (RRI) for regular expression ranges.
8550         In unibyte locales, Gawk wants ranges to use the underlying byte
8551         rather than the character code point.  This change does not affect
8552         glibc proper.
8553         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8554         In unibyte locales, use the byte value rather than
8555         running it through btowc.
8557 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
8559         * sysdeps/generic/math-tests-snan.h: New file.
8560         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8561         (SNAN_TESTS_float): Do not define here.
8562         (SNAN_TESTS_double): Likewise.
8563         (SNAN_TESTS_long_double): Likewise.
8564         (SNAN_TESTS_float128): Likewise.
8565         * sysdeps/i386/fpu/math-tests-snan.h: New file.
8566         * sysdeps/i386/fpu/math-tests.h: Remove file.
8567         * sysdeps/ia64/math-tests-snan.h: New file.
8568         * sysdeps/ia64/math-tests.h: Remove file.
8569         * sysdeps/x86/math-tests.h: Likewise.
8570         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8572 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8573             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8575         * math/Makefile: Add s_sincosf_data.c.
8576         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8577         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8578         (sincosf_poly): Likewise.
8579         (reduce_small): Likewise.
8580         (reduce_large): Likewise.
8581         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8582         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8583         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8584         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8586 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8587             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8589         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8590         (converttoint): Use lround.
8591         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8592         document the semantics when TOINT_INTRINSICS is set.
8593         (converttoint): Likewise.
8594         (TOINT_RINT): Remove.
8595         (TOINT_SHIFT): Remove.
8596         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8597         path.
8599 2018-08-10  Florian Weimer  <fweimer@redhat.com>
8601         [BZ #23497]
8602         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8603         function.
8604         (__old_getdents64): Use getdents64.  Convert entries without
8605         moving them.
8606         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8607         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8608         tst-readdir64-compat.
8610 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8612         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8613         Fix unwind.
8615 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8617         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8618         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8619         code to s390x-mcount.h and #include it.
8620         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8621         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8622         (__fentry__): Add.
8624 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8626         * stdlib/Versions: Remove __fentry__.
8627         * sysdeps/i386/Versions: Add __fentry__.
8628         * sysdeps/x86_64/Versions: Add __fentry__.
8630 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8632         * sysdeps/s390/Makefile: Register the new tests.
8633         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8634         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8635         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8636         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8637         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8638         * sysdeps/s390/tst-dl-runtime.c: New file.
8640 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8642         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8643         Do not clobber R0.
8645 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8647         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8648         Do not clobber R0.
8650 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8652         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8653         Do not clobber R0.
8655 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8657         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8658         Do not clobber R0.
8660 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8662         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8663         Use symbolic offsets for stack variables.
8665 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8667         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8668         Use symbolic offsets for stack variables.
8670 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8672         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8673         Use symbolic offsets for stack variables.
8675 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8677         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8678         Use symbolic offsets for stack variables.
8680 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
8682         * math/gen-libm-test.py: New file.
8683         * math/gen-libm-test.pl: Remove.
8684         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8685         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8686         gen-libm-test.pl.
8687         ($(libm-test-c-noauto-obj)): Likewise.
8688         ($(libm-test-c-auto-obj)): Likewise.
8689         ($(libm-test-c-narrow-obj)): Likewise.
8690         (regen-ulps): Likewise.
8691         * math/README.libm-test: Update references to gen-libm-test.pl.
8692         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8693         referencing gen-libm-test.pl.
8694         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8695         * math/libm-test-support.c: Likewise.
8696         * math/libm-test-support.h: Likewise.
8697         * sysdeps/generic/libm-test-ulps: Likewise.
8699 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8701         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8702         Fix value.
8704 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
8706         * math/libm-test-nextdown.inc (do_test): Move comment to ....
8707         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8709 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8711         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8712         symbols.
8713         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8714         __pthread_setspecific): Add hidden proto.
8715         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8716         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8718 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8720         * benchtests/bench-string.h (buf1_size, buf2_size): New
8721         variables.
8722         (init_sizes): New function.
8723         (test_init): Use it.
8724         (alloc_buf, exit_error): New functions.
8725         (alloc_bufs): Use ALLOC_BUF.
8726         (realloc_bufs): Remove.
8727         * benchtests/bench-memcmp.c (do_test): Adjust.
8728         * benchtests/bench-memset-large.c (do_test): Likewise.
8729         * benchtests/bench-memset-walk.c (do_test): Likewise.
8730         * benchtests/bench-memset.c (do_test): Likewise.
8731         * benchtests/bench-strncmp.c (do_test): Likewise.
8733 2018-08-06  Andreas Schwab  <schwab@suse.de>
8735         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8736         of CONST_THREAD_AREA.
8738 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8740         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8741         (STATE_SAVE_MASK): Likewise.
8742         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8743         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8744         (STATE_SAVE_MASK): Likewise.
8745         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8746         instead of <cpu-features.h>.
8748 2018-08-03  DJ Delorie  <dj@redhat.com>
8750         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8751         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8753         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8755 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
8757         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8758         after TEST_* calls.
8759         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8760         * math/libm-test-logb.inc (logb_test_data): Likewise.
8762 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
8764         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8765         * string/strstr.c (AVAILABLE): Likewise.
8767 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8769         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8770         <init-arch.h>.
8771         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8772         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8773         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8775 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
8777         * po/be.po: Update translation.
8779         * po/be.po: Update translation.
8781 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8783         * sysdeps/x86/cpu-features-offsets.sym
8784         (rtld_global_ro_offsetof): Removed.
8785         (CPU_FEATURES_SIZE): Likewise.
8786         (CPUID_OFFSET): Likewise.
8787         (CPUID_SIZE): Likewise.
8788         (CPUID_EAX_OFFSET): Likewise.
8789         (CPUID_EBX_OFFSET): Likewise.
8790         (CPUID_ECX_OFFSET): Likewise.
8791         (CPUID_EDX_OFFSET): Likewise.
8792         (FAMILY_OFFSET): Likewise.
8793         (MODEL_OFFSET): Likewise.
8794         (FEATURE_OFFSET): Likewise.
8795         (FEATURE_SIZ): Likewise.
8796         (COMMON_CPUID_INDEX_1): Likewise.
8797         (COMMON_CPUID_INDEX_7): Likewise.
8798         (FEATURE_INDEX_1): Likewise.
8799         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8801 2018-08-02  Carlos O'Donell <carlos@redhat.com>
8803         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8804         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8805         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8806         (install-locales): Depend on install-locale-archive.
8807         (install-locale-archive): Define.
8808         (install-locale-files): Define.
8809         (build-one-locale): Define macro.
8810         * manual/install.texi (Running make install): Document.
8811         * manual/INSTALL: Regenerate.
8813 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8815         * benchtests/scripts/compare_strings.py: Import traceback.
8816         (parse_file): Pretty-print error.
8818         * NEWS: Mention the change.
8819         * elf/dl-tunables.list: Rename tune namespace to cpu.
8820         * sysdeps/powerpc/dl-tunables.list: Likewise.
8821         * sysdeps/x86/dl-tunables.list: Likewise.
8822         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8823         cpu.name.
8824         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8825         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8826         * manual/README.tunables: Likewise.
8827         * manual/tunables.texi: Likewise.
8828         * sysdeps/powerpc/cpu-features.c: Likewise.
8829         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8830         (init_cpu_features): Likewise.
8831         * sysdeps/x86/cpu-features.c: Likewise.
8832         * sysdeps/x86/cpu-features.h: Likewise.
8833         * sysdeps/x86/cpu-tunables.c: Likewise.
8834         * sysdeps/x86_64/Makefile: Likewise.
8835         * sysdeps/x86/dl-cet.c: Likewise.
8837 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
8839         [BZ #23479]
8840         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8841         [__mips_hard_float].
8842         (FE_UNDERFLOW): Likewise.
8843         (FE_OVERFLOW): Likewise.
8844         (FE_DIVBYZERO): Likewise.
8845         (FE_INVALID): Likewise.
8846         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8847         (FE_TOWARDZERO): Define only if [__mips_hard_float].
8848         (FE_UPWARD): Likewise.
8849         (FE_DOWNWARD): Likewise.
8850         (__FE_UNDEFINED): Define if [!__mips_hard_float]
8851         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8852         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8853         [__mips_hard_float].
8854         (FP_ROUNDMODE): Likewise.
8855         (FP_RND_NEAREST): Likewise.
8856         (FP_RND_ZERO): Likewise.
8857         (FP_RND_PINF): Likewise.
8858         (FP_RND_MINF): Likewise.
8859         (FP_EX_INVALID): Likewise.
8860         (FP_EX_OVERFLOW): Likewise.
8861         (FP_EX_UNDERFLOW): Likewise.
8862         (FP_EX_DIVZERO): Likewise.
8863         (FP_EX_INEXACT): Likewise.
8864         (FP_INIT_ROUNDMODE): Likewise.
8865         * sysdeps/mips/nofpu/fesetenv.c: New file.
8866         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8868 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
8870         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8871         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8872         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8873         conditional on [FE_UPWARD].
8875 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
8877         regex: fix memory leak in Gnulib
8878         Problem and fix reported by Assaf Gordon in:
8879         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8880         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8881         range_ends members too, as they are defined in 'struct
8882         re_charset_t' even if not _LIBC.  This affects only Gnulib.
8884 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8886         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8887         ...
8888         (get_common_indices): This.
8889         (init_cpu_features): Updated.
8891 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
8893         * sysdeps/generic/math-tests-snan-payload.h: New file.
8894         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8895         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8896         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8897         * sysdeps/generic/math-tests.h: Include
8898         <math-tests-snan-payload.h>.
8899         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8900         * sysdeps/hppa/math-tests.h: Remove file.
8901         * sysdeps/mips/math-tests.h [!__mips_nan2008]
8902         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8903         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8904         Likewise.
8906         * sysdeps/generic/math-tests-snan-cast.h: New file.
8907         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8908         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8909         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8910         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8912 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
8914         * version.h (RELEASE): Set to "development".
8915         (VERSION): Set to "2.28.9000".
8916         * NEWS (2.29): New section.
8918         * version.h (RELEASE): Set to "stable".
8919         (VERSION): Set to "2.28".
8920         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8921         * NEWS: Add the list of bugs fixed in 2.28.
8923         * po/ca.po: Update to latest version.
8924         * po/cs.po: Likewise
8925         * po/da.po: Likewise
8926         * po/el.po: Likewise
8927         * po/eo.po: Likewise
8928         * po/es.po: Likewise
8929         * po/fi.po: Likewise
8930         * po/fr.po: Likewise
8931         * po/gl.po: Likewise
8932         * po/hu.po: Likewise
8933         * po/ia.po: Likewise
8934         * po/id.po: Likewise
8935         * po/it.po: Likewise
8936         * po/ja.po: Likewise
8937         * po/ko.po: Likewise
8938         * po/lt.po: Likewise
8939         * po/nb.po: Likewise
8940         * po/nl.po: Likewise
8941         * po/pt_BR.po: Likewise
8942         * po/ru.po: Likewise
8943         * po/rw.po: Likewise
8944         * po/sk.po: Likewise
8945         * po/sl.po: Likewise
8946         * po/tr.po: Likewise
8947         * po/zh_CN.po: Likewise
8948         * po/zh_TW.po: Likewise
8950 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8952         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8953         initialization...
8954         (init): ... before initializing libpthread.
8956         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8957         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8958         (__mach_setup_tls): ... new function.
8959         (mach_setup_tls): New alias.
8960         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8961         __mach_setup_thread.
8962         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8963         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8964         * mach/Versions [libc] (mach_setup_tls): Add symbol.
8965         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8967 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
8969         * manual/install.texi: Update versions.
8970         * INSTALL: Regenerate.
8972         * manual/contrib.texi (Contributors): Update contributions.
8974 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
8976         * po/be.po: Update translations.
8978 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8980         * sysdeps/sh/libm-test-ulps: Update.
8982 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
8984         * po/bg.po: Update translations.
8985         * po/de.po: Likewise.
8986         * po/hr.po: Likewise.
8987         * po/pt_BR.po: Likewise.
8988         * po/sv.po: Likewise.
8989         * po/vi.po: Likewise.
8991 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
8993         [BZ #23467]
8994         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8995         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8996         (CFLAGS-tst-cet-property-1.o): New.
8997         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8998         ($(objpfx)tst-cet-property-2): Likewise.
8999         ($(objpfx)tst-cet-property-2.out): Likewise.
9000         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9001         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9002         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9003         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9004         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9006 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9008         [BZ #23458]
9009         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9011 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9013         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9014         __sbrk): Do not set attribute_hidden.
9015         * sysdeps/mach/hurd/not-errno.h: New file.
9016         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9017         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9019 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
9021         * po/uk.po: Update translations.
9022         * po/cs.po: Likewise.
9023         * po/pl.po: Likewise.
9025 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
9027         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9028         parse beyond the note end.
9030 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9032         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9033         kernel does not support OFD locks.
9034         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9036 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9038         * sysdeps/mach/hurd/Versions (libc): Make __access and
9039         __access_noerrno external so they can override the ld symbols.
9040         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9041         __writev, __open64, __access_noerrno extern so they can be overrided.
9042         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9043         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9045 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
9047         * po/libc.pot: Regenerate.
9049 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
9051         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9053 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9055         [BZ #23459]
9056         * sysdeps/x86/cpu-features.c (get_extended_indices): New
9057         function.
9058         (init_cpu_features): Call get_extended_indices for both Intel
9059         and AMD CPUs.
9060         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9061         Remove "for AMD" comment.
9063 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9065         [BZ # 23456]
9066         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9067         COMMON_CPUID_INDEX_80000001.
9069 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
9071         * string/tst-xbzero-opt.c (use_test_buffer): New function.
9072         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9074 2018-07-26  Florian Weimer  <fweimer@redhat.com>
9076         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9077         aliases for symbols not in the implementation namespace.
9079 2018-07-25  Carlos O'Donell <carlos@redhat.com>
9081         [BZ #23393]
9082         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9083         lowercase in LATIN script.
9084         * localedata/Makefile (test-input): Add en_US.UTF-8.
9085         * localedata/en_US.UTF-8.in: New file.
9086         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9087         and restore old tests.
9088         * posix/tst-regexloc.c (do_test): Add back range expression test.
9090 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9092         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9094 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9096         * nptl/threads.h: Move to ...
9097         * sysdeps/nptl/threads.h: ... here.
9098         * sysdeps/hurd/stdc-predef.h: New file.
9100 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9102         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9103         tst-cet-setcontext-1 if CET is enabled.
9104         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9105         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9107 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9109         * include/threads.h: Move to ...
9110         * sysdeps/nptl/threads.h: ... here.
9111         * sysdeps/htl/threads.h: New file.
9112         * conform/Makefile (linknamespace-libs-ISO11): Use
9113         static-thread-library instead of linking libpthread.
9114         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9116 2018-07-25  Florian Weimer  <fweimer@redhat.com>
9118         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9119         nanoseconds into seconds.
9120         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9121         (do_test): Likewise.
9122         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9123         (do_test): Likewise.  Avoid nanosecond overflow and spurious
9124         timeouts due to system load.
9125         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9126         (child_wait): Increment it.
9127         (do_test): Wait as long as necessary until all expected threads
9128         have arrived.
9130 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
9131             H.J. Lu  <hongjiu.lu@intel.com>
9133         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9134         __ssp.
9135         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9136         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9137         (__push___start_context): New.
9138         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9139         <asm/prctl.h>.
9140         (__getcontext): Record the current shadow stack base.  Save the
9141         caller's shadow stack pointer and base.
9142         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9143         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9144         (__push___start_context): New prototype.
9145         (__makecontext): Call __push___start_context to allocate a new
9146         shadow stack, push __start_context onto the new stack as well
9147         as the new shadow stack.
9148         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9149         <asm/prctl.h>.
9150         (__setcontext): Restore the target shadow stack.
9151         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9152         <asm/prctl.h>.
9153         (__swapcontext): Record the current shadow stack base.  Save
9154         the caller's shadow stack pointer and base. Restore the target
9155         shadow stack.
9156         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9157         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9158         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9160 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9162         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9163         tst-setcontext8 and tst-setcontext9.
9164         * stdlib/tst-setcontext6.c: New file.
9165         * stdlib/tst-setcontext7.c: Likewise.
9166         * stdlib/tst-setcontext8.c: Likewise.
9167         * stdlib/tst-setcontext9.c: Likewise.
9169 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9171         * stdlib/Makefile ((tests): Add tst-setcontext5.
9172         * stdlib/tst-setcontext5.c: New file.
9174 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9176         * stdlib/Makefile (tests): Add tst-setcontext4.
9177         * stdlib/tst-setcontext4.c: New file.
9179 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9181         * stdlib/Makefile (tests): Add tst-swapcontext1.
9182         * stdlib/tst-swapcontext1.c: New test.
9184 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9186         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9187         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9188         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9189         and tst-cet-legacy-4c.
9190         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9191         and tst-cet-legacy-mod-4.
9192         (CFLAGS-tst-cet-legacy-2.c): New.
9193         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9194         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9195         (CFLAGS-tst-cet-legacy-3.c): Likewise.
9196         (CFLAGS-tst-cet-legacy-4.c): Likewise.
9197         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9198         ($(objpfx)tst-cet-legacy-1): Likewise.
9199         ($(objpfx)tst-cet-legacy-2): Likewise.
9200         ($(objpfx)tst-cet-legacy-2.out): Likewise.
9201         ($(objpfx)tst-cet-legacy-2a): Likewise.
9202         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9203         ($(objpfx)tst-cet-legacy-4): Likewise.
9204         ($(objpfx)tst-cet-legacy-4.out): Likewise.
9205         ($(objpfx)tst-cet-legacy-4a): Likewise.
9206         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9207         (tst-cet-legacy-4a-ENV): Likewise.
9208         ($(objpfx)tst-cet-legacy-4b): Likewise.
9209         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9210         (tst-cet-legacy-4b-ENV): Likewise.
9211         ($(objpfx)tst-cet-legacy-4c): Likewise.
9212         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9213         (tst-cet-legacy-4c-ENV): Likewise.
9214         * sysdeps/x86/tst-cet-legacy-1.c: New file.
9215         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9216         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9217         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9218         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9219         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9220         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9221         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9222         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9223         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9224         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9226 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9228         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9229         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9230         with ssp_base.
9231         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9232         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9233         with ssp_base.
9235 2018-07-25  Andreas Schwab  <schwab@suse.de>
9237         [BZ #23442]
9238         * locale/weightwc.h (findidx): Handle the case where usrc is a
9239         prefix of cp but one character too short.
9241 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9243         * NEWS: Add ISO C threads addition.
9245 2018-07-24  Florian Weimer  <fweimer@redhat.com>
9247         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9248         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9249         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
9250         4.13.
9252 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9254         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9255         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9256         <sys/prctl.h> and <asm/prctl.h>.
9257         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9258         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9259         and <asm/prctl.h>.
9260         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9261         ARCH_CET_LEGACY_BITMAP.
9262         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9263         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9264         * sysdeps/x86/libc-start.c: Include <startup.h>.
9266 2018-07-24  Florian Weimer  <fweimer@redhat.com>
9268         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9269         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
9271 2018-07-24  Rical Jasan <rj@2c3t.io>
9272             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9273             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
9275         [BZ #14092]
9276         * manual/debug.texi: Update adjacent chapter name.
9277         * manual/probes.texi: Likewise.
9278         * manual/threads.texi (ISO C Threads): New section.
9279         (POSIX Threads): Convert to a section.
9281 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9282             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
9284         [BZ# 14092]
9285         * nptl/Makefile (tests): Add new test files.
9286         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9287         * nptl/tst-cnd-basic.c: Likewise.
9288         * nptl/tst-cnd-broadcast.c: Likewise.
9289         * nptl/tst-cnd-timedwait.c: Likewise.
9290         * nptl/tst-mtx-basic.c: Likewise.
9291         * nptl/tst-mtx-recursive.c: Likewise.
9292         * nptl/tst-mtx-timedlock.c: Likewise.
9293         * nptl/tst-mtx-trylock.c: Likewise.
9294         * nptl/tst-thrd-basic.c: Likewise.
9295         * nptl/tst-thrd-detach.c: Likewise.
9296         * nptl/tst-thrd-sleep.c: Likewise.
9297         * nptl/tst-tss-basic.c: Likewise.
9299 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9301         [BZ #14092]
9302         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9303         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9304         symbols.
9305         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9306         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9307         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9308         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9309         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9310         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9311         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9312         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9313         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9314         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9315         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9316         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9318         Likewise.
9319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9320         Likewise.
9321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9322         Likewise.
9323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9324         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9325         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9326         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9327         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9328         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9329         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9330         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9331         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9332         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9333         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9334         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9335         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9336         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9337         Likewise.
9338         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9339         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9340         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9341         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9342         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9343         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9344         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9345         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9346         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9347         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9348         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9349         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9350         ikewise.
9351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9353         Likewise.
9354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9355         Likewise.
9356         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9357         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9358         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9359         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9360         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9361         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9362         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9363         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9365         [BZ #14092]
9366         * conform/data/threads.h-data (thread_local): New macro.
9367         (TSS_DTOR_ITERATIONS): Likewise.
9368         (tss_t): New type.
9369         (tss_dtor_t): Likewise.
9370         (tss_create): New function.
9371         (tss_get): Likewise.
9372         (tss_set): Likewise.
9373         (tss_delete): Likewise.
9374         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9375         tss_get, and tss_set objects.
9376         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9377         * nptl/tss_create.c: New file.
9378         * nptl/tss_delete.c: Likewise.
9379         * nptl/tss_get.c: Likewise.
9380         * nptl/tss_set.c: Likewise.
9381         * sysdeps/nptl/threads.h (thread_local): New define.
9382         (TSS_DTOR_ITERATIONS): Likewise.
9383         (tss_t): New typedef.
9384         (tss_dtor_t): Likewise.
9385         (tss_create): New prototype.
9386         (tss_get): Likewise.
9387         (tss_set): Likewise.
9388         (tss_delete): Likewise.
9390         [BZ #14092]
9391         * conform/data/threads.h-data (cnd_t): New type.
9392         (cnd_init): New function.
9393         (cnd_signal): Likewise.
9394         (cnd_broadcast): Likewise.
9395         (cnd_wait): Likewise.
9396         (cnd_timedwait): Likewise.
9397         (cnd_destroy): Likewise.
9398         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9399         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9400         object.
9401         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9402         * nptl/cnd_broadcast.c: New file.
9403         * nptl/cnd_destroy.c: Likewise.
9404         * nptl/cnd_init.c: Likewise.
9405         * nptl/cnd_signal.c: Likewise.
9406         * nptl/cnd_timedwait.c: Likewise.
9407         * nptl/cnd_wait.c: Likewise.
9408         * sysdeps/nptl/threads.h (cnd_t): New type.
9409         (cnd_init): New prototype.
9410         (cnd_signa): Likewise.
9411         (cnd_broadcast): Likewise.
9412         (cnd_wait): Likewise.
9413         (cnd_timedwait): Likewise.
9414         (cnd_destroy): Likewise.
9416         [BZ #14092]
9417         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9418         (once_flag): New type.
9419         (call_once): New function.
9420         * nptl/Makefile (libpthread-routines): Add call_once object.
9421         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9422         * nptl/call_once.c: New file.
9423         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9424         (once_flag): New type.
9425         (call_once): New prototype.
9427         [BZ #14092]
9428         * conform/data/threads.h-data (mtx_plain): New constant.
9429         (mtx_recursive): Likewise.
9430         (mtx_timed): Likewise.
9431         (mtx_t): New type.
9432         (mtx_init): New function.
9433         (mtx_lock): Likewise.
9434         (mtx_timedlock): Likewise.
9435         (mtx_trylock): Likewise.
9436         (mtx_unlock): Likewise.
9437         (mtx_destroy): Likewise.
9438         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9439         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9440         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9441         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9442         * nptl/mtx_destroy.c: New file.
9443         * nptl/mtx_init.c: Likewise.
9444         * nptl/mtx_lock.c: Likewise.
9445         * nptl/mtx_timedlock.c: Likewise.
9446         * nptl/mtx_trylock.c: Likewise.
9447         * nptl/mtx_unlock.c: Likewise.
9448         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9449         (mtx_recursive): Likewise.
9450         (mtx_timed): Likewise.
9451         (mtx_t): New type.
9452         (mtx_init): New prototype.
9453         (mtx_lock): Likewise.
9454         (mtx_timedlock): Likewise.
9455         (mtx_trylock): Likewise.
9456         (mtx_unlock): Likewise.
9457         (mtx_destroy): Likewise.
9459         [BZ #14092]
9460         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9461         (linknamespace-libs-ISO11): Add libpthread.a.
9462         * conform/data/threads.h-data: New file: add C11 thrd_* types and
9463         functions.
9464         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9465         * nptl/Makefile (headers): Add threads.h.
9466         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9467         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9468         thrd_yield.
9469         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9470         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9471         thrd_join, thrd_sleep, and thrd_yield symbols.
9472         * nptl/descr.h (struct pthread): Add c11 field.
9473         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9474         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9475         routine with expected function prototype.
9476         (__pthread_create_2_1): Add C11 threads check based on attribute
9477         value.
9478         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9479         * nptl/thrd_create.c: New file.
9480         * nptl/thrd_current.c: Likewise.
9481         * nptl/thrd_detach.c: Likewise.
9482         * nptl/thrd_equal.c: Likewise.
9483         * nptl/thrd_exit.c: Likewise.
9484         * nptl/thrd_join.c: Likewise.
9485         * nptl/thrd_priv.h: Likewise.
9486         * nptl/thrd_sleep.c: Likewise.
9487         * nptl/thrd_yield.c: Likewise.
9488         * include/threads.h: Likewise.
9490 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9492         * bits/indirect-return.h: New file.
9493         * misc/sys/cdefs.h (__glibc_has_attribute): New.
9494         * sysdeps/x86/bits/indirect-return.h: Likewise.
9495         * stdlib/Makefile (headers): Add bits/indirect-return.h.
9496         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9497         (swapcontext): Add __INDIRECT_RETURN.
9498         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9499         (prepare_test_buffer): Use it.
9501 2018-07-24  Andreas Schwab  <schwab@suse.de>
9503         [BZ #23448]
9504         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9505         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9507 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9509         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9510         Redefine if shadow stack is enabled.
9511         (SYSCALL_ERROR_LABEL): Likewise.
9512         (__vfork): Pop shadow stack and jump back to to caller directly
9513         when shadow stack is in use.
9514         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9515         Redefine if shadow stack is enabled.
9516         (SYSCALL_ERROR_LABEL): Likewise.
9517         (__vfork): Pop shadow stack and jump back to to caller directly
9518         when shadow stack is in use.
9520 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9522         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9523         enabled.
9524         (foo): Likewise.
9525         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9526         (foo): Likewise.
9528 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
9530         * scripts/build-many-glibcs.py (Context.checkout): Default
9531         binutils version to 2.31 branch.
9533 2018-07-20  Zong Li  <zong@andestech.com>
9535         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9536         URL of gcc's tarball.
9538 2018-07-20  Florian Weimer  <fweimer@redhat.com>
9540         [BZ #23396]
9541         * posix/regcomp.c (build_equiv_class): When comparing weights, do
9542         not compare an extra byte after the end of the weights.
9544 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9546         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9547         to 1.
9548         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9549         hidden prototypes.
9550         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9551         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9552         * scripts/check-execstack.awk: Consider `xfail' variable containing a
9553         list of libraries whose stack executability is expected.
9554         * elf/Makefile ($(objpfx)check-execstack.out): Pass
9555         $(check-execstack-xfail) to check-execstack.awk through `xfail'
9556         variable.
9557         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9558         libc.so libpthread.so.
9560 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
9562         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9563         SOCK_NONBLOCK.
9564         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9565         and SOCK_NONBLOCK.
9566         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
9567         implement __pipe2.
9568         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9570 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
9572         * benchtests/scripts/compare_bench.py (__main__): use the argparse
9573         library to improve command line parsing.
9574         (__main__): make schema file as optional parameter (--schema),
9575         defaulting to benchtests/scripts/benchout.schema.json.
9576         (main): move out of the parsing stuff to __main_  and leave it
9577         only as caller of main comparison functions.
9579 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
9581         * NEWS: Add a note for Intel CET status.
9582         * manual/install.texi: Likewise.
9583         * INSTALL: Regenerated.
9585 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
9587         [BZ #23140]
9588         * localedata/locales/oc_FR (mon): Rename to...
9589         (alt_mon): This, then update October (typo fix).
9590         (mon): New content (genitive case, month names preceded by
9591         "de" or "d’").
9593         [BZ #23422]
9594         * localedata/locales/oc_FR (abday): Update all items.
9595         (day): Update Wednesday and Saturday (typo fixes).
9596         (abmon): Update all items, except May.
9597         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9598         (LC_IDENTIFICATION): Bump the revision number and date.
9599         Keep the "category" entries in alphabetic order.
9600         (LC_ADDRESS): Remove no longer needed comment.
9601         (LC_COLLATE): Use “copy "ca_ES"”.
9602         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9603         "name_mrs".
9605 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
9607         * grp/tst_fgetgrent.c: Include <unistd.h>.
9608         (main): Use mkstemp instead of tmpnam.
9609         * io/test-utime.c (main): Likewise.
9610         * posix/annexc.c (macrofile): Change to modifiable array.
9611         (main): Remove macrofile here.
9612         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
9613         macrofile here.
9614         (check_header): Do not remove macrofile here.
9615         * posix/bug-getopt1.c: Include <stdlib.h>.
9616         (do_test): Use mkstemp instead of tmpnam.
9617         * posix/bug-getopt2.c: Include <stdlib.h>.
9618         (do_test): Use mkstemp instead of tmpnam.
9619         * posix/bug-getopt3.c: Include <stdlib.h>.
9620         (do_test): Use mkstemp instead of tmpnam.
9621         * posix/bug-getopt4.c: Include <stdlib.h>.
9622         (do_test): Use mkstemp instead of tmpnam.
9623         * posix/bug-getopt5.c: Include <stdlib.h>.
9624         (do_test): Use mkstemp instead of tmpnam.
9625         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9626         (main): Use mkstemp instead of tmpnam.
9627         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9628         (main): Use mkstemp instead of tmpnam.
9629         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9630         (main): use mkstemp instead of tmpnam.
9631         * stdlib/isomac.c (macrofile): Change to modifiable array.
9632         (main): Remove macrofile here.
9633         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
9634         macrofile here.
9635         (check_header): Do not remove macrofile here.
9637 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9639         * manual/tunables.texi: Document glibc.tune.x86_ibt and
9640         glibc.tune.x86_shstk.
9642 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9644         * NEWS: Mention --enable-cet.
9645         * manual/install.texi: Document --enable-cet.
9646         * INSTALL: Regenerated.
9648 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9650         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9651         Add _CET_NOTRACK before indirect jump to jump table.
9653 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9655         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9656         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9657         to jump table.
9659 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9661         * sysdeps/i386/i686/multiarch/strcat-sse2.S
9662         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9663         to jump table.
9665 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9667         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9668         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9669         to jump table.
9671 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9673         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9674         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9675         to jump table.
9677 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9679         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9680         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9681         to jump table.
9682         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9684 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9686         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9687         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9688         to jump table.
9690 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9692         * sysdeps/i386/i686/multiarch/memset-sse2.S
9693         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9694         to jump table.
9696 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9698         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9699         indirect jump to jump table.
9701 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9703         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9704         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9705         to jump table.
9706         (MEMCPY): Likewise.
9708 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9710         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9711         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9712         to jump table.
9713         (MEMCPY): Likewise.
9715 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9717         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9718         _CET_NOTRACK before indirect jump to jump table.
9720 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9722         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9723         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9724         to jump table.
9726 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9728         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9729         indirect jump to jump table.
9731 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
9733         [BZ #22241]
9734         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9735         (LOCALES): Likewise.
9736         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9737         * localedata/locales/sah_RU: New file.
9738         * localedata/sah_RU.UTF-8.in: New file.
9740 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9742         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9743         "sysdep.h".
9744         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
9745         _CET_ENDBR to indirect jump targets and adjust jump destination
9746         for _CET_ENDBR.
9747         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9748         "sysdep.h".
9749         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
9750         _CET_ENDBR to indirect jump targets and adjust jump destination
9751         for _CET_ENDBR.
9752         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9753         "sysdep.h".
9754         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
9755         _CET_ENDBR to indirect jump targets and adjust jump destination
9756         for _CET_ENDBR.
9758 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9760         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9761         _CET_ENDBR.
9763 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9765         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9766         _CET_ENDBR.
9767         (_dl_tlsdesc_undefweak): Likewise.
9768         (_dl_tlsdesc_dynamic): Likewise.
9769         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9770         (_dl_tlsdesc_resolve_rel): Likewise.
9771         (_dl_tlsdesc_resolve_rela): Likewise.
9772         (_dl_tlsdesc_resolve_hold): Likewise.
9773         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9774         (_dl_tlsdesc_undefweak): Likewise.
9775         (_dl_tlsdesc_dynamic): Likewise.
9776         (_dl_tlsdesc_resolve_rela): Likewise.
9777         (_dl_tlsdesc_resolve_hold): Likewise.
9779 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9781         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9782         (_fini): Likewise.
9783         * sysdeps/x86_64/crti.S (_init): Likewise.
9784         (_fini): Likewise.
9786 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
9788         [BZ #23140]
9789         * localedata/locales/os_RU (mon): Rename to...
9790         (alt_mon): This.
9791         (mon): Import from CLDR (genitive case).
9793 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9795         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9796         cet-tunables.h> when CET is enabled.
9798 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9800          [BZ #21598]
9801         * configure.ac: Add --enable-cet.
9802         * configure: Regenerated.
9803         * elf/Makefille (all-built-dso): Add a comment.
9804         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9805         Include <dl-prop.h>.
9806         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9807         segment.
9808         * elf/dl-open.c: Include <dl-prop.h>.
9809         (dl_open_worker): Call _dl_open_check.
9810         * elf/rtld.c: Include <dl-prop.h>.
9811         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
9812         _rtld_main_check.
9813         * sysdeps/generic/dl-prop.h: New file.
9814         * sysdeps/i386/dl-cet.c: Likewise.
9815         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9816         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9817         * sysdeps/x86/cet-tunables.h: Likewise.
9818         * sysdeps/x86/check-cet.awk: Likewise.
9819         * sysdeps/x86/configure: Likewise.
9820         * sysdeps/x86/configure.ac: Likewise.
9821         * sysdeps/x86/dl-cet.c: Likewise.
9822         * sysdeps/x86/dl-procruntime.c: Likewise.
9823         * sysdeps/x86/dl-prop.h: Likewise.
9824         * sysdeps/x86/libc-start.h: Likewise.
9825         * sysdeps/x86/link_map.h: Likewise.
9826         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9827         _CET_ENDBR.
9828         (_dl_runtime_profile): Likewise.
9829         (_dl_runtime_resolve_shstk): New.
9830         (_dl_runtime_profile_shstk): Likewise.
9831         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9832         if CET is enabled.
9833         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9834         (CFLAGS-.os): Likewise.
9835         (CFLAGS-.op): Likewise.
9836         (CFLAGS-.oS): Likewise.
9837         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9838         is enabled.
9839         (tests-special): Add $(objpfx)check-cet.out.
9840         (cet-built-dso): New.
9841         (+$(cet-built-dso:=.note)): Likewise.
9842         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9843         ($(objpfx)check-cet.out): New.
9844         (generated): Add check-cet.out.
9845         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9846         <cet-tunables.h>.
9847         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9848         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9849         (init_cpu_features): Call get_cet_status to check CET status
9850         and update dl_x86_feature_1 with CET status.  Call
9851         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9852         (set_x86_shstk).  Disable and lock CET in libc.a.
9853         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9854         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9855         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9856         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9857         (_CET_ENDBR): Define if not defined.
9858         (ENTRY): Add _CET_ENDBR.
9859         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9860         x86_shstk.
9861         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9862         _CET_ENDBR.
9863         (_dl_runtime_profile): Likewise.
9865 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
9867         [BZ #21895]
9868         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9869         restore r2 on longjmp.
9870         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9871         test list.
9872         Added rules to build test tst-setjmp-bug21895-static.
9873         Added module setjmp-bug21895 and rules to build a shared object from it.
9874         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9875         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9877 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
9879         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9880         * benchtests/bench-strstr.c: Likewise.
9881         * string/memmem.c (FASTSEARCH): Define.
9882         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9883         Add support for FASTSEARCH.
9884         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9885         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9886         (FASTSEARCH): Define.
9887         * string/test-strcasestr.c: Rename __strnlen to strnlen.
9888         * string/test-strstr.c: Likewise.
9890 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
9892         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9893         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9895 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
9896             H.J. Lu  <hongjiu.lu@intel.com>
9898         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9899         (__longjmp): Restore shadow stack pointer if shadow stack is
9900         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9901         isn't defined for __longjmp_cancel.
9902         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9903         (_setjmp): Save shadow stack pointer if shadow stack is enabled
9904         and SHADOW_STACK_POINTER_OFFSET is defined.
9905         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9906         (setjmp): Save shadow stack pointer if shadow stack is enabled
9907         and SHADOW_STACK_POINTER_OFFSET is defined.
9908         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9909         (__sigsetjmp): Save shadow stack pointer if shadow stack is
9910         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9911         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9912         <jmp_buf-ssp.h>.
9913         (____longjmp_chk): Restore shadow stack pointer if shadow stack
9914         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9915         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9916         Remove jmp_buf-ssp.sym.
9917         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9918         <jmp_buf-ssp.h>.
9919         (____longjmp_chk): Restore shadow stack pointer if shadow stack
9920         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9921         * sysdeps/x86/Makefile (gen-as-const-headers): Add
9922         jmp_buf-ssp.sym.
9923         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9924         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9925         (__longjmp): Restore shadow stack pointer if shadow stack is
9926         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9927         isn't defined for __longjmp_cancel.
9928         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9929         (__sigsetjmp): Save shadow stack pointer if shadow stack is
9930         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9932 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
9934         [BZ #22563]
9935         * nptl/pthread_create.c: Include <tls-setup.h>.
9936         (__pthread_create_2_1): Call tls_setup_tcbhead.
9937         * sysdeps/generic/tls-setup.h: New file.
9938         * sysdeps/x86/nptl/tls-setup.h: Likewise.
9939         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9940         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9941         Likewise.
9942         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9943         to feature_1.
9944         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9945         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9946         (X86_FEATURE_1_SHSTK): Likewise.
9947         (CET_ENABLED): Likewise.
9948         (IBT_ENABLED): Likewise.
9949         (SHSTK_ENABLED): Likewise.
9951 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
9953         [BZ #23208]
9954         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9955         (LOCALES): Likewise.
9956         * localedata/dsb_DE.UTF-8.in: New file.
9957         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9959 2018-07-12  Florian Weimer  <fweimer@redhat.com>
9961         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9962         __mprotect, not mprotect.
9964 2018-07-11  Florian Weimer  <fweimer@redhat.com>
9966         * io/Makefile (headers): Add bits/statx.h.
9968 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
9970         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9971         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9972         and headers.
9973         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9974         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9975         for utf8_gen.py
9977 2018-07-10  Florian Weimer  <fweimer@redhat.com>
9979         * io/Makefile (routines): Add statx.
9980         (tests-internal): Add tst-statx.
9981         * io/Versions (GLIBC_2.28): Export statx.
9982         * io/bits/statx.h: New file.
9983         * io/sys/stat.h [__USE_GNU]: Include it.
9984         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9985         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9986         Define.
9987         * io/statx.c: New file.
9988         * io/statx_generic.: Likewise.
9989         * io/tst-statx.: Likewise.
9990         * include/bits/statx.h: Likewise.
9991         * sysdeps/unix/sysv/linux/kernel-features.h
9992         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9993         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9994         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9995         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9996         Undefine.
9997         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9998         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9999         * sysdeps/unix/sysv/linux/statx.c: New file.
10000         * manual/filesys.texi: Note that statx is undocumented.
10001         * sysdeps/**/libc*.abilist: Update.
10003 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10005         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10006         a kernel issue which lead to test failure in some cases.
10008 2018-07-10  Florian Weimer  <fweimer@redhat.com>
10010         [BZ #23036]
10011         * posix/regexec.c (check_node_accept_bytes): When comparing
10012         weights, do not compare an extra byte after the end of the
10013         weights.
10015 2018-07-10  Florian Weimer  <fweimer@redhat.com>
10017         * libio/readline.c: Fix copyright year.
10018         * libio/tst-readline.c Likewise.
10019         * nss/tst-nss-files-hosts-getent.c: Likewise.
10021 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10023         [BZ #18991]
10024         * nss/nss_files/files-XXX.c (internal_getent): Use
10025         __libc_readline_unlocked.  Seek back to the start of the line if
10026         parsing failes with ERANGE.
10027         (get_contents_ret, get_contents): Remove.
10028         * nss/tst-nss-files-hosts-getent.c: New file.
10029         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10030         (tst-nss-files-hosts-getent): Link with -ldl.
10032 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10034         * include/stdio.h (__libc_readline_unlocked): Declare.
10035         (__ftello64, __fseeko64): Declare aliases.
10036         * libio/readline.c: New file.
10037         * libio/tst-readline.c: Likewise.
10038         (routines): Add readline.
10039         (tests-internal): Add tst-readlime.
10040         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10041         __libc_readline_unlocked.
10042         * libio/fseeko.c (__fseeko): Rename from fseeko.
10043         (fseeko): Add alias.
10044         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10045         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10046         (fseeko64): Add alias.
10047         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10048         * libio/ftello64.c (__ftello64): Rename from ftello64.
10049         (ftello64): Add alias.
10051 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10053         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10054         HWCAP_ATOMICS.
10056 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10058         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10059         Use dl_hwcap without masking.
10060         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10061         Remove HWCAP_CPUID.
10063 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10065         * conform/conformtest.pl (checknamespace): Escape literal braces
10066         in regular expressions.
10068 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
10070         * sysdeps/x86/cpu-features.c (get_common_indeces):
10071         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10072         * sysdeps/x86/cpu-features.c (init_cpu_features):
10073         AVX_Fast_Unaligned_Load is disabled for Excavator core.
10075 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10077         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10078         protector.
10079         (CFLAGS-elf-init.oS): Likewise.
10081 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10082             Carlos O'Donell  <carlos@redhat.com>
10084         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10085         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
10086         with stack protector enabled because there is no risk of infinite
10087         recursion.
10089 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
10091         [BZ #19818]
10092         [BZ #23307]
10093         * libc-abis (ABSOLUTE): New ABI.
10094         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10095         * NEWS: Mention the new ABI.
10097 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10099         [BZ # 17662]
10100         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10101         (RENAME_WHITEOUT): Define.
10102         [__USE_GNU] (renameat2): Declare.
10103         * stdio-common/Makefile (routines): Add renameat2.
10104         (tests): Add tst-renameat2.
10105         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10106         * stdio-common/renameat2.c: New file.
10107         * stdio-common/tst-renameat2.c: Likewise.
10108         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10109         * manual/filesys.texi (Temporary Files): Note that renameat2 is
10110         undocumented.
10111         * sysdeps/unix/sysv/linux/kernel-features.h
10112         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10113         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10114         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10115         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10116         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10117         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10118         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10119         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10120         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10121         * include/stdio.h (__renameat): Add alias for renameat.
10122         * stdio-common/renameat.c (__renameat): Rename from renameat.
10123         Add hidden definition and alias.
10124         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10125         * sysdeps/mach/hurd/renameat.c: Likewise.
10126         * sysdeps/**/libc*.abilist: Add renameat2.
10128 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10130         * posix/bug-regex33.c: Fix build after regex sync.
10132 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
10134         [BZ #23164]
10135         * localedata/tst-langinfo-setlocale.c: New file.
10136         * localedata/tst-langinfo-setlocale-static.c: New file.
10137         * localedata/tst-langinfo-newlocale.c: New file.
10138         * localedata/tst-langinfo-newlocale-static.c: New file.
10139         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10140         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10141         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10142         (tests-static): Remove tst-langinfo-static. Add
10143         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10144         (tests-special): Remove $(objpfx)tst-langinfo.out,
10145         $(objpfx)tst-langinfo-static.out. Add
10146         $(objpfx)tst-langinfo-setlocale.out,
10147         $(objpfx)tst-langinfo-newlocale.out,
10148         $(objpfx)tst-langinfo-setlocale-static.out,
10149         $(objpfx)tst-langinfo-newlocale-static.out.
10150         ($(objpfx)tst-langinfo.out): Remove.
10151         ($(objpfx)tst-langinfo-static.out): Remove.
10152         ($(objpfx)tst-langinfo-newlocale.out): New target.
10153         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10154         (test-xfail-tst-langinfo-newlocale-static): Add.
10155         ($(objpfx)tst-langinfo-setlocale.out): New target.
10156         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10157         * localedata/tst-langinfo.c: Call test_locale.
10158         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10159         data.
10161 2018-07-04  Florian Weimer  <fweimer@redhat.com>
10163         testrun.sh: Implement --tool=strace, --tool=valgrind
10164         * Makefile (testrun-script): Define variable.
10165         (testrun.sh): Use variable.
10166         * manual/install.texi (Tools for Compilation): make 4.0 or later
10167         is required.
10168         * configure.ac: Check for make 4.0 or later.
10169         * INSTALL: Regenerate.
10170         * configure: Likewise.
10172 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10174         [BZ #23233]
10175         [BZ #21163]
10176         [BZ #18986]
10177         [BZ #13762]
10178         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10179         * posix/PCRE.tests: Remove invalid test.
10180         * posix/bug-regex28.c: Fix expected values for used syntax.
10181         * posix/bug-regex37.c: New file.
10182         * posix/bug-regex38.c: Likewise.
10183         * posix/regcomp.c: Sync with gnulib.
10184         * posix/regex.c: Likewise.
10185         * posix/regex.h: Likewise.
10186         * posix/regex_internal.c: Likewise.
10187         * posix/regex_internal.h: Likewise.
10188         * posix/regexec.c: Likewise.
10190 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
10192         [BZ #23308]
10193         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10194         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10195         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10196         * localedata/unicode-gen/PropList.txt: likewise.
10197         * localedata/unicode-gen/UnicodeData.txt: likewise.
10198         * localedata/charmaps/UTF-8: Regenerate.
10199         * localedata/locales/i18n_ctype: likewise.
10200         * localedata/locales/tr_TR: likewise.
10201         * localedata/locales/translit_circle: likewise.
10202         * localedata/locales/translit_cjk_compat: likewise.
10203         * localedata/locales/translit_combining: likewise.
10204         * localedata/locales/translit_compat: likewise.
10205         * localedata/locales/translit_font: likewise.
10206         * localedata/locales/translit_fraction: likewise.
10208 2018-07-03  Florian Weimer  <fweimer@redhat.com>
10210         [BZ #23363]
10211         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10212         * stdio-common/tst-printf.sh: Adjust expected output.
10213         * LICENSES: Update.
10215 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10217         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10218         symbol.
10220 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10222         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10223         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10224         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10225         * stdio-common/tst-printfsz-islongdouble.c: New file.
10226         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10227         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10228         [subdir == stdio-common] (routines): Add ieee128-printf_size.
10229         [subdir == stdio-common] (tests-internal): Add
10230         test-printf-size-ieee128, and test-printf-size-ibm128.
10231         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10232         (CFLAGS-test-printf-size-ibm128.c): New variables.
10233         [subdir == stdio-common] (tests-special): Add
10234         $(objpfx)test-printf-size-ieee128.out and
10235         $(objpfx)test-printf-size-ibm128.out.
10236         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10237         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10238         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10239         __printf_sizeieee128.
10240         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10241         New file.
10242         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10243         Likewise.
10244         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10245         Likewise.
10247 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10249         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10250         (exp2f_inline): Likewise.
10251         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10252         (__math_uflowf): Likewise.
10253         (__math_may_uflowf): Likewise.
10254         (__math_divzerof): Likewise.
10255         (__math_invalidf): Likewise.
10256         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10257         (__math_oflowf): Likewise.
10258         (__math_uflowf): Likewise.
10259         (__math_may_uflowf): Likewise.
10260         (__math_divzerof): Likewise.
10261         (__math_invalidf): Likewise.
10263 2018-06-29  DJ Delorie  <dj@redhat.com>
10264             Carlos O'Donell  <carlos@redhat.com>
10266         [BZ #23329]
10267         * include/libc-symbols.h: Comment the freeres framework.
10268         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
10269         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10270         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10271         * dlfcn/dlerror.c: Include libc-symbols.h
10272         (__dlerror_main_freeres): New function.
10273         * dlfcn/dlfreeres.c: New file.
10274         * dlfcn/sdlfreeres.c: New file.
10275         * include/dlfcn.h: Declare __dlerror_main_freeres.
10276         * malloc/set-freeres.c: Declare __libdl_freeres, and
10277         __libpthread_freeres.
10278         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10279         the releavant libraries are loaded.
10280         * malloc/thread-freeres.c: Add comments.
10281         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10282         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10283         * nptl/allocatestack.c (__nptl_free_stacks): New function.
10284         (__free_stacks): Rename to...
10285         (free_stacks): ...this. Mark static.
10286         (queue_stack): Call free_stacks.
10287         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10288         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10289         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10290         ptr_freeres element from struct.
10291         (pthread_functions): Remove .ptr_freeres from struct initializer.
10292         [SHARED] (nptl_freeres): Remove.
10293         * nptl/nptlfreeres.c: New file.
10294         * nptl/pthreadP.h
10295         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10296         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
10297         attribute_hidden.
10298         (__free_stacks): Rename to...
10299         (__nptl_stacks_freeres): ...this.
10300         (__shm_directory_freeres): Declare.
10301         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10302         (__nptl_unwind_freeres): ...this.
10303         * resolv/res-close.c: Add comment.
10304         * resolv/resolv_conf.c: Include libc-symbols.h.
10305         * string/strerror_l.c: Include libc-symbols.h.
10306         * sunrpc/rpc_thread.c: Include libc-symbols.h.
10307         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10308         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10309         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10311 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10313         * stdlib/tst-strfmon_l.c: Add tests for long double.
10315 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
10317         [BZ #23208]
10318         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10319         * localedata/locales/dsb_DE: New file.
10321 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
10323         [BZ #23140]
10324         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10325         genitive case).
10326         (alt_mon): New entry, import from CLDR (nominative case).
10328 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
10330         [BZ #22996]
10331         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10333 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10335         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10336         Use vector registers.
10338         * sysdeps/aarch64/multiarch/memmove_falkor.S
10339         (__memcpy_falkor): Use vector registers.
10341 2018-06-29  Martin Sebor  <msebor@redhat.com>
10343         * manual/stdio.texi (Customizing Printf): Mention interaction
10344         with GCC built-ins.
10346 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
10348         [BZ #23307]
10349         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10350         `st_value' is 0 if `st_shndx' is SHN_ABS.
10351         * elf/tst-absolute-zero.c: New file.
10352         * elf/tst-absolute-zero-lib.c: New file.
10353         * elf/tst-absolute-zero-lib.lds: New file.
10354         * elf/Makefile (tests): Add `tst-absolute-zero'.
10355         (modules-names): Add `tst-absolute-zero-lib'.
10356         (LDLIBS-tst-absolute-zero-lib.so): New variable.
10357         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10358         ($(objpfx)tst-absolute-zero: New dependency.
10360 2018-06-29  Zack Weinberg  <zackw@panix.com>
10362         * configure.ac: New command-line option --disable-crypt.
10363         Force --disable-nss-crypt when --disable-crypt is given, with a
10364         warning if it was explicitly enabled.
10365         * configure: Regenerate.
10366         * config.make.in: New boolean substitution variable $(build-crypt).
10367         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10368         when $(build-crypt).
10369         * manual/install.texi: Document --disable-crypt.
10370         * INSTALL: Regenerate.
10372         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10373         which is never set.
10374         * conform/Makefile: Only include libcrypt.a in
10375         linknamespace-libs-xsi and linknamespace-libs-XPG4
10376         when $(build-crypt).
10377         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10378         USE_CRYPT to 1 when $(build-crypt).
10379         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10380         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10381         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10383 2018-06-29  Zack Weinberg  <zackw@panix.com>
10385         * crypt/crypt.h, posix/unistd.h: Update comments and
10386         prototypes for crypt and crypt_r.
10388         * manual/crypt.texi (Cryptographic Functions): New initial
10389         exposition.
10390         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
10391         (Unpredictable Bytes): Improve initial exposition.  Clarify error
10392         behavior of getentropy and getrandom.
10393         * manual/examples/genpass.c: Generate a salt using getentropy
10394         instead of the current time. Use hash $5$ (SHA-2-256).
10395         * manual/examples/testpass.c: Demonstrate validation against
10396         hashes generated with three different one-way functions.
10398         * manual/intro.texi: crypt.texi does not need an overview
10399         anymore.
10401         * manual/nss.texi, manual/memory.texi, manual/socket.texi
10402         * manual/terminal.texi: Consistently refer to "passphrases"
10403         * instead of "passwords", and to the "user database" instead
10404         * of the "password database".
10405         * manual/users.texi: Similarly.  Add notes about how actual
10406         passphrase hashes are now stored in the shadow database.
10407         Remove 20-year-old junk todo note.
10409 2018-06-29  Zack Weinberg  <zackw@panix.com>
10411         * manual/crypt.texi: Use a normal top-level @node declaration.
10412         Move most of the introductory text to the 'crypt' section.
10413         Move the example programs below the @deftypefun for 'crypt_r'.
10414         Move the 'getpass' section...
10415         * manual/terminal.texi: ...here.
10417 2018-06-29  Zack Weinberg  <zackw@panix.com>
10418             Florian Weimer <fweimer@redhat.com>
10420         * posix/unistd.h: Do not declare encrypt.
10421         (_XOPEN_CRYPT): Remove macro definition.
10422         (crypt): Declare only for _USE_MISC.
10423         * stdlib/stdlib.h: Do not declare setkey.
10424         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10425         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10427         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10428         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10429         into compat symbols.  Don't define initial_perm if it's not
10430         going to be used.
10431         * crypt/cert.c: Link explicitly with the expected versions for
10432         setkey and encrypt.  If they are not available at all, mark
10433         the test as unsupported.
10435         * sunrpc/des_crypt.c: Unconditionally block linkage with
10436         cbc_crypt and ecb_crypt for new binaries.
10437         * sunrpc/des_soft.c: Unconditionally block linkage with
10438         des_setparity for new binaries.
10440         * manual/crypt.texi: Remove the entire "DES Encryption"
10441         section.  Also remove the paragraph talking about FIPS 140-2
10442         from the introduction.
10443         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
10444         of libgcrypt for "real" encryption, not DES.
10445         * manual/conf.texi (Constants for Sysconf): Mention that
10446         _XOPEN_CRYPT is no longer impelemented.
10448         * conform/data/unistd.h-data: Remove crypt function declaration.
10450 2018-06-29  Florian Weimer  <fweimer@redhat.com>
10452         [BZ #23351]
10453         * malloc/hooks.c: Update comments on restoring of dumped heaps.
10454         (disallow_malloc_check): Remove variable.
10455         (__malloc_check_init): Adjust.
10456         (malloc_set_state): Update comment.
10457         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10458         declarations.
10460 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
10462         [BZ #23140]
10463         * localedata/locales/ast_ES (mon): Rename to...
10464         (alt_mon): This.
10465         (mon): Import from CLDR (genitive case).
10467 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
10468             Jakub Sitnicki  <jkbs@redhat.com>
10470         [BZ #21812]
10471         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10472         on NLM_F_DUMP_INTR.
10474 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10476         * manual/llio.texi: Remove spurious space.
10478 2018-06-28  Florian Weimer  <fweimer@redhat.com>
10480         [BZ #23349]
10481         * time/bits/types/struct_timespec.h: Change header inclusion guard to
10482         _STRUCT_TIMESPEC.
10484 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10486         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10487          __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10488         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10489         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10490         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10491         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10492         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10494 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
10496         [BZ #23266]
10497         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10498         Copy and null-terminate entries that are not terminated, in
10499         addition to empty ones.
10501 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10503         [BZ #18023]
10504         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10505         (extend_alloca_account): Remove.
10506         * manual/stdio.texi (Variable Arguments Output): Update comment.
10508 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
10510         * nptl/sockperf.c: Remove file.
10512 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10514         [BZ #18023]
10515         * elf/dl-deps.c (_dl_map_object_deps): Use struct
10516         scratch_buffer instead of extend_alloca.
10518 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10520         [BZ #18023]
10521         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10522         scratch_buffer instead of extend_alloca.  Update comments.
10524 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10526         [BZ #18023]
10527         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10528         instead of extend_alloca.
10530 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
10532         [BZ #13888]
10533         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10534         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10535         /tmp.
10536         * scripts/test-installation.pl: Put temporary files in build
10537         directory, not /tmp.
10538         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10539         (CFLAGS-bug4.c): Likewise.
10540         (CFLAGS-bug5.c): Likewise.
10541         (CFLAGS-test-fseek.c): Likewise.
10542         (CFLAGS-test-popen.c): Likewise.
10543         (CFLAGS-test_rdwr.c): Likewise.
10544         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10545         /tmp.
10546         * stdio-common/bug4.c (main): Likewise.
10547         * stdio-common/bug5.c (main): Likewise.
10548         * stdio-common/test-fseek.c (TESTFILE): Likewise.
10549         * stdio-common/test-popen.c (do_test): Likewise.
10550         * stdio-common/test_rdwr.c (main): Likewise.
10552 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
10554         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10555         (sem_open): Set sem.newsem.pad to zero for valgrind.
10557 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10559         [BZ #20251]
10560         * NEWS: Mention fcntl64 addition.
10561         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10562         * login/utmp_file.c: Likewise.
10563         * sysdeps/posix/fdopendir.c: Likewise.
10564         * sysdeps/posix/opendir.c: Likewise.
10565         * sysdeps/unix/pt-fcntl.c: Likewise.
10566         * include/fcntl.h (__libc_fcntl64, __fcntl64,
10567         __fcntl64_nocancel_adjusted): New prototype.
10568         (__fcntl_nocancel_adjusted): Remove prototype.
10569         * io/Makefile (routines): Add fcntl64.
10570         (CFLAGS-fcntl64.c): New rule.
10571         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10572         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10573         * io/fcntl.h (fcntl64): Add prototype and redirect if
10574         __USE_FILE_OFFSET64 is defined.
10575         * io/fcntl64.c: New file.
10576         * manual/llio.text: Add a note for which commands fcntl acts a
10577         cancellation point.
10578         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10579         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10580         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10581         New symbols.
10582         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10583         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10584         non-LFS case.
10585         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10586         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10587         to __fcntl64_nocancel.
10588         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10589         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10590         to __fcntl64_nocancel.
10591         * sysdeps/generic/not-cancel.h: Likewise.
10592         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10593         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10594         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10595         (fcntl64): New symbol.
10596         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10597         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10598         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10600         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10601         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10602         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10603         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10604         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10605         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10606         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10607         fcntl64): Likewise.
10608         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10609         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10610         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10611         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10612         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10613         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10614         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10615         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10616         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10618         Likewise.
10619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10620         Likewise.
10621         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10622         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10623         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10625 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10627         Run thread shutdown functions in an explicit order.
10628         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10629         definition.
10630         (__libc_thread_freeres): Call thread shutdown functions
10631         explicitly.
10632         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10633         * include/string.h (__strerror_thread_freeres): Declare.
10634         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10635         arena_thread_freeres.  No longer static.  Remove thread shutdown
10636         hook registration.
10637         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10638         Declare.
10639         * resolv/res-close.c (__res_thread_freeres): Renamed from
10640         res_thread_freeres.  No longer static.  Remove thread shutdown
10641         hook registration.
10642         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10643         * resolv/resolv_conf.c (freeres): Remove incorrect section
10644         attribute and use libc_freeres_fn.
10645         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10646         strerror_thread_freeres.  No longer static.  Remove thread
10647         shutdown hook registration.
10648         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10649         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10650         shutdown hook registration.
10651         * Makerules (shlib.lds): Do not provide section boundary symbols
10652         for __libc_thread_subfreeres.
10653         * manual/memory.texi (Basic Allocation): Update comment.
10655 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10657         Remove always-defined _RPC_THREAD_SAFE_ macro.
10658         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10659         Do not define _RPC_THREAD_SAFE_.
10660         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10661         conditional.
10662         * sunrpc/clnt_perr.c: Likewise.
10663         * sunrpc/clnt_raw.c: Likewise.
10664         * sunrpc/clnt_simp.c: Likewise.
10665         * sunrpc/key_call.c: Likewise.
10666         * sunrpc/rpc_common.c: Likewise.
10667         * sunrpc/rpc_main.c: Likewise.
10668         * sunrpc/rpc_thread.c: Likewise.
10669         * sunrpc/svc.c: Likewise.
10670         * sunrpc/svc_raw.c: Likewise.
10671         * sunrpc/svc_simple.c: Likewise.
10672         * sumrpc/svcauth_des.c: Likewise.
10674 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10676         * libio/Makefile (tests-internal): Add tst-vtables,
10677         tst-vtables-interposed.
10678         * libio/tst-vtables.c: New file.
10679         * libio/tst-vtables-common.c: Likewise.
10680         * libio/tst-vtables-interposed.c: Likewise.
10682 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10684         * support/support_test_main.c (support_test_main): Only call
10685         setvbuf if not disables.
10686         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10687         * support/test-driver.h (struct test_config): Add no_setvbuf member.
10689 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10691         [BZ #23313]
10692         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10694 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10696         [BZ #18023]
10697         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10698         Use struct scratch_buffer instead of extend_alloca.
10700 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10702         [BZ #18023]
10703         * nss/getent.c (initgroups_keys): Use dynarray instead of
10704         extend_alloca.
10706 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10708         [BZ #18023]
10709         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10710         Use struct scratch_buffer instead of extend_alloca.
10712 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10714         [BZ #18023]
10715         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10716         back to malloc directly, without stack allocations.
10718 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10720         [BZ #18023]
10721         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10722         of extend_alloca.
10724 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10726         [BZ #18023]
10727         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10728         of extend_alloca.
10729         * nscd/hstcache.c (addhstbyX): Likewise.
10730         * nscd/pwdcache.c (addpwbyX): Likewise.
10731         * nscd/servicescache.c (addservbyX): Likewise.
10733 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10735         [BZ #18023]
10736         * nscd/connections.c (read_cmdline): New function.
10737         (restart): Use it.  Update comment.
10739 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
10741         [BZ #23140]
10742         * localedata/locales/csb_PL (mon): Rename to...
10743         (alt_mon): This.
10744         (abmon): Rename to...
10745         (ab_alt_mon): This.
10746         (mon): Add with proper genitive forms, copy from Wikipedia.
10747         (abmon): Likewise.
10749 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
10751         [BZ #19485]
10752         * localedata/locales/csb_PL (mon): Fix typos:
10753         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10754         (yesstr): Add, value is "jo".
10755         (nostr): Add, value is "nié".
10757 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10759         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10760         all log1p and significand functions on m680x0.
10761         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10762         of s_significand.c..
10763         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10764         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10765         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10766         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10767         s_log1p.c and include it..
10769 2018-06-21  Vincent Chen  <vincentc@andestech.com>
10771         * elf/elf.h (R_NDS32_NONE): New define.
10772         (R_NDS32_32_RELA): Likewise.
10773         (R_NDS32_COPY): Likewise.
10774         (R_NDS32_GLOB_DAT): Likewise.
10775         (R_NDS32_JUMP_SLOT): Likewise.
10776         (R_NDS32_RELATIVE): Likewise.
10777         (R_NDS32_TLS_TPOFF): Likewise.
10778         (R_NDS32_TLS_DESC): Likewise.
10780 2018-06-21  Mark Wielaard  <mark@klomp.org>
10782         * elf/elf.h (R_BPF_MAP_FD): Removed.
10783         (R_BPF_64_64, R_BPF_64_32): New.
10785 2018-06-21  Florian Weimer  <fweimer@redhat.com>
10787         [BZ #23253]
10788         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10789         Renamed from libc_feholdsetround_ctx.
10790         (default_libc_feresetround_ctx): Renamed from
10791         libc_feresetround_ctx.
10792         (default_libc_feholdsetround_noex_ctx): Renamed from
10793         libc_feholdsetround_noex_ctx.
10794         (default_libc_feresetround_noex_ctx): Renamed from
10795         libc_feresetround_noex_ctx.
10796         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10797         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10798         forwardning to the old implementations under the new names.
10799         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10800         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10801         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10802         (libc_feresetround_ctx): Forward to default implements for i386
10803         and MATH_SET_BOTH_ROUNDING_MODES.
10804         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10805         Add -DMATH_SET_BOTH_ROUNDING_MODES.
10807 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
10809         * string/tst-cmp.c: Include <libc-diag.h>.
10810         (strncmp_max): Disable -Wstringop-overflow= around call to
10811         strncmp.
10812         (strncasecmp_max): Disable -Wstringop-overflow= around call to
10813         strncasecmp.
10815         * string/bug-strpbrk1.c: Include <libc-diag.h>.
10816         (main): Disable -Wunused-value around call to strpbrk.
10817         * string/bug-strspn1.c: Include <libc-diag.h>.
10818         (main): Disable -Wunused-value around call to strspn.
10820 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10821             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10823         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10824         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10826 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10828         * math/Makefile (libm-calls): Move s_significandF to...
10829         (gen-libm-calls): ... here.
10830         * math/s_significand_template.c: New file.
10831         * math/s_significand.c: Removed.
10832         * math/s_significandf.c: Removed.
10833         * math/s_significandl.c: Removed.
10834         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10835         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10837         * math/e_exp2_template.c (declare_mgen_finite_alias,
10838         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10839         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10840         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10842 2018-06-20  Florian Weimer  <fweimer@redhat.com>
10844         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10846 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
10848         [BZ #23280]
10849         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10850         floating-point number to strtod functions rather than possibly
10851         negating result of those functions.
10852         * stdio-common/tst-scanf-round.c: New file.
10853         * stdio-common/Makefile (tests): Add tst-scanf-round.
10854         ($(objpfx)tst-scanf-round): Depend on $(libm).
10856 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10858         * sysdeps/mach/hurd/localplt.data: Move to...
10859         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10860         R_386_GLOB_DAT like on Linux i386.
10862 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
10864         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10865         (SHM_STAT_ANY): New macro.
10866         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10867         (SHM_STAT_ANY): Likewise.
10868         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10869         (SHM_STAT_ANY): Likewise.
10870         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10871         (SHM_STAT_ANY): Likewise.
10872         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10873         (SHM_STAT_ANY): Likewise.
10874         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10875         (SHM_STAT_ANY): Likewise.
10876         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10877         (SHM_STAT_ANY): Likewise.
10878         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10879         (SHM_STAT_ANY): Likewise.
10880         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10881         (SHM_STAT_ANY): Likewise.
10882         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10883         (SHM_STAT_ANY): Likewise.
10884         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10885         (SHM_STAT_ANY): Likewise.
10886         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10887         (SHM_STAT_ANY): Likewise.
10889         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10890         (SEM_STAT_ANY): New macro.
10891         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10892         (SEM_STAT_ANY): Likewise.
10893         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10894         (SEM_STAT_ANY): Likewise.
10895         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10896         (SEM_STAT_ANY): Likewise.
10897         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10898         (SEM_STAT_ANY): Likewise.
10899         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10900         (SEM_STAT_ANY): Likewise.
10901         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10902         (SEM_STAT_ANY): Likewise.
10903         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10904         (SEM_STAT_ANY): Likewise.
10905         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10906         (SEM_STAT_ANY): Likewise.
10907         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10908         (SEM_STAT_ANY): Likewise.
10910         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10911         (MSG_STAT_ANY): New macro.
10912         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10913         (MSG_STAT_ANY): Likewise.
10914         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10915         (MSG_STAT_ANY): Likewise.
10916         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10917         (MSG_STAT_ANY): Likewise.
10918         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10919         (MSG_STAT_ANY): Likewise.
10920         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10921         (MSG_STAT_ANY): Likewise.
10922         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10923         (MSG_STAT_ANY): Likewise.
10924         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10925         (MSG_STAT_ANY): Likewise.
10926         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10927         (MSG_STAT_ANY): Likewise.
10928         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10929         (MSG_STAT_ANY): Likewise.
10931         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10932         (MAP_TYPE): Change value to 0x2b.
10934 2018-06-18  Florian Weimer  <fweimer@redhat.com>
10936         [BZ #15722]
10937         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10938         socket with SOCK_CLOEXEC.
10940 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
10942         [BZ #23303]
10943         * sysdeps/powerpc/powerpc64/le/Makefile
10944         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10945         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10946         (gnulib-tests): Also add $(f128-loader-link) for
10947         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10949 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10951         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10952         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10953         of sendfile.
10954         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10955         (sendfile64): New strong alias.
10956         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10957         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10958         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10959         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10960         attribute.
10961         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10962         ___pthread_get_cleanup_stack.
10963         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10964         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10965         * mach/shortcut.awk: Make syscall stubs include
10966         <mach-shortcuts-hidden.h> and add hidden definition.
10967         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10968         (__mach_msg): Add hidden prototype.
10969         * mach/msg.c: Include <mach.h>.
10970         (__mach_msg): Add hidden definition.
10971         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10972         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10973         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10974         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10975         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10976         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10977         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10978         prototype and definition.
10979         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10980         hidden target for _hurd_self_sigstate.
10982 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
10984         [BZ #23007]
10985         * stdlib/tst-strtod-nan-sign-main.c: New file.
10986         * stdlib/tst-strtod-nan-sign.c: Likewise.
10987         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10988         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10989         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10990         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10991         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10993 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
10995         [BZ #23007]
10996         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10997         appropriate sign.
10999 2018-06-14  Florian Weimer  <fweimer@redhat.com>
11001         [BZ #23290]
11002         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11003         that the result stays within the ISO-8859-1 range.
11004         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11005         characters are defined in IBM273.
11007 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11009         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11010         __mach_task_self): Remove attribute_hidden.
11012 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
11014         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11015         ignore -Wrestrict for one test.
11017 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
11018             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11020         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11022 2018-06-14  Florian Weimer  <fweimer@redhat.com>
11024         * scripts/update-abilist.sh: Accept empty list of files to patch.
11026 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11028         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11029         test-xfail-check-abi-libmachuser): Add.
11030         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11031         __libc_read and __libc_write to __read and __write.
11032         * sysdeps/hurd/include/hurd/port.h: New file.
11033         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11034         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11035         __thread_switch, __evc_wait): Move declarations to...
11036         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11037         attribute_hidden.
11038         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11039         use PLT to call _hurd_self_sigstate.
11041 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
11043         [BZ #23279]
11044         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11045         MAX_EXP as overflowing.
11046         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11047         overflow flag.
11048         (round_str): Output also whether result overflows in each rounding
11049         mode.
11050         * stdlib/tst-strtod-round-data: Add more tests.
11051         * stdlib/tst-strtod-round-data.h: Regenerated.
11052         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11053         (TEST): Handle extra arguments for overflow flags.
11054         (struct test_overflow): New type.
11055         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11056         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
11057         (test_in_one_mode): Take argument with overflow information.
11058         (do_test): Update calls to test_in_one_mode.
11060 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
11062         * elf/dl-load (_dl_dst_substitute): Correct comment.
11063         (_dl_dst_count): Likewise.
11065         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11066         lll_futex_timed_wait.
11068 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
11070         [BZ #23277]
11071         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11072         attribute.
11073         * math/test-nan-const.c: New file.
11074         * math/Makefile (tests): Add test-nan-const.
11075         (CFLAGS-test-nan-const.c): New variable.
11077 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11079         * benchtests/scripts/compare_strings.py (process_results): Add
11080         funcs argument.  Compare only functions which are selected.
11081         (main): Check if base function is among selected functions.
11082         Pass selected functions to process_results.
11083         (__main__): Add -f/--functions argument.
11085 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
11086             Hongbo Zhang  <hongbo.zhang@linaro.org>
11088         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11089         __memcpy_falkor for phecda core.
11090         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11091         __memmove_falkor for phecda core.
11092         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11093         __memset_falkor for phecda core.
11094         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11095         for phecda core.
11096         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11097         macro to identify phecda core.
11099 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
11100             Andreas Schwab  <schwab@suse.de>
11101             Dmitry V. Levin  <ldv@altlinux.org>
11102             Florian Weimer <fweimer@redhat.com>
11104         [BZ #23102]
11105         [BZ #21942]
11106         [BZ #18018]
11107         [BZ #23259]
11108         CVE-2011-0536
11109         * elf/dl-dst.h: Remove DL_DST_COUNT.
11110         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11111         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11112         (is_dst): Comment.  Support ELF gABI.
11113         (_dl_dst_count): Comment.  Simplify and count DSTs.
11114         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
11115         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11116         locals.
11118 2018-06-12  Zack Weinberg  <zackw@panix.com>
11120         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11121         * sysdeps/unix/sysv/linux/dl-sysdep.c
11122         Include not-cancel.h.  Use __close_nocancel instead of __close,
11123         __open64_nocancel instead of __open, __read_nocancel instead of
11124         __libc_read, and __write_nocancel instead of __libc_write.
11126         * csu/check_fds.c (check_one_fd)
11127         * sysdeps/posix/fdopendir.c (__fdopendir)
11128         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11129         instead of __fcntl and/or __libc_fcntl.
11131         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11132         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11133         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11134         Use __open64_nocancel instead of __open_nocancel.
11136         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11137         hidden_proto declarations to the end and issue them if either
11138         IS_IN(libc) or IS_IN(rtld).
11139         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11140         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11141         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11142         read_nocancel, waitpid_nocancel, write_nocancel.
11144         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11145         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11146         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11148         * nptl/pt-fcntl.c: New file.
11149         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11150         (libpthread-routines): Add pt-fcntl.
11151         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11152         (__libc_fcntl): Remove attribute_hidden.
11153         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11154         __fcntl_nocancel_adjusted, not fcntl_common.
11155         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11156         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11157         to fcntl_nocancel.c.
11158         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11161         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11163         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11164         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11165         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11166         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11167         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11168         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11169         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11170         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11171         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11172         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11173         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11174         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11175         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11176         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11177         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11178         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11179         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11180         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11181         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11182         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11184         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11185         libpthread-routines.
11186         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11187         defines nothing.
11189         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11190         __libc_read, and __write instead of __libc_write.  Define
11191         __open64 in addition to __open.
11193 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11195         [BZ #23250]
11196         [BZ #10686]
11197         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11198         to _private_tm[3] and add __glibc_reserved2.
11199         Add _Static_assert of offset of __private_ss == 0x30.
11200         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11201         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11203 2018-06-12  Florian Weimer  <fweimer@redhat.com>
11205         x86: Make strncmp usable from rtld.
11206         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11207         __strncmp_ia32 if in libc (and not in rtld).
11208         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11209         strncmp if not in libc (and not to __strncmp_sse2).
11211 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
11213         [BZ #23140]
11214         * localedata/locales/gd_GB (mon): Rename to...
11215         (alt_mon): This.
11216         (mon): Import from CLDR (genitive case).
11217         * localedata/locales/hsb_DE (mon): Rename to...
11218         (alt_mon): This.
11219         (mon): Import from CLDR (genitive case).
11220         * localedata/locales/wa_BE (mon): Rename to...
11221         (alt_mon): This.
11222         (mon): Add, fill with the proper genitive forms, but CLDR data
11223         is incomplete; completed according to the comments in this file.
11224         (d_t_fmt): Do not use "di" before the month name, no longer needed.
11226         * localedata/locales/wa_BE (country_name): Reword
11227         "Beljike" -> "Beldjike".
11229 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
11231         [BZ #23272]
11232         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11233         cases of non-finite arguments.
11234         * math/libm-test-fma.inc (fma_test_data): Add more tests.
11236 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
11238         [BZ #23174]
11239         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11241 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11243         [BZ #23264]
11244         * include/unistd.h (__execvpex): New prototype.
11245         * posix/Makefile (tests): Add tst-spawn4.
11246         (tests-internal): Add tst-spawn4-compat.
11247         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11248         * posix/tst-spawn4-compat.c: New file.
11249         * posix/tst-spawn4.c: Likewise.
11250         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11251         binaries as shell scripts.
11252         * sysdeps/posix/spawni.c (__spawni): Likewise.
11254 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11256         [BZ #23145]
11257         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11258         ($(all-built-dso:=.dynsym): New target.
11259         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11260         ($(objpfx)check-initfini.out): New target.
11261         (generated): Add check-initfini.out.
11262         * scripts/check-initfini.awk: New file.
11263         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11264         (_fini): Likewise.
11265         * sysdeps/alpha/crti.S (_init): Mark as hidden.
11266         (_fini): Likewise.
11267         * sysdeps/arm/crti.S (_init): Mark as hidden.
11268         (_fini): Likewise.
11269         * sysdeps/hppa/crti.S (_init): Mark as hidden.
11270         (_fini): Likewise.
11271         * sysdeps/i386/crti.S (_init): Mark as hidden.
11272         (_fini): Likewise.
11273         * sysdeps/ia64/crti.S (_init): Mark as hidden.
11274         (_fini): Likewise.
11275         * sysdeps/m68k/crti.S (_init): Mark as hidden.
11276         (_fini): Likewise.
11277         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11278         (_fini): Likewise.
11279         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11280         (_fini): Likewise.
11281         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11282         (_fini): Likewise.
11283         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11284         (_fini): Likewise.
11285         * sysdeps/nios2/crti.S (_init): Mark as hidden.
11286         (_fini): Likewise.
11287         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11288         (_fini): Likewise.
11289         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11290         (_fini): Likewise.
11291         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11292         (_fini): Likewise.
11293         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11294         (_fini): Likewise.
11295         * sysdeps/sh/crti.S (_init): Mark as hidden.
11296         (_fini): Likewise.
11297         * sysdeps/sparc/crti.S (_init): Mark as hidden.
11298         (_fini): Likewise.
11299         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11300         (_fini): Likewise.
11302 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
11304         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11305         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11306         and TF redirection to KFtype and KF only when the default
11307         long double type is not the IEEE 128-bit floating point type.
11309 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
11311         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11312         macro.
11313         (HWCAP_USCAT): Likewise.
11314         (HWCAP_ILRCPC): Likewise.
11315         (HWCAP_FLAGM): Likewise.
11316         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11317         Increase to 28.
11318         (_dl_aarch64_cap_flags): Add new flag names.
11320         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11321         (MAP_FIXED_NOREPLACE): New macro.
11322         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11323         (MAP_FIXED_NOREPLACE): Likewise.
11324         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11325         (MAP_FIXED_NOREPLACE): Likewise.
11326         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11327         (MAP_FIXED_NOREPLACE): Likewise.
11328         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11329         (MAP_FIXED_NOREPLACE): Likewise.
11330         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11331         (MAP_FIXED_NOREPLACE): Likewise.
11332         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11333         (MAP_FIXED_NOREPLACE): Likewise.
11334         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11335         (MAP_FIXED_NOREPLACE): Likewise.
11336         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11337         (MAP_FIXED_NOREPLACE): Likewise.
11338         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11339         (MAP_FIXED_NOREPLACE): Likewise.
11340         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11341         (MAP_FIXED_NOREPLACE): Likewise.
11342         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11343         (MAP_FIXED_NOREPLACE): Likewise.
11344         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11345         (MAP_FIXED_NOREPLACE): Likewise.
11346         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11347         (MAP_FIXED_NOREPLACE): Likewise.
11348         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11349         (MAP_FIXED_NOREPLACE): Likewise.
11351         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11352         version to 4.17.
11354 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
11356         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11357         version to 4.17
11359 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11361         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11362         int.
11363         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11365 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11367         * benchtests/scripts/compare_string.py: (process_results) Catch
11368         exception in non-existent base_func and catch exception in
11369         non-existent attribute.
11370         (parse_file) Catch exception if input file does not exist.
11372 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11374         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11375         options to avoid diff calculation and omit header, respectively.
11376         (main): process --no-diff and --no-header
11378 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11379             H.J. Lu  <hongjiu.lu@intel.com>
11381         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11382         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11383         wcsncmp-sse2.
11384         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11385         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11386         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11387         and __wcsncmp_sse2.
11388         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11389         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11390         AVX unaligned load is fast and vzeroupper is preferred.
11391         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11392         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11393         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11394         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11395         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11396         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11397         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11398         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11399         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11400         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11401         is undefined.
11403 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11405         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11406         configuring with --disable-multi-arch, building with
11407         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11408         Haswell-era CPU.
11410 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11412         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11413         results from building with “-march=x86-64 -mtune=generic
11414         -mfpmath=sse” and running on a Haswell-era CPU.
11416 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
11418         [BZ #18473]
11419         * soft-fp/sqrttf2.c: Remove file.
11420         * soft-fp/sqrtdf2.c: Move to ....
11421         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
11422         <shlib-compat.h>.
11423         (__sqrtdf2): Make conditional on
11424         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
11425         symbol.
11426         * soft-fp/sqrtsf2.c: Move to ....
11427         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
11428         <shlib-compat.h>.
11429         (__sqrtsf2): Make conditional on
11430         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
11431         symbol.
11432         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11433         (gcc-double-routines): Remove sqrtdf2.
11434         (gcc-quad-routines): Remove sqrttf2.
11435         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11436         Do not filter out sqrtsf2 and sqrtdf2.
11437         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11438         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11440 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11442         * sysdeps/generic/libcidn.abilist: Remove file.
11444 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11446         [BZ #23236]
11447         * libio/strfile.h (struct _IO_str_fields): Rename members to
11448         discourage their use and add comment.
11449         (_IO_STR_DYNAMIC): Remove unused macro.
11450         * libio/strops.c (_IO_str_init_static_internal): Do not use
11451         callback pointers.  Call malloc and free.
11452         (_IO_str_overflow): Do not use callback pointers.  Call malloc
11453         and free.
11454         (enlarge_userbuf): Likewise.
11455         (_IO_str_finish): Call free.
11456         * libio/wstrops.c (_IO_wstr_init_static): Initialize
11457         _allocate_buffer_unused.
11458         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
11459         and free.
11460         (enlarge_userbuf): Likewise.
11461         (_IO_wstr_finish): Call free.
11462         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11463         _allocate_buffer_unused, _free_buffer_unused.
11464         * libio/memstream.c (__open_memstream): Likewise.
11465         * libio/vasprintf.c (_IO_vasprintf): Likewise.
11466         * libio/wmemstream.c (open_wmemstream): Likewise.
11468 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
11470         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11471         AMD Ryzen 7 1800X.
11473 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11475         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11476         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11477         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11478         New file.
11479         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11480         Likewise.
11481         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11483 2018-05-29  Florian Weimer  <fweimer@redhat.com>
11485         * support/Makefile (libsupport-routines): Add
11486         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11487         xpthread_barrierattr_setpshared.
11488         * support/xpthread_barrierattr_destroy.c: New file.
11489         * support/xpthread_barrierattr_init.c: Likewise.
11490         * support/xpthread_barrierattr_setpshared.c: Likewise.
11492 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11494         [BZ #23206]
11495         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11496         _r_debug and update DT_DEBUG for debugger.
11498 2018-05-29  Florian Weimer  <fweimer@redhat.com>
11500         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11501         (tst-strtod5i.out): Likewise.
11503 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
11505         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11506         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11507         (sparc64-quad-routines): New variable.  Moved from ....
11508         [$(subdir) = soft-fp] (sysdep_routines): Add
11509         $(sparc64-quad-routines).  Moved from ....
11510         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
11511         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
11512         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11513         moved from ....
11514         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
11515         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11516         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11517         * sysdeps/sparc/sparc64/qp_add.c: ... here.
11518         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11519         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11520         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11521         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11522         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11523         * sysdeps/sparc/sparc64/qp_div.c: ... here.
11524         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11525         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11526         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11527         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11528         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11529         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11530         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11531         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11532         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11533         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11534         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11535         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11536         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11537         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11538         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11539         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11540         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11541         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11542         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11543         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11544         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11545         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11546         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11547         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11548         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11549         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11550         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11551         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11552         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11553         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11554         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11555         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11556         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11557         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11558         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11559         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11560         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11561         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11562         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11563         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11564         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11565         * sysdeps/sparc/sparc64/qp_util.c: ... here.
11566         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11567         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11568         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11569         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11570         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11571         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11573         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11574         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11575         (sparc32-quad-routines): New variable.  Moved from ....
11576         [$(subdir) = soft-fp] (sysdep_routines): Add
11577         $(sparc32-quad-routines).  Moved from ....
11578         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
11579         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11580         moved from ....
11581         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
11582         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11583         * sysdeps/sparc/sparc32/q_add.c: ... here.
11584         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11585         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11586         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11587         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11588         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11589         * sysdeps/sparc/sparc32/q_div.c: ... here.
11590         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11591         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11592         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11593         * sysdeps/sparc/sparc32/q_feq.c: ... here.
11594         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11595         * sysdeps/sparc/sparc32/q_fge.c: ... here.
11596         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11597         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11598         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11599         * sysdeps/sparc/sparc32/q_fle.c: ... here.
11600         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11601         * sysdeps/sparc/sparc32/q_flt.c: ... here.
11602         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11603         * sysdeps/sparc/sparc32/q_fne.c: ... here.
11604         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11605         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11606         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11607         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11608         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11609         * sysdeps/sparc/sparc32/q_mul.c: ... here.
11610         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11611         * sysdeps/sparc/sparc32/q_neg.c: ... here.
11612         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11613         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11614         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11615         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11616         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11617         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11618         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11619         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11620         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11621         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11622         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11623         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11624         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11625         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11626         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11627         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11628         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11629         * sysdeps/sparc/sparc32/q_sub.c: ... here.
11630         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11631         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11632         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11633         * sysdeps/sparc/sparc32/q_util.c: ... here.
11634         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11635         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11636         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11637         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11639 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
11640             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11642         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
11643         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11644         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11645         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11647 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
11649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11650         powerpc/soft-fp.
11651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11652         Likewise.
11653         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11654         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11656 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11658         [BZ #23171]
11659         * math/math.h [C++] (iseqsig): Fix parameter type for the long
11660         double version.
11662 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
11664         * sysdeps/sh/Implies: Remove sh/soft-fp.
11665         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11666         * sysdeps/sh/sfp-machine.h: ... here.
11668 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11670         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11671         (__mempcpy_erms): Skip zero length.
11672         (__memmove_erms): Likewise.
11673         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11674         (__memset_erms): Likewise.
11676 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
11678         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11679         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11680         Add functions moved from ....
11681         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
11682         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
11683         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11684         from ....
11685         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
11686         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11687         * sysdeps/alpha/e_sqrtl.c: ... here.
11688         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11689         * sysdeps/alpha/local-soft-fp.h: ... here.
11690         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11691         * sysdeps/alpha/ots_add.c: ... here.
11692         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11693         * sysdeps/alpha/ots_cmp.c: ... here.
11694         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11695         * sysdeps/alpha/ots_cmpe.c: ... here.
11696         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11697         * sysdeps/alpha/ots_cvtqux.c: ... here.
11698         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11699         * sysdeps/alpha/ots_cvtqx.c: ... here.
11700         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11701         * sysdeps/alpha/ots_cvttx.c: ... here.
11702         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11703         * sysdeps/alpha/ots_cvtxq.c: ... here.
11704         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11705         * sysdeps/alpha/ots_cvtxt.c: ... here.
11706         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11707         * sysdeps/alpha/ots_div.c: ... here.
11708         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11709         * sysdeps/alpha/ots_mul.c: ... here.
11710         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11711         * sysdeps/alpha/ots_nintxq.c: ... here.
11712         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11713         * sysdeps/alpha/ots_sub.c: ... here.
11714         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11715         * sysdeps/alpha/sfp-machine.h: ... here.
11717 2018-05-23  Florian Weimer  <fweimer@redhat.com>
11719         [BZ #19728]
11720         [BZ #19729]
11721         [BZ #22247]
11722         CVE-2016-6261
11723         CVE-2016-6263
11724         CVE-2017-14062
11725         Switch to extern IDNA implementation (libidn2).
11726         * libidn: Remove subdirectory.
11727         * LICENSES: Do not mention licensing conditions for the removed
11728         libidn code.
11729         * config.h.in (HAVE_LIBIDN): Remove.
11730         * include/dlfcn.h (__libc_dlopen): Update comment.
11731         * include/idna.h: Remove file.
11732         * inet/Makefile (routines): Add idna.
11733         (tests-static, tests-internal): Add tst-idna_name_classify.
11734         (LOCALES): Generate locales for tests.
11735         (tst-idna_name_classify.out): Depend on generated locales.
11736         * inet/idna_name_classify.c: New file.
11737         * inet/tst-idna_name_classify.c: Likewise.
11738         * inet/net-internal.h (__idna_to_dns_encoding)
11739         (__idna_from_dns_encoding): Declare.
11740         * inet/net-internal.h (enum idna_name_classification): Define.
11741         (__idna_name_classify): Declare.
11742         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11743         __idna_from_dns_encoding.
11744         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11745         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
11746         name as a fallback in case of encoding errors.
11747         (getnameinfo): Use DEPRECATED_NI_IDN.
11748         * inet/idna.c: New file.
11749         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11750         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11751         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11752         (modules-names): Add tst-no-libidn2.
11753         (extra-test-objs): Add tst-no-libidn2.os.
11754         (LDFLAGS-tst-no-libidn2.so): Set soname.
11755         (LOCALES): Set, and generate locales.
11756         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11757         (tst-resolv-ai_idn-latin1): Likewise.
11758         (tst-resolv-ai_idn-nolibidn2): Likewise.
11759         (tst-resolv-ai_idn.out): Depend on locales.
11760         (tst-resolv-ai_idn-latin1.out): Depend on locales.
11761         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11762         tst-no-libidn2.so.
11763         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11764         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11765         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11766         * resolv/tst-resolv-ai_idn.c: New file.
11767         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11768         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11769         * resolv/tst-no-libidn2.c: Likewise.
11770         * support/support_format_addrinfo.c (format_ai_flags): Do not
11771         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11772         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11773         (gaih_inet): Call __idna_to_dns_encoding and
11774         __idna_from_dns_encoding, and use the original (punycode) name if
11775         __idna_from_dns_encoding fails due to an encoding error.
11776         (getaddrinfo): Use DEPRECATED_AI_IDN.
11777         * sysdeps/unix/inet/Subdirs (libidn): Remove.
11778         * sysdeps/unix/inet/configure: Remove file.
11779         * sysdeps/unix/inet/configure.ac: Likewise.
11781 2018-05-23  Florian Weimer  <fweimer@redhat.com>
11783         Implement allocate_once.
11784         * include/allocate_once.h: New file.
11785         * misc/allocate_once.c: Likewise.
11786         * misc/tst-allocate_once.c: Likewise.
11787         * misc/Makefile (routines): Add allocate_once.
11788         (tests-internal): Add tst-allocate_once.
11789         (generated): Add tst-allocate_once.mtrace,
11790         tst-allocate_once-mem.out.
11791         (tests-special): Add tst-allocate_once-mem.out.
11792         (tst-allocate_once-ENV): Set MALLOC_TRACE.
11793         (tst-allocate_once-mem.out): Call mtrace.
11794         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11796 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11798         [BZ #23196]
11799         * string/test-memcpy.c (do_test1): New function.
11800         (test_main): Call it.
11802 2018-05-23  Andreas Schwab  <schwab@suse.de>
11804         [BZ #23196]
11805         CVE-2018-11237
11806         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11807         (L(preloop_large)): Save initial destination pointer in %r11 and
11808         use it instead of %rax after the loop.
11809         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11811 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
11813         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11814         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11815         -I../soft-fp.  Moved from ....
11816         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
11817         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11818         * sysdeps/aarch64/e_sqrtl.c: ... here.
11819         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11820         * sysdeps/aarch64/sfp-machine.h: ... here.
11822         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11823         -Wmaybe-uninitialized around access to fq[0].
11824         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11825         Likewise.
11827         [BZ #18471]
11828         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11829         aliases for non-libc case of versioned symbols.
11830         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11831         (llseek): Define as compat symbol if
11832         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11833         with link warning.
11834         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11835         Make into a compat symbol, disabled for minimum symbol version
11836         GLIBC_2.28 and later.
11837         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11839 2018-05-22  Florian Weimer  <fweimer@redhat.com>
11841         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11842         not add -mpreferred-stack-boundary=4.
11843         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11844         (stack-align-test-flags): Likewise.
11845         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11846         Likewise.
11847         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11848         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11849         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11850         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11851         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11852         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11853         (CFLAGS-tst-align2.c): Likewise.
11855 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11857         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11858         (index_arch_Prefer_FSRM): Likewise.
11859         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11860         Also check Prefer_FSRM.
11861         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11862         Also return OPTIMIZE (erms) for Prefer_FSRM.
11864 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11866         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11867         (index_cpu_FSRM): Likewise.
11868         (reg_FSRM): Likewise.
11870 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
11872         * math/gen-tgmath-tests.py: Import sys.
11873         (Tests.__init__): Initialize macros_seen.
11874         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
11875         if requested to do so for this macro.
11876         (Tests.add_all_tests): Take argument for macro for which to
11877         generate tests.
11878         (Tests.check_macro_list): New function.
11879         (main): Handle check-list argument and argument specifying macro
11880         for which to generate tests.
11881         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11882         [PYTHON] (tgmath3-macro-tests): Likewise.
11883         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11884         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11885         not test-tgmath3.c.
11886         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11887         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11888         to CFLAGS.
11889         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11890         [PYTHON] ($(foreach
11891         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
11892         rule.
11893         [PYTHON] (tests-special): Add
11894         $(objpfx)test-tgmath3-macro-list.out.
11895         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11897         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11898         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11899         later.
11901         [BZ #22639]
11902         * time/tzset.c (SECSPERDAY): Cast to time_t.
11903         * time/tst-y2039.c: New file.
11904         * time/Makefile (tests): Add tst-y2039.
11906 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11908         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11909         (PREFETCH_ONE_SET): Remove duplicate line.
11911 2018-05-17  Florian Weimer  <fweimer@redhat.com>
11913         * sysdeps/generic/math-type-macros-double.h: Include
11914         <math-nan-payload-double.h> after <libm-alias-double.h>.
11915         * sysdeps/generic/math-type-macros-float.h: Include
11916         <math-nan-payload-float.h> after <libm-alias-float.h>.
11917         * sysdeps/generic/math-type-macros-float128.h: Include
11918         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11919         * sysdeps/generic/math-type-macros-ldouble.h: Include
11920         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11922 2018-05-17  Andreas Schwab  <schwab@suse.de>
11924         * resolv/res_send.c (__res_context_send): Don't set errno when
11925         returing error after malloc failure.
11927 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
11929         * nptl/allocatestack.c (allocate_stack): Remove the
11930         !__ASSUME_PRIVATE_FUTEX paths.
11931         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11932         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11933         Likewise.
11934         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11935         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11936         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11937         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11938         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11939         !__ASSUME_PRIVATE_FUTEX path.
11940         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11941         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11942         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11943         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11944         !__ASSUME_PRIVATE_FUTEX macros.
11945         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11946         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11947         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11948         * sysdeps/unix/sysv/linux/kernel-features.h
11949         (__ASSUME_PRIVATE_FUTEX): Removed.
11951 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
11953         * math/Makefile (libm-narrow-fns): Add div.
11954         (libm-test-funcs-narrow): Likewise.
11955         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11956         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11957         * math/gen-auto-libm-tests.c (test_functions): Add div.
11958         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11959         (NARROW_DIV_ROUND_TO_ODD): Likewise.
11960         (NARROW_DIV_TRIVIAL): Likewise.
11961         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11962         macro.
11963         (__ddivl): Likewise.
11964         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11965         ddiv.
11966         (CFLAGS-nldbl-ddiv.c): New variable.
11967         (CFLAGS-nldbl-fdiv.c): Likewise.
11968         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11969         __nldbl_ddivl.
11970         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11971         prototype.
11972         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11973         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11974         * math/auto-libm-test-in: Add tests of div.
11975         * math/auto-libm-test-out-narrow-div: New generated file.
11976         * math/libm-test-narrow-div.inc: New file.
11977         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11978         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11979         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11980         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11981         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11982         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11983         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11984         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11985         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11986         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11987         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11988         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11989         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11990         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11991         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11992         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11993         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11994         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11995         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11996         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11997         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11998         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11999         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12000         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12001         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12002         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12003         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12004         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12005         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12006         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12007         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12008         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12013         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12014         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12015         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12016         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12017         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12018         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12019         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12020         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12022 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12024         [BZ #23178]
12025         * nscd/nscd-client.h (sendfileall): Remove prototype.
12026         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12027         (handle_request): Use writeall instead of sendfileall.
12028         * nscd/aicache.c (addhstaiX): Likewise.
12029         * nscd/grpcache.c (cache_addgr): Likewise.
12030         * nscd/hstcache.c (cache_addhst): Likewise.
12031         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12032         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12033         * nscd/pwdcache.c (cache_addpw): Likewise.
12034         * nscd/servicescache.c (cache_addserv): Likewise.
12035         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12036         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12037         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12038         Remove define.
12040 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12042         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12043         Include <string/strncat.c>.
12044         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12045         alias.
12046         (__GI___strncat): New hidden alias.
12048 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
12050         * sysdeps/mips/mips32/libm-test-ulps: Update.
12051         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12053 2018-05-16  Florian Weimer  <fweimer@redhat.com>
12055         * support/Makefile (libsupport-routines): Add support_quote_blob,
12056         support_test_compare_blob.
12057         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12058         * support/check.h (TEST_COMPARE_BLOB): Define.
12059         (support_test_compare_blob): Declare.
12060         * support/support.h (support_quote_blob): Declare.
12061         * support/support_quote_blob.c: New file.
12062         * support/support_test_compare_blob.c: Likewise.
12063         * support/tst-support_quote_blob.c: Likewise.
12064         * support/tst-test_compare_blob.c: Likewise.
12066 2018-05-16  Florian Weimer  <fweimer@redhat.com>
12068         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12069         of <strtod_nan_double.h>.
12070         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12071         instead of SET_MANTISSA.
12072         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12073         of include <strtod_nan_float.h>.
12074         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12075         instead of <strtod_nan_ldouble.h>.
12076         * stdlib/strtod_nan_double.h: Move to ...
12077         * sysdeps/generic/math-nan-payload-double.h: ... here.
12078         (FLOAT): Remove definition.
12079         (SET_MANTISSA): Rename to ...
12080         (SET_NAN_PAYLOAD): ... this.
12081         * stdlib/strtod_nan_float.h: Move to ...
12082         * sysdeps/generic/math-nan-payload-float.h: ... here.
12083         (FLOAT): Remove definition.
12084         (SET_MANTISSA): Rename to ...
12085         (SET_NAN_PAYLOAD): ... this.
12086         * sysdeps/generic/math-type-macros-double.h: Include
12087         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
12088         instead of <math-svid-compat.h>.
12089         * sysdeps/generic/math-type-macros-float.h: Include
12090         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
12091         instead of <math-svid-compat.h>.
12092         * sysdeps/generic/math-type-macros-float128.h: Include
12093         <math-nan-payload-float128.h>.
12094         * sysdeps/generic/math-type-macros-ldouble.h: Include
12095         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
12096         instead of <math-svid-compat.h>.
12097         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12098         check for definition.
12099         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12100         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12101         Include <ieee754_float128.h>.
12102         (FLOAT): Remove definition.
12103         (SET_MANTISSA): Rename to ...
12104         (SET_NAN_PAYLOAD): ... this.
12105         * sysdeps/ieee754/float128/strtof128_nan.c: Include
12106         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12107         Do not include <float128_private.h>.
12108         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12109         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12110         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12111         (FLOAT): Remove definition.
12112         (SET_MANTISSA): Rename to ...
12113         (SET_NAN_PAYLOAD): ... this.
12114         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12115         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12116         (FLOAT): Remove definition.
12117         (SET_MANTISSA): Rename to ...
12118         (SET_NAN_PAYLOAD): ... this.
12119         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12120         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12121         (FLOAT): Remove definition.
12122         (SET_MANTISSA): Rename to ...
12123         (SET_NAN_PAYLOAD): ... this.
12124         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12125         of "../stdlib/strtod_nan_double.h".
12126         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12127         of "../stdlib/strtod_nan_float.h".
12128         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12129         instead of "../stdlib/strtod_nan_ldouble.h".
12130         * manual/arith.texi (Parsing of Floats): Adjust comment.
12132 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
12134         * math/Makefile (libm-narrow-fns): Add mul.
12135         (libm-test-funcs-narrow): Likewise.
12136         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12137         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12138         * math/gen-auto-libm-tests.c (test_functions): Add mul.
12139         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12140         (NARROW_MUL_ROUND_TO_ODD): Likewise.
12141         (NARROW_MUL_TRIVIAL): Likewise.
12142         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12143         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12144         macro.
12145         (__dmull): Likewise.
12146         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12147         dmul.
12148         (CFLAGS-nldbl-dmul.c): New variable.
12149         (CFLAGS-nldbl-fmul.c): Likewise.
12150         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12151         __nldbl_dmull.
12152         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12153         prototype.
12154         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12155         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12156         * math/auto-libm-test-in: Add tests of mul.
12157         * math/auto-libm-test-out-narrow-mul: New generated file.
12158         * math/libm-test-narrow-mul.inc: New file.
12159         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12160         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12161         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12162         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12163         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12164         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12170         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12171         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12172         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12173         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12174         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12175         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12176         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12177         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12178         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12179         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12180         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12181         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12182         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12183         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12184         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12185         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12186         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12187         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12188         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12189         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12190         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12194         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12195         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12196         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12197         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12198         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12199         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12200         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12201         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12202         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12204 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12206         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12207         with *%eax in call.
12209 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12211         * sysdeps/i386/ldsodefs.h: Removed.
12212         * sysdeps/x86_64/ldsodefs.h: Moved to ...
12213         * sysdeps/x86/ldsodefs.h: This.
12214         (La_i86_regs): New.
12215         (La_i86_retval): Likewise.
12216         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12217         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12219 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12221         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12222         unnecessary testl.
12224 2018-05-13  Alan Modra  <amodra@gmail.com>
12226         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12227         R_PARISC_TLS_DTPOFF32 reloc addend.
12229 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12231         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12232         * math/math.h: Restrict the prototype definition for the functions
12233         issignaling(_Float128) and iszero(_Float128); and template
12234         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12235         __HAVE_FLOAT128_UNLIKE_LDBL.
12236         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12237         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12238         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12239         __f128() constants; define the type _Float128 as long double;
12240         and reuse long double in __CFLOAT128.
12242 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
12244         * sysdeps/generic/math_private.h: Do not include
12245         <math-barriers.h>.
12246         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12247         <math_private.h>.
12248         * math/fromfp.h: Include <math-barriers.h>.
12249         * math/math-narrow.h: Likewise.
12250         * math/s_nextafter.c: Likewise.
12251         * math/s_nexttowardf.c: Likewise.
12252         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12253         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12254         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12255         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12256         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12257         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12258         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12259         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12260         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12261         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12262         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12263         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12264         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12265         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12266         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12267         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12268         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12269         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12270         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12271         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12272         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12273         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12274         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12275         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12276         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12277         * sysdeps/ieee754/k_standardl.c: Likewise.
12278         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12279         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12280         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12281         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12282         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12283         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12284         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12285         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12286         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12287         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12288         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12289         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12290         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12291         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12292         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12293         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12294         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12295         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12296         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12297         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12298         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12299         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12301 2018-05-11  Florian Weimer  <fweimer@redhat.com>
12303         Use 64-bit epoch values in the time zone file parser.
12304         * include/time.h (internal_time_t): Define.
12305         (__tzfile_compute): Use it.
12306         * time/tzfile.c (struct leap): Use internal_time_t for epoch
12307         member.
12308         (transitions): Switch to internal_time_t.
12309         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
12310         types.
12311         (__tzfile_compute): Use internal_time_t for timer argument.  Check
12312         for truncation before calling __offtime.
12314 2018-05-11  Florian Weimer  <fweimer@redhat.com>
12316         [BZ #23166]
12317         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12318         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12319         Likewise.
12320         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12321         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
12322         export without --enable-obsolete-rpc.
12323         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12324         symbol.  This should not have been exported, ever.
12326 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
12328         [BZ #23152]
12329         * localedata/locales/gd_GB (abmon): Fix typo in May:
12330         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
12332 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12334         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12335         Use multiple registers to copy data in loop tail.
12337         * sysdeps/aarch64/multiarch/memmove_falkor.S
12338         (__memmove_falkor): Use multiple registers to move data in
12339         loop tail.
12341 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
12343         * math/math-underflow.h: New file.
12344         * sysdeps/generic/math_private.h: Do not include <float.h>.
12345         (fabs_tg): Remove macro.  Moved to math-underflow.h.
12346         (min_of_type_f): Likewise.
12347         (min_of_type_): Likewise.
12348         (min_of_type_l): Likewise.
12349         (min_of_type_f128): Likewise.
12350         (min_of_type): Likewise.
12351         (math_check_force_underflow): Likewise.
12352         (math_check_force_underflow_nonneg): Likewise.
12353         (math_check_force_underflow_complex): Likewise.
12354         * math/e_exp2_template.c: Include <math-underflow.h>.
12355         * math/k_casinh_template.c: Likewise.
12356         * math/s_catan_template.c: Likewise.
12357         * math/s_catanh_template.c: Likewise.
12358         * math/s_ccosh_template.c: Likewise.
12359         * math/s_cexp_template.c: Likewise.
12360         * math/s_clog10_template.c: Likewise.
12361         * math/s_clog_template.c: Likewise.
12362         * math/s_csin_template.c: Likewise.
12363         * math/s_csinh_template.c: Likewise.
12364         * math/s_csqrt_template.c: Likewise.
12365         * math/s_ctan_template.c: Likewise.
12366         * math/s_ctanh_template.c: Likewise.
12367         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12368         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12369         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12370         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12371         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12374         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12375         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12376         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12377         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12378         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12379         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12380         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12381         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12382         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12383         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12384         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12385         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12386         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12387         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12388         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12389         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12390         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12391         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12392         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12393         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12394         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12395         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12396         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12397         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12398         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12399         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12400         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12401         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12402         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12403         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12404         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12405         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12406         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12409         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12411         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12413         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12414         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12415         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12417         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12418         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12419         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12420         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12421         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12422         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12423         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12424         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12425         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12426         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12427         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12428         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12429         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12430         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12431         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12432         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12433         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12434         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12435         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12436         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12437         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12438         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12439         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12440         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12441         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12442         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12443         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12444         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12445         * sysdeps/x86/fpu/powl_helper.c: Likewise.
12446         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12447         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12448         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12449         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12450         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12452 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
12454         * sysdeps/generic/math-barriers.h: New file.
12455         * sysdeps/generic/math_private.h [!math_opt_barrier]
12456         (math_opt_barrier): Move to math-barriers.h.
12457         [!math_opt_barrier] (math_force_eval): Likewise.
12458         * sysdeps/aarch64/fpu/math-barriers.h: New file.
12459         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12460         math-barriers.h.
12461         (math_force_eval): Likewise.
12462         * sysdeps/alpha/fpu/math-barriers.h: New file.
12463         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12464         math-barriers.h.
12465         (math_force_eval): Likewise.
12466         * sysdeps/x86/fpu/math-barriers.h: New file.
12467         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12468         math-barriers.h.
12469         (math_force_eval): Likewise.
12470         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12471         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
12472         multiple-include guard for rename.
12473         * sysdeps/powerpc/fpu/math-barriers.h: New file.
12474         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12475         math-barriers.h.
12476         (math_force_eval): Likewise.
12478 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
12480         [BZ #22786]
12481         CVE-2018-11236
12482         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12483         computation.
12484         * stdlib/Makefile (test-bz22786): New test.
12485         * stdlib/test-bz22786.c: New test.
12487 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
12489         * include/math-narrow-eval.h: New file.  Contents moved from ....
12490         * sysdeps/generic/math_private.h: ... here.
12491         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
12492         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12493         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12494         * stdlib/strtod_l.c: Likewise.
12495         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12496         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12497         * sysdeps/i386/fpu/s_fdim.c: Likewise.
12498         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12499         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12500         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12501         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12502         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12503         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12504         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12509         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12510         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12511         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12512         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12513         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12514         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12515         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12516         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12517         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12518         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12519         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12520         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12521         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12522         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12523         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12525 2018-05-08  Andreas Schwab  <schwab@suse.de>
12527         * sysdeps/nptl/internaltypes.h: Fix comment.
12529 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
12531         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12532         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12533         hidden.
12535 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12537         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12538         of I into loop header.
12539         * benchtests/bench-memmove-walk.c
12540         (test_main): Likewise.
12542 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
12544         Revert:
12545         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
12546         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12548 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12550         [BZ #20419]
12551         * elf/dl-load.c (open_verify): Fix stack overflow.
12552         * elf/Makefile (tst-big-note): New test.
12553         * elf/tst-big-note-lib.S: New.
12554         * elf/tst-big-note.c: New.
12556 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
12558         * scripts/abilist.awk: Ignore absolute symbols.
12559         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12560         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12561         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12562         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12563         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12564         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12565         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12566         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12567         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12568         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12569         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12570         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12571         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12572         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12573         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12574         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12575         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12576         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12577         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12578         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12579         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12580         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12581         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12582         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12583         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12584         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12585         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12586         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12587         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12588         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12589         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12590         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12591         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12592         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12593         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12594         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12595         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12596         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12597         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12598         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12599         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12600         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12601         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12602         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12603         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12604         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12605         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12606         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12607         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12608         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12609         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12610         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12611         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12612         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12613         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12614         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12615         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12616         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12617         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12618         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12619         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12620         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12621         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12622         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12623         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12624         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12625         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12626         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12627         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12628         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12629         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12630         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12631         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12632         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12633         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12634         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12635         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12636         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12637         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12638         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12639         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12640         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12641         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12642         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12643         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12644         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12645         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12646         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12647         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12648         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12649         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12650         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12651         Likewise.
12652         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12653         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12654         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12655         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12656         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12657         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12658         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12659         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12660         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12661         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12662         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12663         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12664         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12665         Likewise.
12666         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12667         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12668         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12669         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12670         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12671         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12672         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12673         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12674         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12675         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12676         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12677         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12678         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12679         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12680         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12681         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12682         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12683         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12684         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12685         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12686         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12687         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12688         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12689         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12690         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12691         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12692         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12693         Likewise.
12694         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12695         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12696         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12697         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12698         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12699         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12700         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12701         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12702         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12703         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12704         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12705         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12706         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12707         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12708         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12709         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12710         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12711         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12712         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12713         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12714         Likewise.
12715         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12716         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12717         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12718         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12719         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12720         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12721         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12722         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12723         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12724         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12725         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12726         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12727         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12728         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12729         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12730         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12731         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12732         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12733         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12734         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12735         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12736         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12737         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12738         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12739         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12740         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12741         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12742         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12747         Likewise.
12748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12753         Likewise.
12754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12755         Likewise.
12756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12758         Likewise.
12759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12761         Likewise.
12762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12763         Likewise.
12764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12767         Likewise.
12768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12769         Likewise.
12770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12771         Likewise.
12772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12776         Likewise.
12777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12783         Likewise.
12784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12786         Likewise.
12787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12788         Likewise.
12789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12790         Likewise.
12791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12792         Likewise.
12793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12794         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12796         Likewise.
12797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12798         Likewise.
12799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12800         Likewise.
12801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12802         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12803         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12804         Likewise.
12805         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12806         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12807         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12808         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12809         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12810         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12811         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12812         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12813         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12814         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12815         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12816         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12817         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12818         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12819         Likewise.
12820         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12821         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12822         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12823         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12824         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12825         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12826         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12827         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12828         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12829         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12830         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12831         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12832         Likewise.
12833         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12834         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12835         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12836         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12837         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12838         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12839         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12840         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12841         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12842         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12843         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12844         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12845         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12846         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12847         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12848         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12849         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12850         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12851         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12852         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12853         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12854         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12855         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12856         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12857         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12858         Likewise.
12859         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12860         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12861         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12862         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12863         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12864         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12865         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12866         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12867         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12868         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12869         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12870         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12871         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12872         Likewise.
12873         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12874         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12875         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12876         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12877         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12878         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12879         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12880         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12881         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12882         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12883         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12884         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12885         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12886         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12887         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12888         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12889         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12890         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12891         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12892         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12893         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12894         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12895         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12896         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12897         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12898         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12899         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12900         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12901         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12902         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12903         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12904         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12905         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12906         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12907         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12908         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12909         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12910         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12912 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
12914         [BZ #23137]
12915         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12916         Use atomic_load_acquire to load __tid.
12918 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
12920         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12921         Restore the pointer into %rdx, after syscall and use %rdx,
12922         instead of %rsi, to restore context.
12924 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
12926         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12927         Pop the pointer into %rdx after syscall and use %rdx, instead
12928         of %rsi, to restore context.
12930 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
12932         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12933         handlers after setjmp.
12934         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12935         defined.
12936         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12937         <libc-pointer-arith.h>.
12938         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12939         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12940         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12941         _JUMP_BUF_SIGSET_BITS_PER_WORD.
12942         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12943         * sysdeps/x86/__longjmp_cancel.S: New file.
12944         * sysdeps/x86/longjmp.c: Likewise.
12945         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12947 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12949         * NEWS: Add ustat.h deprecation entry.
12950         * bits/ustat.h: Remove file.
12951         * misc/sys/ustat.h: Likewise.
12952         * misc/ustat.h: Likewise.
12953         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12954         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12955         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12956         compatibility mode.
12957         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12958         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12959         generic Linux implementation.
12961 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12963         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12964         * math/w_expl_compat.c: Likewise.
12965         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
12967 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
12969         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12971 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12973         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12974         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12975         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12976         Remove.
12977         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12979         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12980         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12981         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12982         and SYSCALL_LL64.
12984 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12986         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12988         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12989         * math/w_asin_template.c: Likewise.
12990         * math/w_atanh_template.c: Likewise.
12992 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12994         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12995         to powerpc/powerpc64/be for big-endian.
12996         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12997         little-endian.
12999         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13000         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13001         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13002         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13003         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13004         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13005         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13006         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13007         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13008         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13009         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13010         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13011         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13012         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13013         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13014         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13015         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13016         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13017         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13018         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13019         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13020         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13021         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13022         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13023         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13024         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13025         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13026         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13027         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13028         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13029         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13030         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13032         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13033         adjusted to imply powerpc64 and older processors on powerpc64/be.
13034         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13035         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13036         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13037         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13038         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13039         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13040         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13041         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13042         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13043         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13044         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13045         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13046         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13047         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13048         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13049         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13050         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13051         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13052         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13053         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13054         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13055         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13056         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13057         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13058         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13059         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13060         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13061         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13062         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13063         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13064         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13066         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13067         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13068         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13069         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13071         * sysdeps/powerpc/powerpc64/be/Implies: New file.
13072         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13073         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13074         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13076         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13077         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13078         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13079         * sysdeps/powerpc/powerpc64le/configure: Likewise.
13080         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13081         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13082         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13083         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13084         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13085         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13086         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13088         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13089         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13090         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13091         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13092         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13093         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13094         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13095         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13096         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13097         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13098         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13100         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13101         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13102         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13103         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13104         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13105         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13106         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13107         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13108         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13109         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13110         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13111         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13113         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13114         and adjusted to imply olders processors.
13115         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13116         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13117         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13118         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13119         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13120         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13121         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13122         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13123         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13124         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13125         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13127         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13128         powerpc64/le.
13129         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13130         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13133         powerpc64le.
13134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13138         powerpc64/be.
13139         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13144         powerpc64 and adjusted.
13145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13148         Likewise.
13150 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
13152         * sysdeps/tile: Remove.
13153         * sysdeps/unix/sysv/linux/tile: Likewise.
13154         * README (tilegx-*-linux-gnu): Remove from list of supported
13155         configurations.
13156         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13157         contribution of support for generic Linux kernel syscall
13158         interface.
13159         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13160         tilegx configurations.
13161         (Config.install_linux_headers): Do not handle tile.
13162         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13163         in comment.
13164         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13165         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13166         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13167         conditional undefine and redefine.
13168         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13169         in comment.
13170         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13171         conditional undefine and redefine.
13173 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
13175         * signal/tst-sigaction.c: New file to test BZ #23069.
13176         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13178 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13180         [BZ #22766]
13181         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13182         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13183         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13184         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13186 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13188         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13189         _DIRENT_MATCHES_DIRENT64 is not defined.
13190         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13191         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13192         is defined.
13193         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13194         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13196 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
13198         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13199         version to GCC 8 branch.
13201 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
13203         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13204         (check_no_hidden): Use type of original function when declaring
13205         alias.
13207         * sysdeps/unix/sysv/linux/sys/ptrace.h
13208         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13209         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13210         (struct __ptrace_seccomp_metadata): New type.
13211         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13212         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13213         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13214         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13215         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13216         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13217         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13218         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13219         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13220         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13221         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13222         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13223         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13224         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13225         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13226         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13228 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13230         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13231         defined.
13232         * dirent/versionsort.c (versionsort): Likewise.
13233         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13234         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13235         * dirent/versionsort64.c (versionsort64): Likewise.
13236         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13237         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13238         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13239         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13240         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13241         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13242         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13243         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13244         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13245         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13248         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13249         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13251 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
13253         * elf/elf.h (NT_PPC_PKEY): New macro.
13255 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13257         [BZ #23094]
13258         * localedata/locales/hr_HR: fix thousands_sep and
13259         mon_thousands_sep
13261 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
13263         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13264         (XTABS): Define to TAB3.
13266 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13268         * sysdeps/hppa/fpu/libm-test-ulps: Update.
13270         * dirent/scandir-tail-common.c: New file.
13271         * dirent/scandir-tail.c: Use scandir-tail-common.c.
13272         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13273         * dirent/scandir.c: Use scandir-tail-common.c.
13274         * dirent/scandirat.c: Likewise.
13275         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13276         * dirent/scandir64.c (scandir64): Always build and alias to scandir
13277         if _DIRENT_MATCHES_DIRENT64 is defined.
13278         * dirent/scandirat64.c (scandirat64): Likewise.
13279         * include/dirent.h (__scandir_tail): Only define iff
13280         _DIRENT_MATCHES_DIRENT64 is not defined.
13281         (__scandir64_tail): Define regardless.
13282         (__scandirat, scandirat64): Remove libc_hidden_proto.
13283         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13284         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13286         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13287         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13288         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13289         * sysdeps/unix/sysv/linux/scandir64.c: New file.
13291 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
13293         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13294         New macro.
13295         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13296         Increase to 24.
13297         (_dl_aarch64_cap_flags): Add asimdfhm.
13299 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
13301         * sysdeps/nios2/libm-test-ulps: Update.
13303 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13305         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13306         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13308         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13309         requirements.
13310          (_DIRENT_MATCHES_DIRENT64): Undef
13311         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13312         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13313         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13314         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13315         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13316         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13317         use getdents64 syscalls as base.
13318         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13319         symbol if required.
13320         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13321         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13322         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13323         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13324         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13325         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13326         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13327         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13328         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13329         (__get_clockfreq_via_proc_openprom): Use __getdents64.
13330         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13332 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
13334         * scripts/test_printers_common.py (init_test): Disable lock elision.
13336 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
13338         * math/test-tgmath.c (count_double, count_float,
13339         count_ldouble, count_cdouble, count_cfloat,
13340         count_cldouble): Use volatile int.
13342 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13344         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13345         (conformtest-xfail-conds): Add i386-gnu.
13346         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13347         i386-gnu.
13348         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13349         ipc_perm.cuid, ipc_perm.cgid): Likewise.
13350         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13351         msqid_ds.msg_lrpid): Likewise.
13352         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13353         Likewise.
13354         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13355         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13356         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13357         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13358         unsigned int.
13359         (struct statvfs64): Likewise.
13360         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13361         Likewise.
13362         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13363         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13364         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13365         instead of wait_queue.
13366         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13367         instead of vm_area_struct.
13368         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13369         struct sched_param definition to it.
13370         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13371         * bits/types/struct_sched_param.h: New file.
13372         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13373         <bits/types/struct_sched_param.h> instead of <sched.h>.
13374         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13375         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13376         generic version but include <bits/pthreadtypes.h> to make struct
13377         sigevent's sigev_notify_attributes field a pthread_attr_t*.
13378         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13379         non-compliant.
13380         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13381         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13382         [__USE_XOPEN] (OFDEL): New macro.
13383         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13384         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13385         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13386         prototypes.
13387         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13388         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13389         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13390         non-compliant.
13391         * sysdeps/i386/sys/ucontext.h: Likewise.
13392         * sysdeps/m68k/sys/ucontext.h: Likewise.
13393         * sysdeps/mips/sys/ucontext.h: Likewise.
13394         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13395         * sysdeps/mach/hurd/i386/Makefile
13396         (test-xfail-POSIX/fcntl.h/conform): Add.
13397         (test-xfail-POSIX/signal.h/conform): Add.
13398         (test-xfail-POSIX/semaphore.h/conform): Add.
13399         (test-xfail-POSIX/regex.h/conform): Add.
13400         (test-xfail-POSIX/aio.h/conform): Add.
13401         (test-xfail-POSIX/mqueue.h/conform): Add.
13402         (test-xfail-POSIX/sys/types.h/conform): Add.
13403         (test-xfail-UNIX98/fcntl.h/conform): Add.
13404         (test-xfail-UNIX98/netdb.h/conform): Add.
13405         (test-xfail-UNIX98/signal.h/conform): Add.
13406         (test-xfail-UNIX98/semaphore.h/conform): Add.
13407         (test-xfail-UNIX98/regex.h/conform): Add.
13408         (test-xfail-UNIX98/aio.h/conform): Add.
13409         (test-xfail-UNIX98/ftw.h/conform): Add.
13410         (test-xfail-UNIX98/mqueue.h/conform): Add.
13411         (test-xfail-UNIX98/netinet/in.h/conform): Add.
13412         (test-xfail-UNIX98/sys/wait.h/conform): Add.
13413         (test-xfail-UNIX98/sys/sem.h/conform): Add.
13414         (test-xfail-UNIX98/sys/uio.h/conform): Add.
13415         (test-xfail-UNIX98/sys/socket.h/conform): Add.
13416         (test-xfail-UNIX98/sys/types.h/conform): Add.
13417         (test-xfail-UNIX98/stdlib.h/conform): Add.
13418         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13419         (test-xfail-POSIX2008/fcntl.h/conform): Add.
13420         (test-xfail-POSIX2008/netdb.h/conform): Add.
13421         (test-xfail-POSIX2008/signal.h/conform): Add.
13422         (test-xfail-POSIX2008/semaphore.h/conform): Add.
13423         (test-xfail-POSIX2008/regex.h/conform): Add.
13424         (test-xfail-POSIX2008/aio.h/conform): Add.
13425         (test-xfail-POSIX2008/mqueue.h/conform): Add.
13426         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13427         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13428         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13429         (test-xfail-POSIX2008/sys/types.h/conform): Add.
13430         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13431         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13432         (test-xfail-XOPEN2K/netdb.h/conform): Add.
13433         (test-xfail-XOPEN2K/signal.h/conform): Add.
13434         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13435         (test-xfail-XOPEN2K/regex.h/conform): Add.
13436         (test-xfail-XOPEN2K/aio.h/conform): Add.
13437         (test-xfail-XOPEN2K/ftw.h/conform): Add.
13438         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13439         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13440         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13441         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13442         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13443         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13444         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13445         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13446         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13447         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13448         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13449         (test-xfail-XOPEN2K8/signal.h/conform): Add.
13450         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13451         (test-xfail-XOPEN2K8/regex.h/conform): Add.
13452         (test-xfail-XOPEN2K8/aio.h/conform): Add.
13453         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13454         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13455         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13456         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13457         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13458         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13459         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13460         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13461         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13462         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13463         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13464         i386-gnu.
13465         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13466         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13468 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
13470         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13471         --enable-obsolete for powerpc-linux-gnuspe.
13473 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13475         * conform/data/sys/un.h-data: Allow sun_ prefix.
13476         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13477         prototypes.
13478         * sysdeps/mach/include/mach.h: Likewise.
13479         * sysdeps/mach/include/mach/mig_support.h: Likewise.
13480         * sysdeps/mach/include/mach_error.h: Likewise.
13482 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13484         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13485         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13486         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13487         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13489 2018-04-16  Andreas Schwab  <schwab@suse.de>
13491         [BZ #19527]
13492         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13494 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
13496         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13497         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13499 2018-04-12  DJ Delorie  <dj@redhat.com>
13501         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13502         version to 4.16.
13504 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
13506         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13507         (struct kernel_sigaction): Use the same definition on 31bit as is used
13508         on 64bit.
13510 2018-04-09  Florian Weimer  <fweimer@redhat.com>
13512         [BZ #23037]
13513         * resolv/res_send.c (send_dg): Use designated initializers instead
13514         of assignment to zero-initialize other fields of struct mmsghdr.
13516 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13518         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13519         __READDIR_ALIAS): Undefine after usage.
13520         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13521         __READDIR_R_ALIAS): Likewise.
13522         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13523         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13524         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13525         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13526         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13527         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13528         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13529         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13530         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13531         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13532         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13533         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13534         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13535         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13536         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13537         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13538         * sysdeps/unix/sysv/linux/readdir.c: New file.
13539         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13540         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13541         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13543         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13545 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
13547         * manual/charset.texi (Converting a Character): Fix typo.
13549 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13551         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13553         * sysdeps/arm/libm-test-ulps: Update.
13555         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13556         as base implementation.
13557         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13558         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13559         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13560         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13561         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13562         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13563         remove unrequired definitions and update comments.
13564         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13565         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13566         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13567         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13568         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13569         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13570         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13571         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13572         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13573         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13574         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13575         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13576         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13577         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13578         and RESET_SA_RESTORER hooks.
13580 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
13582         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13584 2018-04-05  Florian Weimer  <fweimer@redhat.com>
13586         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13587         integer overflow, memory leak on error, and indeterminate errno
13588         value.  Add a null wide character to terminate the result string.
13589         * manual/charset.texi (Converting a Character): Mention embedded
13590         null bytes in the mbrtowc input string.  Explain what happens in
13591         the -2 result case.  Do not claim that mbrtowc is simple or
13592         obvious to use.  Adjust the description of the code example.  Use
13593         @code, not @var, for concrete variables.
13595 2018-04-05  Florian Weimer  <fweimer@redhat.com>
13597         * manual/examples/mbstouwcs.c: New file.
13598         * manual/charset.texi (Converting a Character): Include it.
13600 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13602         * include/dirent.h (dirfd): Add hidden proto.
13603         * dirent/dirfd.c (dirfd): Add hidden def.
13604         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13605         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13607 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13609         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13610         sin, cos and sincos to 1 ULP.
13612 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
13614         [BZ #19818]
13615         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13616         symbols.
13617         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13618         * elf/tst-absolute-sym.c: New file.
13619         * elf/tst-absolute-sym-lib.c: New file.
13620         * elf/tst-absolute-sym-lib.lds: New file.
13621         * elf/Makefile (tests): Add `tst-absolute-sym'.
13622         (modules-names): Add `tst-absolute-sym-lib'.
13623         (LDLIBS-tst-absolute-sym-lib.so): New variable.
13624         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13625         ($(objpfx)tst-absolute-sym): New dependency.
13627         [BZ #19818]
13628         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13629         parameter.
13630         (SYMBOL_ADDRESS): New macro.
13631         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13632         SYMBOL_ADDRESS for symbol address calculation.
13633         * elf/dl-runtime.c (_dl_fixup): Likewise.
13634         (_dl_profile_fixup): Likewise.
13635         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13636         * elf/rtld.c (dl_main): Likewise.
13637         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13638         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13639         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13640         (elf_machine_rela): Likewise.
13641         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13642         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13643         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13644         (elf_machine_rela): Likewise.
13645         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13646         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13647         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13648         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13649         Likewise.
13650         (elf_machine_reloc): Likewise.
13651         (elf_machine_got_rel): Likewise.
13652         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13653         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13654         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13655         Likewise.
13656         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13657         Likewise.
13658         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13659         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13660         Likewise.
13661         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13662         Likewise.
13663         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13664         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13665         Likewise.
13666         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13667         Likewise.
13668         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13669         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13671 2018-04-04  Zack Weinberg  <zackw@panix.com>
13673         * sysdeps/generic/internal-signals.h: Include signal.h,
13674         sigsetops.h, and stdbool.h.
13675         (__libc_signal_block_all): Actually block all signals.
13676         (__libc_signal_block_app): Likewise.
13677         (__libc_signal_restore_set): Actually restore the signal mask.
13679 2018-04-04  Florian Weimer  <fweimer@redhat.com>
13681         inet: Actually build and run tst-deadline.
13682         * inet/Makefile (tests-internal): Add tst-deadline and do not
13683         overwrite the variable.
13684         (tests-static-internal): Remove variable.
13686 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
13688         [BZ #22947]
13689         * bits/uio-ext.h (RWF_APPEND): New.
13690         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13691         * manual/llio.texi: Document RWF_APPEND.
13692         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13693         (RWF_SUPPORTED): Add RWF_APPEND.
13695 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13697         [BZ #22391]
13698         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13699         check for internal nptl signals.
13700         * nptl/sigaction.c (__sigaction): Likewise.
13701         * signal/sigaddset.c (sigaddset): Likewise.
13702         * signal/sigdelset.c (sigdelset): Likewise.
13703         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13704         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13705         value.
13706         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13707         to filter out internal nptl signals.
13708         * signal/tst-sigset.c (do_test): Check ech signal indidually and
13709         also check realtime signals using standard macros.
13710         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13711         __is_internal_signal, __libc_signal_block_all,
13712         __libc_signal_block_app, __libc_signal_restore_set): New functions.
13713         * sysdeps/nptl/sigfillset.c: Remove file.
13714         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13715         Change return to bool.
13716         (__clear_internal_signals): Remove SIGTIMER clean since it is
13717         equal to SIGCANEL on Linux.
13718         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13719         signal set was constructed using standard functions.
13721 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13723         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13724         ifname is too long.
13725         * hurd/hurdsig.c (interrupted_reply_port_location): Use
13726         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13727         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13728         hidden def.
13729         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13730         * signal/sigaddset.c: Include <sigsetopts.h>.
13731         * signal/sigdelset.c: Likewise.
13733 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13735         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13736         (__cos): Likewise.
13737         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13738         logic as sin and cos.
13740 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13742         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13743         inputs.  Return correct sign.
13744         (do_sincos): Remove small input check before do_sin, let do_sin set
13745         the sign.
13746         (__sin): Likewise.
13747         (__cos): Likewise.
13749 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13751         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13752         (do_cos_slow): Likewise.
13753         (do_sin_slow): Likewise.
13754         (reduce_and_compute): Likewise.
13755         (slow): Likewise.
13756         (slow1): Likewise.
13757         (slow2): Likewise.
13758         (sloww): Likewise.
13759         (sloww1): Likewise.
13760         (sloww2): Likewise.
13761         (bslow): Likewise.
13762         (bslow1): Likewise.
13763         (bslow2): Likewise.
13764         (cslow2): Likewise.
13766 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13768         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13769         (do_cos): Remove corp parameter and calculations.
13770         (do_sin): Likewise.
13771         (do_sincos): Remove cor variable.
13772         (__sin): Use do_sincos for huge inputs.
13773         (__cos): Likewise.
13774         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13775         (reduce_and_compute_sincos): Remove unused function.
13777 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13779         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13780         reduce_sincos, improve accuracy to 136 bits.
13781         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13782         (__sin): Use improved reduction and simplified do_sincos calculation.
13783         (__cos): Likewise.
13784         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13786 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13788         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13789         (do_sincos_2): Likewise.
13790         (__sin): Remove middle range reduction case.
13791         (__cos): Likewise.
13792         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13793         reduction case.
13795 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13797         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13798         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13799         inputs.
13800         (__cos): Likewise.
13801         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13803 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
13805         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13806         version to 4.16
13808 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13810         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13811         Remove definitions.
13812         (opendir_oflags): Use O_DIRECTORY regardless.
13813         (__opendir, __opendirat): Remove need_isdir_precheck usage.
13814         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13816 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13818         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13819         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13820         macros.
13821         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13822         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13823         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13824         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13825         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13826         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13828         * htl/Makefile: Bump licence to LGPL 2.1+.
13829         * htl/alloca_cutoff.c: Likewise.
13830         * htl/cthreads-compat.c: Likewise.
13831         * htl/lockfile.c: Likewise.
13832         * htl/pt-alloc.c: Likewise.
13833         * htl/pt-cancel.c: Likewise.
13834         * htl/pt-cleanup.c: Likewise.
13835         * htl/pt-create.c: Likewise.
13836         * htl/pt-dealloc.c: Likewise.
13837         * htl/pt-detach.c: Likewise.
13838         * htl/pt-exit.c: Likewise.
13839         * htl/pt-getattr.c: Likewise.
13840         * htl/pt-initialize.c: Likewise.
13841         * htl/pt-internal.h: Likewise.
13842         * htl/pt-join.c: Likewise.
13843         * htl/pt-self.c: Likewise.
13844         * htl/pt-setcancelstate.c: Likewise.
13845         * htl/pt-setcanceltype.c: Likewise.
13846         * htl/pt-sigmask.c: Likewise.
13847         * htl/pt-spin-inlines.c: Likewise.
13848         * htl/pt-testcancel.c: Likewise.
13849         * htl/pt-yield.c: Likewise.
13850         * htl/tests/test-1.c: Likewise.
13851         * htl/tests/test-10.c: Likewise.
13852         * htl/tests/test-11.c: Likewise.
13853         * htl/tests/test-12.c: Likewise.
13854         * htl/tests/test-13.c: Likewise.
13855         * htl/tests/test-14.c: Likewise.
13856         * htl/tests/test-15.c: Likewise.
13857         * htl/tests/test-16.c: Likewise.
13858         * htl/tests/test-17.c: Likewise.
13859         * htl/tests/test-2.c: Likewise.
13860         * htl/tests/test-3.c: Likewise.
13861         * htl/tests/test-4.c: Likewise.
13862         * htl/tests/test-5.c: Likewise.
13863         * htl/tests/test-6.c: Likewise.
13864         * htl/tests/test-7.c: Likewise.
13865         * htl/tests/test-8.c: Likewise.
13866         * htl/tests/test-9.c: Likewise.
13867         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13868         * sysdeps/htl/bits/cancelation.h: Likewise.
13869         * sysdeps/htl/bits/pthread-np.h: Likewise.
13870         * sysdeps/htl/bits/pthread.h: Likewise.
13871         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13872         * sysdeps/htl/bits/semaphore.h: Likewise.
13873         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13874         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13875         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13876         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13877         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13878         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13879         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13880         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13881         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13882         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13883         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13884         * sysdeps/htl/old_pt-atfork.c: Likewise.
13885         * sysdeps/htl/pt-atfork.c: Likewise.
13886         * sysdeps/htl/pt-attr-destroy.c: Likewise.
13887         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13888         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13889         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13890         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13891         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13892         * sysdeps/htl/pt-attr-getscope.c: Likewise.
13893         * sysdeps/htl/pt-attr-getstack.c: Likewise.
13894         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13895         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13896         * sysdeps/htl/pt-attr-init.c: Likewise.
13897         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13898         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13899         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13900         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13901         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13902         * sysdeps/htl/pt-attr-setscope.c: Likewise.
13903         * sysdeps/htl/pt-attr-setstack.c: Likewise.
13904         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13905         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13906         * sysdeps/htl/pt-attr.c: Likewise.
13907         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13908         * sysdeps/htl/pt-barrier-init.c: Likewise.
13909         * sysdeps/htl/pt-barrier-wait.c: Likewise.
13910         * sysdeps/htl/pt-barrier.c: Likewise.
13911         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13912         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13913         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13914         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13915         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13916         * sysdeps/htl/pt-cond-destroy.c: Likewise.
13917         * sysdeps/htl/pt-cond-init.c: Likewise.
13918         * sysdeps/htl/pt-cond-signal.c: Likewise.
13919         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13920         * sysdeps/htl/pt-cond-wait.c: Likewise.
13921         * sysdeps/htl/pt-cond.c: Likewise.
13922         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13923         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13924         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13925         * sysdeps/htl/pt-condattr-init.c: Likewise.
13926         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13927         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13928         * sysdeps/htl/pt-destroy-specific.c: Likewise.
13929         * sysdeps/htl/pt-equal.c: Likewise.
13930         * sysdeps/htl/pt-getconcurrency.c: Likewise.
13931         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13932         * sysdeps/htl/pt-getschedparam.c: Likewise.
13933         * sysdeps/htl/pt-getspecific.c: Likewise.
13934         * sysdeps/htl/pt-init-specific.c: Likewise.
13935         * sysdeps/htl/pt-key-create.c: Likewise.
13936         * sysdeps/htl/pt-key-delete.c: Likewise.
13937         * sysdeps/htl/pt-key.h: Likewise.
13938         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13939         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13940         * sysdeps/htl/pt-mutex-init.c: Likewise.
13941         * sysdeps/htl/pt-mutex-lock.c: Likewise.
13942         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13943         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13944         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13945         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13946         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13947         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13948         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13949         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13950         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13951         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13952         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13953         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13954         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13955         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13956         * sysdeps/htl/pt-mutexattr.c: Likewise.
13957         * sysdeps/htl/pt-once.c: Likewise.
13958         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13959         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13960         * sysdeps/htl/pt-rwlock-init.c: Likewise.
13961         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13962         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13963         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13964         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13965         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13966         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13967         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13968         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13969         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13970         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13971         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13972         * sysdeps/htl/pt-setconcurrency.c: Likewise.
13973         * sysdeps/htl/pt-setschedparam.c: Likewise.
13974         * sysdeps/htl/pt-setschedprio.c: Likewise.
13975         * sysdeps/htl/pt-setspecific.c: Likewise.
13976         * sysdeps/htl/pt-spin.c: Likewise.
13977         * sysdeps/htl/pt-startup.c: Likewise.
13978         * sysdeps/htl/pthread.h: Likewise.
13979         * sysdeps/htl/sem-close.c: Likewise.
13980         * sysdeps/htl/sem-destroy.c: Likewise.
13981         * sysdeps/htl/sem-getvalue.c: Likewise.
13982         * sysdeps/htl/sem-init.c: Likewise.
13983         * sysdeps/htl/sem-open.c: Likewise.
13984         * sysdeps/htl/sem-post.c: Likewise.
13985         * sysdeps/htl/sem-timedwait.c: Likewise.
13986         * sysdeps/htl/sem-trywait.c: Likewise.
13987         * sysdeps/htl/sem-unlink.c: Likewise.
13988         * sysdeps/htl/sem-wait.c: Likewise.
13989         * sysdeps/hurd/htl/pt-kill.c: Likewise.
13990         * sysdeps/i386/htl/pt-machdep.h: Likewise.
13991         * sysdeps/mach/htl/pt-block.c: Likewise.
13992         * sysdeps/mach/htl/pt-spin.c: Likewise.
13993         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13994         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13995         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13996         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13997         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13998         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13999         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14000         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14001         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14002         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14003         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14004         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14005         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14006         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14007         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14008         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14009         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14010         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14011         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14012         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14013         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14014         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14015         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14016         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14017         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14018         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14019         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14020         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14021         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14022         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14023         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14024         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14025         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14026         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14027         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14028         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14029         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14030         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14031         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14032         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14033         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14034         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14035         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14037         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14038         * README: Remove the mention of out-of-tree patches needed for
14039         GNU/Hurd.
14041         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14042         (UTIME_NOW, UTIME_OMIT): Define macros.
14044         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14045         instead of pthread_detach.
14046         (__cthread_fork): Call __pthread_create instead of pthread_create.
14047         (__cthread_keycreate): Call __pthread_key_create instead of
14048         pthread_key_create.
14049         (__cthread_getspecific): Call __pthread_getspecific instead of
14050         pthread_getspecific.
14051         (__cthread_setspecific): Call __pthread_setspecific instead of
14052         pthread_setspecific.
14053         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14054         __pthread_mutex_unlock instead of pthread_mutex_lock and
14055         pthread_mutex_unlock.
14056         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14057         ___pthread_get_cleanup_stack.
14058         (__pthread_get_cleanup_stack): New strong alias.
14059         * htl/pt-create.c: Include <pthreadP.h>.
14060         (entry_point): Call __pthread_exit instead of pthread_exit.
14061         (pthread_create): Rename to __pthread_create.
14062         (pthread_create): New strong alias.
14063         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14064         (pthread_detach): New strong alias.
14065         (__pthread_detach): Call __pthread_cond_broadcast instead of
14066         pthread_cond_broadcast.
14067         * htl/pt-exit.c: Include <pthreadP.h>.
14068         (__pthread_exit): Call __pthread_setcancelstate and
14069         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14070         __pthread_get_cleanup_stack.
14071         * htl/pt-testcancel.c: Include <pthreadP.h>.
14072         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14073         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14074         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14075         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14076         pthread_attr_getstacksize.
14077         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14078         Rename to __pthread_attr_getstackaddr.
14079         (pthread_attr_getstackaddr): New strong alias.
14080         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14081         Rename to __pthread_attr_getstacksize.
14082         (pthread_attr_getstacksize): New strong alias.
14083         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14084         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14085         (pthread_attr_setstack): New strong alias.
14086         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14087         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14088         pthread_attr_getstacksize, pthread_attr_setstacksize and
14089         pthread_attr_setstackaddr.
14090         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14091         Rename to __pthread_attr_setstackaddr.
14092         (pthread_attr_setstackaddr): New strong alias.
14093         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14094         Rename to __pthread_attr_setstacksize.
14095         (pthread_attr_setstacksize): New strong alias.
14096         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14097         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14098         pthread_exit.
14099         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14100         (__pthread_key_create): New hidden def.
14101         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14102         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14103         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14104         __pthread_exit, __pthread_key_create, __pthread_getspecific,
14105         __pthread_setspecific, __pthread_setcancelstate,
14106         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14107         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14108         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14109         declarations.
14110         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14111         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14112         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14113         (pthread_attr_setstackaddr): New strong alias.
14114         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14115         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14116         (pthread_attr_setstacksize): New strong alias.
14117         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14118         (call_exit): Call __pthread_exit instead of pthread_exit.
14119         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14120         (_pthread_mutex_init): New hidden definition.
14121         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14122         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14123         instead of pthread_attr_init and pthread_attr_setstack.
14125         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14126         __vm_deallocate instead of vm_allocate and vm_deallocate.
14127         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14128         setenv.
14129         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14130         of geteuid.
14131         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14132         strdup.
14133         * hurd/siginfo.c: Include <libioP.h>.
14134         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14135         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14136         munmap.
14137         * mach/devstream.c: Include <libioP.h>.
14138         (dealloc_ref): Call __mach_port_deallocate instead of
14139         mach_port_deallocate.
14140         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14141         Call __mach_port_deallocate instead of mach_port_deallocate.
14142         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14143         pathconf.
14144         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14145         munmap.
14146         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14147         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14148         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14149         of munmap.
14150         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14151         of close.
14152         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14153         instead of sysconf.
14154         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14155         __clock_gettime instead of clock_gettime.
14156         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14157         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14158         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14159         * sysdeps/unix/bsd/stty.c (stty): Likewise.
14160         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14161         tcgetattr.
14162         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14163         __clock_gettime and __nanosleep instead of clock_gettime and
14164         nanosleep.
14165         * hurd/catch-signal.c (hurd_catch_signal): Rename to
14166         __hurd_catch_signal.
14167         (hurd_catch_signal): New strong alias.
14168         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14169         __hurd_catch_signal instead of hurd_catch_signal.
14170         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14171         * hurd/hurdexec.c (_hurd_init): Add hidden def.
14172         * hurd/hurdinit.c (_hurd_init): Add hidden def.
14173         * hurd/hurdsig.c: Include <mach/mig_support.h>.
14174         (_hurd_thread_sigstate): Add hidden def.
14175         (_hurd_internal_post_signal): Use __mutex_unlock instead of
14176         mutex_unlock.
14177         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14178         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14179         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14180         __hurd_file_name_path_lookup.
14181         (hurd_file_name_path_lookup): New strong alias.
14182         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14183         hurd_file_name_path_lookup.
14184         * mach/errstring.c (mach_error_type): Add hidden def.
14185         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14186         * mach/mutex-init.c (__mutex_init): Add hidden def.
14187         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14188         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14189         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14190         * sysdeps/mach/hurd/getcwd.c
14191         (_hurd_canonicalize_directory_name_internal): Rename to
14192         __hurd_canonicalize_directory_name_internal.
14193         (_hurd_canonicalize_directory_name_internal): New strong alias.
14194         (__canonicalize_directory_name_internal, __getcwd): Call
14195         __hurd_canonicalize_directory_name_internal instead of
14196         _hurd_canonicalize_directory_name_internal.
14197         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14198         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14199         hidden defs.
14200         * sysdeps/hurd/include/hurd.h: New file.
14201         * sysdeps/hurd/include/hurd/fd.h: New file.
14202         * sysdeps/hurd/include/hurd/signal.h: New file.
14203         * sysdeps/mach/include/lock-intern.h: New file.
14204         * sysdeps/mach/include/mach.h: New file.
14205         * sysdeps/mach/include/mach/mig_support.h: New file.
14206         * sysdeps/mach/include/mach_error.h: New file.
14207         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14208         prototype.
14209         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14210         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14211         _HEADER_H_HIDDEN_DEF macro.
14212         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14213         _hurd_fd_error_signal): Add hidden prototype.
14214         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14215         hidden def.
14216         * libio/iolibio.h (_IO_puts): New hidden prototype.
14217         * libio/ioputs.c (_IO_puts): New hidden def.
14218         * sysdeps/mach/hurd/localplt.data: New file.
14220 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
14221             Amos Jeffries  <squid3@treenet.co.nz>
14222             David Michael  <fedora.dm0@gmail.com>
14223             Marco Gerards  <marco@gnu.org>
14224             Marcus Brinkmann  <marcus@gnu.org>
14225             Neal H. Walfield  <neal@gnu.org>
14226             Pino Toscano  <toscano.pino@tiscali.it>
14227             Richard Braun  <rbraun@sceen.net>
14228             Roland McGrath  <roland@gnu.org>
14229             Samuel Thibault  <samuel.thibault@ens-lyon.org>
14230             Thomas DiModica  <ricinwich@yahoo.com>
14231             Thomas Schwinge  <tschwinge@gnu.org>
14233         * htl: New directory.
14234         * sysdeps/htl: New directory.
14235         * sysdeps/hurd/htl: New directory.
14236         * sysdeps/i386/htl: New directory.
14237         * sysdeps/mach/htl: New directory.
14238         * sysdeps/mach/hurd/htl: New directory.
14239         * sysdeps/mach/hurd/i386/htl: New directory.
14240         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14241         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14242         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14244 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14246         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14247         signals in thread created for runing timers.
14249 2018-04-01  Florian Weimer  <fweimer@redhat.com>
14251         * support/support_format_addrinfo.c (support_format_addrinfo):
14252         Include unknown error number in formatted result.
14254 2018-03-29  Florian Weimer  <fweimer@redhat.com>
14256         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14257         capture SIGBUS.
14259 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14261         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14262         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14263         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14264         (__ASSUME_CLONE_BACKWARDS): Define.
14266 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
14268         [BZ #23024]
14269         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14270         early when linux sentinel value is set.
14272 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14274         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14276 2018-03-27  Andreas Schwab  <schwab@suse.de>
14278         [BZ #23005]
14279         * resolv/res_send.c (__res_context_send): Return ENOMEM if
14280         allocation of private copy of nsaddr_list fails.
14282 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
14284         [BZ #16552]
14285         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14286         * sysdeps/unix/sysv/linux/umount.c: ... here.
14287         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14288         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14289         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14290         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14292         * sysdeps/unix/sysv/linux/umount.S: Likewise.
14293         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14295 2018-03-26  Andreas Schwab  <schwab@suse.de>
14297         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14298         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14299         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14300         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14301         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14302         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14303         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14304         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14305         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14306         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14307         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14308         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14309         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14310         (R_RISCV_NUM): Define.
14312 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14314         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14315         TLS declaration of errno.
14316         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14317         __libc_setup_tls.
14318         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14319         (ARCH_SETUP_TLS): Likewise.
14320         * sysdeps/mach/hurd/libc-start.h: New file copied from
14321         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14322         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14323         instead of __libc_setup_tls.
14324         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14325         __libc_setup_tls before initializing libpthread and running _hurd_init
14326         which starts the signal thread.
14327         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14328         Declare function.
14329         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14331 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
14333         [BZ #22998]
14334         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14335         after it is defined.
14337 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
14338             Max Horn  <max@quendi.de>
14340         [BZ #22644]
14341         CVE-2017-18269
14342         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14343         branch conditions.
14344         * string/test-memmove.c (do_test2): New testcase.
14346 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
14348         * sysdeps/generic/frame.h: Remove file.
14349         * sysdeps/arm/frame.h: Likewise.
14350         * sysdeps/hppa/frame.h: Likewise.
14351         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14352         macro.
14353         (GET_FRAME): Likewise.
14354         (GET_STACK): Likewise.
14355         (CALL_SIGHANDLER): Likewise.
14356         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14357         Likewise.
14358         (GET_FRAME): Likewise.
14359         (GET_STACK): Likewise.
14360         (CALL_SIGHANDLER): Likewise.
14361         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14362         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14363         (GET_FRAME): Likewise.
14364         (GET_STACK): Likewise.
14365         (CALL_SIGHANDLER): Likewise.
14366         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14367         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14368         (GET_FRAME): Likewise.
14369         (GET_STACK): Likewise.
14370         (ADVANCE_STACK_FRAME): Likewise.
14371         (CALL_SIGHANDLER): Likewise.
14372         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14373         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14374         (GET_FRAME): Likewise.
14375         (GET_STACK): Likewise.
14376         (CALL_SIGHANDLER): Likewise.
14377         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14378         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14379         (GET_FRAME): Likewise.
14380         (GET_STACK): Likewise.
14381         (CALL_SIGHANDLER): Likewise.
14382         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14383         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14384         (GET_FRAME): Likewise.
14385         (GET_STACK): Likewise.
14386         (CALL_SIGHANDLER): Likewise.
14387         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14388         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14389         (GET_FRAME): Likewise.
14390         (GET_STACK): Likewise.
14391         (CALL_SIGHANDLER): Likewise.
14392         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14393         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14394         (GET_FRAME): Likewise.
14395         (GET_STACK): Likewise.
14396         (CALL_SIGHANDLER): Likewise.
14397         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14398         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14399         (GET_FRAME): Likewise.
14400         (GET_STACK): Likewise.
14401         (CALL_SIGHANDLER): Likewise.
14402         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14403         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14404         (GET_FRAME): Likewise.
14405         (GET_STACK): Likewise.
14406         (CALL_SIGHANDLER): Likewise.
14407         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14408         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14409         (GET_FRAME): Likewise.
14410         (GET_STACK): Likewise.
14411         (CALL_SIGHANDLER): Likewise.
14412         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14413         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14414         (GET_FRAME): Likewise.
14415         (GET_STACK): Likewise.
14416         (CALL_SIGHANDLER): Likewise.
14417         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14418         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14419         (FIRST_FRAME_POINTER): Likewise.
14420         (ADVANCE_STACK_FRAME): Likewise.
14421         (GET_STACK): Likewise.
14422         (GET_FRAME): Likewise.
14423         (CALL_SIGHANDLER): Likewise.
14424         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14425         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14426         (ADVANCE_STACK_FRAME): Likewise.
14427         (GET_STACK): Likewise.
14428         (GET_FRAME): Likewise.
14429         (CALL_SIGHANDLER): Likewise.
14430         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14431         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14432         (GET_FRAME): Likewise.
14433         (GET_STACK): Likewise.
14434         (CALL_SIGHANDLER): Likewise.
14435         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14436         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14437         (GET_FRAME): Likewise.
14438         (GET_STACK): Likewise.
14439         (CALL_SIGHANDLER): Likewise.
14441 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
14443         * sysdeps/x86_64/backtrace.c: Move to ....
14444         * debug/backtrace.c: ... here.
14445         * sysdeps/aarch64/backtrace.c: Remove file.
14446         * sysdeps/alpha/backtrace.c: Likewise.
14447         * sysdeps/hppa/backtrace.c: Likewise.
14448         * sysdeps/ia64/backtrace.c: Likewise.
14449         * sysdeps/mips/backtrace.c: Likewise.
14450         * sysdeps/nios2/backtrace.c: Likewise.
14451         * sysdeps/riscv/backtrace.c: Likewise.
14452         * sysdeps/sh/backtrace.c: Likewise.
14453         * sysdeps/tile/backtrace.c: Likewise.
14455 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
14457         [BZ #22987]
14458         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14459         function.
14460         (fdimf): Likewise.
14461         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14463         [BZ #17343]
14464         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14465         possibly overflowing computations.
14467 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14469         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14470         values from Linux-specific section now that it is in the GNU section.
14471         * sysdeps/gnu/errlist.c: Regenerate.
14473 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
14475         * math/Makefile (libm-narrow-fns): Add sub.
14476         (libm-test-funcs-narrow): Likewise.
14477         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14478         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14479         * math/gen-auto-libm-tests.c (test_functions): Add sub.
14480         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14481         (NARROW_SUB_ROUND_TO_ODD): Likewise.
14482         (NARROW_SUB_TRIVIAL): Likewise.
14483         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14484         macro.
14485         (__dsubl): Likewise.
14486         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14487         dsub.
14488         (CFLAGS-nldbl-dsub.c): New variable.
14489         (CFLAGS-nldbl-fsub.c): Likewise.
14490         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14491         __nldbl_dsubl.
14492         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14493         prototype.
14494         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14495         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14496         * math/auto-libm-test-in: Add tests of sub.
14497         * math/auto-libm-test-out-narrow-sub: New generated file.
14498         * math/libm-test-narrow-sub.inc: New file.
14499         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14500         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14501         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14502         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14503         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14504         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14505         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14506         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14507         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14508         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14509         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14510         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14511         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14512         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14513         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14514         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14515         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14516         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14518         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14519         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14520         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14521         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14522         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14523         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14524         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14525         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14526         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14527         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14528         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14529         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14530         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14535         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14536         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14537         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14538         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14539         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14540         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14541         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14542         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14543         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14544         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14546 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
14548         [BZ #20079]
14549         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14551 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
14553         * benchtests/bench-timing.h (attribute_hidden): Undefine.
14555 2018-03-18  Richard Braun  <rbraun@sceen.net>
14557         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14558         thread reference.
14560 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
14562         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14563         (__libc_cleanup_fct): Define function.
14564         (__libc_cleanup_region_start, __libc_cleanup_region_end,
14565         __libc_cleanup_end): Rewrite implementation using
14566         __attribute__ ((__cleanup__)).
14567         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14568         * hurd/Makefile (routines): Add hurdlock.
14569         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14570         interface.
14571         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14572         * hurd/hurdpid.c: Include <lowlevellock.h>
14573         (_S_msg_proc_newids): Use lll_wait to synchronize.
14574         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14575         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14576         * mach/Makefile (lock-headers): Remove machine-lock.h.
14577         * mach/lock-intern.h: Include <lowlevellock.h> instead of
14578         <machine-lock.h>.
14579         (__spin_lock_t): New type.
14580         (__SPIN_LOCK_INITIALIZER): New macro.
14581         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14582         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14583         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14584         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14585         (__mutex_init): Initialize with lll.
14586         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14587         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14588         needing lll.
14589         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14590         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14591         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14592         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14593         (__setpgid): Use lll for synchronization.
14594         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14595         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14596         instead of <cthreads.h>.
14597         (_IO_lock_inexpensive): New macro
14598         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14599         (__libc_lock_self0): New declaration.
14600         (__libc_lock_owner_self): New macro.
14601         (__libc_key_t): Remove type.
14602         (_LIBC_LOCK_INITIALIZER): New macro.
14603         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14604         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14605         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14606         __libc_lock_define_initialized_recursive,
14607         __rtld_lock_define_initialized_recursive,
14608         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14609         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14610         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14611         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14612         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14613         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14614         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14615         New macros.
14616         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14617         * hurd/hurdlock.c: New file.
14618         * hurd/hurdlock.h: New file.
14619         * mach/lowlevellock.h: New file
14621 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14623         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14624         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14625         when opening a symlink with O_NOFOLLOW.
14626         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14627         path when flags contains O_NOFOLLOW.
14628         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14629         if flags contains O_DIRECTORY and the result is a directory.
14630         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14631         oneself when the pointer given in D is nul (as set by ext2fs).
14632         * sysdeps/mach/hurd/mlockall.c: New file.
14633         * sysdeps/mach/hurd/munlockall.c: New file.
14635 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14637         * hurd/hurdsig.c: Include <pthread.h>.
14638         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14639         get the signal thread stack layout.
14640         * hurd/Makefile (headers): Remove threadvar.h.
14641         (inline-headers): Remove threadvar.h.
14642         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14643         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14644         __hurd_threadvar_max, __hurd_errno_location.
14645         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14646         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14647         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14648         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14649         unless TLS is not initialized yet, in which case we do not need a
14650         critical section yet anyway.
14651         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14652         <machine-sp.h>.
14653         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14654         declarations.
14655         (__hurd_threadvar_index): Remove enum.
14656         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14657         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14658         inlines.
14659         (__hurd_reply_port0): New variable declaration.
14660         (__hurd_local_reply_port): New macro.
14661         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14662         (interrupted_reply_port_location): Add thread_t parameter.  Use it
14663         with THREAD_TCB to access thread-local variables.
14664         (_hurdsig_abort_rpcs): Pass ss->thread to
14665         interrupted_reply_port_location.
14666         (_hurd_internal_post_signal): Likewise.
14667         (_hurdsig_init): Use presence of cthread_fork instead of
14668         __hurd_threadvar_stack_mask to start signal thread by hand.
14669         Remove signal thread threadvar initialization.
14670         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14671         * hurd/sigunwind.c: Include <hurd/threadvar.h>
14672         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14673         of threadvar.
14674         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14675         __libc_lock_self0.
14676         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14677         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14678         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14679         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14680         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14681         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14682         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14683         define variables.
14684         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14685         <hurd/threadvar.h>.
14686         [IS_IN(rtld)] (rtld_errno): New variable.
14687         [IS_IN(rtld)] (__errno_location): New weak function.
14688         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14689         * sysdeps/mach/hurd/errno.c: Remove file.
14690         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14691         (__fork): Remove THREADVAR_SPACE macro and its use.
14692         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14693         variable.
14694         (init): Do not initialize threadvar.
14695         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14696         symbol.
14697         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14698         __hurd_local_reply_port instead of threadvar.
14699         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14700         _hurd_sigstate fields.
14701         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14702         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14703         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14704         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14705         instead of threadvar.
14706         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14707         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14708         (use_threadvar, global_reply_port): Remove variables.
14709         (__hurd_reply_port0): New variable.
14710         (__mig_get_reply_port): Use __hurd_local_reply_port and
14711         __hurd_reply_port0 instead of threadvar.
14712         (__mig_dealloc_reply_port): Likewise.
14713         (__mig_init): Do not initialize threadvar.
14714         * sysdeps/mach/hurd/profil.c: Fix comment.
14715         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14716         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14717         cthread_keycreate, cthread_getspecific, cthread_setspecific to
14718         __cthread_fork, __cthread_detach, __pthread_getattr_np,
14719         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14720         __cthread_setspecific.
14721         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14722         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14723         __cthread_t instead of cthread_fork, cthread_detach,
14724         pthread_getattr_np, pthread_attr_getstack.
14725         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14726         __cthread_keycreate.
14727         (cthread_getspecific): Rename to __cthread_getspecific.
14728         (cthread_setspecific): Rename to __cthread_setspecific.
14729         (__libc_getspecific): Use __cthread_getspecific instead of
14730         cthread_getspecific.
14731         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14732         __cthread_keycreate instead of cthread_keycreate.
14733         (__libc_setspecific): Use __cthread_setspecific instead of
14734         cthread_setspecific.
14735         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14736         Likewise.
14737         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14738         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
14739         testing whether it is defined.
14741 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14743         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14744         Define macro.
14745         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14746         * sysdeps/mach/i386/thread_state.h
14747         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14748         i386_THREAD_STATE.
14749         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14750         i386_THREAD_STATE.
14751         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14753         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14754         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14756         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14757         macros.
14758         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14759         descriptor instead of creating a new one.
14760         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14762         * mach/setup-thread.c: Include <ldsodefs.h>.
14763         (__mach_setup_thread): Call _dl_allocate_tls, pass
14764         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14765         MACHINE_THREAD_STATE_FLAVOR, before getting
14766         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14767         MACHINE_THREAD_STATE_FLAVOR with the result.
14768         * hurd/hurdfault.c (_hurdsig_fault_init): Call
14769         MACHINE_THREAD_STATE_FIX_NEW.
14770         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14771         too.  Add original thread parameter.
14773 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
14775         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14776         Remove inline function.
14778         * sysdeps/i386/fpu/libm-test-ulps: Update.
14779         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14781 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
14783         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14784         commit.
14786 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
14788         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14789         (__sincos_code): Remove define and undefine.
14790         [__FAST_MATH__] (__sincos): Remove inline function.
14791         [__FAST_MATH__] (__sincosf): Remove inline function.
14792         [__FAST_MATH__] (__sincosl): Remove inline function.
14793         (__atan2l): Remove inline functions.
14794         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14795         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14796         function.
14797         (floor): Remove inline function.
14798         (ceil): Likewise.
14799         [__FAST_MATH__] (__ldexp_code): Remove macro.
14800         [__FAST_MATH__] (ldexp): Remove inline function.
14801         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14802         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14803         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14804         [__USE_ISOC99] (__lrint_code): Remove macro.
14805         [__USE_ISOC99] (__llrint_code): Likewise.
14806         [__USE_ISOC99] (lrintf): Remove inline function.
14807         [__USE_ISOC99] (lrint): Likewise.
14808         [__USE_ISOC99] (lrintl): Likewise.
14809         [__USE_ISOC99] (llrint): Likewise.
14810         [__USE_ISOC99] (llrintf): Likewise.
14811         [__USE_ISOC99] (llrintl): Likewise.
14813 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14815         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14816         (__ieee754_sqrtf): Remove.
14817         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14818         (__ieee754_sqrtf): Remove.
14819         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14820         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14821         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14822         (__ieee754_sqrtf): Remove.
14823         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14824         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14825         (sqrtf): Remove.
14826         (sqrtl): Remove.
14827         (__ieee754_sqrt): Remove.
14828         (__ieee754_sqrtf): Remove.
14829         (__ieee754_sqrtl): Remove.
14830         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14831         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14832         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14833         (__ieee754_sqrtf): Remove.
14834         (__ieee754_sqrtl): Remove.
14836 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14838         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14839         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14840         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14841         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14842         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14843         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14844         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14845         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14846         Likewise.
14847         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14848         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14849         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14850         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14851         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14852         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14853         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14854         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14855         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14856         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14857         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14858         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14859         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14860         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14861         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14862         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14863         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14864         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14865         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14866         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14867         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14868         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14869         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14870         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14871         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14872         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14873         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14874         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14875         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14876         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14877         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14878         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14879         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14880         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14881         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14882         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14883         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14884         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14885         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14886         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14888 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14890         * include/math.h (sqrt): Declare with asm redirect.
14891         (sqrtf): Likewise.
14892         (sqrtl): Likewise.
14893         (sqrtf128): Likewise.
14894         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14895         nonlib and libnldbl with -fmath-errno.
14896         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14897         * math/w_sqrt_template.c: Likewise.
14898         * math/w_sqrtf_compat.c: Likewise.
14899         * math/w_sqrtl_compat.c: Likewise.
14900         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14901         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14902         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14903         complex.h.
14905 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14907         * benchtests/Makefile: Define _ISOMAC.
14908         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14909         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14910         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14911         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14912         * benchtests/bench-timing.h: Define attribute_hidden.
14914 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14916         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14917         mov + lsr.
14919 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
14921         [BZ #22963]
14922         * localedata/locales/cs_CZ (mon): Rename to...
14923         (alt_mon): This.
14924         (mon): Import from CLDR (genitive case).
14926 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
14928         [BZ #22937]
14929         * localedata/locales/el_CY (abmon): Rename to...
14930         (ab_alt_mon): This.
14931         (abmon): Import from CLDR (abbreviated genitive case).
14932         * localedata/locales/el_GR (abmon): Rename to...
14933         (ab_alt_mon): This.
14934         (abmon): Import from CLDR (abbreviated genitive case).
14936 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
14938         [BZ #22932]
14939         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14941 2018-03-15  Robert Buj  <robert.buj@gmail.com>
14943         [BZ #22848]
14944         * localedata/locales/ca_ES (abmon): Rename to...
14945         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14946         (mon): Rename to...
14947         (alt_mon): This.
14948         (abmon): Import from CLDR (genitive case, month names preceded by
14949         "de" or "d’").
14950         (mon): Likewise.
14951         (abday): Synchronize with CLDR.
14952         (d_t_fmt): Likewise.
14953         (d_fmt): Likewise.
14954         (am_pm): Likewise.
14956         (LC_TIME): Improve indentation.
14957         (LC_TELEPHONE): Likewise.
14958         (LC_NAME): Likewise.
14959         (LC_ADDRESS): Likewise.
14961 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
14963         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14964         (lrintf): Remove definitions used only with old GCC.
14965         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14966         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14967         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14968         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14969         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14970         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14971         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14972         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14973         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14974         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14975         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14976         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14977         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14978         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14979         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14980         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14981         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14982         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14983         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14984         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14985         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14986         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14987         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14988         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14989         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14990         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14991         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14992         [__FAST_MATH__] (__M_SQRT2): Remove macro.
14994 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14996         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14997         instruction to unbreak builds with binutils 2.26 and older.
14999 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15001         * sysdeps/aarch64/strncmp.S (count): New macro.
15002         (strncmp): Store misaligned length in SRC1 in COUNT.
15003         (mutual_align): Adjust.
15004         (misaligned8): Load dword at a time when it is safe.
15006 2018-03-12  Zack Weinberg  <zackw@panix.com>
15008         [BZ #1190]
15009         [BZ #19476]
15010         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15011         if the _IO_EOF_SEEN bit is already set; update commentary.
15012         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15013         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15015         * support/support_openpty.c, support/tty.h: New files.
15016         * support/Makefile (libsupport-routines): Add support_openpty.
15018         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15019         New test cases.
15020         * libio/Makefile (tests): Add tst-fgetc-after-eof.
15021         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15023 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
15025         * po/pt_BR.po: Update translations.
15027 2018-03-12  David Michael <fedora.dm0@gmail.com>
15029         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15030         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15031         get a port to the startup server.
15033 2018-03-11  Zack Weinberg  <zackw@panix.com>
15035         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15036         before nldbl-compat.h.
15038 2018-03-10  Zack Weinberg  <zackw@panix.com>
15040         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15041         math.h or math_private.h.
15043         * sysdeps/alpha/fpu/s_isnan.c
15044         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15045         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15046         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15047         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15048         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15049         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15050         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15051         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15052         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15055         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15056         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15057         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15058         Include math_private.h.
15060         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15061         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15062         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15063         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15064         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15065         * sysdeps/powerpc/power7/fpu/s_logb.c:
15066         Include math.h and math_private.h.
15068         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15069         uses of $at in .set noat / .set at.
15071 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
15073         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15074         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15075         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15076         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15077         Likewise.
15079 2018-03-09  Florian Weimer  <fweimer@redhat.com>
15081         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15082         in comment.
15084 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
15086         [BZ #22919]
15087         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15088         Add nop before __startcontext, add explaining comments.
15090 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15092         [BZ #22926]
15093         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15094         empty for __SPE__.
15095         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15096         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15097         Do not build hardware transactional code for __SPE__.
15098         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15099         (__lll_trylock_elision): Likewise.
15100         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15101         (__lll_unlock_elision): Likewise.
15103         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15104         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15105         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15106         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15107         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15108         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15109         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15110         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15111         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15112         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15113         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15114         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15115         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15116         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15117         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15118         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15119         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15120         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15121         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15122         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15123         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15124         * sysdeps/unix/sysv/linux/arm/kernel-features.h
15125         (__ASSUME_CLONE_BACKWARDS): Define.
15126         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15127         __clone2 if __NR_clone2 is defined.
15128         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15129         (__ASSUME_CLONE_BACKWARDS): Likewise.
15130         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15131         (__ASSUME_CLONE_BACKWARDS): Likewise.
15132         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15133         (__ASSUME_CLONE2): Likewise.
15134         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15135         (__ASSUME_CLONE_BACKWARDS3): Likewise.
15136         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15137         variants and the define architecture can use.
15138         (__ASSUME_CLONE_DEFAULT): Define as default.
15139         * sysdeps/unix/sysv/linux/mips/kernel-features.h
15140         (__ASSUME_CLONE_BACKWARDS): Likewise.
15141         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15142         (__ASSUME_CLONE_BACKWARDS): Likewise.
15143         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15144         (__ASSUME_CLONE_BACKWARDS2): Likewise.
15146 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15148         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15150         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15151         time.
15153         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15154         (do_test_limit): Likewise.
15156         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15157         for every implementation.
15158         (do_test): Likewise.
15160         * benchtests/bench-strncmp.c: Convert output to json.
15162 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15164         * io/futimens.c: Add missing start-of-file descriptive comment.
15165         * io/utime.c: Likewise.
15166         * misc/futimesat.c: Likewise.
15167         * misc/utimes.c: Likewise.
15168         * sysdeps/mach/hurd/futimesat.c: Likewise.
15169         * sysdeps/mach/hurd/utimes.c: Likewise.
15170         * sysdeps/posix/utime.c: Likewise.
15171         * sysdeps/posix/utimes.c: Likewise.
15172         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15173         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15174         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15175         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15177 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15179         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15180         hurd_futimes.
15181         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15182         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15183         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15184         (__futimens): Move implementation to...
15185         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15186         utime_tvalue_from_tspec): ... new helper functions.
15187         (hurd_futimens): New function.
15188         * sysdeps/mach/hurd/futimesat.c: New file.
15189         * sysdeps/mach/hurd/utimensat.c: New file.
15191 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
15193         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15194         UTIME_OMIT): New macros.
15195         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15196         before reverting to converting time spec to time value and calling
15197         __file_utimes.
15198         * sysdeps/mach/hurd/utime-helper.c: New file.
15199         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15200         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15201         reverting to utime_tvalue_from_tval and __file_utimes.
15202         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15203         (__lutimes): Just call hurd_futimens after lookup.
15204         * sysdeps/mach/hurd/utimes.c: Likewise.
15206 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15208         * bits/sigaction.h: Add include guard.
15209         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15210         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15211         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15212         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15213         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15214         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15215         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15216         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15217         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15219 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
15221         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15222         -Wmaybe-uninitialized for -Os.
15223         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15224         this disabling.
15226 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15228         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15229         __INO_T_MATCHES_INO64_T is defined.
15230         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15231         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15232         of definition.
15233         * dirent/alphasort64.c: Likewise.
15234         * dirent/scandir.c: Likewise.
15235         * dirent/scandir64-tail.c: Likewise.
15236         * dirent/scandir64.c: Likewise.
15237         * dirent/scandirat.c: Likewise.
15238         * dirent/scandirat64.c: Likewise.
15239         * dirent/versionsort.c: Likewise.
15240         * dirent/versionsort64.c: Likewise.
15241         * include/dirent.h: Likewise.
15243         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15244         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15245         for socketpair endpoint.
15246         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15247         WRITE_BUFFER_SIZE as buffer size for sending socket.
15248         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15249         issue on system where send is implemented with sendto syscall.
15250         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15251         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15252         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15253         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15255         [BZ #21269]
15256         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15257         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15258         sa_restorer for vDSO case.
15259         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15261 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15263         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15264         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15265         * hurd/hurd/ioctl.h: Include <mach/port.h>
15266         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15267         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15268         <mach/mach_types.h> and <mach/message.h>.
15269         (headers): Move mach/param.h to bits/mach/param.h.
15270         * sysdeps/mach/i386/mach/param.h: Move file to ...
15271         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
15272         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15273         of <mach/param.h>.
15274         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15275         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15276         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15277         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15278         trivial, for C++ conformity.
15279         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15280         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15281         Process mig output through $(migheadersed).
15282         * hurd/Makefile (migheadersed): Define variable.
15283         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15284         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15285         headers.
15286         * hurd/hurd.h: Include <bits/types/sigset_t.h>
15287         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15288         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15289         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15290         <bits/types/sigset_t.h>.
15291         [!defined __USE_GNU]: Do not #error out.
15292         (struct hurd_sigstate): Use _NSIG instead of NSIG.
15293         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15294         Include <stddef.h> and <bits/types/sigset_t.h>
15295         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15296         instead of sighandler_t.
15297         * stdlib/errno.h (error_t): Move definition to...
15298         * bits/types/error_t.h: ... new header.
15299         * stdlib/Makefile (headers): Add bits/types/error_t.h.
15300         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15301         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15302         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15303         * hurd/hurd.h: Include <bits/types/error_t.h>
15304         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15305         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15306         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15307         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15308         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15309         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15310         * sysdeps/mach/hurd/futimens.c: New file.
15312 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
15314         [BZ #22918]
15315         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15316         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15317         * nscd/gai.c (__nss_hosts_database): Readd definition.
15318         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15319         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15320         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15322 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
15324         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15325         (ifunc_one): Likewise.
15327 2018-03-01  DJ Delorie  <dj@delorie.com>
15329         [BZ #22342]
15330         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15331         key value.
15333 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
15335         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15336         `match_pid' parameter.
15337         (td_ta_thr_iter): Update accordingly.
15339 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15341         * nptl/Makefile (install-lib-ldscripts): Remove.
15342         (install): Remove rule.
15343         ($(inst_libdir)/libpthread.so): Likewise.
15345 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
15347         [BZ #22896]
15348         * localedata/locales/an_ES: update month and day names,
15349         improve d_fmt, improve postal_fmt, add country_post,
15350         add country_isbn
15352 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
15354         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15355         Ukrainian instead of Bulgarian.
15357 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15359         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15360         reference.
15362 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15364         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
15365         * nptl/Makefile (routines): Add pthread_atfork.
15366         (static-only-routines): Set to pthread_atfork.
15367         (libpthread-routines): Remove pthread_atfork.
15368         (libpthread-static-only-routines): Remove.
15369         (install): Update comment.
15370         (libpthread.so): Do not install libpthread_nonshared.a.
15371         (tests): Do not link with libpthread_nonshared.a.
15372         (generated): Remove libpthread_nonshared.a.
15373         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15374         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15375         with libpthread_nonshared.a.
15377 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
15379         [BZ #22902]
15380         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15381         (libc_feholdexcept_setroundf128): New macro.
15382         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15384         [BZ #15105]
15385         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15386         libc_hidden_def.
15387         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15388         * include/inttypes.h: New file.
15390 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
15392         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15393         -Os in two more places.
15395 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15397         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15398         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15399         be sorted correctly at the moment because of a bug.
15401 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15403         [BZ #22550] - es_ES locale (and other es_* locales): collation should
15404         treat ñ as a primary different character, sync the collation
15405         for Spanish with CLDR.
15406         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15407         * localedata/Makefile: Add new test files.
15408         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15409         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15410         collation order.
15411         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15412         * localedata/am_ET.UTF-8.in: New test file.
15413         * localedata/az_AZ.UTF-8.in: Likewise.
15414         * localedata/be_BY.UTF-8.in: Likewise.
15415         * localedata/ber_DZ.UTF-8.in: Likewise.
15416         * localedata/ber_MA.UTF-8.in: Likewise.
15417         * localedata/bg_BG.UTF-8.in: Likewise.
15418         * localedata/br_FR.UTF-8.in: Likewise.
15419         * localedata/cmn_TW.UTF-8.in: Likewise.
15420         * localedata/crh_UA.UTF-8.in: Likewise.
15421         * localedata/csb_PL.UTF-8.in: Likewise.
15422         * localedata/cv_RU.UTF-8.in: Likewise.
15423         * localedata/cy_GB.UTF-8.in: Likewise.
15424         * localedata/dz_BT.UTF-8.in: Likewise.
15425         * localedata/eo.UTF-8.in: Likewise.
15426         * localedata/es_ES.UTF-8.in: Likewise.
15427         * localedata/fa_IR.UTF-8.in: Likewise.
15428         * localedata/fi_FI.UTF-8.in: Likewise.
15429         * localedata/fil_PH.UTF-8.in: Likewise.
15430         * localedata/fur_IT.UTF-8.in: Likewise.
15431         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15432         * localedata/ha_NG.UTF-8.in: Likewise.
15433         * localedata/ig_NG.UTF-8.in: Likewise.
15434         * localedata/ik_CA.UTF-8.in: Likewise.
15435         * localedata/kk_KZ.UTF-8.in: Likewise.
15436         * localedata/ku_TR.UTF-8.in: Likewise.
15437         * localedata/ky_KG.UTF-8.in: Likewise.
15438         * localedata/ln_CD.UTF-8.in: Likewise.
15439         * localedata/mi_NZ.UTF-8.in: Likewise.
15440         * localedata/ml_IN.UTF-8.in: Likewise.
15441         * localedata/mn_MN.UTF-8.in: Likewise.
15442         * localedata/mr_IN.UTF-8.in: Likewise.
15443         * localedata/mt_MT.UTF-8.in: Likewise.
15444         * localedata/nb_NO.UTF-8.in: Likewise.
15445         * localedata/om_KE.UTF-8.in: Likewise.
15446         * localedata/os_RU.UTF-8.in: Likewise.
15447         * localedata/ps_AF.UTF-8.in: Likewise.
15448         * localedata/ro_RO.UTF-8.in: Likewise.
15449         * localedata/ru_RU.UTF-8.in: Likewise.
15450         * localedata/sc_IT.UTF-8.in: Likewise.
15451         * localedata/se_NO.UTF-8.in: Likewise.
15452         * localedata/sq_AL.UTF-8.in: Likewise.
15453         * localedata/sv_SE.UTF-8.in: Likewise.
15454         * localedata/szl_PL.UTF-8.in: Likewise.
15455         * localedata/tg_TJ.UTF-8.in: Likewise.
15456         * localedata/tk_TM.UTF-8.in: Likewise.
15457         * localedata/tt_RU.UTF-8.in: Likewise.
15458         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15459         * localedata/ug_CN.UTF-8.in: Likewise.
15460         * localedata/uz_UZ.UTF-8.in: Likewise.
15461         * localedata/vi_VN.UTF-8.in: Likewise.
15462         * localedata/yi_US.UTF-8.in: Likewise.
15463         * localedata/yo_NG.UTF-8.in: Likewise.
15464         * localedata/zh_CN.UTF-8.in: Likewise.
15465         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15466         file and fix bugs in the collation.
15467         * localedata/locales/az_AZ: Likewise.
15468         * localedata/locales/be_BY: Likewise.
15469         * localedata/locales/ber_DZ: Likewise.
15470         * localedata/locales/ber_MA: Likewise.
15471         * localedata/locales/bg_BG: Likewise.
15472         * localedata/locales/br_FR: Likewise.
15473         * localedata/locales/br_FR@euro: Likewise.
15474         * localedata/locales/ca_ES: Likewise.
15475         * localedata/locales/cns11643_stroke: Likewise.
15476         * localedata/locales/crh_UA: Likewise.
15477         * localedata/locales/cs_CZ: Likewise.
15478         * localedata/locales/csb_PL: Likewise.
15479         * localedata/locales/cv_RU: Likewise.
15480         * localedata/locales/cy_GB: Likewise.
15481         * localedata/locales/da_DK: Likewise.
15482         * localedata/locales/dz_BT: Likewise.
15483         * localedata/locales/en_CA: Likewise.
15484         * localedata/locales/eo: Likewise.
15485         * localedata/locales/es_CU: Likewise.
15486         * localedata/locales/es_EC: Likewise.
15487         * localedata/locales/es_ES: Likewise.
15488         * localedata/locales/es_US: Likewise.
15489         * localedata/locales/et_EE: Likewise.
15490         * localedata/locales/fa_IR: Likewise.
15491         * localedata/locales/fi_FI: Likewise.
15492         * localedata/locales/fil_PH: Likewise.
15493         * localedata/locales/fur_IT: Likewise.
15494         * localedata/locales/gez_ER@abegede: Likewise.
15495         * localedata/locales/ha_NG: Likewise.
15496         * localedata/locales/hr_HR: Likewise.
15497         * localedata/locales/hsb_DE: Likewise.
15498         * localedata/locales/hu_HU: Likewise.
15499         * localedata/locales/ig_NG: Likewise.
15500         * localedata/locales/ik_CA: Likewise.
15501         * localedata/locales/is_IS: Likewise.
15502         * localedata/locales/iso14651_t1_pinyin: Likewise.
15503         * localedata/locales/kk_KZ: Likewise.
15504         * localedata/locales/ku_TR: Likewise.
15505         * localedata/locales/ky_KG: Likewise.
15506         * localedata/locales/ln_CD: Likewise.
15507         * localedata/locales/lt_LT: Likewise.
15508         * localedata/locales/lv_LV: Likewise.
15509         * localedata/locales/mi_NZ: Likewise.
15510         * localedata/locales/ml_IN: Likewise.
15511         * localedata/locales/mn_MN: Likewise.
15512         * localedata/locales/mr_IN: Likewise.
15513         * localedata/locales/mt_MT: Likewise.
15514         * localedata/locales/nb_NO: Likewise.
15515         * localedata/locales/om_KE: Likewise.
15516         * localedata/locales/os_RU: Likewise.
15517         * localedata/locales/pl_PL: Likewise.
15518         * localedata/locales/ps_AF: Likewise.
15519         * localedata/locales/ro_RO: Likewise.
15520         * localedata/locales/ru_RU: Likewise.
15521         * localedata/locales/ru_UA: Likewise.
15522         * localedata/locales/sc_IT: Likewise.
15523         * localedata/locales/se_NO: Likewise.
15524         * localedata/locales/si_LK: Likewise.
15525         * localedata/locales/sq_AL: Likewise.
15526         * localedata/locales/sv_FI: Likewise.
15527         * localedata/locales/sv_FI@euro: Likewise.
15528         * localedata/locales/sv_SE: Likewise.
15529         * localedata/locales/szl_PL: Likewise.
15530         * localedata/locales/tg_TJ: Likewise.
15531         * localedata/locales/ti_ER: Likewise.
15532         * localedata/locales/tk_TM: Likewise.
15533         * localedata/locales/tl_PH: Likewise.
15534         * localedata/locales/tr_TR: Likewise.
15535         * localedata/locales/tt_RU: Likewise.
15536         * localedata/locales/tt_RU@iqtelif: Likewise.
15537         * localedata/locales/ug_CN: Likewise.
15538         * localedata/locales/uk_UA: Likewise.
15539         * localedata/locales/uz_UZ: Likewise.
15540         * localedata/locales/uz_UZ@cyrillic: Likewise.
15541         * localedata/locales/vi_VN: Likewise.
15542         * localedata/locales/yi_US: Likewise.
15543         * localedata/locales/yo_NG: Likewise.
15545 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15547         * gen-locales.mk: Make test files which contain @ modifiers in their
15548         name work.
15549         * localedata/gen-locale.sh: Likewise.
15551 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15553         * posix/tst-fnmatch.input: Fix results for range expressions
15554         for non C locales.
15555         * posix/tst-regexloc.c: Do not use a range expression for
15556         de_DE.ISO-8859-1 locale.
15558 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15560         * posix/bug-regex5.c: Fix test case because with the new
15561         iso14651_t1_common file, the da_DK locale now has 6 collating elements
15562         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15563         file.
15565 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15567         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15568         downloaded from ISO, the collation order of @-. and space has changed.
15569         Therefore, this test file needed to be adapted.
15570         * localedata/fr_CA.UTF-8.in: Likewise.
15571         * localedata/fr_FR.UTF-8.in: Likewise.
15572         * localedata/uk_UA.UTF-8.in: Likewise.
15574 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15576         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15577         order of ȥ in the new iso14651_t1_common file.
15578         * localedata/pl_PL.UTF-8.in: Likewise.
15580 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15582         * localedata/locales/iso14651_t1_common: Add sections for various
15583         scripts to the iso14651_t1_common file.
15585 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15587         * localedata/locales/iso14651_t1_common: Use the code point of a
15588         character in the fourth collation level instead of IGNORE for all
15589         entries which have IGNORE on all 4 levels.
15591 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15593         * localedata/locales/iso14651_t1_common: Add some convenient collation
15594         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15595         rules similar to those in CLDR.
15597 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15599         * localedata/locales/iso14651_t1_common: The new version of this
15600         file downloaded from ISO contained several syntax errors which
15601         are fixed by this patch.
15603 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15605         * localedata/locales/iso14651_t1_common: replace all <U.....>
15606         with <U000.....> because glibc understands only 4 digit or 8 digit
15608 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15610         * localedata/locales/iso14651_t1_common: Necessary changes
15611         to make the file downloaded from ISO usable by glibc.
15613 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15615         [BZ #14095]
15616         * localedata/locales/iso14651_t1_common: Update file to
15617         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15619 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15621         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15622         of <nptl/pthreadP.h>
15623         (thread_attr_compare): Move function to...
15624         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15625         * sysdeps/nptl/timer_routines.h: ... new header.
15626         * sysdeps/mach/hurd/gai_misc.h: New file.
15628 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
15630         * string/strcoll_l.c: Include <libc-diag.h>.
15631         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15632         declarations of seq1 and seq2.
15634         [BZ #15105]
15635         * stdlib/atoi.c (atoi): Use libc_hidden_def.
15636         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15638 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
15640         [BZ #22433]
15641         [BZ #22807]
15642         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15643         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15644         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15645         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15646         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15647         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15649 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15651         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15652         macros used in __ptrace_request.
15654 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
15656         [BZ #22792]
15657         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15658         to $(CC).
15659         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15660         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15661         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15662         <tcb-offsets.h>.
15664 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
15666         [BZ #15105]
15667         * ctype/ctype.c (tolower): Use libc_hidden_def.
15668         (toupper): Likewise.
15669         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15670         [!_ISOMAC] (toupper): Likewise.
15672 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15674         * localedata/Makefile: Remove --quiet argument when
15675         installing locales
15677 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15679         [BZ #17438]
15680         * localedata/locales/pt_BR (LC_TIME): use / instead of -
15681         in d_fmt.
15682         * localedata/locales/pt_PT (LC_TIME): likewise
15684 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15686         [BZ #22646]
15687         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15688         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15689         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15691 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15693         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15695         * nptl/Makefile (routines): Remove unregister-atfork.
15696         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15697         (fork_handler_alloc): Remove function.
15698         (fork_handlers, fork_handler_init): New variables.
15699         (__fork_lock): Rename to atfork_lock.
15700         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15701         to use a dynamic array to add/remove atfork handlers.
15702         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15703         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15704         Remove declaration.
15705         (fork_handler): Remove next, refcntr, and need_signal member.
15706         (__run_fork_handler_type): New enum.
15707         (__run_fork_handlers): New prototype.
15708         * nptl/register-atfork.c: Remove file.
15709         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15711         * sysdeps/nptl/nptl-signals.h: Move to ...
15712         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
15713         comments.
15714         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15715         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15716         unnecessary check for SIGTIMER.
15717         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15718         remove unnecessary removal of SIGTIMER.
15719         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15720         include-signals.h rename.
15721         * nptl/pthreadP.h: Likewise.
15722         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15723         __is_internal_signal instead of __nptl_is_internal_signal.
15725 2018-02-22  Andrew Waterman <andrew@sifive.com>
15727         [BZ # 22884]
15728         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15729         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15730         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15731         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15733 2018-02-22  DJ Delorie  <dj@delorie.com>
15735         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15737 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15739         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15740         do_misaligned, not misaligned8.
15742 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
15744         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15745         Add memcpy_thunderx2.
15746         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15747         Increment to 4.
15748         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15749         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15750         and IS_THUNDERX2PA checks.
15751         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15752         Use macro to set name appropriately.
15753         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15754         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15755         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15756         New macro.
15757         (IS_THUNDERX2): New macro.
15759 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
15761         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15763 2018-02-21  Zack Weinberg  <zackw@panix.com>
15765         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15766         Define here, unconditionally.
15767         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15768         * libio/libioP.h: Remove #if 0 blocks.
15769         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15770         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15771         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
15773         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15774         Assume weak_alias is always defined.
15776         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15777         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15778         Remove #if 0 and #ifdef TODO blocks.
15779         Assume text_set_element is always defined.
15781         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15782         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15783         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15785         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15786         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15787         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15788         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15789         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15790         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15791         Reformat bit flags for _flags field to make occupancy clearer.
15792         Update commentary.
15793         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15794         Keep definitions consistent with those in libio/libio.h.
15796         * libio/libio.h (_IO_file_flags): Remove macro.
15797         All uses changed to _flags.
15799         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15800         (__HAVE_COLUMN, _IO_BE): Don't define.
15801         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15802         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15803         * libio/libioP.h (EOF): Don't define.
15804         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15805         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15806         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15807         testing _IO_UNIFIED_JUMPTABLES.
15809         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15810         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15811         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15812         (_IO_size_t): Delete; all uses changed to size_t.
15813         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15814         (_IO_off_t): Delete; all uses changed to off_t.
15815         (_IO_off64_t): Delete; all uses changed to off64_t.
15816         (_IO_pid_t): Delete; all uses changed to pid_t.
15817         (_IO_uid_t): Delete; all uses changed to uid_t.
15818         (_IO_wint_t): Delete; all uses changed to wint_t.
15819         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15820         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15821         (_IO_cookie_io_functions_t): Delete; all uses changed to
15822         cookie_io_functions_t.
15823         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15824         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15825         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15826         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15828         * libio/iofopncook.c: Remove unnecessary forward declarations.
15829         * libio/iolibio.h: Correct outdated commentary.
15830         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15831         * stdio-common/fxprintf.c (__fxprintf_nocancel):
15832         Remove unnecessary casts.
15833         * stdio-common/getline.c: Use _IO_getdelim directly.
15834         Don't redefine ssize_t.
15835         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15836         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15837         Remove outdated comments.
15838         * stdio-common/vfscanf.c: Don't redefine va_list.
15840         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15841         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15842         Remove preprocessor conditionals on _LIBC and __USE_GNU,
15843         which are always true, and __cplusplus, which is always false.
15845 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
15847         [BZ #15105]
15848         [BZ #19463]
15849         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15850         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15851         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
15852         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15853         libc_hidden_proto.
15854         [!_ISOMAC] (putc_unlocked): Likewise.
15855         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15856         define inline if [__USE_EXTERN_INLINES].
15857         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15858         putc_unlocked.
15860         [BZ #15105]
15861         [BZ #19463]
15862         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15863         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15864         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15865         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15866         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15867         getc_unlocked.
15868         * time/tzfile.c (__tzfile_read): Likewise.
15870 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
15872         [BZ #22517]
15873         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15875 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
15877         * io/fcntl.h: Fix a typo in a comment.
15879 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
15881         [BZ #22862]
15882         * include/features.h: Add _ISOC11_SOURCE to test for whether to
15883         define _DEFAULT_SOURCE.
15884         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15886 2018-02-21  Florian Weimer  <fweimer@redhat.com>
15888         [BZ #20890]
15889         * elf/cache.c (save_cache): Call fsync on temporary file before
15890         renaming it.
15891         (save_aux_cache): Call fdatasync on temporary file before renaming
15892         it.
15894 2018-02-21  Florian Weimer  <fweimer@redhat.com>
15896         [BZ #22787]
15897         * include/caller.h: Remove file.
15898         * elf/dl-caller.c: Likewise.
15899         * elf/Makefile (dl-routines): Remove dl-caller.
15900         (shared-only-routines): Do not add dl-caller.
15901         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15902         __check_caller.
15903         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15904         member.
15905         (dl_open_worker): Do not call __check_caller.
15906         (_dl_open): Do not set caller_dl_open member.
15907         * elf/rtld.c (_rtld_global_ro): Do not initialize
15908         _dl_check_caller member.
15909         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15910         _dl_check_caller member.
15911         (_dl_check_caller): Remove declaration.
15912         * sysdeps/unix/sysv/linux/dl-execstack.c
15913         (_dl_make_stack_executable): Do not call __check_caller.
15915 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15917         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15918         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15920 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
15922         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15923         description.
15925 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
15927         [BZ #16335]
15928         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15929         of 199606L, 200112L, and 200809L.
15930         (_XOPEN_SOURCE): Document special values of 600 and 700.
15931         (_ISOC11_SOURCE): Document macro.
15932         (_ATFILE_SOURCE): Likewise.
15933         (_FORTIFY_SOURCE): Likewise.
15935 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
15937         [BZ #15105]
15938         [BZ #19463]
15939         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15940         and define as weak alias of __ferror_unlocked.  Use
15941         libc_hidden_weak.
15942         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15943         libc_hidden_proto.
15944         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15945         function if [__USE_EXTERN_INLINES].
15946         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15947         ferror_unlocked.
15949 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
15951         [BZ #6889]
15952         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15954 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
15956         [BZ #22818]
15957         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15958         the GLIBC_2.1 version.
15960 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
15962         [BZ #21508]
15963         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15964         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15965         intl/tst-gettext-de.po from po/de.po by removing the
15966         POT-Creation-Date line.
15967         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15968         ../po/de.po.
15969         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15970         ../po/de.po.
15972 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15974         * mach/Makefile (headers): Add mach/param.h.
15975         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15976         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15977         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15978         (__ptsname_r): Move implementation to...
15979         (__ptsname_internal): ... new function.  Add filling the STP
15980         structure.
15982 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
15984         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15985         idouble to 1 ULP.
15987 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
15989         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15990         syntax.
15992 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
15994         * nptl/Makefile (tst-mutex8-ENV): Delete.
15995         * nptl/tst-mutex8.c (check_type):
15996         Add runtime check if mutex will be elided.
15998 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
16000         [BZ #20980]
16001         [BZ #21234]
16002         * manual/install.texi (Configuring and compiling): Describe
16003         passing CC and CFLAGS on configure command line, not as
16004         environment variables.  Use @code markup on those variables.
16005         Specify what options go in CC and what go in CFLAGS.  Note the
16006         requirement to compile with optimization.
16007         * INSTALL: Regenerated.
16009         [BZ #18124]
16010         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16011         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16012         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16013         __sigprocmask instead of sigprocmask.
16014         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16015         Likewise.
16016         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16017         __sigsetjmp and sigprocmask.
16019         [BZ #15105]
16020         * include/argz.h (argz_next): Use libc_hidden_proto.
16021         (__argz_next): Likewise.
16022         * string-argz-next.c (__argz_next): Use libc_hidden_def.
16023         (argz_next): Use libc_hidden_weak.
16025         [BZ #15105]
16026         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16027         libc_hidden_proto.
16028         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16029         libc_hidden_def.
16031         [BZ #15105]
16032         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16033         libc_hidden_proto.
16034         * libio/iofputs.c (fputs): Use libc_hidden_weak.
16036         [BZ #15105]
16037         [BZ #19463]
16038         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16039         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
16040         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16041         (__feof_unlocked): New declaration, and inline function if
16042         [__USE_EXTERN_INLINES].
16043         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16044         instead of feof_unlocked.
16045         * intl/localealias.c [_LIBC] (FEOF): Likewise.
16046         * nss/nsswitch.c (nss_parse_file): Likewise.
16047         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16048         Likewise.
16049         * time/getdate.c (__getdate_r): Likewise.
16050         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16051         Define as macro to call __feof_unlocked.
16053 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
16055         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16057 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
16059         * math/Makefile: Remove mpexp.c and mplog.c
16060         * sysdeps/i386/fpu/mpexp.c: Delete file.
16061         * sysdeps/i386/fpu/mplog.c: Likewise.
16062         * sysdeps/ia64/fpu/mpexp.c: Likewise.
16063         * sysdeps/ia64/fpu/mplog.c: Likewise.
16064         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16065         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16066         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16067         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16068         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16069         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16070         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16071         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16072         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16073         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16074         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16075         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16076         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16077         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16078         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16079         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16081 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
16083         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16085 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16087         * sysdeps/sh/libm-test-ulps: Update.
16089 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16091         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16092         idouble to 1 ULP.
16094 2018-02-12  Zack Weinberg  <zackw@panix.com>
16096         [BZ #19239]
16097         * posix/sys/types.h: Don't include sys/sysmacros.h.
16098         * misc/sys/sysmacros.h: Remove the conditional deprecation
16099         warnings for the macros defined by this header.
16101 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16103         * manual/probes.texi: Remove slowexp probes.
16104         * math/Makefile: Remove slowexp.
16105         * sysdeps/generic/math_private.h (__slowexp): Remove.
16106         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16107         document error bounds.
16108         * sysdeps/i386/fpu/slowexp.c: Remove.
16109         * sysdeps/ia64/fpu/slowexp.c: Remove.
16110         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16111         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16112         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16113         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16114         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16115         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16116         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16117         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16118         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16119         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16120         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16122 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
16124         [BZ #13932]
16125         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16126         * benchtests/pow-inputs: Update comment for slow path cases.
16127         * manual/probes.texi (slowpow_p10): Delete removed probe.
16128         (slowpow_p10): Likewise.
16129         * math/Makefile: Remove halfulp.c and slowpow.c.
16130         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16131         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16132         (__halfulp): Remove.
16133         (__slowpow): Remove.
16134         * sysdeps/i386/fpu/halfulp.c: Delete file.
16135         * sysdeps/i386/fpu/slowpow.c: Likewise.
16136         * sysdeps/ia64/fpu/halfulp.c: Likewise.
16137         * sysdeps/ia64/fpu/slowpow.c: Likewise.
16138         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16139         improve comments and add error analysis.
16140         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16141         (power1): Remove function:
16142         (log1): Remove error argument, add error analysis.
16143         (my_log2): Remove function.
16144         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16145         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16146         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16147         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16148         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16149         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16150         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16151         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16152         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16153         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16154         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16155         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16156         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16157         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16159 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16161         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16162         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16164 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
16166         [BZ #22433]
16167         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16168         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16169         and PTRACE_SETHBPREGS.
16171 2018-02-10  Zack Weinberg  <zackw@panix.com>
16173         [BZ #22830]
16174         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16175         correctly.
16176         * malloc/tst-malloc-stats-cancellation.c: New test case.
16177         * malloc/Makefile: Add new test case.
16179 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
16181         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16183 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
16185         * math/Makefile (libm-narrow-fns): Add add.
16186         (libm-test-funcs-narrow): Likewise.
16187         * math/Versions (GLIBC_2.28): Add narrowing add functions.
16188         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16189         * math/gen-auto-libm-tests.c (test_functions): Add add.
16190         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16191         (NARROW_ADD_ROUND_TO_ODD): Likewise.
16192         (NARROW_ADD_TRIVIAL): Likewise.
16193         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16194         macro.
16195         (__daddl): Likewise.
16196         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16197         dadd.
16198         (CFLAGS-nldbl-dadd.c): New variable.
16199         (CFLAGS-nldbl-fadd.c): Likewise.
16200         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16201         __nldbl_daddl.
16202         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16203         prototype.
16204         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16205         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16206         * math/auto-libm-test-in: Add tests of add.
16207         * math/auto-libm-test-out-narrow-add: New generated file.
16208         * math/libm-test-narrow-add.inc: New file.
16209         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16210         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16211         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16212         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16213         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16214         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16215         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16216         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16217         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16218         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16219         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16220         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16221         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16222         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16223         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16224         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16225         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16226         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16228         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16229         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16230         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16231         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16232         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16233         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16234         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16235         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16236         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16237         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16238         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16239         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16240         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16242         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16245         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16246         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16247         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16248         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16249         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16250         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16251         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16252         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16253         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16254         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16256         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16257         (f128-pairs): New variable.
16258         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16259         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16260         to CFLAGS.
16261         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16262         Also make tests add $(f128-loader-link) to gnulib-tests.
16264 2018-02-09  DJ Delorie  <dj@redhat.com>
16266         [BZ #22827]
16267         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16268         64-bit ELF type for 64-bit ELF objects.
16270 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
16272         * math/libm-test-driver.c (snan_tests_arg): New variable.
16273         * math/libm-test-support.h (snan_tests_arg): New declaration.
16274         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16276         * math/Makefile (test-type-pairs): New variable.
16277         (test-type-pairs-f64xf128-yes): Likewise.
16278         (tests): Add test-narrow-macros.
16279         (libm-test-funcs-narrow): New variable.
16280         (libm-test-c-narrow): Likewise.
16281         (generated): Add $(libm-test-c-narrow).
16282         (libm-tests-base-narrow): New variable.
16283         (libm-tests-narrow): Likewise.
16284         (libm-tests): Add $(libm-tests-narrow).
16285         (libm-tests-for-type): Handle $(libm-tests-narrow).
16286         (libm-test-c-narrow-obj): New variable.
16287         ($(libm-test-c-narrow-obj)): New rule.
16288         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16289         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16290         $(o-iterator) to set dependencies and CFLAGS.
16291         * math/gen-auto-libm-tests.c: Document use for narrowing
16292         functions.
16293         (output_for_one_input_case): Take argument NARROW.
16294         (generate_output): Likewise.  Update call to
16295         output_for_one_input_case.
16296         (main): Take --narrow option.  Update call to generate_output.
16297         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16298         (apply_lit): Update call to _apply_lit.
16299         (apply_arglit): New function.
16300         (parse_args): Handle "a" arguments.
16301         (parse_auto_input): Handle format names using ":".
16302         * math/README.libm-test: Document "a" parameter type.
16303         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16304         (ARG_TYPE_TRUE_MIN): Likewise.
16305         (ARG_TYPE_MAX): Likwise.
16306         (ARG_MIN_EXP): Likewise.
16307         (ARG_MAX_EXP): Likewise.
16308         (ARG_MANT_DIG): Likewise.
16309         (TEST_COND_arg_ibm128): Likewise.
16310         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16311         (TEST_COND_arg_fmt): New macro.
16312         (init_max_error): Update prototype.
16313         * math/libm-test-support.c (test_ibm128): New variable.
16314         (init_max_error): Take argument testing_ibm128 and set test_ibm128
16315         instead of using [TEST_COND_ibm128] conditional.
16316         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16317         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16318         [TEST_NARROW] (TEST_MSG): New definition.
16319         (arg_plus_zero): New macro.
16320         (arg_minus_zero): Likewise.
16321         (arg_plus_infty): Likewise.
16322         (arg_minus_infty): Likewise.
16323         (arg_qnan_value_pl): Likewise.
16324         (arg_qnan_value): Likewise.
16325         (arg_snan_value_pl): Likewise.
16326         (arg_snan_value): Likewise.
16327         (arg_max_value): Likewise.
16328         (arg_min_value): Likewise.
16329         (arg_min_subnorm_value): Likewise.
16330         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16331         (RUN_TEST_LOOP_aa_f): New macro.
16332         (TEST_SUFF): New macro.
16333         (TEST_SUFF_STR): Likewise.
16334         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16335         (TEST_COND_any_ibm128): New macro.
16336         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16337         this_func.  Update call to init_max_error.
16338         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16339         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16340         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16341         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16342         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16343         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16344         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16345         * math/test-math-scalar.h (TEST_NARROW): Likewise.
16346         * math/test-math-vector.h (TEST_NARROW): Likewise.
16347         * math/test-arg-double.h: New file.
16348         * math/test-arg-float128.h: Likewise.
16349         * math/test-arg-float32x.h: Likewise.
16350         * math/test-arg-float64.h: Likewise.
16351         * math/test-arg-float64x.h: Likewise.
16352         * math/test-arg-ldouble.h: Likewise.
16353         * math/test-math-narrow.h: Likewise.
16354         * math/test-narrow-macros.c: Likewise.
16355         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16356         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16357         test-narrow-macros-ldbl-64.
16358         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16360         * math/bits/mathcalls-narrow.h: New file.
16361         * include/bits/mathcalls-narrow.h: Likewise.
16362         * math/math-narrow.h: Likewise.
16363         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16364         (__MATHCALL_NARROW_ARGS_2): Likewise.
16365         (__MATHCALL_NARROW_ARGS_3): Likewise.
16366         (__MATHCALL_NARROW_NORMAL): Likewise.
16367         (__MATHCALL_NARROW_REDIR): Likewise.
16368         (__MATHCALL_NARROW): Likewise.
16369         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16370         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16371         defined.
16372         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16373         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16374         (libm-narrow-fns): New variable.
16375         (libm-narrow-types-basic): Likewise.
16376         (libm-narrow-types-ldouble-yes): Likewise.
16377         (libm-narrow-types-float128-yes): Likewise.
16378         (libm-narrow-types-float128-alias-yes): Likewise.
16379         (libm-narrow-types): Likewise.
16380         (libm-routines): Add narrowing functions.
16381         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16382         (libc_feholdexcept_setroundf128): New macro.
16383         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16384         * sysdeps/ieee754/float128/float128_private.h: Include
16385         <math/math-narrow.h>.
16386         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16387         Undefine and redefine.
16388         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16389         (libm_alias_float_ldouble): Undefine and redefine.
16390         (libm_alias_double_ldouble): Likewise.
16392         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16394 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
16396         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16397         FPCR/FPSR.
16399 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
16401         * manual/creature.texi: Convert references to gcc.info to gcc.
16402         * manual/stdio.texi: Likewise.
16403         * manual/string.texi: Likewise.
16405 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
16407         [BZ #17979]
16408         * posix/bits/types.h (__int_least8_t): New typedef.
16409         (__uint_least8_t): Likewise.
16410         (__int_least16_t): Likewise.
16411         (__uint_least16_t): Likewise.
16412         (__int_least32_t): Likewise.
16413         (__uint_least32_t): Likewise.
16414         (__int_least64_t): Likewise.
16415         (__uint_least64_t): Likewise.
16416         * sysdeps/generic/stdint.h (int_least8_t): Define using
16417         __int_least8_t.
16418         (int_least16_t): Define using __int_least16_t.
16419         (int_least32_t): Define using __int_least32_t.
16420         (int_least64_t): Define using __int_least64_t.
16421         (uint_least8_t): Define using __uint_least8_t.
16422         (uint_least16_t): Define using __uint_least16_t.
16423         (uint_least32_t): Define using __uint_least32_t.
16424         (uint_least64_t): Define using __uint_least64_t.
16425         * wcsmbs/uchar.h: Include <bits/types.h>.
16426         (char16_t): Define using __uint_least16_t conditional only on
16427         [!__USE_ISOCXX11].
16428         (char32_t): Define using __uint_least32_t conditional only on
16429         [!__USE_ISOCXX11].
16430         * wcsmbs/test-char-types.c: New file.
16431         * wcsmbs/Makefile (tests): Add test-char-types.
16433         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16434         version to 4.0.1.
16436 2018-02-07  Zack Weinberg  <zackw@panix.com>
16438         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16439         Delete all contents except for definitions of _G_HAVE_MMAP and
16440         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
16441         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16442         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
16443         change as above.
16445         * libio/libio.h: Don't include bits/_G_config.h here.
16446         Include stddef.h with __need_wchar_t defined.  Include
16447         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16448         Define _IO_iconv_t here, directly.
16449         Don't define _IO_HAVE_ST_BLKSIZE.
16450         * libio/libioP.h: Include _G_config.h here.  Move include of
16451         shlib-compat.h up with rest of includes.  Simplify conditionals
16452         controlling definition of _IO_JUMPS_OFFSET.
16454         * csu/init.c: Remove always-true #if around entire file.
16455         Don't include stdio.h.  Set _IO_stdin_used to hardwired
16456         constant 0x20001, and update commentary.
16457         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16458         Replace all uses of _G_va_list with __gnuc_va_list.
16459         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16460         instead of #if _IO_HAVE_ST_BLKSIZE.
16461         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16462         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16463         not #ifdef.
16465         * libio/bits/libio.h: Move back to libio/libio.h and adjust
16466         multiple-include guard to match.
16467         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16468         into this file.
16469         Remove preprocessor conditionals that are always true and/or
16470         redundant to other preprocessor conditionals in the same nest.
16471         Include shlib-compat.h unconditionally.
16472         Error out if _LIBC is not defined, or if _ISOMAC is defined,
16473         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16474         defined after including stdio.h.
16475         Use __BEGIN_DECLS/__END_DECLS.
16477         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16478         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16479         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16481 2018-02-07  Zack Weinberg  <zackw@panix.com>
16483         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16484         New single-type headers split from _G_config.h.
16485         * libio/bits/types/cookie_io_functions_t.h
16486         * libio/bits/types/struct_FILE.h
16487         New single-type headers split from libio.h.
16489         * libio/Makefile: Install the above new headers.  Don't install
16490         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16491         bits/libio-ldbl.h.
16492         * libio/_G_config.h, libio/libio.h: Delete file.
16494         * libio/bits/libio.h: Remove improper-inclusion guard.
16495         Include stdio.h and don't repeat anything that it does.
16496         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16497         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16498         __io_read_fn as cookie_read_function_t,
16499         __io_write_fn as cookie_write_function_t,
16500         __io_seek_fn as cookie_seek_function_t,
16501         __io_close_fn as cookie_close_function_t,
16502         and _IO_cookie_io_functions_t as cookie_io_functions_t.
16503         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16504         here, in the "compatibility defines" section.  Remove an #if 0
16505         block.  Use the "body" macros from bits/types/struct_FILE.h to
16506         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16507         and _IO_ferror_unlocked.
16508         Move prototypes of __uflow and __overflow...
16510         * libio/stdio.h: ...here.  Don't include bits/libio.h.
16511         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
16512         directly from stdarg.h.  Include bits/types/__fpos_t.h,
16513         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16514         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16515         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16516         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16517         cookie_io_functions_t, not _IO_cookie_io_functions_t;
16518         __ssize_t, not _IO_ssize_t.  Unconditionally define
16519         BUFSIZ as 8192 and EOF as (-1).
16521         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
16522         macros from bits/types/struct_FILE.h instead of _IO_* macros
16523         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16524         instead of _IO_ssize_t.
16525         * libio/bits/stdio2.h: Similarly.
16527         * libio/iolibio.h: Add multiple-include guard.
16528         Include bits/libio.h after stdio.h.
16529         * libio/libioP.h: Add multiple-include guard.
16530         Include stdio.h and bits/libio.h before iolibio.h.
16532         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16533         * include/bits/types/cookie_io_functions_t.h
16534         * include/bits/types/struct_FILE.h: New wrappers.
16536         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16537         Get definitions of _G_fpos_t and _G_fpos64_t from
16538         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16539         respectively.  Remove improper-inclusion guards.
16541         * conform/data/stdio.h-data: Update expectations of va_list.
16542         * scripts/check-installed-headers.sh: Remove special case for
16543         libio.h and _G_config.h.
16545 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
16547         [BZ #15105]
16548         [BZ #19463]
16549         * include/sys/sysmacros.h [!_ISOMAC]
16550         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16551         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16552         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16553         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16554         libc_hidden_proto.
16555         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16556         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16557         Likewise.
16558         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16559         Undefine and redefine to add use __gnu_dev_ prefix.
16560         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16561         Likewise.
16562         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16563         and define as hidden inline function.
16564         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16565         Likewise.
16566         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16567         Likewise.
16568         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16569         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16570         (gnu_dev_minor): Likewise.
16571         (gnu_dev_makedev): Likewise.
16572         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16573         makedev.
16574         * posix/wordexp.c (exec_comm_child): Likewise.
16575         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16576         instead of minor and __gnu_dev_major instead of major.
16577         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16578         __gnu_dev_major instead of major.
16579         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16580         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16581         instead of gnu_dev_minor.
16582         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16583         (SLAVE_P): Likewise.
16584         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16585         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16586         instead of major.
16588         [BZ #21313]
16589         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16590         in another place.
16591         * locale/weightwc.h (findidx): Likewise.
16593 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
16595         * manual/probes.texi (slowlog): Delete documentation of removed probe.
16596         (slowlog_inexact): Likewise
16597         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16598         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16600 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
16602         [BZ #22797]
16603         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16604         missing second underscore to parameter name.
16606 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
16608         [BZ #14508]
16609         [BZ #15512]
16610         [BZ #17082]
16611         [BZ #20530]
16612         * bits/byteswap.h: Update file comment.  Do not include
16613         <bits/byteswap-16.h>.
16614         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
16615         constant.
16616         (__bswap_16): Define as inline function.
16617         (__bswap_constant_32): Reformat definition.
16618         (__bswap_32): Always define as inline function, not macro, using
16619         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16620         otherwise __bswap_constant_32.
16621         (__bswap_constant_64): Reformat definition.  Do not use
16622         __extension__ here.
16623         (__bswap_64): Always define as inline function, not macro.  Use
16624         __extension__ on function definition.  Use __builtin_bswap64 if
16625         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16626         * string/test-endian-file-scope.c: New file.
16627         * string/test-endian-sign-conversion.c: Likewise.
16628         * string/Makefile (headers): Remove bits/byteswap-16.h.
16629         (tests): Add test-endian-file-scope and
16630         test-endian-sign-conversion.
16631         (CFLAGS-test-endian-sign-conversion.c): New variable.
16632         * bits/byteswap-16.h: Remove file.
16633         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16634         * sysdeps/ia64/bits/byteswap.h: Likewise.
16635         * sysdeps/m68k/bits/byteswap.h: Likewise.
16636         * sysdeps/s390/bits/byteswap-16.h: Likewise.
16637         * sysdeps/s390/bits/byteswap.h: Likewise.
16638         * sysdeps/tile/bits/byteswap.h: Likewise.
16639         * sysdeps/x86/bits/byteswap-16.h: Likewise.
16640         * sysdeps/x86/bits/byteswap.h: Likewise.
16642         [BZ #17721]
16643         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16644         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16645         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16646         199901L] (__restrict): Define to restrict.
16648         [BZ #19667]
16649         * string/testcopy.c: Include <support/support.h>.  Do not include
16650         <malloc.h>.  Use <support/test-driver.c>.
16651         (main): Rename to do_test.  Make static.  Use xmalloc instead of
16652         malloc.
16654         [BZ #13575]
16655         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16656         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16657         (SSIZE_MAX): Define to INT_MAX.
16658         * posix/test-ssize-max.c: New file.
16659         * posix/Makefile (tests): Add test-ssize-max.
16661         [BZ #19668]
16662         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16663         <support/support.h>.  Do not include <malloc.h>.
16664         (query_auxv): Use xmalloc instead of malloc.
16666         [BZ #14553]
16667         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16668         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16669         instead of loff_t.
16671 2018-02-06  Florian Weimer <fweimer@redhat.com>
16673         [BZ #18023]
16674         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16675         Use scratch_buffer instead of extend_alloca.
16677 2018-02-06  Zack Weinberg  <zackw@panix.com>
16679         * libio/stdio.h: Don't define getc or putc as macros.
16680         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16681         not _IO_getc and _IO_putc.
16683         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16684         * stdio-common/tstgetln.c: Don't redefine ssize_t.
16686 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
16688         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16689         (TCP_FASTOPEN_NO_COOKIE): Likewise.
16691         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16693         [BZ #14890]
16694         * elf/elf.h (NT_PRFPREG): New macro.
16695         (NT_S390_VXRS_LOW): Likewise.
16696         (NT_S390_VXRS_HIGH): Likewise.
16697         (NT_S390_GS_CB): Likewise.
16698         (NT_S390_GS_BC): Likewise.
16699         (NT_S390_RI_CB): Likewise.
16701         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16702         (MAP_SYNC): New macro.
16703         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16704         Likewise.
16705         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16706         (MAP_SYNC): Likewise.
16707         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16708         (MAP_SYNC): Likewise.
16709         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16710         (MAP_SYNC): Likewise.
16711         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16712         (MAP_SYNC): Likewise.
16713         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16714         (MAP_SYNC): Likewise.
16715         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16716         (MAP_SYNC): Likewise.
16717         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16718         Likewise.
16719         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16720         Likewise.
16722         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16723         (MAP_SHARED_VALIDATE): New macro.
16724         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16725         (MAP_SHARED_VALIDATE): Likewise.
16727 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16729         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16730         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16731         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16733 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16735         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
16736         (DT_NUM): Updated to 35.
16738 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16740         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16741         __builtin_expect with __glibc_likely and __glibc_unlikely.
16742         (elf_machine_rela): Likewise.
16743         (elf_machine_lazy_rel): Likewise.
16745 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16747         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16748         __builtin_expect with __glibc_likely and __glibc_unlikely.
16749         (elf_machine_lazy_rel): Likewise.
16751 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16753         [BZ #22638]
16754         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16755         SHARED.
16756         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16758 2018-02-05  Andreas Schwab  <schwab@suse.de>
16760         [BZ #22761]
16761         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16762         string.
16764 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16766         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16767         not check against PTHREAD_STACK_MIN.
16769 2018-02-02  Sean McKean  <smckean83@gmail.com>
16771         [BZ #22735]
16772         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16774 2018-02-02  Florian Weimer  <fweimer@redhat.com>
16776         [BZ #22753]
16777         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16778         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16779         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16780         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16781         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16782         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16783         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16784         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16785         * manual/llio.texi (Scatter-Gather): Mention offset -1.
16786         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16787         * misc/tst-preadvwritev2.c (do_test): Call it.
16788         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16790 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16792         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16794         * benchtests/bench-memcmp.c: Print json instead of plain text.
16796         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16797         every test run.
16799 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
16801         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16802         version to 4.15.
16803         (s390_sthyi): New syscall.
16805         * sysdeps/generic/ldbl-classify-compat.h: New file.
16806         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16807         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16808         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16809         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16810         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16811         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16812         * sysdeps/ieee754/dbl-64/s_finite.c: Include
16813         <ldbl-classify-compat.h>.
16814         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16815         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16816         <ldbl-classify-compat.h>.
16817         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16818         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16819         <ldbl-classify-compat.h>.
16820         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16821         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16822         <ldbl-classify-compat.h>.
16823         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16824         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16825         <ldbl-classify-compat.h>.
16826         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16827         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16828         <ldbl-classify-compat.h>.
16829         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16830         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16831         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16832         * sysdeps/m68k/coldfire/math_private.h: Remove file.
16833         * sysdeps/microblaze/math_private.h: Likewise.
16834         * sysdeps/nios2/math_private.h: Likewise.
16835         * sysdeps/sh/math_private.h: Likewise.
16837         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16838         * sysdeps/m68k/coldfire/math_private.h: ... here.
16839         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16840         * sysdeps/tile/math_private.h: Likewise.
16841         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16842         Remove macro.
16843         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16844         Likewise.
16846         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16847         Remove macro.
16848         (libc_fetestexcept): Likewise.
16849         (libc_feupdateenv_test): Likewise.
16850         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16851         (libc_fetestexcept): Likewise.
16852         (libc_feupdateenv_test): Likewise.
16853         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16854         (libc_fetestexcept): Likewise.
16855         (libc_feupdateenv_test): Likewise.
16856         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16857         (libc_fetestexcept): Likewise.
16858         (libc_feupdateenv_test): Likewise.
16860         * sysdeps/generic/math_private.h
16861         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16862         New inline function.
16863         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16864         Likewise.
16866         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16867         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16868         * sysdeps/generic/math_private.h
16869         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16870         inline function.
16871         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16872         Likewise.
16873         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16874         Likewise.
16875         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16876         Likewise.
16877         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16878         Likewise.
16879         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16880         Likewise.
16881         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16882         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16883         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16884         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16885         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16886         (__fegetenv): Likewise.
16887         (fesetenv): Likewise.
16888         (__fesetenv): Likewise.
16889         (feupdateenv): Likewise.
16890         (__feupdateenv): Likewise.
16891         (fegetround): Likewise.
16892         (__fegetround): Likewise.
16893         (fesetround): Likewise.
16894         (__fesetround): Likewise.
16896         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16897         (feraiseexcept): New macro.
16898         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16899         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16900         Remove macro.
16901         (__feraiseexcept): Likewise.
16902         (feclearexcept): Likewise.
16903         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16904         (__feraiseexcept): Likewise.
16905         (feclearexcept): Likewise.
16906         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16907         (__feraiseexcept): Likewise.
16908         (feclearexcept): Likewise.
16909         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16910         (__feraiseexcept): Likewise.
16911         (feclearexcept): Likewise.
16912         (fetestexcept): Likewise.
16914         * sysdeps/m68k/coldfire/math-tests.h: New file.
16916         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16917         * sysdeps/m68k/bits/fenv.h: ... here.
16918         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16919         not define.
16920         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16921         Likewise.
16922         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16923         Likewise.
16924         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16925         Likewise.
16926         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16927         Likewise.
16928         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16929         Define to 0.
16930         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16931         (__FE_UNDEFINED): New enum constant.
16932         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16933         Do not define.
16934         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16935         Likewise.
16936         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16937         Likewise.
16938         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16939         to match generic bits/fenv.h.
16940         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16941         Do not define.
16943         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16944         packed on bits.
16945         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16946         * soft-fp/half.h (union _FP_UNION_H): Likewise.
16947         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16948         * soft-fp/single.h (union _FP_UNION_S): Likewise.
16950 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
16951             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
16952             Joseph Myers  <joseph@codesourcery.com>
16954         [BZ #21314]
16955         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16956         (__log1p): Disable -Wmaybe-uninitialized for -Os around
16957         computation using c.
16958         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16959         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16960         computation using c.
16962 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
16964         * version.h (RELEASE): Set to "development".
16965         (VERSION): Set to "2.27.9000".
16966         * NEWS (2.28): New section.
16968         * version.h (RELEASE): Set to "stable".
16969         (VERSION): Set to "2.27".
16970         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16972         * NEWS: Add the list of bugs fixed in 2.27.
16974 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16976         * stdlib/test-atexit-race-common.c (do_test): Check stack size
16977         against PTHREAD_STACK_MIN.
16979 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
16981         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16982         New entries.
16983         (Rafal Luzynski, Andreas Schwab): Update.
16985 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
16987         [BZ #10871]
16988         * NEWS: List the languages which actually use the alternative
16989         months feature in this release.  Also explain that "alt_mon" and
16990         "ab_alt_mon" are optional.
16992 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
16994         [BZ #22765]
16995         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16997 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
16999         * manual/install.texi (Tools for Compilation): Update the newest
17000         versions of gcc, binutils, texinfo, gawk, bison, and sed.
17001         * INSTALL: Regenerated.
17003 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17005         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17006         instead of __builtin_expect.
17008 2018-01-30  Florian Weimer  <fweimer@redhat.com>
17010         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17011         data.
17012         * nss/tst-nss-getpwent.c (do_test): Likewise.
17014 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
17016         [BZ #10871]
17017         * localedata/locales/hr_HR (mon): Rename to...
17018         (alt_mon): This.
17019         (mon): Import from CLDR (genitive case).
17020         (d_t_fmt): Update the comment.
17022 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
17024         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17025         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17026         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17028 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17030         * mach/Versions: Fix version when __mach_host_self_ was added.
17031         * hurd/Versions: Fix version when _hurd_exec_paths was added.
17032         * sysdeps/mach/hurd/i386/ld.abilist: New file.
17033         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17034         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17035         * sysdeps/mach/hurd/i386/libc.abilist: New file.
17036         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17037         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17038         * sysdeps/mach/hurd/i386/libm.abilist: New file.
17039         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17040         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17041         * sysdeps/mach/hurd/i386/librt.abilist: New file.
17042         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17043         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17044         || to respect codestyle.
17045         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17046         (do_test_bz20181): Rename accordingly.
17047         * malloc/malloc.c: Include <assert.h>.
17048         (assert): Do not define.
17049         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17050         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17051         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17052         * sysdeps/mach/hurd/hp-timing.h: New file.
17053         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17055 2018-01-29  Darius Rad  <darius@bluespec.com>
17057         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17059 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
17061         * sysdeps/init_array/crti.S (.section .init_array): Add
17062         PREINIT_FUNCTION when defined.
17063         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17064         * config.h.in: Regenerate.
17065         * manual/platform.texi: Add RISC-V documenation for
17066         __riscv_flush_icache.
17067         * sysdeps/riscv/__longjmp.S: New file.
17068         * sysdeps/riscv/backtrace.c: Likewise.
17069         * sysdeps/riscv/bits/endian.h: Likewise.
17070         * sysdeps/riscv/bits/setjmp.h: Likewise.
17071         * sysdeps/riscv/bits/wordsize.h: Likewise.
17072         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17073         * sysdeps/riscv/bsd-setjmp.c: Likewise.
17074         * sysdeps/riscv/dl-trampoline.S: Likewise.
17075         * sysdeps/riscv/gccframe.h: Likewise.
17076         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17077         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17078         * sysdeps/riscv/machine-gmon.h: Likewise.
17079         * sysdeps/riscv/memusage.h: Likewise.
17080         * sysdeps/riscv/setjmp.S: Likewise.
17081         * sysdeps/riscv/sys/asm.h: Likewise.
17082         * sysdeps/riscv/tls-macros.h: Likewise.
17083         * sysdeps/riscv/dl-tls.h: New file.
17084         * sysdeps/riscv/libc-tls.c: Likewise.
17085         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17086         * sysdeps/riscv/nptl/tls.h: Likewise.
17087         * sysdeps/riscv/stackinfo.h: Likewise.
17088         * sysdeps/riscv/bits/fenv.h: New file.
17089         * sysdeps/riscv/e_sqrtl.c: Likewise.
17090         * sysdeps/riscv/fpu_control.h: Likewise.
17091         * sysdeps/riscv/math-tests.h: Likewise.
17092         * sysdeps/riscv/nofpu/Implies: Likewise.
17093         * sysdeps/riscv/sfp-machine.h: Likewise.
17094         * sysdeps/riscv/tininess.h: Likewise.
17095         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17096         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17097         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17098         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17099         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17100         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17101         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17102         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17103         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17104         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17105         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17106         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17107         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17108         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17109         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17110         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17111         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17112         * sysdeps/riscv/rvd/s_finite.c: Likewise.
17113         * sysdeps/riscv/rvd/s_fma.c: Likewise.
17114         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17115         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17116         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17117         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17118         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17119         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17120         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17121         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17122         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17123         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17124         * sysdeps/riscv/rvf/fegetround.c: Likewise.
17125         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17126         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17127         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17128         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17129         * sysdeps/riscv/rvf/fesetround.c: Likewise.
17130         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17131         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17132         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17133         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17134         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17135         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17136         * sysdeps/riscv/rvf/math_private.h: Likewise.
17137         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17138         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17139         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17140         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17141         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17142         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17143         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17144         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17145         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17146         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17147         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17148         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17149         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17150         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17151         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17152         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17153         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17154         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17155         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17156         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17157         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17158         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17159         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17160         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17161         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17162         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17163         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17164         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17165         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17166         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17167         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17168         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17169         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17170         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17171         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17172         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17173         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17174         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17175         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17176         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17177         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17178         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17179         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17180         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17181         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17182         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17183         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17184         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17185         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17186         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17187         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17188         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17189         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17190         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17191         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17192         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17193         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17194         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17195         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17196         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17197         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17198         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17199         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17200         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17201         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17202         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17203         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17204         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17205         * sysdeps/riscv/Implies: New file.
17206         * sysdeps/riscv/Makefile: Likewise.
17207         * sysdeps/riscv/configure: Likewise.
17208         * sysdeps/riscv/configure.ac: Likewise.
17209         * sysdeps/riscv/nptl/Makefile: Likewise.
17210         * sysdeps/riscv/preconfigure: Likewise.
17211         * sysdeps/riscv/rv64/Implies-after: Likewise.
17212         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17213         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17214         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17215         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17216         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17217         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17218         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17219         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17220         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17221         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17222         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17223         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17224         (Config): Likewise.
17226 2018-01-29  Florian Weimer  <fweimer@redhat.com>
17228         [BZ #22701]
17229         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17230         libnsl_hidden_proto.
17231         * include/rpcsvc/yp.h (yp_xdrall): Declare with
17232         libnsl_hidden_proto.
17233         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17234         * nis/Makefile (libnsl-routines): Add nss-default only for
17235         build-obsolete-nsl.
17236         * nis/nis_defaults.c (__nis_default_ttl): Add
17237         libnsl_hidden_nolink_def.
17238         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17239         declaration.
17240         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17241         * nis/ypclnt.c (yp_maplist): Likewise.
17243 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
17245         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17246         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17248 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
17250         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17251         clean -dxfq for git updates when replacing sources.
17253         * scripts/build-many-glibcs.py (Config.build_gcc): Use
17254         --disable-libcilkrts unconditionally, not just for the final GCC
17255         build for Hurd.
17257         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17258         version to 4.15.
17260 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17262         [BZ #10871]
17263         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17264         case).
17266 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17268         [BZ #10871]
17269         * localedata/locales/be_BY (mon): Rename to...
17270         (alt_mon): This, then synchronize with CLDR (nominative case).
17271         (abmon): Rename to...
17272         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17273         (mon): Import from CLDR (genitive case).
17274         (abmon): Likewise.
17275         * localedata/locales/be_BY@latin (mon): Rename to...
17276         (alt_mon): This.
17277         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17279         * localedata/locales/be_BY@latin (lang_name): Reworded to
17280         "biełaruskaja mova".
17282 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17284         [BZ #10871]
17285         * localedata/locales/el_CY (mon): Renamed to...
17286         (alt_mon): This.
17287         (mon): Import from CLDR (genitive case).
17288         * localedata/locales/el_GR: Likewise.
17290 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17292         [BZ #10871]
17293         * localedata/locales/ru_RU (mon): Rename to...
17294         (alt_mon): This.
17295         (abmon): Rename to...
17296         (ab_alt_mon): This.
17297         (mon): Import from CLDR (genitive case).
17298         (abmon): Copy from the old content except the 5th month which is
17299         now in the genitive case, even when abbreviated.
17300         * localedata/locales/ru_UA: Likewise.
17301         * time/tst-strptime.c (day_tests): Add an actual example of
17302         a difference between %b and %Ob in Russian.
17304 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17306         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17307         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17308         a `c' variable.
17309         * resolv/res-close.c: Include <stdlib.h>.
17310         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17311         <sys/wait.h>, <time.h>, <sys/uio.h>.
17312         (NOT_CANCEL_H): Add inclusion guard.
17313         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17314         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17315         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17316         return 0.
17317         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17318         vm_address_t * to ElfW(Addr) * for dl_main parameter.
17319         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17320         instead of void *.
17321         * sysdeps/pthread/timer_create.c (timer_create): Do not use
17322         timer_ptr2id to cast struct timer_node * to void *.
17323         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17324         --disable-libcilkrts to gcc configure.
17325         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17326         and make them the default for now.
17327         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17328         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17329         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17330         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17331         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17332         MACH_IPC_COMPAT.
17333         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17334         __task_terminate would ever return successfully.
17335         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17336         to global scope.
17337         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17338         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17339         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17340         critical section to make code simpler and avoid warning.
17341         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17342         critical section to make code simpler and avoid warning.
17343         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17344         const char * instead of char *.
17345         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17346         __hurd_file_name_split, hurd_file_name_split,
17347         __hurd_directory_name_split, hurd_directory_name_split,
17348         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17349         hurd_file_name_path_lookup): Make lookup function parameter take a
17350         const char *name instead of char *name.
17351         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17352         __hurd_directory_name_split): Likewise.
17353         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17354         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17355         * sysdeps/mach/hurd/check_native.c: New file.
17356         * sysdeps/mach/hurd/check_pf.c: New file.
17357         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17358         (__freeifaddrs): Define macro to freeifaddrs.
17359         * sysdeps/mach/hurd/libhurduser.abilist: New file.
17360         * sysdeps/mach/libmachuser.abilist: New file.
17361         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17362         (do_test_bz20181): Rename accordingly.
17363         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17364         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17365         <sys/mount.h>.
17366         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17367         version only if __USE_EXTERN_INLINES is defined.
17368         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17369         __hurd_sockfail): Likewise.
17370         (_hurd_fd_get): Always declare functions, and provide inline versions
17371         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17372         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17373         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17374         _hurd_port_set): Always declare functions, and provide inline versions
17375         only if __USE_EXTERN_INLINES and _LIBC are defined and
17376         IS_IN(libc).
17377         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17378         _hurd_critical_section_unlock): Likewise.
17379         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17380         * __hurd_threadvar_location): Likewise.
17381         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17382         _hurd_userlink_clear): Likewise.
17383         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17384         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17385         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17386         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17387         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17388         __spin_lock_locked): Likewise.
17389         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17390         __spin_lock_locked): Likewise.
17391         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17392         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17393         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17394         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17395         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17396         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17397         _POSIX_NO_TRUNC): Define to 0.
17398         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17399         check size against PTHREAD_STACK_MIN.
17400         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17401         IS_IN(libpthread)]: Include <sigsetops.h>.
17402         * mach/Makefile (user-interfaces): Add mach/gnumach.
17403         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17404         * sysdeps/mach/configure (mach_interface_list): Regenerate.
17405         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17406         instead of invalid -1.
17407         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17408         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17409         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17410         <net/ppp_defs.h>.
17412 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
17414         * hurd/fcntl-internal.h: New file.
17416 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
17418         * sysdeps/hppa/fpu/libm-test-ulps: Update.
17420         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17422 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
17424         [BZ #22701]
17425         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17426         Build only shared objects.
17428 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
17430         * README: Update for hppa.
17432 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
17434         * sysdeps/sparc/fpu/libm-test-ulps: Update
17435         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17437 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
17439         Revert:
17441         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
17443         [BZ #22563]
17444         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17445         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17446         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17447         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17448         to feature_1.
17450         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
17452         [BZ #22563]
17453         * bits/types/__cancel_jmp_buf_tag.h: New file.
17454         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17455         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17456         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17457         * nptl/Makefile (headers): Add
17458         bits/types/__cancel_jmp_buf_tag.h.
17459         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17460         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17461         * sysdeps/nptl/pthread.h: Include
17462         <bits/types/__cancel_jmp_buf_tag.h>.
17463         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17464         __cancel_jmp_buf.
17465         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17467 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
17469         [BZ #10871]
17470         * localedata/locales/uk_UA (mon): Renamed to...
17471         (alt_mon): This.
17472         (alt_digits): "0" removed and then renamed to...
17473         (mon): This.
17474         (date_fmt): Definition changed not to use the alternative
17475         digits hack.
17477 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
17479         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17480         FLAG_RISCV_FLOAT_ABI_DOUBLE.
17481         * elf/elf.h (EF_RISCV_RVC): New define.
17482         (EF_RISCV_FLOAT_ABI): Likewise.
17483         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17484         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17485         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17486         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17487         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17488         define.
17489         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17491 2018-01-25  Andreas Schwab  <schwab@suse.de>
17493         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17494         single quotes.
17495         * sysdeps/gnu/configure: Regenerate.
17496         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17497         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17498         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17499         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17500         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17501         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17502         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17503         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17505 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17507         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17508         URL, and run autoconf, make it the default for now.
17510 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
17512         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17513         soft-float ColdFire configuration.
17515         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17516         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17517         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17519         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
17520         MicroBlaze file.
17522         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17523         ....
17524         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17525         ... here.
17526         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17527         New file.
17529         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17530         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17531         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17532         file.
17534 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17536         [BZ #22742]
17537         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17538         Rename to __reserved and add comment.
17539         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17540         Rename to __reserved.
17542 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
17544         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17545         i686-gnu configurations.
17546         (Context.run_builds): Include mig, gnumach and hurd in components
17547         considered.
17548         (Context.checkout): Add mig, gnumach and hurd to components.
17549         (Context.checkout_tar): Add URL mappings for mig, gnumach and
17550         hurd.
17551         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17552         (Config.build): Install gnumach headers, build mig and install
17553         hurd headers for 'gnu' OS.
17554         (Config.install_gnumach_headers): New function.
17555         (Config.install_hurd_headers): Likewise.
17556         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
17557         when building for 'gnu' OS.
17559 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
17561         * manual/tunables.texi (Hardware Capability Tunables): Fix
17562         spelling.
17564 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
17566         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17567         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17568         (ALTMON_11, ALTMON_12): Improve documentation.
17569         * manual/time.texi (strftime): Likewise.
17571 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17573         [BZ #10871]
17574         * localedata/locales/pl_PL: Alternative month names added,
17575         primary month names are genitive now.
17576         * time/tst-strptime.c (day_tests): Actually use a genitive case
17577         of a month name in Polish language.
17579 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17581         [BZ #10871]
17582         * manual/locale.texi: Document ALTMON_1..12 constants for
17583         nl_langinfo.  Specify when to use ALTMON instead of MON.
17584         * manual/time.texi (strftime, strptime): Document GNU extension
17585         permitting O modifier with %B and %b.  Specify when to use
17586         %OB instead of %B.
17588 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17590         [BZ #10871]
17591         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17592         names, define them as the same as abbreviated month names explicitly.
17593         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17594         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17595         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17596         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17597         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17598         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17599         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17600         _NL_WABALTMON_12): New enum constants.
17601         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17602         wab_alt_mon, and ab_alt_mon_defined members.
17603         (time_output): Output ab_alt_mon and wab_alt_mon members.
17604         (time_read): Read them, initialize them as copies of abmon and wabmon
17605         respectively if they are missing, initialize ab_alt_mon_defined.
17606         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17607         * locale/programs/locfile-kw.h: Regenerate.
17608         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17609         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17610         and ru_RU.UTF-8.
17611         * time/strftime_l.c (a_altmonth, aam_len): New macros.
17612         [!COMPILE_WIDE] (ABALTMON_1): New macro.
17613         (__strftime_internal): Handle %Ob and %Oh formats.
17614         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17615         (__strptime_internal): Handle %Ob and %Oh formats.
17616         * time/tst-strptime.c (day_tests): Add more tests to parse different
17617         forms of month names including the new %Ob format specifier.
17619 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17621         [BZ #10871]
17622         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17623         define them as the same as primary full month names explicitly.
17624         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17625         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17626         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17627         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17628         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17629         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17630         _NL_WALTMON_12): New enum constants.
17631         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17632         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17633         macros.
17634         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17635         walt_mon, and alt_mon_defined members.
17636         (time_output): Output alt_mon and walt_mon members.
17637         (time_read): Read them, initialize them as copies of mon and wmon
17638         respectively if they are missing, initialize alt_mon_defined.
17639         * locale/programs/locfile-kw.gperf (alt_mon): Define.
17640         * locale/programs/locfile-kw.h: Regenerate.
17641         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17642         * localedata/tst-langinfo.c (map): Add tests for the new constants
17643         ALTMON_1 .. ALTMON_12.
17644         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17645         and pl_PL.UTF-8.
17646         * time/strftime_l.c (f_altmonth): New macro.
17647         (__strftime_internal): Handle %OB format.
17648         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17649         (__strptime_internal): Handle %OB format.
17650         * time/tst-strptime.c (day_tests): Add tests to parse different forms
17651         of month names including the new %OB format specifier.
17653 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17655         [BZ #22685]
17656         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17657         from ABORT_TRANSACTION.
17658         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17659         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17660         ABORT_TRANSACTION_IMPL): Likewise.
17661         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
17662         Linux code, but remove the code that aborts transactions.
17664 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17666         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17668 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
17670         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17671         in date: "2004-14-09" should be "2004-09-14".
17672         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17673         "2003-15-09" should be "2003-09-15".
17675 2018-01-18  Arjun Shankar  <arjun@redhat.com>
17677         [BZ #22343]
17678         [BZ #22774]
17679         CVE-2018-6485
17680         CVE-2018-6551
17681         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17682         after padding.
17683         (_int_memalign): check for integer overflow before calling
17684         _int_malloc.
17685         * malloc/tst-malloc-too-large.c: New test.
17686         * malloc/Makefile: Add tst-malloc-too-large.
17688 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
17690         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17691         in date: "2017-24-07" should be "2017-07-24".
17692         * localedata/locales/mai_IN: Likewise.
17693         * localedata/locales/mai_NP: Likewise.
17695 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
17697         * po/ru.po: Update translations.
17699 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
17701         [BZ #22719]
17702         * sysdeps/hppa/backtrace.c: New file.
17704 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
17706         [BZ #22715]
17707         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17708         align La_x86_64_retval to VEC_SIZE.
17710 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
17712         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17713         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17715 2018-01-16  Florian Weimer  <fweimer@redhat.com>
17717         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17718         Move tst-thread-exit-clobber ...
17719         [$(CXX)] (tests-unsupported): ... to here.
17721 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17723         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17724         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17725         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17726         (_dl_aarch64_cap_flags): Update.
17727         (_DL_HWCAP_COUNT): Update.
17729 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17731         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17732         (_DL_HWCAP_LAST): Remove.
17733         (_DL_HWCAP_COUNT): Move to ...
17734         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17735         (_DL_HWCAP_COUNT): ... here.
17737 2018-01-16  Florian Weimer  <fweimer@redhat.com>
17739         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17740         mode with GNU extensions.
17742 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
17744         * elf/elf.h (NT_ARM_SVE): Define.
17746 2018-01-15  Florian Weimer  <fweimer@redhat.com>
17748         [BZ #22636]
17749         * nptl/tst-minstack-throw.cc: New file.
17750         * nptl/Makefile (tests): Add tst-minstack-throw.
17751         (LDLIBS-tst-minstack-throw): Link with libstdc++.
17752         [!CXX] (tests-unsupported): Add tst-minstack-throw.
17754 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
17756         * scripts/build-many-glibcs.py (Context.checkout): Default
17757         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17758         version to 1.1.0.
17760 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
17762         [BZ #22707]
17763         * elf/elf.h (DF_1_STUB): Define.
17764         (DF_1_PIE): Define.
17766 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17768         [BZ #22697]
17769         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17770         Do not add 0.5 to integer or out-of-range arguments.
17772 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
17774         * po/bg.po: Update translations.
17775         * po/cs.po: Likewise.
17776         * po/de.po: Likewise.
17777         * po/ko.po: Likewise.
17778         * po/pl.po: Likewise.
17779         * po/sv.po: Likewise.
17780         * po/uk.po: Likewise.
17781         * po/vi.po: Likewise.
17783 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17785         * aarch64/start.S (_start): Use __wrap_main.
17786         (__wrap_main): New local symbol.
17788 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
17790         [BZ #22679]
17791         CVE-2018-1000001
17792         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17793         generic_getcwd if the path returned by getcwd syscall is not absolute.
17794         * io/tst-getcwd-abspath.c: New test.
17795         * io/Makefile (tests): Add tst-getcwd-abspath.
17797 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
17799         * malloc/malloc.c (malloc_consolidate): Add size check.
17801 2018-01-12  Florian Weimer  <fweimer@redhat.com>
17803         * support/write_message.c (write_message): Preserve errno.
17804         * support/check.c (print_failure): Likewise.
17805         * support/support_test_verify_impl.c (support_test_verify_impl):
17806         Likewise.
17807         * support/support_test_compare_failure.c
17808         (support_test_compare_failure): Likewise.
17810 2018-01-12  Florian Weimer  <fweimer@redhat.com>
17812         [BZ #22701]
17813         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17814         Prevent installation of libnsl.so.
17815         (libnsl-inhibit-o): Do not build (or install) static libraries.
17817 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
17819         [BZ #22657]
17820         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17821         before the day number which may produce a double space.
17822         (date_fmt): Likewise.
17824 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
17826         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17827         instead of fegetenv.
17829 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
17831         [BZ #22702]
17832         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17833         comment to say exceptions are discarded.
17834         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17835         __fegetenv.
17836         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17837         be enabled.
17839 2018-01-11  Florian Weimer  <fweimer@redhat.com>
17841         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17842         and error message.
17844 2018-01-11  Florian Weimer  <fweimer@redhat.com>
17846         [BZ #22636]
17847         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17848         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17850 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
17852         [BZ #22693]
17853         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17854         negative arguments in test for NaN or infinity argument.
17856 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
17858         * po/libc.pot: Regenerate.
17860 2018-01-10  Florian Weimer  <fweimer@redhat.com>
17862         [BZ #22636]
17863         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17864         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17866 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17868         * hurd/hurd/fd.h: Include <fcntl.h>
17869         (__hurd_at_flags): New function.
17870         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17871         with call to __hurd_at_flags.
17872         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17873         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17874         __faccessat
17875         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17876         (__access_noerrno): Use __faccessat_common instead of access_common.
17877         (__access): Likewise.
17878         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17879         with a call to __faccessat.
17880         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17881         (__faccessat_common): ... this. Move implementation of __access into it when
17882         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17883         reauthenticate_cwdir_at helper to implement AT mechanism.
17884         (__faccessat_noerrno): New function, just calls __faccessat_common.
17885         (__faccessat): New function, just calls __faccessat_common.
17886         (faccessat): Define weak alias.
17888 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
17890         [BZ #22691]
17891         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17892         (CFLAGS-s_fmaxmagl.c): New variable.
17893         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17895         [BZ #22690]
17896         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17897         long int for arguments of possibly overflowing addition or
17898         subtraction.
17899         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17901 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
17903         [BZ #22688]
17904         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17905         (CFLAGS-e_remainderl.c): New variable.
17907         [BZ #22687]
17908         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17909         variable.
17910         (CFLAGS-s_cacoshl.c): Likewise.
17911         (CFLAGS-s_casinhl.c): Likewise.
17912         (CFLAGS-s_catanl.c): Likewise.
17913         (CFLAGS-s_catanhl.c): Likewise.
17914         (CFLAGS-s_cexpl.c): Likewise.
17915         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17916         (CFLAGS-s_csinhl.c): Likewise.
17917         (CFLAGS-s_clogl.c): Likewise.
17918         (CFLAGS-s_clog10l.c): Likewise.
17919         (CFLAGS-s_csinl.c): Likewise.
17920         (CFLAGS-s_csqrtl.c): Likewise.
17922 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
17923 2017-01-09  Svante Signell  <svante.signell@gmail.com>
17925         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17926         (_hurd_exec_paths): New function.
17927         * hurd/hurd.h (_hurd_exec): Deprecate function.
17928         (_hurd_exec_paths): Declare function.
17929         * hurd/Versions: Export _hurd_exec_paths.
17930         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17931         (__execve): Use __getcwd to build absolute path, and use
17932         _hurd_exec_paths instead of _hurd_exec.
17933         * sysdeps/mach/hurd/spawni.c: Likewise.
17934         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17935         _hurd_exec.
17937 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
17939         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17940         test instead of failing in case of ENOENT returned by posix_openpt.
17942 2018-01-08  Florian Weimer  <fweimer@redhat.com>
17944         resolv: Support binary labels in test framework.
17945         * support/resolv_test.c (struct to_be_freed): Remove.
17946         (struct compressed_name): New.
17947         (allocate_compressed_name, ascii_tolower)
17948         (compare_compressed_name): New functions.
17949         (struct resolv_response_builder): Update type of
17950         compression_offsets for use with tsearch.  Rempve to_be_freed.
17951         (response_push_pointer_to_free): Remove function.
17952         (resolv_response_add_name): Rewrite using struct compressed_name
17953         and tsearch instead of hsearch_r.
17954         (response_builder_allocate): Remove initialization of
17955         compression_offsets.
17956         (response_builder_free): Update for removal of to_be_freed.  Use
17957         tdestroy instead of hdestroy_r.
17958         * resolv/Makefile (tests): Add tst-resolv-binary.
17959         (tst-resolv-binary): Link with -lresolv -lpthread.
17961 2018-01-08  Florian Weimer  <fweimer@redhat.com>
17963         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17964         time.  Pass positive flag instead of negative flag to
17965         support_test_compare_failure.
17966         (support_test_compare_failure): Change negative parameter to
17967         positive.
17968         * support/support_test_compare_failure.c (report)
17969         (support_test_compare_failure): Likewise.
17970         * support/tst-test_compare.c (return_ssize_t, return_int): New.
17971         (do_test): Check int/size_t, ssize_t/size_t comparisons.
17973 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17975         [BZ #22637]
17976         * nptl/descr.h (stackblock, stackblock_size): Update comments.
17977         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17978         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17979         stacksize.
17980         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17982 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
17984         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17985         Add s_sincosf-sse2 and s_sincosf-fma.
17986         (CFLAGS-s_sincosf-fma.c): New.
17987         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17988         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17989         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17990         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17991         __sincosf is defined.
17993 2018-01-08  Florian Weimer  <fweimer@redhat.com>
17995         * nptl/tst-thread-exit-clobber.cc: New file.
17996         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17997         C++11 mode.
17998         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17999         (tests): Add tst-thread-exit-clobber.
18000         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18002 2018-01-08  Florian Weimer  <fweimer@redhat.com>
18004         * support/check.h (support_static_assert): Define.
18005         (TEST_COMPARE): Use it.
18007 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
18009         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18010         [!__RLIM_T_MATCHES_RLIM64_T]
18011         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18012         __getrlimit64. Add libc_hidden_weak.
18014 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
18016         * elf/elf.h (R_RISCV_NONE): New define.
18017         (R_RISCV_32): Likewise.
18018         (R_RISCV_64): Likewise.
18019         (R_RISCV_RELATIVE): Likewise.
18020         (R_RISCV_COPY): Likewise.
18021         (R_RISCV_JUMP_SLOT): Likewise.
18022         (R_RISCV_TLS_DTPMOD32): Likewise.
18023         (R_RISCV_TLS_DTPMOD64): Likewise.
18024         (R_RISCV_TLS_DTPREL32): Likewise.
18025         (R_RISCV_TLS_DTPREL64): Likewise.
18026         (R_RISCV_TLS_TPREL32): Likewise.
18027         (R_RISCV_TLS_TPREL64): Likewise.
18028         * Makerules (make-link-multidir): Make directories before linking into
18029         them.
18030         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18031         define.
18032         (VDSO_HASH_LINUX_4_15): Likewise.
18033         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18034         in subdirectories of lib.
18035         * nptl/Makefile (/librt.so): Always depend on
18036         "$(shared-thread-library)".
18038 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18040         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18041         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18042         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18043         (___tls_get_addr).
18044         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18045         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18046         "-O2 -march=i686".
18047         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18048         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18049         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18050         * sysdeps/gnu/glob-lstat-compat.c: New file.
18051         * sysdeps/gnu/glob64-lstat-compat.c: New file.
18052         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18054 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18056         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18057         Reserve 16 chars to reloc_addr before calling _itoa_word.
18059 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18061         [BZ #22678]
18062         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18063         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18065         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18066         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18068         * resource/tst-getrlimit.c: Add copyright header.
18070 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18071             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18073         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18074         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18075         Define __GI_getrlimit64 as weak alias of __getrlimit64.
18076         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18077         instead.
18078         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18079         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18080         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18081         RLIM64_INFINITY): Fix values to match the kernel ones.
18082         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18083         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
18084         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
18085         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18086         getrlimit64@@GLIBC_2_27.
18087         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18088         and setrlimit64.
18089         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18090         getrlimit, setrlimit, getrlimit64 and setrlimit64.
18091         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18092         setrlimit, getrlimit64 and setrlimit64.
18094 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18096         [BZ #22648]
18097         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18098         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18100 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
18102         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18103         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18104         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18106 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18108         [BZ #15479]
18109         [BZ #22666]
18110         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18111         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18113         [BZ #15479]
18114         [BZ #22665]
18115         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18116         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18117         * sysdeps/alpha/fpu/s_floor.c: Likewise.
18118         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18120 2018-01-04  Florian Weimer  <fweimer@redhat.com>
18122         [BZ #22667]
18123         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18124         Align the stack before calling exit.
18125         * stdlib/tst-makecontext-align.c: New file.
18126         * stdlib/Makefile (tests): Add tst-makecontext-align.
18128 2018-01-04  Florian Weimer  <fweimer@redhat.com>
18130         Add support for calling dlvsym from libc.so.
18131         * include/dlfcn.h (__libc_dlvsym): Declare.
18132         * elf/Makefile (tests-static-internal): Add
18133         tst-libc_dlvsym-static.
18134         (tests-internal): Add tst-libc_dlvsym.
18135         (modules-names): Add tst-libc_dlvsym-dso.
18136         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18137         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18138         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18139         object tst-libc_dlvsym-dso.so needs to be built before running
18140         these tests.
18141         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18142         * elf/Versions: Export __libc_dlvsym.
18143         * elf/dl-libc.c (struct do_dlvsym_args): New.
18144         (do_dlvsym, __libc_dlvsym): New functions.
18145         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18146         (_dl_open_hook2): New variable.
18147         (__libc_register_dl_open_hook): Set it.
18148         * elf/tst-libc_dlvsym-dso.c: New file.
18149         * elf/tst-libc_dlvsym-static.c: Likewise.
18150         * elf/tst-libc_dlvsym.c: Likewise.
18151         * elf/tst-libc_dlvsym.h: Likewise.
18153 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18155         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18156         include <sys/mount.h>.
18158 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
18160         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18161         Add __NO_MATH_ERRNO__ check.
18163 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
18165         * sysdeps/mips/mips32/libm-test-ulps: Update.
18166         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18168 2018-01-02  Florian Weimer  <fweimer@redhat.com>
18170         * misc/tst-pselect.c: Add copyright header.
18172 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
18174         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18175         comment.
18176         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18177         comment.
18178         (settrlimit): Rename into setrlimit.
18179         (__sttrlimit): Rename into __setrlimit.
18181         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18182         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18183         never defined in that case.
18185 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
18187         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18189         * sysdeps/arm/libm-test-ulps: Update.
18191         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18192         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18194 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18196         * NEWS: Add cosf and sincosf to list of optimized functions.
18198 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
18200         [BZ #22660]
18201         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18202         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18203         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18204         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18206 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
18208         [BZ #22433]
18209         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18211         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18212         making a copy of it.
18214 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
18216         * manual/texinfo.tex: Update to version 2017-12-26.21 with
18217         trailing whitespace removed.
18218         * scripts/config.guess: Update to version 2018-01-01.
18219         * scripts/config.sub: Update to version 2018-01-01.
18220         * scripts/move-if-change: Update from gnulib.
18222         * NEWS: Update copyright dates.
18223         * catgets/gencat.c (print_version): Likewise.
18224         * csu/version.c (banner): Likewise.
18225         * debug/catchsegv.sh: Likewise.
18226         * debug/pcprofiledump.c (print_version): Likewise.
18227         * debug/xtrace.sh (do_version): Likewise.
18228         * elf/ldconfig.c (print_version): Likewise.
18229         * elf/ldd.bash.in: Likewise.
18230         * elf/pldd.c (print_version): Likewise.
18231         * elf/sotruss.sh: Likewise.
18232         * elf/sprof.c (print_version): Likewise.
18233         * iconv/iconv_prog.c (print_version): Likewise.
18234         * iconv/iconvconfig.c (print_version): Likewise.
18235         * locale/programs/locale.c (print_version): Likewise.
18236         * locale/programs/localedef.c (print_version): Likewise.
18237         * login/programs/pt_chown.c (print_version): Likewise.
18238         * malloc/memusage.sh (do_version): Likewise.
18239         * malloc/memusagestat.c (print_version): Likewise.
18240         * malloc/mtrace.pl: Likewise.
18241         * manual/libc.texinfo: Likewise.
18242         * nptl/version.c (banner): Likewise.
18243         * nscd/nscd.c (print_version): Likewise.
18244         * nss/getent.c (print_version): Likewise.
18245         * nss/makedb.c (print_version): Likewise.
18246         * posix/getconf.c (main): Likewise.
18247         * scripts/test-installation.pl: Likewise.
18248         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18250         * All files with FSF copyright notices: Update copyright dates
18251         using scripts/update-copyrights.
18252         * locale/programs/charmap-kw.h: Regenerated.
18253         * locale/programs/locfile-kw.h: Likewise.
18255 2017-12-31  Zack Weinberg  <zackw@panix.com>
18257         * libio/bits/libio-ldbl.h: Correct check for improper
18258         inclusion.  Add own multiple include guard.
18260 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
18261             Dmitry V. Levin  <ldv@altlinux.org>
18263         [BZ #22625]
18264         CVE-2017-16997
18265         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18266         string token expansion. Check for NULL pointer or empty string possibly
18267         returned by expand_dynamic_string_token.
18268         (decompose_rpath): Check for empty path after dynamic string
18269         token expansion.
18271 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
18273         [BZ #22433]
18274         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18276         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18277         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18278         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
18279         and PTRACE_SYSCALL.
18280         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18281         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18282         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18283         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18284         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18285         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18287         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18288         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18289         __ptrace_peeksiginfo_flags, ptrace): Move to ...
18290         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18291         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18292         bits/ptrace-shared.h.
18293         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18294         <bits/ptrace-shared.h>.
18295         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18296         __ptrace_peeksiginfo_flags, ptrace): Remove.
18297         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18298         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18299         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18300         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18301         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18303 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
18305         [BZ #17804]
18306         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18307         end of the loop. Improve comments.
18309 2017-12-29  Zack Weinberg  <zackw@panix.com>
18311         [BZ #22615]
18312         * manual/errno.texi (Checking for Errors): Explicitly say that errno
18313         might be set on success.
18315 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
18317         [BZ #22611]
18318         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18319         is unchanged on success.
18321 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
18323         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18324         updated.
18325         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18326         expand_dynamic_string_token): Likewise.
18327         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18328         is_path argument.
18330         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18331         contains ':'.
18333         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18334         is set and name contains ':', and all code depending on these checks.
18336 2017-12-24  Zack Weinberg  <zackw@panix.com>
18338         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18339         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18340         respectively.
18341         * libio/libio.h: Rename the original version of this file to
18342         libio/bits/libio.h.  Error out if not included by stdio.h or the
18343         stub libio.h.
18344         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
18345         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
18346         if not included by bits/libio.h or the stub _G_config.h.
18347         * sysdeps/unix/sysv/linux/_G_config.h: Move to
18348         sysdeps/unix/sysv/linux/bits.  Error out if not included by
18349         bits/libio.h or the stub _G_config.h.
18350         * libio/stdio.h: Include bits/libio.h, not libio.h.
18351         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18352         well as libio.h and _G_config.h.
18354         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18355         * libio/strfile.h, stdio-common/vfscanf.c
18356         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18357         Include stdio.h, not _G_config.h nor libio.h.
18358         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18359         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18361         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18363 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
18365         [BZ #22347]
18366         * stdlib/getrandom.c (getrandom): Fix comment.
18367         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18369 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
18371         [BZ #21161]
18372         * manual/arith.texi (strtoul): Fix a typo.
18374         [BZ #22596]
18375         * manual/arith.texi (finite): Fix the description of the return
18376         value.
18378 2017-12-22  Eric Blake  <ebb9@byu.net>
18380         Avoid gcc warnings on cygwin
18381         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18382         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18383         Avoid unused variable.
18385 2017-12-22  Florian Weimer  <fweimer@redhat.com>
18387         * io/Makefile (routines): Add copy_file_range.
18388         (tests): Add tst-copy_file_range.
18389         (tests-static, tests-internal): Add tst-copy_file_range-compat.
18390         * io/Versions (GLIBC_2.27): Export copy_file_range.
18391         * io/copy_file_range-compat.c: New file.
18392         * io/copy_file_range.c: Likewise.
18393         * io/tst-copy_file_range-compat.c: Likewise.
18394         * io/tst-copy_file_range.c: Likewise.
18395         * manual/llio.texi (Copying File Data): New section.
18396         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18397         * support/Makefile (libsupport-routines): Add support-xfstat,
18398         xftruncate, xlseek.
18399         * support/support-xfstat.c: New file.
18400         * support/xftruncate.c: Likewise.
18401         * support/xlseek.c: Likewise.
18402         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18403         * sysdeps/unix/sysv/linux/**.abilist: Update.
18404         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18406 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18408         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18409         disable-multi-arch variant to aarch64-linux-gnu.
18411 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
18413         * manual/texinfo.tex: Update to version 2017-12-18.20 with
18414         trailing whitespace removed.
18415         * scripts/config.guess: Update to version 2017-12-17.
18416         * scripts/config.sub: Update to version 2017-11-23.
18417         * scripts/install-sh: Update to version 2017-09-23.17.
18418         * scripts/move-if-change: Update to version 2017-09-13 06:45.
18420 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18422         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18423         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18424         * sysdeps/tile/_mcount.S (__mcount): Likewise.
18425         * sysdeps/tile/crti.S (_init, _fini): Likewise.
18426         * sysdeps/tile/crtn.S: Likewise.
18427         * sysdeps/tile/dl-start.S (_start): Likewise.
18428         * sysdeps/tile/dl-trampoline.S: Likewise.
18429         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18430         * sysdeps/tile/start.S (_start): Likewise.
18431         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18432         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18433         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18434         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18435         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18436         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18437         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18439         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18440         comment.
18441         * sysdeps/tile/preconfigure: Remove tilegx folder.
18442         * sysdeps/tile/tilegx/Implies: Move definitions to ...
18443         * sysdeps/tile/Implies: ... here.
18444         * sysdeps/tile/tilegx/Makefile: Move rules to ...
18445         * sysdeps/tile/Makefile: ... here.
18446         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18447         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
18448         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18449         * sysdeps/tile/bits/wordsize.h: ... here.
18450         * sysdeps/tile/tilegx/*: Move to ...
18451         * sysdeps/tile/*: ... here.
18452         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18453         * sysdeps/tile/tilegx32/Implies: ... here.
18454         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18455         * sysdeps/tile/tilegx64/Implies: ... here.
18456         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18457         to ...
18458         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18459         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18460         * sysdeps/unix/sysv/linux/tile/*: ... here.
18461         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18462         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18463         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18464         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18466         * README: Remove tilepro-*-linux-gnu from supported architecture.
18467         * scripts/build-many-glibcs.py: Likewise.
18468         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18469         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18470         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18471         elf_machine_matches_host, elf_machine_dynamic,
18472         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18473         howto, elf_machine_rela): Likewise.
18474         * sysdeps/tile/dl-start.S (_start): Likewise.
18475         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18476         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18477         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18478         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18479         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18480         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18481         Likewise.
18482         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18483         * sysdeps/tile/preconfigure: Likewise.
18484         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18485         POINTER_CHK_GUARD): Likewise.
18486         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18487         * sysdeps/tile/start.S (_start): Likewise.
18488         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18489         Likewise.
18490         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18491         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18492         CMOVNEZ): Remove.
18493         * sysdeps/unix/sysv/linux/tile/bits/environments.h
18494         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18495         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18496         Likewise.
18497         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18498         * sysdeps/tile/tilepro/Implies: Remove file.
18499         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18500         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18501         * sysdeps/tile/tilepro/memchr.c: Likewise.
18502         * sysdeps/tile/tilepro/memcpy.S: Likewise.
18503         * sysdeps/tile/tilepro/memset.c: Likewise.
18504         * sysdeps/tile/tilepro/memusage.h: Likewise.
18505         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18506         * sysdeps/tile/tilepro/strchr.c: Likewise.
18507         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18508         * sysdeps/tile/tilepro/strlen.c: Likewise.
18509         * sysdeps/tile/tilepro/strrchr.c: Likewise.
18510         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18511         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18512         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18513         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18514         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18515         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18516         Likewise.
18517         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18518         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18519         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18520         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18521         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18522         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18523         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18524         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18525         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18526         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18527         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18528         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18529         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18530         tilepro mention in comment.
18532         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18533         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18534         * nptl/pthread_join_common.c: New file: common function used on
18535         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18536         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18537         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18538         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18539         (cleanup): Move definition to pthread_join_common.c.
18540         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18541         Remove superflous checks.
18542         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18543         Likewise.
18545 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18547         * sysdeps/aarch64/libm-test-ulps: Update.
18549 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18551         * sysdeps/aarch64/memset.S (MEMSET): Define.
18553 2017-12-20  Florian Weimer  <fweimer@redhat.com>
18555         [BZ #22635]
18556         nptl: Provide full implementation of pthread_self in libc.so.
18557         * nptl/Makefile (routines): Add pthread_self.
18558         (libpthread-routines): Replace pthread_self with
18559         compat-pthread_self.
18560         * nptl/forward.c (pthread_self): Remove.
18561         * nptl/nptl-init.c (pthread_functions): Do not initialize
18562         ptr_pthread_self.
18563         * nptl/pthread_self.c (pthread_self): Remove weak alias.
18564         * nptl/compat-pthread_self.c: New file.
18565         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18566         Remove ptr_pthread_self.
18568 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
18570         * posix/regcomp.c: Fix spelling in comments.
18571         * posix/regex.h: Likewise.
18572         * posix/regex_internal.c: Likewise.
18573         * posix/regexec.c: Likewise.
18575 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
18577         [BZ #22377]
18578         * math/Makefile [C++] (tests): Add test for iseqsig.
18579         * math/math.h [C++] (iseqsig): New implementation, which does
18580         not rely on __MATH_TG/__builtin_types_compatible_p.
18581         * math/test-math-iseqsig.cc: New file.
18582         * sysdeps/powerpc/powerpc64le/Makefile
18583         (CFLAGS-test-math-iseqsig.cc): New variable.
18585 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
18587         * elf/dl-load.c (is_trusted_path): Remove.
18588         (fillin_rpath): Remove check_trusted argument and its use,
18589         all callers changed.
18591 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18593         [BZ #22630]
18594         * Makeconfig (link-pie-before-libc): Replace -pie with
18595         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18596         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18597         (tst-dlopen-aout-no-pie): New.
18598         (LDFLAGS-tst-prelink): Removed.
18599         (tst-prelink-no-pie): New.
18600         (LDFLAGS-tst-main1): Removed.
18601         (tst-main1-no-pie): New.
18602         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18603         (tst-gmon-no-pie): New.
18605 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18607         * manual/install.texi: Document that --enable-static-pie
18608         implies PIE.
18609         * INSTALL: Regenerated.
18611 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18613         [BZ #21309]
18614         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18615         unsigned.
18617 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18619         Revert:
18621         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18623         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18625         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
18627         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18628         <errno.h>.  Include "eexp.tbl".
18629         (half): New constant.
18630         (one): Likewise.
18631         (__ieee754_exp): Rewrite.
18632         (__slowexp): Remove prototype.
18633         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18634         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18635         * sysdeps/i386/fpu/slowexp.c: Likewise.
18636         * sysdeps/ia64/fpu/slowexp.c: Likewise.
18637         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18638         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18639         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18640         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18641         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18642         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18643         comment.
18644         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18645         (CPPFLAGS-slowexp.c): Remove variable.
18646         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18647         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18648         (CFLAGS-slowexp-fma.c): Remove variable.
18649         (CFLAGS-slowexp-fma4.c): Likewise.
18650         (CFLAGS-slowexp-avx.c): Likewise.
18651         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18652         define as macro.
18653         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18654         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18655         * math/Makefile (type-double-routines): Remove slowexp.
18656         * manual/probes.texi (slowexp_p6): Remove.
18657         (slowexp_p32): Likewise.
18659 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18661         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18662         arithmetic.
18664         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18666 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18668         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18670 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
18672         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18673         <errno.h>.  Include "eexp.tbl".
18674         (half): New constant.
18675         (one): Likewise.
18676         (__ieee754_exp): Rewrite.
18677         (__slowexp): Remove prototype.
18678         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18679         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18680         * sysdeps/i386/fpu/slowexp.c: Likewise.
18681         * sysdeps/ia64/fpu/slowexp.c: Likewise.
18682         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18683         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18684         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18685         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18686         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18687         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18688         comment.
18689         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18690         (CPPFLAGS-slowexp.c): Remove variable.
18691         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18692         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18693         (CFLAGS-slowexp-fma.c): Remove variable.
18694         (CFLAGS-slowexp-fma4.c): Likewise.
18695         (CFLAGS-slowexp-avx.c): Likewise.
18696         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18697         define as macro.
18698         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18699         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18700         * math/Makefile (type-double-routines): Remove slowexp.
18701         * manual/probes.texi (slowexp_p6): Remove.
18702         (slowexp_p32): Likewise.
18704 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18705             James Clarke <jrtc27@jrtc27.com>
18707         [BZ #22603]
18708         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18709         addition.
18711 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18713         [BZ #22605]
18714         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18715         code.
18717 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18719         [BZ #22563]
18720         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18721         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18722         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18723         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18724         to feature_1.
18726 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18728         [BZ #22563]
18729         * bits/types/__cancel_jmp_buf_tag.h: New file.
18730         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18731         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18732         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18733         * nptl/Makefile (headers): Add
18734         bits/types/__cancel_jmp_buf_tag.h.
18735         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18736         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18737         * sysdeps/nptl/pthread.h: Include
18738         <bits/types/__cancel_jmp_buf_tag.h>.
18739         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18740         __cancel_jmp_buf.
18741         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18743 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
18745         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18746         --enable-static-pie variants to x86_64, x32 and i686.
18748 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18750         [BZ #22631]
18751         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18752         argument for attrubutes.  All callers changed.
18753         (__inline_mathop1): Likewise.  All callers changed.
18754         (__inline_mathop): Likewise.  All callers changed.
18755         [__USE_MISC] (scalbn): Use __inline_forward instead of
18756         __inline_forward_c.
18757         [__USE_ISOC99] (scalbln): Likewise.
18758         [__USE_ISOC99] (nearbyint): Likewise.
18759         [__USE_ISOC99] (lrint): Likewise.
18760         [__USE_MISC] (scalbnf): Likewise.
18761         [__USE_ISOC99] (scalblnf): Likewise.
18762         [__USE_ISOC99] (nearbyintf): Likewise.
18763         [__USE_ISOC99] (lrintf): Likewise.
18764         [__USE_MISC] (scalbnl): Likewise.
18765         [__USE_ISOC99] (scalblnl): Likewise.
18766         [__USE_ISOC99] (nearbyintl): Likewise.
18767         [__USE_ISOC99] (lrintl): Likewise.
18768         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18769         __inline_mathop and __m81_defun changed.
18771         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18772         CPU or FPU for ARM hard-float configurations.
18774 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
18776         * nptl/tst-attr3.c: Include <libc-diag.h>.
18777         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18779         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18781         * string/tester.c (test_strncat): Also disable -Warray-bounds
18782         warnings for two tests.
18784 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
18786         [BZ #22614]
18787         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18788         $(cc-pie-default) == yes.
18789         * config.make.in (cc-pie-default): New.
18790         * configure.ac (libc_cv_pie_default): Renamed to ...
18791         (libc_cv_cc_pie_default): This.
18792         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18793         * configure: Regenerated.
18795 2017-12-18  Florian Weimer  <fweimer@redhat.com>
18797         [BZ #20204]
18798         ld.so: Harden dl-libc/libdl hooks.
18799         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18800         (rtld_active): New function.
18801         * dlfcn/dladdr.c (__dladdr): Call it.
18802         * dlfcn/dladdr1.c (__dladdr1): Likewise.
18803         * dlfcn/dlclose.c (__dlcose): Likewise.
18804         * dlfcn/dlerror.c (__dlerror): Likewise.
18805         * dlfcn/dlinfo.c (__dlinfo): Likewise.
18806         * dlfcn/dlmopen.c (__dlmopen): Likewise.
18807         * dlfcn/dlopen.c (__dlopen): Likewise.
18808         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18809         * dlfcn/dlsym.c (__dlsym): Likewise.
18810         * dlfcn/dlvsym.c (__dlvsym): Likewise.
18811         * libio/vtables.c (_IO_vtable_check): Likewise.
18812         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18813         (__libc_dlclose): Likewise.
18814         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18815         assignment.
18817 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
18819         [BZ #22446]
18820         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18821         buffers for readlink input and output.
18823 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
18825         [BZ #22624]
18826         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18827         inhibit_stack_protector.
18829         [BZ #22624]
18830         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18831         inhibit_stack_protector.
18833 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
18835         [BZ #22627]
18836         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18837         code and invocation.
18839 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18841         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18843 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
18845         [BZ #22505]
18846         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18848 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18850         * sysdeps/s390/fpu/libm-test-ulps: Update.
18852 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18854         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18856 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18858         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18859         constants to s_sincosf.h file.
18860         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18861         * sysdeps/ieee754/flt-32/s_sincosf.c: New
18862         implementation.
18863         * sysdeps/ieee754/flt-32/s_sincosf.h:
18864         New file.
18866 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
18868         [BZ #14681]
18869         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18870         before mtrace.
18872 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
18874         [BZ #19574]
18875         * INSTALL: Regenerated.
18876         * Makeconfig (real-static-start-installed-name): New.
18877         (pic-default): Updated for --enable-static-pie.
18878         (pie-default): New for --enable-static-pie.
18879         (default-pie-ldflag): Likewise.
18880         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18881         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18882         Replace $(static-start-installed-name) with
18883         $(real-static-start-installed-name).
18884         (+prectorT): Updated for --enable-static-pie.
18885         (+postctorT): Likewise.
18886         (CFLAGS-.o): Add $(pie-default).
18887         (CFLAGS-.op): Likewise.
18888         * NEWS: Mention --enable-static-pie.
18889         * config.h.in (ENABLE_STATIC_PIE): New.
18890         * configure.ac (--enable-static-pie): New configure option.
18891         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18892         (have-static-pie): Likewise.
18893         Enable static PIE if linker supports --no-dynamic-linker.
18894         (ENABLE_STATIC_PIE): New AC_DEFINE.
18895         (enable-static-pie): New LIBC_CONFIG_VAR.
18896         * configure: Regenerated.
18897         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18898         gr$(start-installed-name) for --enable-static-pie.
18899         (extra-objs): Likewise.
18900         (install-lib): Likewise.
18901         (extra-objs): Add static-reloc.o and static-reloc.os
18902         ($(objpfx)$(start-installed-name)): Also depend on
18903         $(objpfx)static-reloc.o.
18904         ($(objpfx)r$(start-installed-name)): New.
18905         ($(objpfx)g$(start-installed-name)): Also depend on
18906         $(objpfx)static-reloc.os.
18907         ($(objpfx)gr$(start-installed-name)): New.
18908         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18909         in libc.a.
18910         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18911         initimage.
18912         * csu/static-reloc.c: New file.
18913         * elf/Makefile (routines): Add dl-reloc-static-pie.
18914         (elide-routines.os): Likewise.
18915         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18916         (tst-tls1-static-non-pie-no-pie): New.
18917         * elf/dl-reloc-static-pie.c: New file.
18918         * elf/dl-support.c (_dl_get_dl_main_map): New function.
18919         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18920         STATIC_PIE_BOOTSTRAP.
18921         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18922         * gmon/Makefile (tests): Add tst-gmon-static-pie.
18923         (tests-static): Likewise.
18924         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18925         (tst-gmon-static-no-pie): New.
18926         (CFLAGS-tst-gmon-static-pie.c): Likewise.
18927         (CRT-tst-gmon-static-pie): Likewise.
18928         (tst-gmon-static-pie-ENV): Likewise.
18929         (tests-special): Likewise.
18930         ($(objpfx)tst-gmon-static-pie.out): Likewise.
18931         (clean-tst-gmon-static-pie-data): Likewise.
18932         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18933         * gmon/tst-gmon-static-pie.c: New file.
18934         * manual/install.texi: Document --enable-static-pie.
18935         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18936         (_dl_get_dl_main_map): Likewise.
18937         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18938         * sysdeps/x86_64/configure.ac: Likewise.
18939         * sysdeps/i386/configure: Regenerated.
18940         * sysdeps/x86_64/configure: Likewise.
18941         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18942         (ASFLAGS-.op): Likewise.
18944 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
18946         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18947         * posix/tst-mmap-offset.c (fname): Use /tmp.
18948         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18950 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
18952         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18954 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
18956         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18957         errno.
18959 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
18961         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18962         --with-float=hard for arm-linux-gnueabihf configurations.
18964         [BZ #14121]
18965         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18966         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
18967         ($(mo-installed)): Use $(objpfx)%.mo.
18968         (realclean): Remove rule.
18970         * po/Makefile (linguas): Remove rule and dependencies.
18971         (linguas.mo): Likewise.
18972         (.PHONY): Do not depend on linguas and linguas.mo.
18973         (podir): Remove variable.
18974         (pofiles): Likewise.
18975         [$(pofiles)] (%.po): Remove rule.
18977         * sysdeps/sparc/sparc32/Makefile
18978         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18979         start-of-line whitespace in argument of echo.
18980         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18981         with whitespace.  Generate __wrap_.udiv alias.
18982         * sysdeps/sparc/sparc32/rem.S: Regenerated.
18983         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18984         * sysdeps/sparc/sparc32/udiv.S: Likewise.
18985         * sysdeps/sparc/sparc32/urem.S: Likewise.
18987 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18989         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18990         for aligned inputs.
18992 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18994         * benchtests/bench-strcmp.c: Print output in JSON format.
18996         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18998 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19000         [BZ #22607]
19001         CVE-2017-1000409
19002         * elf/dl-load.c (_dl_init_paths): Compute number of components in
19003         the expanded path string.
19005 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19007         [BZ #22606]
19008         CVE-2017-1000408
19009         * elf/dl-load.c (system_dirs): Update comment.
19010         (nsystem_dirs_len): Use array_length.
19011         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19013 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19015         Simplify compiling most of support/ outside of glibc.
19016         * support/check_addrinfo.c: Include <string.h>.
19017         * support/check_dns_packet.c: Likewise.
19018         * support/check_hostent.c: Likewise.
19019         * support/support_can_chroot.c: Include <support/xunistd.h>.
19020         * support/support_format_addrinfo.c: Include <stdlib.h>
19021         * support/support_format_dns_packet.c: Include <stdbool.h>.
19022         * support/support_format_hostent.c: Include <stdlib.h>.
19023         * support/support_format_netent.c: Likewise.
19024         * support/support_write_string.c: Include <support/xunistd.h>.
19025         * support/xdlfcn.c: Include <stddef.h>.
19027 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
19029         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19031 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19032             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19034         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19035         (sysdeps_routines): Add memset-niagara7.
19036         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19037         Likewise.
19038         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19039         file.
19040         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19041         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19042         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19043         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19044         Add niagara7 option.
19045         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19046         memset.
19048         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19049         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19050         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19051         Likewise.
19052         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19053         New file.
19054         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19055         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19056         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19057         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19058         and __memmove_niagara7.
19059         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19060         Add niagara7 option.
19061         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19062         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19063         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19064         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19065         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19067 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
19069         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19070         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19071         * sysdeps/sparc/sparc64/memmove.S: Likewise.
19072         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19074         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19075         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19076         _dl_sparc_cap_flags array.
19077         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19079 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19081         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19082         time whenever possible.
19084 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
19086         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19087         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19089 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
19091         * soft-fp/fmadf4.c: Move to ....
19092         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19093         * soft-fp/fmasf4.c: Move to ....
19094         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19095         * soft-fp/fmatf4.c: Move to ....
19096         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19097         * sysdeps/ieee754/soft-fp/Makefile: New file.
19098         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19099         * sysdeps/arm/preconfigure: Regenerated.
19100         * sysdeps/arm/nofpu/Implies: New file.
19101         * sysdeps/arm/s_fma.c: Remove file.
19102         * sysdeps/arm/s_fmaf.c: Likewise.
19103         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19104         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19105         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19106         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19107         * sysdeps/microblaze/s_fma.c: Remove file.
19108         * sysdeps/microblaze/s_fmaf.c: Likewise.
19109         * sysdeps/mips/mips32/nofpu/Implies: New file.
19110         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19111         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19112         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19113         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19114         * sysdeps/mips/ieee754/s_fma.c: Remove file.
19115         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19116         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19117         implementation.
19118         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19119         * sysdeps/nios2/s_fma.c: Remove file.
19120         * sysdeps/nios2/s_fmaf.c: Likewise.
19121         * sysdeps/sh/nofpu/Implies: New file.
19122         * sysdeps/sh/s_fma.c: Remove file.
19123         * sysdeps/sh/s_fmaf.c: Likewise.
19124         * sysdeps/tile/Implies: Add ieee754/soft-fp.
19125         * sysdeps/tile/s_fma.c: Remove file.
19126         * sysdeps/tile/s_fmaf.c: Likewise.
19128 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
19130         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19131         Add s_cosf-sse2 and s_cosf-fma.
19132         (CFLAGS-s_cosf-fma.c): New.
19133         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19134         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19135         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19137 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
19139         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19141 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19143         * libio/Makefile (tests): Add tst-bz22415.
19144         (tst-bz22415-ENV): New rule.
19145         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19146         (tests-special): Add tst-bz22415-mem.out.
19147         ($(objpfx)tst-bz22415-mem.out): New rule.
19148         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19149         in case of a successful seek operation.
19150         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19151         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19152         buffer is required.
19153         * libio/tst-bz22415.c: New test.
19155         * sysdeps/ia64/fpu/libm-test-ulps: Update.
19157 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
19159         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19160         __IPC_64 to 0 to avoid IPC_64 being set.
19162 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19164         [BZ #22593]
19165         * math/bits/mathcalls.h (nextafter): Remove const.
19166         (nexttoward): Likewise.
19168 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
19170         * configure.ac (--with-fp): Remove configure option.
19171         (with_fp_cond): New variable.
19172         (libc_cv_with_fp): New configure test.  Use this variable instead
19173         of with_fp.
19174         * configure: Regenerated.
19175         * config.make.in (with-fp): Use @libc_cv_with_fp@.
19176         * manual/install.texi (Configuring and compiling): Remove
19177         --without-fp.
19178         * INSTALL: Regenerated.
19179         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19180         * sysdeps/mips/preconfigure (with_fp_cond): Define.
19181         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19182         * sysdeps/sh/preconfigure (with_fp_cond): Define.
19183         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19184         use --without-fp to configure glibc.
19186 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
19188         * manual/locale.texi (nl_langinfo): Fix a typo.
19190 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
19192         [BZ #22588]
19193         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19195 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
19197         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19198         (CFLAGS-argp-parse.c): Likewise.
19199         (CFLAGS-argp-fmtstream.c): Likewise.
19200         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19201         (CPPFLAGS-sha512-crypt.c): Likewise.
19202         (CPPFLAGS-md5-crypt.c): Likewise.
19203         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19204         (CFLAGS-stack_chk_fail_local.c): Likewise.
19205         (CFLAGS-backtrace.c): Likewise.
19206         (CFLAGS-sprintf_chk.c): Likewise.
19207         (CFLAGS-snprintf_chk.c): Likewise.
19208         (CFLAGS-vsprintf_chk.c): Likewise.
19209         (CFLAGS-vsnprintf_chk.c): Likewise.
19210         (CFLAGS-asprintf_chk.c): Likewise.
19211         (CFLAGS-vasprintf_chk.c): Likewise.
19212         (CFLAGS-obprintf_chk.c): Likewise.
19213         (CFLAGS-dprintf_chk.c): Likewise.
19214         (CFLAGS-vdprintf_chk.c): Likewise.
19215         (CFLAGS-printf_chk.c): Likewise.
19216         (CFLAGS-fprintf_chk.c): Likewise.
19217         (CFLAGS-vprintf_chk.c): Likewise.
19218         (CFLAGS-vfprintf_chk.c): Likewise.
19219         (CFLAGS-gets_chk.c): Likewise.
19220         (CFLAGS-fgets_chk.c): Likewise.
19221         (CFLAGS-fgets_u_chk.c): Likewise.
19222         (CFLAGS-fread_chk.c): Likewise.
19223         (CFLAGS-fread_u_chk.c): Likewise.
19224         (CFLAGS-swprintf_chk.c): Likewise.
19225         (CFLAGS-vswprintf_chk.c): Likewise.
19226         (CFLAGS-wprintf_chk.c): Likewise.
19227         (CFLAGS-fwprintf_chk.c): Likewise.
19228         (CFLAGS-vwprintf_chk.c): Likewise.
19229         (CFLAGS-vfwprintf_chk.c): Likewise.
19230         (CFLAGS-fgetws_chk.c): Likewise.
19231         (CFLAGS-fgetws_u_chk.c): Likewise.
19232         (CFLAGS-read_chk.c): Likewise.
19233         (CFLAGS-pread_chk.c): Likewise.
19234         (CFLAGS-pread64_chk.c): Likewise.
19235         (CFLAGS-recv_chk.c): Likewise.
19236         (CFLAGS-recvfrom_chk.c): Likewise.
19237         (CFLAGS-tst-longjmp_chk.c): Likewise.
19238         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19239         (CFLAGS-tst-longjmp_chk2.c): Likewise.
19240         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19241         (CFLAGS-tst-longjmp_chk3.c): Likewise.
19242         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19243         (CFLAGS-tst-chk1.c): Likewise.
19244         (CFLAGS-tst-chk2.c): Likewise.
19245         (CFLAGS-tst-chk3.c): Likewise.
19246         (CFLAGS-tst-chk4.cc): Likewise.
19247         (CFLAGS-tst-chk5.cc): Likewise.
19248         (CFLAGS-tst-chk6.cc): Likewise.
19249         (CFLAGS-tst-lfschk1.c): Likewise.
19250         (CFLAGS-tst-lfschk2.c): Likewise.
19251         (CFLAGS-tst-lfschk3.c): Likewise.
19252         (CFLAGS-tst-lfschk4.cc): Likewise.
19253         (CFLAGS-tst-lfschk5.cc): Likewise.
19254         (CFLAGS-tst-lfschk6.cc): Likewise.
19255         (CFLAGS-tst-ssp-1.c): Likewise.
19256         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19257         (CFLAGS-scandir64.c): Likewise.
19258         (CFLAGS-scandir-tail.c): Likewise.
19259         (CFLAGS-scandir64-tail.c): Likewise.
19260         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19261         (CFLAGS-dl-tunables.c): Likewise.
19262         (CFLAGS-dl-runtime.c): Likewise.
19263         (CFLAGS-dl-lookup.c): Likewise.
19264         (CFLAGS-dl-iterate-phdr.c): Likewise.
19265         (CFLAGS-vismain.c): Likewise.
19266         (CFLAGS-tst-linkall-static.c): Likewise.
19267         (CFLAGS-tst-linkall-static.c): Likewise.
19268         (CPPFLAGS-dl-load.c): Likewise.
19269         (CFLAGS-ldconfig.c): Likewise.
19270         (CFLAGS-dl-cache.c): Likewise.
19271         (CFLAGS-cache.c): Likewise.
19272         (CFLAGS-rtld.c): Likewise.
19273         (CFLAGS-multiload.c): Likewise.
19274         (CFLAGS-filtmod1.c): Likewise.
19275         (CFLAGS-tst-align.c): Likewise.
19276         (CFLAGS-tst-align2.c): Likewise.
19277         (CFLAGS-tst-alignmod.c): Likewise.
19278         (CFLAGS-tst-alignmod2.c): Likewise.
19279         (CPPFLAGS-tst-execstack.c): Likewise.
19280         (CFLAGS-tst-ptrguard1-static.c): Likewise.
19281         (CFLAGS-tst-latepthreadmod.c): Likewise.
19282         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19283         (CFLAGS-getgrnam_r.c): Likewise.
19284         (CFLAGS-getgrent_r.c): Likewise.
19285         (CFLAGS-getgrent.c): Likewise.
19286         (CFLAGS-fgetgrent.c): Likewise.
19287         (CFLAGS-fgetgrent_r.c): Likewise.
19288         (CFLAGS-putgrent.c): Likewise.
19289         (CFLAGS-initgroups.c): Likewise.
19290         (CFLAGS-getgrgid.c): Likewise.
19291         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19292         (CFLAGS-getsgent.c): Likewise.
19293         (CFLAGS-fgetsgent.c): Likewise.
19294         (CFLAGS-fgetsgent_r.c): Likewise.
19295         (CFLAGS-putsgent.c): Likewise.
19296         (CFLAGS-getsgnam.c): Likewise.
19297         (CFLAGS-getsgnam_r.c): Likewise.
19298         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19299         (CFLAGS-iconv_charmap.c): Likewise.
19300         (CFLAGS-dummy-repertoire.c): Likewise.
19301         (CFLAGS-charmap.c): Likewise.
19302         (CFLAGS-linereader.c): Likewise.
19303         (CFLAGS-simple-hash.c): Likewise.
19304         (CFLAGS-gconv_conf.c): Likewise.
19305         (CFLAGS-iconvconfig.c): Likewise.
19306         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19307         (CFLAGS-gethstbyad.c): Likewise.
19308         (CFLAGS-gethstbynm_r.c): Likewise.
19309         (CFLAGS-gethstbynm.c): Likewise.
19310         (CFLAGS-gethstbynm2_r.c): Likewise.
19311         (CFLAGS-gethstbynm2.c): Likewise.
19312         (CFLAGS-gethstent_r.c): Likewise.
19313         (CFLAGS-gethstent.c): Likewise.
19314         (CFLAGS-rcmd.c): Likewise.
19315         (CFLAGS-getnetbynm_r.c): Likewise.
19316         (CFLAGS-getnetbynm.c): Likewise.
19317         (CFLAGS-getnetbyad_r.c): Likewise.
19318         (CFLAGS-getnetbyad.c): Likewise.
19319         (CFLAGS-getnetent_r.c): Likewise.
19320         (CFLAGS-getnetent.c): Likewise.
19321         (CFLAGS-getaliasent_r.c): Likewise.
19322         (CFLAGS-getaliasent.c): Likewise.
19323         (CFLAGS-getrpcent_r.c): Likewise.
19324         (CFLAGS-getrpcent.c): Likewise.
19325         (CFLAGS-getservent_r.c): Likewise.
19326         (CFLAGS-getservent.c): Likewise.
19327         (CFLAGS-getprtent_r.c): Likewise.
19328         (CFLAGS-getprtent.c): Likewise.
19329         (CFLAGS-either_ntoh.c): Likewise.
19330         (CFLAGS-either_hton.c): Likewise.
19331         (CFLAGS-getnetgrent.c): Likewise.
19332         (CFLAGS-getnetgrent_r.c): Likewise.
19333         (CFLAGS-tst-checks-posix.c): Likewise.
19334         (CFLAGS-tst-sockaddr.c): Likewise.
19335         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19336         (CFLAGS-tst-translit.c): Likewise.
19337         (CFLAGS-tst-gettext2.c): Likewise.
19338         (CFLAGS-tst-codeset.c): Likewise.
19339         (CFLAGS-tst-gettext3.c): Likewise.
19340         (CFLAGS-tst-gettext4.c): Likewise.
19341         (CFLAGS-tst-gettext5.c): Likewise.
19342         (CFLAGS-tst-gettext6.c): Likewise.
19343         * io/Makefile (CFLAGS-open.c): Likewise.
19344         (CFLAGS-open64.c): Likewise.
19345         (CFLAGS-creat.c): Likewise.
19346         (CFLAGS-creat64.c): Likewise.
19347         (CFLAGS-fcntl.c): Likewise.
19348         (CFLAGS-poll.c): Likewise.
19349         (CFLAGS-ppoll.c): Likewise.
19350         (CFLAGS-lockf.c): Likewise.
19351         (CFLAGS-statfs.c): Likewise.
19352         (CFLAGS-fstatfs.c): Likewise.
19353         (CFLAGS-statvfs.c): Likewise.
19354         (CFLAGS-fstatvfs.c): Likewise.
19355         (CFLAGS-fts.c): Likewise.
19356         (CFLAGS-fts64.c): Likewise.
19357         (CFLAGS-ftw.c): Likewise.
19358         (CFLAGS-ftw64.c): Likewise.
19359         (CFLAGS-lockf.c): Likewise.
19360         (CFLAGS-posix_fallocate.c): Likewise.
19361         (CFLAGS-posix_fallocate64.c): Likewise.
19362         (CFLAGS-fallocate.c): Likewise.
19363         (CFLAGS-fallocate64.c): Likewise.
19364         (CFLAGS-read.c): Likewise.
19365         (CFLAGS-write.c): Likewise.
19366         (CFLAGS-test-stat.c): Likewise.
19367         (CFLAGS-test-lfs.c): Likewise.
19368         * libio/Makefile (CFLAGS-fileops.c): Likewise.
19369         (CFLAGS-fputc.c): Likewise.
19370         (CFLAGS-fputwc.c): Likewise.
19371         (CFLAGS-freopen64.c): Likewise.
19372         (CFLAGS-freopen.c): Likewise.
19373         (CFLAGS-fseek.c): Likewise.
19374         (CFLAGS-fseeko64.c): Likewise.
19375         (CFLAGS-fseeko.c): Likewise.
19376         (CFLAGS-ftello64.c): Likewise.
19377         (CFLAGS-ftello.c): Likewise.
19378         (CFLAGS-fwide.c): Likewise.
19379         (CFLAGS-genops.c): Likewise.
19380         (CFLAGS-getc.c): Likewise.
19381         (CFLAGS-getchar.c): Likewise.
19382         (CFLAGS-getwc.c): Likewise.
19383         (CFLAGS-getwchar.c): Likewise.
19384         (CFLAGS-iofclose.c): Likewise.
19385         (CFLAGS-iofflush.c): Likewise.
19386         (CFLAGS-iofgetpos64.c): Likewise.
19387         (CFLAGS-iofgetpos.c): Likewise.
19388         (CFLAGS-iofgets.c): Likewise.
19389         (CFLAGS-iofgetws.c): Likewise.
19390         (CFLAGS-iofputs.c): Likewise.
19391         (CFLAGS-iofputws.c): Likewise.
19392         (CFLAGS-iofread.c): Likewise.
19393         (CFLAGS-iofsetpos64.c): Likewise.
19394         (CFLAGS-iofsetpos.c): Likewise.
19395         (CFLAGS-ioftell.c): Likewise.
19396         (CFLAGS-iofwrite.c): Likewise.
19397         (CFLAGS-iogetdelim.c): Likewise.
19398         (CFLAGS-iogetline.c): Likewise.
19399         (CFLAGS-iogets.c): Likewise.
19400         (CFLAGS-iogetwline.c): Likewise.
19401         (CFLAGS-ioputs.c): Likewise.
19402         (CFLAGS-ioseekoff.c): Likewise.
19403         (CFLAGS-ioseekpos.c): Likewise.
19404         (CFLAGS-iosetbuffer.c): Likewise.
19405         (CFLAGS-iosetvbuf.c): Likewise.
19406         (CFLAGS-ioungetc.c): Likewise.
19407         (CFLAGS-ioungetwc.c): Likewise.
19408         (CFLAGS-oldfileops.c): Likewise.
19409         (CFLAGS-oldiofclose.c): Likewise.
19410         (CFLAGS-oldiofgetpos64.c): Likewise.
19411         (CFLAGS-oldiofgetpos.c): Likewise.
19412         (CFLAGS-oldiofsetpos64.c): Likewise.
19413         (CFLAGS-oldiofsetpos.c): Likewise.
19414         (CFLAGS-peekc.c): Likewise.
19415         (CFLAGS-putc.c): Likewise.
19416         (CFLAGS-putchar.c): Likewise.
19417         (CFLAGS-putwc.c): Likewise.
19418         (CFLAGS-putwchar.c): Likewise.
19419         (CFLAGS-rewind.c): Likewise.
19420         (CFLAGS-wfileops.c): Likewise.
19421         (CFLAGS-wgenops.c): Likewise.
19422         (CFLAGS-oldiofopen.c): Likewise.
19423         (CFLAGS-iofopen.c): Likewise.
19424         (CFLAGS-iofopen64.c): Likewise.
19425         (CFLAGS-oldtmpfile.c): Likewise.
19426         (CFLAGS-tst_putwc.c): Likewise.
19427         * locale/Makefile (CFLAGS-md5.c): Likewise.
19428         (CFLAGS-charmap.c): Likewise.
19429         (CFLAGS-locfile.c): Likewise.
19430         (CFLAGS-charmap-dir.c): Likewise.
19431         * login/Makefile (CFLAGS-grantpt.c): Likewise.
19432         (CFLAGS-getpt.c): Likewise.
19433         (CFLAGS-pt_chown.c): Likewise.
19434         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19435         (CFLAGS-obstack.c): Likewise.
19436         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19437         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19438         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19439         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19440         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19441         (CFLAGS-test-tgmath.c): Likewise.
19442         (CFLAGS-test-tgmath2.c): Likewise.
19443         (CFLAGS-test-tgmath-ret.c): Likewise.
19444         (CFLAGS-test-powl.c): Likewise.
19445         (CFLAGS-test-snan.c): Likewise.
19446         (CFLAGS-test-signgam-finite.c): Likewise.
19447         (CFLAGS-test-signgam-finite-c99.c): Likewise.
19448         (CFLAGS-test-signgam-finite-c11.c): Likewise.
19449         (CFLAGS-test-signgam-uchar.c): Likewise.
19450         (CFLAGS-test-signgam-uchar-init.c): Likewise.
19451         (CFLAGS-test-signgam-uchar-static.c): Likewise.
19452         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19453         (CFLAGS-test-signgam-uint.c): Likewise.
19454         (CFLAGS-test-signgam-uint-init.c): Likewise.
19455         (CFLAGS-test-signgam-uint-static.c): Likewise.
19456         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19457         (CFLAGS-test-signgam-ullong.c): Likewise.
19458         (CFLAGS-test-signgam-ullong-init.c): Likewise.
19459         (CFLAGS-test-signgam-ullong-static.c): Likewise.
19460         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19461         (CFLAGS-test-math-cxx11.cc): Likewise.
19462         (CFLAGS-test-math-isinff.cc): Likewise.
19463         (CFLAGS-test-math-iszero.cc): Likewise.
19464         (CFLAGS-test-math-issignaling.cc): Likewise.
19465         (CFLAGS-test-math-iscanonical.cc): Likewise.
19466         (CFLAGS-test-iszero-excess-precision.c): Likewise.
19467         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19468         (CFLAGS-test-flt-eval-method.c): Likewise.
19469         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19470         (CFLAGS-test-finite-macros.c): Likewise.
19471         * misc/Makefile (CFLAGS-select.c): Likewise.
19472         (CFLAGS-tsearch.c): Likewise.
19473         (CFLAGS-lsearch.c): Likewise.
19474         (CFLAGS-pselect.c): Likewise.
19475         (CFLAGS-readv.c): Likewise.
19476         (CFLAGS-writev.c): Likewise.
19477         (CFLAGS-preadv.c): Likewise.
19478         (CFLAGS-preadv64.c): Likewise.
19479         (CFLAGS-pwritev.c): Likewise.
19480         (CFLAGS-pwritev64.c): Likewise.
19481         (CFLAGS-preadv2.c): Likewise.
19482         (CFLAGS-preadv64v2.c): Likewise.
19483         (CFLAGS-pwritev2.c): Likewise.
19484         (CFLAGS-pwritev64v2.c): Likewise.
19485         (CFLAGS-usleep.c): Likewise.
19486         (CFLAGS-syslog.c): Likewise.
19487         (CFLAGS-error.c): Likewise.
19488         (CFLAGS-getpass.c): Likewise.
19489         (CFLAGS-mkstemp.c): Likewise.
19490         (CFLAGS-mkstemp64.c): Likewise.
19491         (CFLAGS-getsysstats.c): Likewise.
19492         (CFLAGS-getusershell.c): Likewise.
19493         (CFLAGS-err.c): Likewise.
19494         (CFLAGS-tst-tsearch.c): Likewise.
19495         (CFLAGS-msync.c): Likewise.
19496         (CFLAGS-fdatasync.c): Likewise.
19497         (CFLAGS-fsync.c): Likewise.
19498         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19499         (CFLAGS-unwind.c): Likewise.
19500         (CFLAGS-unwind-forcedunwind.c): Likewise.
19501         (CFLAGS-pthread_cancel.c): Likewise.
19502         (CFLAGS-pthread_setcancelstate.c): Likewise.
19503         (CFLAGS-pthread_setcanceltype.c): Likewise.
19504         (CFLAGS-cancellation.c): Likewise.
19505         (CFLAGS-libc-cancellation.c): Likewise.
19506         (CFLAGS-pthread_exit.c): Likewise.
19507         (CFLAGS-forward.c): Likewise.
19508         (CFLAGS-pthread_testcancel.c): Likewise.
19509         (CFLAGS-pthread_join.c): Likewise.
19510         (CFLAGS-pthread_timedjoin.c): Likewise.
19511         (CFLAGS-pthread_once.c): Likewise.
19512         (CFLAGS-pthread_cond_wait.c): Likewise.
19513         (CFLAGS-sem_wait.c): Likewise.
19514         (CFLAGS-sem_timedwait.c): Likewise.
19515         (CFLAGS-fcntl.c): Likewise.
19516         (CFLAGS-lockf.c): Likewise.
19517         (CFLAGS-pread.c): Likewise.
19518         (CFLAGS-pread64.c): Likewise.
19519         (CFLAGS-pwrite.c): Likewise.
19520         (CFLAGS-pwrite64.c): Likewise.
19521         (CFLAGS-wait.c): Likewise.
19522         (CFLAGS-waitpid.c): Likewise.
19523         (CFLAGS-sigwait.c): Likewise.
19524         (CFLAGS-msgrcv.c): Likewise.
19525         (CFLAGS-msgsnd.c): Likewise.
19526         (CFLAGS-tcdrain.c): Likewise.
19527         (CFLAGS-open.c): Likewise.
19528         (CFLAGS-open64.c): Likewise.
19529         (CFLAGS-pause.c): Likewise.
19530         (CFLAGS-recv.c): Likewise.
19531         (CFLAGS-send.c): Likewise.
19532         (CFLAGS-accept.c): Likewise.
19533         (CFLAGS-sendto.c): Likewise.
19534         (CFLAGS-connect.c): Likewise.
19535         (CFLAGS-recvfrom.c): Likewise.
19536         (CFLAGS-recvmsg.c): Likewise.
19537         (CFLAGS-sendmsg.c): Likewise.
19538         (CFLAGS-close.c): Likewise.
19539         (CFLAGS-read.c): Likewise.
19540         (CFLAGS-write.c): Likewise.
19541         (CFLAGS-nanosleep.c): Likewise.
19542         (CFLAGS-sigsuspend.c): Likewise.
19543         (CFLAGS-msync.c): Likewise.
19544         (CFLAGS-fdatasync.c): Likewise.
19545         (CFLAGS-fsync.c): Likewise.
19546         (CFLAGS-pt-system.c): Likewise.
19547         (CFLAGS-tst-cleanup2.c): Likewise.
19548         (CFLAGS-tst-cleanupx2.c): Likewise.
19549         (CFLAGS-flockfile.c): Likewise.
19550         (CFLAGS-ftrylockfile.c): Likewise.
19551         (CFLAGS-funlockfile.c): Likewise.
19552         (CFLAGS-tst-initializers1.c): Likewise.
19553         (CFLAGS-tst-initializers1-c89.c): Likewise.
19554         (CFLAGS-tst-initializers1-c99.c): Likewise.
19555         (CFLAGS-tst-initializers1-c11.c): Likewise.
19556         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19557         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19558         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19559         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19560         (CFLAGS-nscd_getgr_r.c): Likewise.
19561         (CFLAGS-nscd_gethst_r.c): Likewise.
19562         (CFLAGS-nscd_getai.c): Likewise.
19563         (CFLAGS-nscd_initgroups.c): Likewise.
19564         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19565         (CFLAGS-pause.c): Likewise.
19566         (CFLAGS-pread.c): Likewise.
19567         (CFLAGS-pread64.c): Likewise.
19568         (CFLAGS-pwrite.c): Likewise.
19569         (CFLAGS-pwrite64.c): Likewise.
19570         (CFLAGS-sleep.c): Likewise.
19571         (CFLAGS-wait.c): Likewise.
19572         (CFLAGS-waitid.c): Likewise.
19573         (CFLAGS-waitpid.c): Likewise.
19574         (CFLAGS-getopt.c): Likewise.
19575         (CFLAGS-wordexp.c): Likewise.
19576         (CFLAGS-sysconf.c): Likewise.
19577         (CFLAGS-pathconf.c): Likewise.
19578         (CFLAGS-fpathconf.c): Likewise.
19579         (CFLAGS-spawn.c): Likewise.
19580         (CFLAGS-spawnp.c): Likewise.
19581         (CFLAGS-spawni.c): Likewise.
19582         (CFLAGS-glob.c): Likewise.
19583         (CFLAGS-glob64.c): Likewise.
19584         (CFLAGS-getconf.c): Likewise.
19585         (CFLAGS-nanosleep.c): Likewise.
19586         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19587         (CFLAGS-getpwent.c): Likewise.
19588         (CFLAGS-getpw.c): Likewise.
19589         (CFLAGS-fgetpwent_r.c): Likewise.
19590         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19591         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19592         (CFLAGS-mq_timedreceive.c): Likewise.
19593         (CFLAGS-mq_timedsend.c): Likewise.
19594         (CFLAGS-clock_nanosleep.c): Likewise.
19595         (CFLAGS-librt-cancellation.c): Likewise.
19596         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19597         (CFLAGS-getspent.c): Likewise.
19598         (CFLAGS-fgetspent.c): Likewise.
19599         (CFLAGS-fgetspent_r.c): Likewise.
19600         (CFLAGS-putspent.c): Likewise.
19601         (CFLAGS-getspnam.c): Likewise.
19602         (CFLAGS-getspnam_r.c): Likewise.
19603         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19604         (CFLAGS-sigsuspend.c): Likewise.
19605         (CFLAGS-sigtimedwait.c): Likewise.
19606         (CFLAGS-sigwait.c): Likewise.
19607         (CFLAGS-sigwaitinfo.c): Likewise.
19608         (CFLAGS-sigreturn.c): Likewise.
19609         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19610         (CFLAGS-vfwprintf.c): Likewise.
19611         (CFLAGS-tmpfile.c): Likewise.
19612         (CFLAGS-tmpfile64.c): Likewise.
19613         (CFLAGS-tempname.c): Likewise.
19614         (CFLAGS-psignal.c): Likewise.
19615         (CFLAGS-vprintf.c): Likewise.
19616         (CFLAGS-cuserid.c): Likewise.
19617         (CFLAGS-errlist.c): Likewise.
19618         (CFLAGS-siglist.c): Likewise.
19619         (CFLAGS-scanf15.c): Likewise.
19620         (CFLAGS-scanf17.c): Likewise.
19621         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19622         (CFLAGS-msort.c): Likewise.
19623         (CFLAGS-qsort.c): Likewise.
19624         (CFLAGS-system.c): Likewise.
19625         (CFLAGS-fmtmsg.c): Likewise.
19626         (CFLAGS-strfmon.c): Likewise.
19627         (CFLAGS-strfmon_l.c): Likewise.
19628         (CFLAGS-strfromd.c): Likewise.
19629         (CFLAGS-strfromf.c): Likewise.
19630         (CFLAGS-strfroml.c): Likewise.
19631         (CFLAGS-tst-bsearch.c): Likewise.
19632         (CFLAGS-tst-qsort.c): Likewise.
19633         (CFLAGS-tst-makecontext2.c): Likewise.
19634         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19635         (CFLAGS-xnlm_prot.c): Likewise.
19636         (CFLAGS-xrstat.c): Likewise.
19637         (CFLAGS-xyppasswd.c): Likewise.
19638         (CFLAGS-xklm_prot.c): Likewise.
19639         (CFLAGS-xrex.c): Likewise.
19640         (CFLAGS-xsm_inter.c): Likewise.
19641         (CFLAGS-xmount.c): Likewise.
19642         (CFLAGS-xrusers.c): Likewise.
19643         (CFLAGS-xspray.c): Likewise.
19644         (CFLAGS-xnfs_prot.c): Likewise.
19645         (CFLAGS-xrquota.c): Likewise.
19646         (CFLAGS-xkey_prot.c): Likewise.
19647         (CFLAGS-auth_unix.c): Likewise.
19648         (CFLAGS-key_call.c): Likewise.
19649         (CFLAGS-pmap_rmt.c): Likewise.
19650         (CFLAGS-clnt_perr.c): Likewise.
19651         (CFLAGS-openchild.c): Likewise.
19652         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19653         (CFLAGS-msgsnd.c): Likewise.
19654         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19655         * time/Makefile (CFLAGS-tzfile.c): Likewise.
19656         (CFLAGS-tzset.c): Likewise.
19657         (CFLAGS-getdate.c): Likewise.
19658         (CFLAGS-test_time.c): Likewise.
19659         (CPPFLAGS-tst-tzname.c): Likewise.
19660         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19661         (CFLAGS-zic.c): Likewise.
19662         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19663         (CFLAGS-wcswidth.c): Likewise.
19664         (CFLAGS-wcstol.c): Likewise.
19665         (CFLAGS-wcstoul.c): Likewise.
19666         (CFLAGS-wcstoll.c): Likewise.
19667         (CFLAGS-wcstoull.c): Likewise.
19668         (CFLAGS-wcstod.c): Likewise.
19669         (CFLAGS-wcstold.c): Likewise.
19670         (CFLAGS-wcstof128.c): Likewise.
19671         (CFLAGS-wcstof.c): Likewise.
19672         (CFLAGS-wcstol_l.c): Likewise.
19673         (CFLAGS-wcstoul_l.c): Likewise.
19674         (CFLAGS-wcstoll_l.c): Likewise.
19675         (CFLAGS-wcstoull_l.c): Likewise.
19676         (CFLAGS-wcstod_l.c): Likewise.
19677         (CFLAGS-wcstold_l.c): Likewise.
19678         (CFLAGS-wcstof128_l.c): Likewise.
19679         (CFLAGS-wcstof_l.c): Likewise.
19680         (CPPFLAGS-tst-wchar-h.c): Likewise.
19681         (CPPFLAGS-wcstold_l.c): Likewise.
19683 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
19685         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19687 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19688             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19690         * manual/tunables.texi (Hardware Capability Tunables): Document
19691         glibc.tune.cached_memopt.
19692         * sysdeps/powerpc/cpu-features.c: New file.
19693         * sysdeps/powerpc/cpu-features.h: New file.
19694         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19695         _dl_powerpc_cpu_features.
19696         * sysdeps/powerpc/dl-tunables.list: New file.
19697         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19698         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19699         (INIT_ARCH): Initialize use_aligned_memopt.
19700         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19701         IS_IN(rtld))]: Restrict dl_platform_init availability and
19702         initialize CPU features used by tunables.
19703         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19704         Add memcpy-power8-cached.
19705         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19706         __memcpy_power8_cached.
19707         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19708         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19709         New file.
19711 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
19713         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19714         (CFLAGS-noinl-tester.c): Likewise.
19715         (CFLAGS-tst-strlen.c): Likewise.
19716         (CFLAGS-stratcliff.c): Likewise.
19717         (CFLAGS-test-ffs.c): Likewise.
19718         (CFLAGS-tst-inlcall.c): Likewise.
19719         (CFLAGS-tst-xbzero-opt.c): Likewise.
19720         (CFLAGS-memcpy.c): Likewise.
19721         (CFLAGS-wordcopy.c): Likewise.
19723 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
19725         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19726         Store r15 on stack and add cfi rule.
19727         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19728         Likewise.
19730 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19732         [BZ #22577]
19733         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19734         call.
19736 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
19738         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19739         Add s_sinf-sse2 and s_sinf-fma.
19740         (CFLAGS-s_sinf-fma.c): New.
19741         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19742         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19743         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19745 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
19747         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19749 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
19751         [BZ #22568]
19752         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19753         part of result to imaginary part of argument if it is zero and the
19754         real part of the argument is not finite.
19755         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19756         of result to real part of argument if it is zero and the imaginary
19757         part of the argument is not finite.
19759 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
19761         [BZ #22524]
19762         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19763         and to the list of locales to be built for testing.
19764         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19765         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19766         and build the collation rules upon that.
19768 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
19770         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19771         * manual/math.texi (Mathematics): Document support for _Float32.
19772         * math/Makefile (test-types): Add float32.
19773         * math/Versions (GLIBC_2.27): Add _Float32 functions.
19774         * stdlib/Versions (GLIBC_2.27): Likewise.
19775         * wcsmbs/Versions (GLIBC_2.27): Likewise.
19776         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19777         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19778         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19779         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19780         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19781         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19782         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19783         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19784         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19785         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19786         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19787         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19788         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19789         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19790         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19791         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19792         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19793         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19794         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19795         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19796         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19797         Likewise.
19798         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19799         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19800         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19801         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19802         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19804         Likewise.
19805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19806         Likewise.
19807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19808         Likewise.
19809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19810         Likewise.
19812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19813         Likewise.
19814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19815         Likewise.
19816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19817         Likewise.
19818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19819         Likewise.
19820         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19821         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19822         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19823         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19824         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19825         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19826         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19827         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19828         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19829         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19831         Likewise.
19832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19833         Likewise.
19834         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19835         Likewise.
19836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19837         Likewise.
19838         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19839         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19840         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19841         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19842         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19843         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19844         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19845         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19847 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
19849         * stdlib/strtof.c: Include <bits/floatn.h>
19850         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19851         and later undefine as macro.  Define as weak alias if
19852         [!USE_WIDE_CHAR].
19853         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19854         and later undefine as macro.  Define as weak alias if
19855         [USE_WIDE_CHAR].
19856         * stdlib/strtof_l.c: Include <bits/floatn.h>
19857         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19858         and later undefine as macro.  Define as weak alias if
19859         [!USE_WIDE_CHAR].
19860         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19861         and later undefine as macro.  Define as weak alias if
19862         [USE_WIDE_CHAR].
19864         * stdlib/strfromf.c: Include <bits/floatn.h>.
19865         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19866         and later undefine as macro and define as weak alias.
19868         * math/test-float32.h: New file.
19870         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19871         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19872         (libm_alias_float_other_r): Create f32 alias.
19873         (libm_alias_float_r): Use semicolon before call to
19874         libm_alias_float_other_r.
19876         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19877         second argument to libm_alias_float_other.
19878         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19879         second argument to libm_alias_float_other.
19880         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19881         argument to libm_alias_float_other.
19883         [BZ #22561]
19884         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19885         real part of result for argument 0 + i * NaN.
19886         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19887         results for tests of 0 + i * NaN.
19889 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19891         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19893 2017-12-06  David S. Miller  <davem@davemloft.net>
19895         * sysdeps/sparc/fpu/libm-test-ulps: Update
19896         exp_{downward,towardzero,upward} ulps.
19898 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
19900         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19901         variables static.
19903         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19904         (Y0_2D): Likewise.
19905         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19906         (Y0_2D): Likewise.
19907         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19908         (Y0_2D): Likewise.
19909         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19910         (Y0_2D): Likewise.
19912 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
19914         [BZ #22515]
19915         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19916         and to the list of locales to be built for testing.
19917         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19918         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19919         and build the collation rules upon that.
19921 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19923         * NEWS: Add sinf to list of optimized functions.
19925 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
19927         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19928         (__HAVE_FLOAT32X): Likewise.
19929         * manual/math.texi (Mathematics): Document support for _Float64
19930         and _Float32x.
19931         * math/Makefile (test-types): Add float64 and float32x.
19932         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19933         functions.
19934         * stdlib/Versions (GLIBC_2.27): Likewise.
19935         * wcsmbs/Versions (GLIBC_2.27): Likewise.
19936         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19937         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19938         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19939         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19940         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19941         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19942         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19943         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19944         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19945         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19946         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19947         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19948         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19949         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19950         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19951         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19952         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19953         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19954         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19955         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19956         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19957         Likewise.
19958         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19959         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19960         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19961         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19962         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19964         Likewise.
19965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19966         Likewise.
19967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19968         Likewise.
19969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19970         Likewise.
19971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19972         Likewise.
19973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19974         Likewise.
19975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19976         Likewise.
19977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19978         Likewise.
19979         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19980         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19981         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19982         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19983         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19984         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19985         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19986         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19987         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19988         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19990         Likewise.
19991         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19992         Likewise.
19993         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19994         Likewise.
19995         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19996         Likewise.
19997         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19998         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19999         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20000         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20001         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20002         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20003         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20004         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20006 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20008         * bits/floatn-common.h: Include <bits/long-double.h>.
20009         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20010         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20011         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20012         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20013         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20014         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20015         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20016         (__builtin_huge_valf64): Use __builtin_huge_vall.
20017         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20018         (__builtin_inff64): Use __builtin_infl.
20019         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20020         (__builtin_nanf64): Use __builtin_nanl.
20021         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20022         (__builtin_nansf64): Use __builtin_nansl.
20024 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
20025             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20026             Carlos O'Donnell <carlos@redhat.com>
20028         * elf/dl-tunables.list: Add elision parameters.
20029         * manual/tunables.texi: Add entries about elision tunable.
20030         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20031         Add callback functions to dynamically enable/disable elision.
20032         Add multiple callbacks functions to set elision parameters.
20033         Deleted __libc_enable_secure check.
20034         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20035         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20036         * configure: Regenerated.
20037         * configure.ac: Option enable_lock_elision was deleted.
20038         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20039         * config.make.in: Remove references to enable_lock_elision.
20040         * manual/install.texi: Elision configure option was removed.
20041         * INSTALL: Regenerated to remove enable_lock_elision.
20042         * nptl/Makefile:
20043         Disable elision so it can verify error case for destroying a mutex.
20044         * sysdeps/powerpc/nptl/elide.h:
20045         Cleanup ENABLE_LOCK_ELISION check.
20046         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20047         * sysdeps/s390/configure: Regenerated.
20048         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20049         * nptl/tst-mutex8.c:
20050         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20051         * sysdeps/powerpc/powerpc32/sysdep.h:
20052         Deleted all ENABLE_LOCK_ELISION checks.
20053         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20054         * sysdeps/powerpc/sysdep.h: Likewise.
20055         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20056         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20057         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20058         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20059         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20060         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20061         enable-lock-elision.
20063 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20065         * stdlib/strtod.c: Include <bits/floatn.h>.
20066         (BUILD_DOUBLE): New macro.
20067         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20068         (strtof64): Define and later undefine as macro.  Define as weak
20069         alias if [!USE_WIDE_CHAR].
20070         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20071         (wcstof64): Define and later undefine as macro.  Define as weak
20072         alias if [USE_WIDE_CHAR].
20073         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20074         (strtof32x): Define and later undefine as macro.  Define as weak
20075         alias if [!USE_WIDE_CHAR].
20076         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20077         (wcstof32x): Define and later undefine as macro.  Define as weak
20078         alias if [USE_WIDE_CHAR].
20079         * stdlib/strtod_l.c: Include <bits/floatn.h>.
20080         (BUILD_DOUBLE): New macro.
20081         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20082         (strtof64_l): Define and later undefine as macro.  Define as weak
20083         alias if [!USE_WIDE_CHAR].
20084         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20085         (wcstof64_l): Define and later undefine as macro.  Define as weak
20086         alias if [USE_WIDE_CHAR].
20087         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20088         (strtof32x_l): Define and later undefine as macro.  Define as weak
20089         alias if [!USE_WIDE_CHAR].
20090         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20091         (wcstof32x_l): Define and later undefine as macro.  Define as weak
20092         alias if [USE_WIDE_CHAR].
20094 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20096         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20097         (reduced): Use ones as double instead of integer.
20099 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20101         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20103 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20105         * stdlib/strfromd.c: Include <bits/floatn.h>.
20106         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20107         and later undefine as macro and define as weak alias.
20108         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20109         Likewise.
20111         * math/test-float32x.h: New file.
20112         * math/test-float64.h: Likewise.
20114         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20115         (libm_alias_double_other_r_f64): New macro.
20116         (libm_alias_double_other_r_f32x): Likewise.
20117         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20118         libm_alias_double_other_r_f32x.
20119         (libm_alias_double_r): Use semicolon before call to
20120         libm_alias_double_other_r.
20121         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20122         <bits/floatn.h>.
20123         (libm_alias_double_other_r_f64): New macro.
20124         (libm_alias_double_other_r_f32x): Likewise.
20125         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20126         libm_alias_double_other_r_f32x.
20128 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
20130         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20131         int.
20132         (SINF_FUNC): Likewise.  Replace floor with simple casts.
20134 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
20136         [BZ #22517]
20137         * localedata/Makefile: Add et_EE.UTF-8 to test-input
20138         and to the list of locales to be built for testing.
20139         * localedata/et_EE.UTF-8.in: New file for testing the collation.
20140         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20141         and build the collation rules upon that.
20143 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
20145         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20146         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20147         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20148         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20149         instead of __insn__xxx.
20150         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20151         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20152         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20153         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20154         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20155         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20157 2017-12-05  Florian Weimer  <fweimer@redhat.com>
20159         Linux: Implement interfaces for memory protection keys
20160         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20161         xsignal, xsysconf.
20162         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20163         * support/xunistd.h (xsysconf): Declare.
20164         * support/xraise.c: New file.
20165         * support/xsigaction.c: Likewise.
20166         * support/xsignal.c: Likewise.
20167         * support/xsysconf.c: Likewise.
20168         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20169         pkey_set, pkey_get, pkey_mprotect.
20170         [misc] (tests): Add tst-pkey.
20171         (tst-pkey): Link with -lpthread.
20172         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20173         pkey_free, pkey_set, pkey_get, pkey_mprotect.
20174         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20175         (PKEY_DISABLE_WRITE): Define.
20176         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20177         Declare.
20178         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20179         (SEGV_PKUERR): Add.
20180         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20181         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20182         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20183         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20184         Add.
20185         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20186         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20187         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20188         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20189         * sysdeps/unix/sysv/linux/**.abilist: Update.
20191 2017-12-05  Florian Weimer  <fweimer@redhat.com>
20193         * support/tst-test_compare.c (subprocess): Use long long instead
20194         of long argument for consistent type width across 32-bit and
20195         64-bit architectures.
20196         (do_test): Adjust expected output.
20198 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20200         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20201         (cosf): Define using libm_alias_float.
20202         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20203         (fabsf): Define using libm_alias_float.
20204         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20205         (fmaf): Define using libm_alias_float.
20206         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20207         (rintf): Define using libm_alias_float.
20208         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20209         (sinf): Define using libm_alias_float.
20210         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20211         <libm-alias-float.h>.
20212         (modff): Define using libm_alias_float.
20213         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20214         <libm-alias-float.h>.
20215         (logbf): Define using libm_alias_float.
20216         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20217         <libm-alias-float.h>.
20218         (ceilf): Define using libm_alias_float.
20219         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20220         <libm-alias-float.h>.
20221         (copysignf): Define using libm_alias_float.
20222         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20223         <libm-alias-float.h>.
20224         (floorf): Define using libm_alias_float.
20225         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20226         <libm-alias-float.h>.
20227         (llrintf): Define using libm_alias_float.
20228         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20229         <libm-alias-float.h>.
20230         (llroundf): Define using libm_alias_float.
20231         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20232         <libm-alias-float.h>.
20233         (lrintf): Define using libm_alias_float.
20234         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20235         <libm-alias-float.h>.
20236         (lroundf): Define using libm_alias_float.
20237         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20238         <libm-alias-float.h>.
20239         (nearbyintf): Define using libm_alias_float.
20240         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20241         <libm-alias-float.h>.
20242         (rintf): Define using libm_alias_float.
20243         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20244         <libm-alias-float.h>.
20245         (roundf): Define using libm_alias_float.
20246         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20247         <libm-alias-float.h>.
20248         (truncf): Define using libm_alias_float.
20249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20250         Include <libm-alias-float.h>.
20251         (ceilf): Define using libm_alias_float.
20252         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20253         Include <libm-alias-float.h>.
20254         (copysignf): Define using libm_alias_float.
20255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20256         Include <libm-alias-float.h>.
20257         (floorf): Define using libm_alias_float.
20258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20259         Include <libm-alias-float.h>.
20260         (llrintf): Define using libm_alias_float.
20261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20262         Include <libm-alias-float.h>.
20263         (llroundf): Define using libm_alias_float.
20264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20265         Include <libm-alias-float.h>.
20266         (logbf): Define using libm_alias_float.
20267         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20268         Include <libm-alias-float.h>.
20269         (lrintf): Define using libm_alias_float.
20270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20271         Include <libm-alias-float.h>.
20272         (lroundf): Define using libm_alias_float.
20273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20274         Include <libm-alias-float.h>.
20275         (modff): Define using libm_alias_float.
20276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20277         Include <libm-alias-float.h>.
20278         (roundf): Define using libm_alias_float.
20279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20280         Include <libm-alias-float.h>.
20281         (truncf): Define using libm_alias_float.
20282         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20283         <libm-alias-float.h>.
20284         (llrintf): Define using libm_alias_float.
20285         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20286         <libm-alias-float.h>.
20287         (llroundf): Define using libm_alias_float.
20288         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20289         <libm-alias-float.h>.
20290         (ceilf): Define using libm_alias_float.
20291         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20292         <libm-alias-float.h>.
20293         (floorf): Define using libm_alias_float.
20294         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20295         <libm-alias-float.h>.
20296         (llroundf): Define using libm_alias_float.
20297         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20298         <libm-alias-float.h>.
20299         (lroundf): Define using libm_alias_float.
20300         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20301         <libm-alias-float.h>.
20302         (roundf): Define using libm_alias_float.
20303         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20304         <libm-alias-float.h>.
20305         (truncf): Define using libm_alias_float.
20306         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20307         <libm-alias-float.h>.
20308         (copysignf): Define using libm_alias_float.
20309         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20310         <libm-alias-float.h>.
20311         (llrintf): Define using libm_alias_float.
20312         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20313         <libm-alias-float.h>.
20314         (llroundf): Define using libm_alias_float.
20315         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20316         <libm-alias-float.h>.
20317         (lrintf): Define using libm_alias_float.
20318         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20319         <libm-alias-float.h>.
20320         (lroundf): Define using libm_alias_float.
20321         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20322         <libm-alias-float.h>.
20323         (ceilf): Define using libm_alias_float.
20324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20325         <libm-alias-float.h>.
20326         (copysignf): Define using libm_alias_float.
20327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20328         <libm-alias-float.h>.
20329         (cosf): Define using libm_alias_float.
20330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20331         <libm-alias-float.h>.
20332         (floorf): Define using libm_alias_float.
20333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20334         <libm-alias-float.h>.
20335         (llrintf): Define using libm_alias_float.
20336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20337         <libm-alias-float.h>.
20338         (llroundf): Define using libm_alias_float.
20339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20340         <libm-alias-float.h>.
20341         (logbf): Define using libm_alias_float.
20342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20343         <libm-alias-float.h>.
20344         (modff): Define using libm_alias_float.
20345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20346         <libm-alias-float.h>.
20347         (roundf): Define using libm_alias_float.
20348         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20349         <libm-alias-float.h>.
20350         (sinf): Define using libm_alias_float.
20351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20352         <libm-alias-float.h>.
20353         (truncf): Define using libm_alias_float.
20354         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20355         <libm-alias-float.h>.
20356         (ceilf): Define using libm_alias_float.
20357         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20358         <libm-alias-float.h>.
20359         (copysignf): Define using libm_alias_float.
20360         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20361         <libm-alias-float.h>.
20362         (floorf): Define using libm_alias_float.
20363         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20364         <libm-alias-float.h>.
20365         (llrintf): Define using libm_alias_float.
20366         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20367         <libm-alias-float.h>.
20368         (llroundf): Define using libm_alias_float.
20369         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20370         <libm-alias-float.h>.
20371         (nearbyintf): Define using libm_alias_float.
20372         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20373         <libm-alias-float.h>.
20374         (rintf): Define using libm_alias_float.
20375         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20376         <libm-alias-float.h>.
20377         (roundf): Define using libm_alias_float.
20378         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20379         <libm-alias-float.h>.
20380         (truncf): Define using libm_alias_float.
20381         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20382         <libm-alias-float.h>.
20383         (ceilf): Define using libm_alias_float.
20384         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20385         <libm-alias-float.h>.
20386         (floorf): Define using libm_alias_float.
20387         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20388         <libm-alias-float.h>.
20389         (llroundf): Define using libm_alias_float.
20390         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20391         <libm-alias-float.h>.
20392         (roundf): Define using libm_alias_float.
20393         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20394         <libm-alias-float.h>.
20395         (truncf): Define using libm_alias_float.
20396         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20397         <libm-alias-float.h>.
20398         (copysignf): Define using libm_alias_float.
20399         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20400         <libm-alias-float.h>.
20401         (llrintf): Define using libm_alias_float.
20402         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20403         <libm-alias-float.h>.
20404         (llroundf): Define using libm_alias_float.
20405         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20406         <libm-alias-float.h>.
20407         (cosf): Define using libm_alias_float.
20408         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20409         <libm-alias-float.h>.
20410         (llrintf): Define using libm_alias_float.
20411         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20412         <libm-alias-float.h>.
20413         (llroundf): Define using libm_alias_float.
20414         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20415         <libm-alias-float.h>.
20416         (sinf): Define using libm_alias_float.
20418 2017-12-04  Florian Weimer  <fweimer@redhat.com>
20420         * support/check.h (TEST_COMPARE): Define.
20421         (support_test_compare_failure): Declare.
20422         * support/Makefile (libsupport-routines): Add
20423         support_test_compare_failure.
20424         (tests): Add tst-test_compare.
20425         * support /support_test_compare_failure.c: New file.
20426         * support/tst-test_compare.c: Likewise.
20428 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
20430         [BZ #22527]
20431         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20432         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20433         available, this rewrite of the collation rules does reproduce
20434         the test file in the same order.
20436 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
20438         [BZ #10580]
20439         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20440         digraphs in the month and day names. Using single code points for
20441         digraphs is deprecated.  While there are dedicated Unicode
20442         codepoints, for the digraphs, these are included for backwards
20443         compatibility and modern texts use a sequence of Basic Latin
20444         characters. See: https://www.unicode.org/faq/ligature_digraph.html
20445         This makes the month and day names agree exactly with CLDR now,
20446         CLDR does not use the single code points for the digraphs either.
20448 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
20450         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20452 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
20454         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20455         of floor.
20457 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20459         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20460         Define only for libc.so.
20462 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
20464         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20465         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20466          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20467         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20468         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20470 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20472         [BZ #5997]
20473         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20475 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
20477         [BZ libc/19170]
20478         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20479         PREINIT_FUNCTION_WEAK is nonzero.
20480         (gmon_initializer): New function.  Put procedure label for it in
20481         .init_array section.
20482         (_init): Don't call PREINIT_FUNCTION.
20483         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20484         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20485         value when map argument is null.
20487         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20488         depi instruction from PIC pc-relative sequence.
20489         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20490         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20491         (elf_machine_load_address): Likewise.
20492         (elf_machine_runtime_setup): Likewise.
20494 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
20496         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20497         <libm-alias-double.h>.
20498         (logb): Define using libm_alias_double.
20499         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20500         <libm-alias-double.h>.
20501         (copysign): Define using libm_alias_double.
20502         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20503         <libm-alias-double.h>.
20504         (llrint): Define using libm_alias_double.
20505         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20506         <libm-alias-double.h>.
20507         (llround): Define using libm_alias_double.
20508         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20509         <libm-alias-double.h>.
20510         (lrint): Define using libm_alias_double.
20511         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20512         <libm-alias-double.h>.
20513         (lround): Define using libm_alias_double.
20514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20515         Include <libm-alias-double.h>.
20516         (copysign): Define using libm_alias_double.
20517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20518         Include <libm-alias-double.h>.
20519         (llrint): Define using libm_alias_double.
20520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20521         Include <libm-alias-double.h>.
20522         (llround): Define using libm_alias_double.
20523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20524         <libm-alias-double.h>.
20525         (logb): Define using libm_alias_double.
20526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20527         Include <libm-alias-double.h>.
20528         (lrint): Define using libm_alias_double.
20529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20530         Include <libm-alias-double.h>.
20531         (lround): Define using libm_alias_double.
20532         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20533         <libm-alias-double.h>.
20534         (llrint): Define using libm_alias_double.
20535         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20536         <libm-alias-double.h>.
20537         (llround): Define using libm_alias_double.
20538         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20539         <libm-alias-double.h>.
20540         (llround): Define using libm_alias_double.
20541         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20542         <libm-alias-double.h>.
20543         (lround): Define using libm_alias_double.
20544         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20545         <libm-alias-double.h>.
20546         (copysign): Define using libm_alias_double.
20547         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20548         <libm-alias-double.h>.
20549         (llrint): Define using libm_alias_double.
20550         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20551         <libm-alias-double.h>.
20552         (llround): Define using libm_alias_double.
20553         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20554         <libm-alias-double.h>.
20555         (lrint): Define using libm_alias_double.
20556         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20557         <libm-alias-double.h>.
20558         (lround): Define using libm_alias_double.
20559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20560         <libm-alias-double.h>.
20561         (copysign): Define using libm_alias_double.
20562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20563         <libm-alias-double.h>.
20564         (llrint): Define using libm_alias_double.
20565         (lrint): Likewise.
20566         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20567         <libm-alias-double.h>.
20568         (llround): Define using libm_alias_double.
20569         (lround): Likewise.
20570         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20571         <libm-alias-double.h>.
20572         (logb): Define using libm_alias_double.
20573         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20574         <libm-alias-double.h>.
20575         (copysign): Define using libm_alias_double.
20576         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20577         <libm-alias-double.h>.
20578         (llrint): Define using libm_alias_double.
20579         (lrint): Likewise.
20580         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20581         <libm-alias-double.h>.
20582         (llround): Define using libm_alias_double.
20583         (lround): Likewise.
20584         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20585         <libm-alias-double.h>.
20586         (llround): Define using libm_alias_double.
20587         (lround): Likewise.
20588         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20589         <libm-alias-double.h>.
20590         (copysign): Define using libm_alias_double.
20591         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20592         <libm-alias-double.h>.
20593         (llrint): Define using libm_alias_double.
20594         (lrint): Likewise.
20595         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20596         <libm-alias-double.h>.
20597         (llround): Define using libm_alias_double.
20598         (lround): Likewise.
20599         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20600         <libm-alias-double.h>.
20601         (llrint): Define using libm_alias_double.
20602         (lrint): Likewise.
20603         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20604         <libm-alias-double.h>.
20605         (llround): Define using libm_alias_double.
20606         (lround): Likewise.
20608 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
20610         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20611         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20612         compat symbol based on llround.
20614         * sysdeps/powerpc/power7/fpu/s_logb.c
20615         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20616         symbol based on __logb, not on logb.
20617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20618         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20619         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20620         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20622         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20623         (rint): Define using libm_alias_double.
20624         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20625         <libm-alias-double.h>.
20626         (modf): Define using libm_alias_double.
20627         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20628         <libm-alias-double.h>.
20629         (ceil): Define using libm_alias_double.
20630         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20631         <libm-alias-double.h>.
20632         (floor): Define using libm_alias_double.
20633         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20634         <libm-alias-double.h>.
20635         (nearbyint): Define using libm_alias_double.
20636         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20637         <libm-alias-double.h>.
20638         (rint): Define using libm_alias_double.
20639         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20640         <libm-alias-double.h>.
20641         (round): Define using libm_alias_double.
20642         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20643         <libm-alias-double.h>.
20644         (trunc): Define using libm_alias_double.
20645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20646         <libm-alias-double.h>.
20647         (ceil): Define using libm_alias_double.
20648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20649         Include <libm-alias-double.h>.
20650         (floor): Define using libm_alias_double.
20651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20652         <libm-alias-double.h>.
20653         (modf): Define using libm_alias_double.
20654         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20655         Include <libm-alias-double.h>.
20656         (round): Define using libm_alias_double.
20657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20658         Include <libm-alias-double.h>.
20659         (trunc): Define using libm_alias_double.
20660         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20661         <libm-alias-double.h>.
20662         (ceil): Define using libm_alias_double.
20663         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20664         <libm-alias-double.h>.
20665         (floor): Define using libm_alias_double.
20666         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20667         <libm-alias-double.h>.
20668         (round): Define using libm_alias_double.
20669         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20670         <libm-alias-double.h>.
20671         (trunc): Define using libm_alias_double.
20672         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20673         <libm-alias-double.h>.
20674         (ceil): Define using libm_alias_double.
20675         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20676         <libm-alias-double.h>.
20677         (floor): Define using libm_alias_double.
20678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20679         <libm-alias-double.h>.
20680         (modf): Define using libm_alias_double.
20681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20682         <libm-alias-double.h>.
20683         (round): Define using libm_alias_double.
20684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20685         <libm-alias-double.h>.
20686         (trunc): Define using libm_alias_double.
20687         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20688         <libm-alias-double.h>.
20689         (ceil): Define using libm_alias_double.
20690         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20691         <libm-alias-double.h>.
20692         (floor): Define using libm_alias_double.
20693         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20694         <libm-alias-double.h>.
20695         (nearbyint): Define using libm_alias_double.
20696         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20697         <libm-alias-double.h>.
20698         (rint): Define using libm_alias_double.
20699         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20700         <libm-alias-double.h>.
20701         (round): Define using libm_alias_double.
20702         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20703         <libm-alias-double.h>.
20704         (trunc): Define using libm_alias_double.
20705         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20706         <libm-alias-double.h>.
20707         (ceil): Define using libm_alias_double.
20708         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20709         <libm-alias-double.h>.
20710         (floor): Define using libm_alias_double.
20711         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20712         <libm-alias-double.h>.
20713         (round): Define using libm_alias_double.
20714         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20715         <libm-alias-double.h>.
20716         (trunc): Define using libm_alias_double.
20718         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20719         (fabs): Define using libm_alias_double.
20720         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20721         (fma): Define using libm_alias_double.
20722         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20723         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20724         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20725         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20727 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20729         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20731         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20732         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20733         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20735         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20736         due redirect macro.
20738 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
20740         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20742 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20744         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20745         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20746         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20747         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20750         (libm-sysdep_routines): Add s_nearbyintf-generic and
20751         s_nearbyint-generic.
20752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20753         New file.
20754         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20756         Likewise.
20757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20758         Likewise.
20759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20760         file.
20761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20762         Likewise.
20764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20765         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20767         file.
20768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20770         Likewise.
20771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20776         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20778         file.
20779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20780         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20781         Likewise.
20782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20787         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20789         file.
20790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20792         Likewise.
20793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20798         (sysdep_calls): New rule.
20799         (sysdep_routines): Use sysdep_calls as base.
20800         (libm-sysdep_routines): Add generic rule for symbols shared with
20801         libc.  Add s_copysign-generic and s_copysign-generic objects.
20802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20803         New file.
20804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20806         Likewise.
20807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20811 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
20813         [BZ #22519]
20814         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20815         the list of locales to be built for testing.
20816         * localedata/is_IS.UTF-8.in: New file.
20817         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20818         on iso14651_t1.
20820 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
20822         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20823         <libm-alias-float.h>.
20824         (fabsf): Define using libm_alias_float.
20826 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
20828         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20830 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
20832         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20833         <libm-alias-float.h>.
20834         (fabsf): Define using libm_alias_float.
20835         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20836         <libm-alias-float.h>.
20837         (lrintf): Define using libm_alias_float.
20838         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20839         <libm-alias-float.h>.
20840         (rintf): Define using libm_alias_float.
20842         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20843         <libm-alias-double.h>.
20844         (fabs): Define using libm_alias_double.
20845         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20846         <libm-alias-double.h>.
20847         (lrint): Define using libm_alias_double.
20848         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20849         <libm-alias-double.h>.
20850         (rint): Define using libm_alias_double.
20852         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20853         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20854         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20855         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20856         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20857         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20858         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20859         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20860         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20861         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20862         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20863         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20864         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20865         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20866         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20867         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20868         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20869         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20870         s_atan_template.c.
20871         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20872         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20873         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20874         s_ceil_template.c.
20875         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20876         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20877         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20878         s_cos_template.c.
20879         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20880         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20881         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20882         s_expm1_template.c.
20883         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20884         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20885         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20886         s_fabs_template.c.
20887         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20888         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20889         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20890         s_floor_template.c.
20891         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20892         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20893         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20894         s_frexp_template.c.
20895         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20896         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20897         s_lrint_template.c.
20898         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20899         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20900         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20901         s_modf_template.c.
20902         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20903         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20904         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20905         s_nearbyint_template.c.
20906         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20907         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20908         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20909         s_remquo_template.c.
20910         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20911         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20912         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20913         s_rint_template.c.
20914         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20915         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20916         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20917         s_sin_template.c.
20918         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20919         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20920         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20921         s_sincos_template.c.
20922         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20923         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20924         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20925         s_tan_template.c.
20926         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20927         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20928         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20929         s_tanh_template.c.
20930         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20931         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20932         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20933         s_trunc_template.c.
20934         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20935         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20936         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20937         s_atan.c instead of including s_atan.c.
20938         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20939         s_atanf.c instead of including s_atanf.c.
20940         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20941         s_atanl.c instead of including s_atanl.c.
20942         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20943         instead of s_atan.c.
20944         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20945         instead of s_atanf.c.
20946         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20947         instead of s_atanl.c.
20949         * scripts/update-copyrights: Do not handle intl/plural.c
20950         specially.
20952 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
20954         [BZ #22432]
20955         * configure.ac (BISON): Require to be present.
20956         * configure: Regenerated.
20957         * intl/Makefile (generated): Add plural.c.
20958         [$(BISON) != no]: Make code unconditional.
20959         (plural.c): Change rule to $(objpfx)plural.c.
20960         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20961         * intl/plural.c: Remove.
20962         * manual/install.texi (Tools for Compilation): Document bison as
20963         required.
20964         * INSTALL: Regenerated.
20966 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
20968         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20969         <libm-alias-double.h>.
20970         (llrint): Define using libm_alias_double.
20971         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20972         <libm-alias-float.h>.
20973         (llrintf): Define using libm_alias_float.
20974         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20975         <libm-alias-ldouble.h>.
20976         (llrintl): Define using libm_alias_ldouble.
20978         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20979         declare_mgen_alias instead of weak_alias.
20980         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20981         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20982         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20984 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20986         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20987         Add add_n-generic.
20988         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20989         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20990         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20992         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20993         Add submul_1-generic.
20994         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20995         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20996         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20998         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20999         Add addmul_1-generic.
21000         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21001         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21002         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21004         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21005         Add sub_n-generic.
21006         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21007         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21008         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21010         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21011         Add mul_1-generic.
21012         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21013         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21014         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21016 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21018         According to CLDR, collation rules for Serbian and Bosnian
21019         should be the same as for Croatian.
21021         [BZ #22534]
21022         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21023         and to the list of locales to be built for testing.
21024         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21025         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21026         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21027         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21029 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21031         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21032         to make test case pass.
21033         * localedata/hr_HR.UTF-8.in: Add more test strings.
21035 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21037         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21039 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
21041         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21042         the list of locales to built for testing.
21043         * localedata/hr_HR.UTF-8.in: New file.
21045 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
21047         [BZ #10580]
21048         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21049         iso14651_t1.
21050         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21051         CLDR (except use ligatures for the digraphs, CLDR does not use
21052         the ligatures), add first_workday, some fixes in the date and time
21053         formats.
21054         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21055         for Đ and đ.
21056         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21057         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21058         Add int_p_cs_precedes and int_n_cs_precedes.
21059         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21060         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21061         LC_MONETARY now).
21062         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21063         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21064         name_miss.
21065         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21066         and lang_lib. Change postal_fmt.
21068 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
21070         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21071         <setjmp.h>.
21072         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21073         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21074         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21075         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21076         * sysdeps/generic/setjmpP.h: New file.
21077         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21078         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21079         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21080         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21081         Add jmp_buf-ssp.sym.
21082         (tests): Add tst-saved_mask-1.
21084 2017-11-30  Arjun Shankar  <arjun@redhat.com>
21086         [BZ #22375]
21087         CVE-2017-17426
21088         * malloc/malloc.c (__libc_malloc): Use checked_request2size
21089         instead of request2size.
21091 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
21093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21094         (__lllrint): Remove alias.
21095         (lllrint): Likewise.
21096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21097         (__lllrintf): Likewise.
21098         (lllrintf): Likewise.
21100         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21101         <libm-alias-float.h>.
21102         (copysignf): Define using libm_alias_float.
21103         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21104         <libm-alias-float.h>.
21105         (fabsf): Define using libm_alias_float.
21106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21107         Include <libm-alias-float.h>.
21108         (copysignf): Define using libm_alias_float.
21109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21110         <libm-alias-float.h>.
21111         (fabsf): Define using libm_alias_float.
21112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21113         <libm-alias-float.h>.
21114         (fdimf): Define using libm_alias_float.
21115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21116         <libm-alias-float.h>.
21117         (fmaf): Define using libm_alias_float.
21118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21119         <libm-alias-float.h>.
21120         (llrintf): Define using libm_alias_float.
21121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21122         Include <libm-alias-float.h>.
21123         (nearbyintf): Define using libm_alias_float.
21124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21125         <libm-alias-float.h>.
21126         (rintf): Define using libm_alias_float.
21127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21128         <libm-alias-float.h>.
21129         (llrintf): Define using libm_alias_float.
21130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21131         <libm-alias-float.h>.
21132         (lrintf): Define using libm_alias_float.
21133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21134         <libm-alias-float.h>.
21135         (nearbyintf): Define using libm_alias_float.
21136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21137         <libm-alias-float.h>.
21138         (rintf): Define using libm_alias_float.
21139         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21140         <libm-alias-float.h>.
21141         (ceilf): Define using libm_alias_float.
21142         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21143         <libm-alias-float.h>.
21144         (floorf): Define using libm_alias_float.
21145         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21146         <libm-alias-float.h>.
21147         (fmaf): Define using libm_alias_float.
21148         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21149         <libm-alias-float.h>.
21150         (lrintf): Define using libm_alias_float.
21151         (llrintf): Likewise.
21152         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21153         <libm-alias-float.h>.
21154         (nearbyintf): Define using libm_alias_float.
21155         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21156         <libm-alias-float.h>.
21157         (rintf): Define using libm_alias_float.
21158         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21159         <libm-alias-float.h>.
21160         (truncf): Define using libm_alias_float.
21161         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21162         <libm-alias-float.h>.
21163         (copysignf): Define using libm_alias_float.
21164         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21165         <libm-alias-float.h>.
21166         (fabsf): Define using libm_alias_float.
21167         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21168         <libm-alias-float.h>.
21169         (lrintf): Define using libm_alias_float.
21170         (llrintf): Likewise.
21171         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21172         <libm-alias-float.h>.
21173         (nearbyintf): Define using libm_alias_float.
21174         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21175         <libm-alias-float.h>.
21176         (rintf): Define using libm_alias_float.
21178 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21180         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21181         <libm-alias-double.h>.
21182         (copysign): Define using libm_alias_double.
21183         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21184         <libm-alias-double.h>.
21185         (fabs): Define using libm_alias_double.
21186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21187         Include <libm-alias-double.h>.
21188         (copysign): Define using libm_alias_double.
21189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21190         <libm-alias-double.h>.
21191         (fabs): Define using libm_alias_double.
21192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21193         <libm-alias-double.h>.
21194         (fdim): Define using libm_alias_double.
21195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21196         <libm-alias-double.h>.
21197         (fma): Define using libm_alias_double.
21198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21199         <libm-alias-double.h>.
21200         (llrint): Define using libm_alias_double.
21201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21202         Include <libm-alias-double.h>.
21203         (nearbyint): Define using libm_alias_double.
21204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21205         <libm-alias-double.h>.
21206         (rint): Define using libm_alias_double.
21207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21208         <libm-alias-double.h>.
21209         (fabs): Define using libm_alias_double.
21210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21211         <libm-alias-double.h>.
21212         (llrint): Define using libm_alias_double.
21213         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21214         <libm-alias-double.h>.
21215         (nearbyint): Define using libm_alias_double.
21216         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21217         <libm-alias-double.h>.
21218         (rint): Define using libm_alias_double.
21219         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21220         <libm-alias-double.h>.
21221         (ceil): Define using libm_alias_double.
21222         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21223         <libm-alias-double.h>.
21224         (floor): Define using libm_alias_double.
21225         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21226         <libm-alias-double.h>.
21227         (fma): Define using libm_alias_double.
21228         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21229         <libm-alias-double.h>.
21230         (lrint): Define using libm_alias_double.
21231         (llrint): Likewise.
21232         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21233         <libm-alias-double.h>.
21234         (nearbyint): Define using libm_alias_double.
21235         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21236         <libm-alias-double.h>.
21237         (rint): Define using libm_alias_double.
21238         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21239         <libm-alias-double.h>.
21240         (trunc): Define using libm_alias_double.
21241         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21242         <libm-alias-double.h>.
21243         (copysign): Define using libm_alias_double.
21244         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21245         <libm-alias-double.h>.
21246         (fabs): Define using libm_alias_double.
21247         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21248         <libm-alias-double.h>.
21249         (lrint): Define using libm_alias_double.
21250         (llrint): Likewise.
21251         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21252         <libm-alias-double.h>.
21253         (nearbyint): Define using libm_alias_double.
21254         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21255         <libm-alias-double.h>.
21256         (rint): Define using libm_alias_double.
21258         [BZ #22229]
21259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21260         <math_ldbl_opt.h>.
21261         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21263         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21264         SPARC --disable-multi-arch glibc variants.
21266         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21267         <libm-alias-float.h>.
21268         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21269         if [SHARED].
21270         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21271         <libm-alias-float.h>.
21272         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21273         if [SHARED].
21274         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21275         <libm-alias-float.h>.
21276         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21277         if [SHARED].
21278         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21279         <libm-alias-float.h>.
21280         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21281         if [SHARED].
21282         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21283         <libm-alias-float.h>.
21284         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21285         if [SHARED].
21286         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21287         <libm-alias-float.h>.
21288         (ceilf): Define using libm_alias_float.
21289         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21290         <libm-alias-float.h>.
21291         (floorf): Define using libm_alias_float.
21292         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21293         <libm-alias-float.h>.
21294         (fmaf): Define using libm_alias_float.
21295         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21296         <libm-alias-float.h>.
21297         (nearbyintf): Define using libm_alias_float.
21298         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21299         <libm-alias-float.h>.
21300         (rintf): Define using libm_alias_float.
21301         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21302         <libm-alias-float.h>.
21303         (truncf): Define using libm_alias_float.
21304         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21305         (copysignf): Define using libm_alias_float.
21306         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21307         (cosf): Define using libm_alias_float.
21308         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21309         (fabsf): Define using libm_alias_float.
21310         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21311         (fmaxf): Define using libm_alias_float.
21312         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21313         (fminf): Define using libm_alias_float.
21314         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21315         (llrintf): Define using libm_alias_float.
21316         [!__ILP32__] (lrintf): Likewise.
21317         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21318         (sincosf): Define using libm_alias_float.
21319         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21320         (sinf): Define using libm_alias_float.
21321         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21322         (lrintf): Define using libm_alias_float.
21324         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21325         <libm-alias-double.h>.
21326         (atan): Define using libm_alias_double.
21327         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21328         <libm-alias-double.h>.
21329         (ceil): Define using libm_alias_double.
21330         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21331         <libm-alias-double.h>.
21332         (floor): Define using libm_alias_double.
21333         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21334         <libm-alias-double.h>.
21335         (fma): Define using libm_alias_double.
21336         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21337         <libm-alias-double.h>.
21338         (nearbyint): Define using libm_alias_double.
21339         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21340         <libm-alias-double.h>.
21341         (rint): Define using libm_alias_double.
21342         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21343         <libm-alias-double.h>.
21344         (sin): Define using libm_alias_double.
21345         (cos): Likewise.
21346         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21347         <libm-alias-double.h>.
21348         (tan): Define using libm_alias_double.
21349         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21350         <libm-alias-double.h>.
21351         (trunc): Define using libm_alias_double.
21352         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21353         (copysign): Define using libm_alias_double.
21354         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21355         (fabs): Define using libm_alias_double.
21356         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21357         (fmax): Define using libm_alias_double.
21358         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21359         (fmin): Define using libm_alias_double.
21360         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21361         (llrint): Define using libm_alias_double.
21362         [!__ILP32__] (lrint): Likewise.
21363         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21364         (lrint): Define using libm_alias_double.
21366 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21368         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21369         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21370         objects.
21371         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21372         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21373         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21374         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21375         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21376         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21378         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21379         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21380         objects.
21381         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21382         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21383         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21384         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21385         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21386         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21388         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21389         (libm-sysdep_routines): Add s_nearbyint-generic and
21390         s_nearbyintf-generic objects.
21391         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21392         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21393         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21394         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21395         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21396         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21398         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21399         Add s_finitef-generic and s_finite-generic objects.
21400         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21401         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21402         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21403         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21404         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21405         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21407         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21408         Add s_isinff-generic and s_isinf-generic objects.
21409         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21410         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21411         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21412         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21413         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21414         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21416         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21417         Add s_isnanf-generic and s_isnan-generic objects.
21418         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21419         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21420         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21421         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21422         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21423         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21425         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21426         macro.
21427         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21428         rule.
21429         (sysdep_routines): Use sysdep_calls as base.
21430         (libm-sysdep_routines): Add generic rule for symbols shared with
21431         libc.  Add s_signbit-generic and s_signbitf-generic objects.
21432         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21433         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21434         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21435         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21436         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21437         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21439 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21441         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21442         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21443         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21444         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21445         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21446         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21447         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21448         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21449         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21450         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21451         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21452         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21453         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21454         libm_alias_float_r.
21455         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21456         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21457         (logf): Likewise.
21458         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21459         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21460         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21461         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21462         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21463         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21464         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21465         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21466         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21467         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21468         libm_alias_float.
21469         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21470         (cosf): Likewise.
21471         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21472         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21473         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21474         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21475         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21476         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21477         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21478         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21479         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21480         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21481         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21482         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21483         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21484         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21485         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21486         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21487         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21488         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21489         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21490         libm_alias_float.
21491         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21492         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21493         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21494         * sysdeps/ia64/fpu/w_lgammaf_main.c
21495         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21496         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21498 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
21499             Alexandre Oliva  <aoliva@redhat.com>
21501         [BZ #17750]
21502         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21503         * localedata/fr_CA.UTF-8.in: New file with test data for backward
21504         accents sorting.
21505         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21506         sorting.
21507         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21508         * localedata/locales/de_DE (LC_COLLATE): Likewise.
21509         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21510         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21511         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21512         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21513         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21514         instead of “ifdef DIACRIT_BACKWARD”.
21516 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21518         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21519         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21520         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21521         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21522         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21523         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21524         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21525         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21526         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21527         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21528         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21529         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21530         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21531         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21532         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21533         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21534         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21535         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21537         ($(have-as-vis3) == yes): Remove conditional.
21538         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21539         Likewise.
21540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21541         file.
21542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21543         file.
21544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21545         file.
21546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21547         file.
21548         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21549         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21550         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21551         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21552         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21553         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21554         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21555         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21557 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21559         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21560         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21561         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21562         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21563         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21564         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21565         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21566         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21567         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21568         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21569         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21570         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21571         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21572         libm_alias_double_r.
21573         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21574         (log): Likewise.
21575         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21576         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21577         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21578         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21579         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21580         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21581         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21582         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21583         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21584         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21585         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21586         libm_alias_double.
21587         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21588         (cos): Likewise.
21589         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21590         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21591         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21592         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21593         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21594         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21595         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21596         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21597         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21598         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21599         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21600         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21601         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21602         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21603         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21604         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21605         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21606         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21607         libm_alias_double.
21608         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21609         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21610         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21611         * sysdeps/ia64/fpu/w_lgamma_main.c
21612         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21613         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21615 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
21617         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
21618         address of $global$ into %dp register earlier.  Use pc-relative
21619         instruction sequence for PIC case.
21621 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21623         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21624         (asinhf): Define using libm_alias_float.
21625         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21626         (atanf): Define using libm_alias_float.
21627         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21628         (cbrtf): Define using libm_alias_float.
21629         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21630         (ceilf): Define using libm_alias_float.
21631         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21632         (copysignf): Define using libm_alias_float.
21633         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21634         (expm1f): Define using libm_alias_float.
21635         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21636         (fabsf): Define using libm_alias_float.
21637         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21638         (floorf): Define using libm_alias_float.
21639         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21640         (fmaxf): Define using libm_alias_float.
21641         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21642         (fminf): Define using libm_alias_float.
21643         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21644         (frexpf): Define using libm_alias_float.
21645         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21646         (llrintf): Define using libm_alias_float.
21647         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21648         (logbf): Define using libm_alias_float.
21649         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21650         (lrintf): Define using libm_alias_float.
21651         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21652         (nearbyintf): Define using libm_alias_float.
21653         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21654         (remquof): Define using libm_alias_float.
21655         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21656         (rintf): Define using libm_alias_float.
21657         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21658         (truncf): Define using libm_alias_float.
21659         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21660         <libm-alias-float.h>.
21661         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21662         if [SHARED].
21663         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21664         <libm-alias-float.h>.
21665         (expf): Define using libm_alias_float, or libm_alias_float_other
21666         if [SHARED].
21667         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21668         <libm-alias-float.h>.
21669         (log2f): Define using libm_alias_float, or libm_alias_float_other
21670         if [SHARED].
21671         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21672         <libm-alias-float.h>.
21673         (logf): Define using libm_alias_float, or libm_alias_float_other
21674         if [SHARED].
21675         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21676         <libm-alias-float.h>.
21677         (powf): Define using libm_alias_float, or libm_alias_float_other
21678         if [SHARED].
21679         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21680         <libm-alias-float.h>.
21681         (cosf): Define using libm_alias_float.
21682         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21683         <libm-alias-float.h>.
21684         (sincosf): Define using libm_alias_float.
21685         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21686         <libm-alias-float.h>.
21687         (sinf): Define using libm_alias_float.
21688         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21689         (fmaxf): Define using libm_alias_float.
21690         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21691         (fminf): Define using libm_alias_float.
21692         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21693         <libm-alias-float.h>.
21694         (fmaf): Define using libm_alias_float.
21696         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21697         (asinh): Define using libm_alias_double.
21698         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21699         (atan): Define using libm_alias_double.
21700         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21701         (cbrt): Define using libm_alias_double.
21702         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21703         (ceil): Define using libm_alias_double.
21704         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21705         (copysign): Define using libm_alias_double.
21706         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21707         (expm1): Define using libm_alias_double.
21708         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21709         (fabs): Define using libm_alias_double.
21710         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21711         (fdim): Define using libm_alias_double.
21712         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21713         (floor): Define using libm_alias_double.
21714         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21715         (fmax): Define using libm_alias_double.
21716         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21717         (fmin): Define using libm_alias_double.
21718         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21719         (frexp): Define using libm_alias_double.
21720         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21721         (llrint): Define using libm_alias_double.
21722         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21723         (logb): Define using libm_alias_double.
21724         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21725         (lrint): Define using libm_alias_double.
21726         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21727         (nearbyint): Define using libm_alias_double.
21728         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21729         (remquo): Define using libm_alias_double.
21730         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21731         (rint): Define using libm_alias_double.
21732         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21733         (trunc): Define using libm_alias_double.
21734         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21735         (fmax): Define using libm_alias_double.
21736         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21737         (fmin): Define using libm_alias_double.
21738         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21739         (fma): Define using libm_alias_double.
21741 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
21743         [BZ #22370]
21744         * elf/dl-hwcaps.c (ROUND): Removed.
21745         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21746         and ELF_NOTE_NEXT_OFFSET.
21747         * elf/dl-load.c (ROUND): Removed.
21748         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21749         * elf/readelflib.c (ROUND): Removed.
21750         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21751         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21752         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21753         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21755 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21757         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21758         [!__fmaf] (fmaf): Define using libm_alias_float.
21760         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21761         [!__fma] (fma): Define using libm_alias_double.
21762         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21764 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
21766         [BZ #22336]
21767         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21768         and implement the collation rules for cs from CLDR on top of that.
21769         * Makefile: Add cs_CZ.UTF-8 to test-input.
21770         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21772 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21774         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21776 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
21777             Icarus Sparry  <icarus.w.sparry@intel.com>
21779         * benchtests/Makefile:Add BENCHSET to allow subsets of
21780         benchmarks to be run.
21781         * benchtests/README: Add documentation for: Running subsets of
21782         benchmarks.
21784 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
21786         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21787         range of tests names.
21789         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21790         result from property and remove "max", min" and "mean" from
21791         required properties based on benchtests/bench-skeleton.c.
21793 2017-11-28  Florian Weimer  <fweimer@redhat.com>
21795         [BZ #20826]
21796         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21797         due to Internet requirement.
21798         * posix/Makefile (tests): Remove tst-getaddrinfo4,
21799         tst-getaddrinfo5.
21800         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21802 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21804         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21805         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21806         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21807         (sysdep_routines): Add memset-ultra1.
21808         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21809         file.
21810         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21811         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21812         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21813         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21814         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21815         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21816         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21817         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21819         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21820         file.
21821         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21822         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21823         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21824         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21825         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21826         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21827         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21828         macro.
21829         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21830         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21831         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21832         (sysdep_routines): Add memcpy-ultra1.
21833         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21834         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21836 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21838         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21839         (cfloat_versions): Take function argument without trailing 'f'.
21840         Call libm_alias_float_other.
21841         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21842         * sysdeps/alpha/fpu/cargf.c: Likewise.
21843         * sysdeps/alpha/fpu/cimagf.c: Likewise.
21844         * sysdeps/alpha/fpu/conjf.c: Likewise.
21845         * sysdeps/alpha/fpu/crealf.c: Likewise.
21846         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21847         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21848         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21849         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21850         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21851         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21852         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21853         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21854         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21855         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21856         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21857         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21858         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21859         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21860         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21861         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21862         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21863         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21864         (clog10f): Use libm_alias_float_other.
21865         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21866         (ceilf): Define using libm_alias_float.
21867         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21868         (copysignf): Define using libm_alias_float.
21869         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21870         (fabsf): Define using libm_alias_float.
21871         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21872         (floorf): Define using libm_alias_float.
21873         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21874         (fmaxf): Define using libm_alias_float.
21875         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21876         (fminf): Define using libm_alias_float.
21877         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21878         (lrintf): Define using libm_alias_float.
21879         (llrintf): Likewise.
21880         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21881         (lroundf): Define using libm_alias_float.
21882         (llroundf): Likewise.
21883         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21884         (rintf): Define using libm_alias_float.
21885         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21886         (truncf): Define using libm_alias_float.
21888         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21889         (ceilf): Define using libm_alias_float.
21890         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21891         (floorf): Define using libm_alias_float.
21892         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21893         (fmaf): Define using libm_alias_float.
21894         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21895         (fmaxf): Define using libm_alias_float.
21896         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21897         (fminf): Define using libm_alias_float.
21898         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21899         (llrintf): Define using libm_alias_float.
21900         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21901         (llroundf): Define using libm_alias_float.
21902         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21903         (lrintf): Define using libm_alias_float.
21904         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21905         (lroundf): Define using libm_alias_float.
21906         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21907         <libm-alias-float.h>.
21908         (nearbyintf): Define using libm_alias_float.
21909         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21910         (rintf): Define using libm_alias_float.
21911         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21912         (roundf): Define using libm_alias_float.
21913         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21914         (truncf): Define using libm_alias_float.
21916         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21917         (ceil): Define using libm_alias_double.
21918         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21919         (copysign): Define using libm_alias_double.
21920         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21921         (fabs): Define using libm_alias_double.
21922         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21923         (floor): Define using libm_alias_double.
21924         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21925         (fmax): Define using libm_alias_double.
21926         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21927         (fmin): Define using libm_alias_double.
21928         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21929         (lrint): Define using libm_alias_double.
21930         (llrint): Likewise.
21931         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21932         (lround): Define using libm_alias_double.
21933         (llround): Likewise.
21934         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21935         (rint): Define using libm_alias_double.
21936         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21937         (trunc): Define using libm_alias_double.
21939         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21940         (libm_alias_double_r): Add semicolon after weak_alias call.
21942 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
21944         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21945         (ceil): Define using libm_alias_double.
21946         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21947         (floor): Define using libm_alias_double.
21948         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21949         (fma): Define using libm_alias_double.
21950         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21951         (fmax): Define using libm_alias_double.
21952         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21953         (fmin): Define using libm_alias_double.
21954         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21955         (llrint): Define using libm_alias_double.
21956         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21957         (llround): Define using libm_alias_double.
21958         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21959         (lrint): Define using libm_alias_double.
21960         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21961         (lround): Define using libm_alias_double.
21962         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21963         (nearbyint): Define using libm_alias_double.
21964         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21965         (rint): Define using libm_alias_double.
21966         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21967         (round): Define using libm_alias_double.
21968         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21969         (trunc): Define using libm_alias_double.
21971 2017-11-27  Florian Weimer  <fweimer@redhat.com>
21973         * sysdeps/unix/sysv/linux/mlock2.c: New file.
21974         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21975         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21976         (tests): Add tst-mlock2.
21977         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21978         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21979         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21980         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21981         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21982         for mlock.  Document mlock2.
21984 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
21986         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21987         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21988         Likewise.
21989         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21990         Likewise.
21991         * sysdeps/x86/Makeconfig: New file.
21992         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21993         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21994         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21995         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21996         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21997         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21998         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21999         Likewise.
22000         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22001         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22002         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22003         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22004         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22005         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22006         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22007         * manual/math.texi (Mathematics): Document support for _Float64x.
22008         * math/Versions (GLIBC_2.27): Add _Float64x functions.
22009         * stdlib/Versions (GLIBC_2.27): Likewise.
22010         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22011         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22012         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22013         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22014         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22015         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22016         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22017         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22018         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22019         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22020         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22021         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22023         Likewise.
22024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22025         Likewise.
22026         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22027         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22028         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22029         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22030         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22031         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22032         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22033         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22034         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22035         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22036         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22037         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22038         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22039         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22041 2017-11-27  Andreas Schwab  <schwab@suse.de>
22043         * elf/Makefile (dl-routines): Add dl-sort-maps.
22044         * elf/dl-sort-maps.c: New file.
22045         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22046         (_dl_sort_maps): Declare.
22047         * elf/dl-fini.c (_dl_sort_fini): Remove.
22048         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22049         * elf/dl-close.c (_dl_close_worker): Likewise.
22050         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22051         open-coding it.
22052         * elf/dl-open.c (dl_open_worker): Likewise.
22054 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
22056         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22057         using libm_alias_float128.
22058         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22059         Likewise.
22060         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22061         Likewise.
22062         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22063         (setpayloadsigf128): Likewise.
22064         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22065         Likewise.
22066         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22067         Likewise.
22069         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22070         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22071         -mfloat128 to CFLAGS.
22072         ($(foreach
22073         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22074         Likewise.
22075         (CFLAGS-libm-test-support-float64x.c): New variable.
22076         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22077         $(f128-loader-link) to gnulib-tests.
22079         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22080         (libm_alias_float128_other_r): If
22081         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22082         alias.
22083         (libm_alias_float128_r): Add semicolon after weak_alias call.
22084         * sysdeps/generic/libm-alias-ldouble.h
22085         (libm_alias_ldouble_other_r_f128): New macro.
22086         (libm_alias_ldouble_other_r_f64x): Likewise.
22087         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22088         and libm_alias_ldouble_other_r_f64x.
22089         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22090         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22091         (libm_alias_ldouble_other_r_f128): New macro.
22092         (libm_alias_ldouble_other_r_f64x): Likewise.
22093         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22094         and libm_alias_ldouble_other_r_f64x.
22096         * stdlib/strfroml.c: Always include <stdlib.h>.
22097         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22098         undefine as macro and define as weak alias.
22099         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22100         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22101         <stdlib.h>.
22102         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22103         Define and later undefine as macro and define as weak alias.
22105         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22106         Define and later undefine as macro.  Define as weak alias if
22107         [!USE_WIDE_CHAR].
22108         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22109         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22110         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22111         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22112         Define and later undefine as macro.  Define as weak alias if
22113         [!USE_WIDE_CHAR].
22114         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22115         Define and later undefine as macro.  Define as weak alias if
22116         [USE_WIDE_CHAR].
22117         * sysdeps/ieee754/float128/strtof128_l.c
22118         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22119         Define and later undefine as macro.  Define as weak alias if
22120         [!USE_WIDE_CHAR].
22121         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22122         Define and later undefine as macro.  Define as weak alias if
22123         [USE_WIDE_CHAR].
22124         * sysdeps/ieee754/ldbl-128/strtold_l.c
22125         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22126         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22127         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22128         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22129         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22130         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22131         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22132         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22133         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22134         * sysdeps/ieee754/ldbl-96/strtold_l.c
22135         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22136         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22137         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22138         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22140         * math/test-float64x.h: New file.
22141         * math/Makefile (type-float64x-yes): New variable.
22142         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22144         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22145         function-like macro.
22146         (min_of_type_): Likewise.
22147         (min_of_type_l): Likewise.
22148         (min_of_type_f128): Likewise.
22149         (min_of_type): Pass () as last argument of __MATH_TG.
22151         * stdlib/tst-strtod-round-skeleton.c
22152         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22153         headers.
22155         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22156         for combinations of long double with _Float64 and _Float64x.
22158         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22159         (__DECL_SIMD_cosf32): Likewise.
22160         (__DECL_SIMD_cosf64): Likewise.
22161         (__DECL_SIMD_cosf32x): Likewise.
22162         (__DECL_SIMD_cosf64x): Likewise.
22163         (__DECL_SIMD_cosf128x): Likewise.
22164         (__DECL_SIMD_sinf16): Likewise.
22165         (__DECL_SIMD_sinf32): Likewise.
22166         (__DECL_SIMD_sinf64): Likewise.
22167         (__DECL_SIMD_sinf32x): Likewise.
22168         (__DECL_SIMD_sinf64x): Likewise.
22169         (__DECL_SIMD_sinf128x): Likewise.
22170         (__DECL_SIMD_sincosf16): Likewise.
22171         (__DECL_SIMD_sincosf32): Likewise.
22172         (__DECL_SIMD_sincosf64): Likewise.
22173         (__DECL_SIMD_sincosf32x): Likewise.
22174         (__DECL_SIMD_sincosf64x): Likewise.
22175         (__DECL_SIMD_sincosf128x): Likewise.
22176         (__DECL_SIMD_logf16): Likewise.
22177         (__DECL_SIMD_logf32): Likewise.
22178         (__DECL_SIMD_logf64): Likewise.
22179         (__DECL_SIMD_logf32x): Likewise.
22180         (__DECL_SIMD_logf64x): Likewise.
22181         (__DECL_SIMD_logf128x): Likewise.
22182         (__DECL_SIMD_expf16): Likewise.
22183         (__DECL_SIMD_expf32): Likewise.
22184         (__DECL_SIMD_expf64): Likewise.
22185         (__DECL_SIMD_expf32x): Likewise.
22186         (__DECL_SIMD_expf64x): Likewise.
22187         (__DECL_SIMD_expf128x): Likewise.
22188         (__DECL_SIMD_powf16): Likewise.
22189         (__DECL_SIMD_powf32): Likewise.
22190         (__DECL_SIMD_powf64): Likewise.
22191         (__DECL_SIMD_powf32x): Likewise.
22192         (__DECL_SIMD_powf64x): Likewise.
22193         (__DECL_SIMD_powf128x): Likewise.
22195         * stdlib/Versions (libc): Move entries for wcstof128 and
22196         wcstof128_l to ....
22197         * wcsmbs/Versions (libc): ... here.
22198         Include <float128-abi.h>.
22200 2017-11-24  Florian Weimer  <fweimer@redhat.com>
22202         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22203         bits/mman-shared.h.
22204         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22205         <bits/mman-shared.h>.
22206         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22207         to ...
22208         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22209         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22210         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22211         <bits/mman-shared.h>.
22213 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22215         [BZ #22457]
22216         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22217         posix_memalign/free.
22218         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22220 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
22222         [BZ #22469]
22223         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22224         and implement the collation rules for pl from CLDR on top of that.
22225         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22226         of locales to be built for testing.
22227         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22229 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
22231         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22232         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22233         libm_alias_ldouble_other.
22234         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22235         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22236         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22237         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22238         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22239         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22240         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22241         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22242         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22243         libm_alias_ldouble_r.
22244         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22245         libm_alias_ldouble_other.
22246         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22247         (log10l): Likewise.
22248         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22249         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22250         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22251         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22252         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22253         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22254         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22255         (atan2l): Likewise.
22256         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22257         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22258         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22259         libm_alias_ldouble.
22260         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22261         (cosl): Likewise.
22262         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22263         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22264         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22265         (expl): Likewise.
22266         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22267         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22268         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22269         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22270         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22271         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22272         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22273         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22274         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22275         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22276         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22277         libm_alias_ldouble.
22278         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22279         libm_alias_ldouble_other.
22280         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22281         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22282         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22283         libm_alias_ldouble.
22284         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22285         libm_alias_ldouble_other.
22286         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22287         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22288         * sysdeps/ia64/fpu/w_lgammal_main.c
22289         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22290         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22292 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22294         * malloc/malloc.c (tcache_thread_shutdown): Rename from
22295         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
22296         alike.  Remove freeres marker.
22297         * malloc/arena.c (arena_thread_freeres): Call
22298         tcache_thread_shutdown.
22300 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22302         [BZ #22459]
22303         Export nscd hash function as __nss_hash.
22304         * include/nss.h (__nss_hash): Declare.
22305         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
22306         symbol.
22307         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22308         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22309         of __nscd_hash.
22310         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22311         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22312         * nss/Makefiles (routines): Add nss_hash.
22313         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22314         * nss/nss_hash.c: Rename from nis/nis_hash.c.
22315         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
22316         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22318 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22320         [BZ #22478]
22321         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22322         Return error code, not -1.
22323         * signal/tst-sigwait-eintr.c: New file.
22324         * signal/Makefile (tests): Add tst-sigwait-eintr.
22326 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22328         Linux: Add memfd_create system call wrapper
22329         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22330         tst-memfd_create.
22331         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22332         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22333         [__USE_GNU] (memfd_create): Declare.
22334         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22335         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22336         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22337         * sysdeps/unix/sysv/linux/**.abilist: Update.
22338         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22340 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
22342         * localedata/gen-locale.sh: Fix typo in variable name.
22344         * resolv/res_debug.c (p_secstodate): Condition definition on
22345         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
22346         directly as __p_secstodate, and as a compat symbol.  Do not use
22347         libresolv_hidden_def.
22348         * resolv/resolv.h (p_secstodate): Remove macro and function
22349         declaration.
22350         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22351         using p_secstodate.
22352         * include/resolv.h (__p_secstodate): Do not use
22353         libresolv_hidden_proto.
22354         * resolv/Makefile (tests): Move tst-p_secstodate to ....
22355         (tests-internal): ... here.
22356         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
22357         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22358         and declare and use __p_secstodate and use compat_symbol_reference
22359         in that case.
22360         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22361         implementation returning 77.
22363         [BZ #22463]
22364         * resolv/res_debug.c: Include <libc-diag.h>.
22365         (p_secstodate): Assert time_t at least as wide as u_long.  On
22366         overflow, use integer seconds since the epoch as output, or use
22367         "<overflow>" as output and set errno to EOVERFLOW if integer
22368         seconds since the epoch would be 14 or more characters.
22369         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22370         for sprintf call.
22371         * resolv/tst-p_secstodate.c: New file.
22372         * resolv/Makefile (tests): Add tst-p_secstodate.
22373         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22375         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22376         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22377         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22379 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
22381         * posix/regcomp.c (init_word_char): Add comments.
22383 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
22385         [BZ #22447]
22386         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22387         strlen to compute length of ut_user and set trailing NUL byte of
22388         result explicitly.
22390 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
22392         [BZ #15537]
22393         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22394         using “copy "iso14651_t1"” and then implementing the
22395         collation rules for lv from CLDR on top of that.
22396         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22397         of locales to be built for testing.
22398         * lv_LV.UTF-8.in: New file with test data to test the Latvian
22399         sorting.
22401 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
22403         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22404         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22405         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22406         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22407         [__USE_MISC] (MADV_HWPOISON): New macro.
22408         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22410 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22412         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22413         -Wmissing-braces on GCC 4.9.
22415 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
22417         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22418         * sysdeps/s390/s390-32/start.S (_start): Likewise
22419         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22420         (thread_start): Likewise.
22421         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22422         (thread_start): Likewise.
22423         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22424         (__makecontext_ret): Likewise.
22425         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22426         (__makecontext_ret): Likewise.
22428 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
22430         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22431         __wcschrnul): Remove attribute_hidden.
22433 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22435         regex: don't assume uint64_t or uint32_t
22436         This avoids -Werror=overflow errors for 32-bit systems in
22437         the 64-bit case.  Problem reported by Joseph Myers in:
22438         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22439         Also, when this code is used in Gnulib it ports to platforms
22440         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
22441         them, and on some 32-bit compilers there is no uint64_t.
22442         Problem reported by Gianluigi Tiesi in:
22443         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22444         * posix/regcomp.c (init_word_char): Don't assume that the types
22445         uint64_t and uint32_t exist.  Adapted from Gnulib patch
22446         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
22447         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22449 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22451         * sysdeps/aarch64/memset-reg.h: New file.
22452         * sysdeps/aarch64/memset.S: Use it.
22453         (__memset): Rename to MEMSET macro.
22454         [ZVA_MACRO]: Use zva_macro.
22455         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22456         Add memset_generic and memset_falkor.
22457         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22458         (__libc_ifunc_impl_list): Add memset ifuncs.
22459         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22460         local variable zva_size.
22461         * sysdeps/aarch64/multiarch/memset.c: New file.
22462         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22463         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22464         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22465         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22466         (DCZID_DZP_MASK): New macro.
22467         (DCZID_BS_MASK): Likewise.
22468         (init_cpu_features): Read and set zva_size.
22469         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22470         (struct cpu_features): New member zva_size.
22472         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22473         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22474         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22476         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22477         backwards.  Fix timing computation.
22478         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22479         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22480         on memset by N at a time.  Fix timing computation.
22482 2017-11-20  Florian Weimer  <fweimer@redhat.com>
22484         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22485         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22487 2017-11-19  Florian Weimer  <fweimer@redhat.com>
22489         manual: Document mprotect
22490         * manual/memory.texi (Memory Protection): New section.
22491         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22492         documentation of PROT_* flags and reference the Memory Protection
22493         section instead.
22495 2017-11-19  Florian Weimer  <fweimer@redhat.com>
22497         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22498         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22499         (Scatter-Gather): ... to here.  Remove misleading comment.
22501 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
22503         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22504         style.
22506         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22507         when /proc/<pid>/setgroups does not exist.
22509 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22511         * sysdeps/unix/sysv/linux/tst-ttyname.c
22512         (become_root_in_mount_ns): Remove.
22513         (do_in_chroot_1): Call support_enter_mount_namespace.
22514         (do_in_chroot_2): Likewise.
22515         (do_test): Call support_become_root early.
22517 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22519         * support/namespace.h (support_enter_mount_namespace): Declare.
22520         * support/support_enter_mount_namespace.c: New file.
22521         * support/Makefile (libsupport-routines): Add
22522         support_enter_mount_namespace.
22524 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22526         * support/temp_file.c (support_create_temp_directory): Use
22527         test_dir and do not rely on the presence of the XXXXXX suffix.
22528         * support/temp_file.h (support_create_temp_directory): Update
22529         comment.
22530         * support/tst-xreadlink.c (do_test): Adjust.
22531         * support/support_chroot.c (support_chroot_create): Likewise.
22533 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22535         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22536         macro.
22537         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22538         htm-no-suspend.
22540 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
22542         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22543         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22544         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22545         (ceill): Define using libm_alias_ldouble.
22546         * sysdeps/x86_64/fpu/s_copysignl.S: Include
22547         <libm-alias-ldouble.h>.
22548         (copysignl): Define using libm_alias_ldouble.
22549         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22550         (fabsl): Define using libm_alias_ldouble.
22551         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22552         (floorl): Define using libm_alias_ldouble.
22553         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22554         (fmaxl): Define using libm_alias_ldouble.
22555         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22556         (fminl): Define using libm_alias_ldouble.
22557         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22558         (llrintl): Define using libm_alias_ldouble.
22559         (lrintl): Likewise.
22560         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22561         <libm-alias-ldouble.h>.
22562         (nearbyintl): Define using libm_alias_ldouble.
22563         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22564         (truncl): Define using libm_alias_ldouble.
22565         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22566         <libm-alias-ldouble.h>.
22567         (lrintl): Define using libm_alias_ldouble.
22569         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22570         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22571         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22572         (asinhl): Define using libm_alias_ldouble.
22573         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22574         (atanl): Define using libm_alias_ldouble.
22575         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22576         (cbrtl): Define using libm_alias_ldouble.
22577         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22578         (ceill): Define using libm_alias_ldouble.
22579         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22580         (copysignl): Define using libm_alias_ldouble.
22581         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22582         (fabsl): Define using libm_alias_ldouble.
22583         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22584         (floorl): Define using libm_alias_ldouble.
22585         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22586         (fmaxl): Define using libm_alias_ldouble.
22587         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22588         (fminl): Define using libm_alias_ldouble.
22589         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22590         (frexpl): Define using libm_alias_ldouble.
22591         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22592         (llrintl): Define using libm_alias_ldouble.
22593         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22594         (logbl): Define using libm_alias_ldouble.
22595         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22596         (lrintl): Define using libm_alias_ldouble.
22597         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22598         (nearbyintl): Define using libm_alias_ldouble.
22599         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22600         (nextafterl): Define using libm_alias_ldouble.
22601         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22602         (remquol): Define using libm_alias_ldouble.
22603         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22604         (rintl): Define using libm_alias_ldouble.
22605         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22606         (truncl): Define using libm_alias_ldouble.
22607         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22608         (fmaxl): Define using libm_alias_ldouble.
22609         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22610         (fminl): Define using libm_alias_ldouble.
22612         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22613         to C syntax instead of availability and properties of types.
22614         * bits/floatn.h [!__ASSEMBLER]: Likewise.
22615         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22616         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22617         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22618         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22619         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22621 2017-11-17  Florian Weimer  <fweimer@redhat.com>
22623         support_become_root: Enable file creation in namespaces.
22624         * support/support_become_root.c (setup_mapping): New function.
22625         (support_become_root): Call it.
22627 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
22629         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22630         macro.
22632 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22634         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22635         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22637 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
22639         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22641         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22642         version to 4.14.
22644 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22646         * INSTALL: Fix botched up regeneration.
22648         * NEWS: Update sourceare link to https.
22649         * configure.ac: Likewise.
22650         * crypt/md5test-giant.c: Likewise.
22651         * dlfcn/bug-atexit1.c: Likewise.
22652         * dlfcn/bug-atexit2.c: Likewise.
22653         * localedata/README: Likewise.
22654         * malloc/tst-mallocfork.c: Likewise.
22655         * manual/install.texi: Likewise.
22656         * nptl/tst-pthread-getattr.c: Likewise.
22657         * stdio-common/tst-fgets.c: Likewise.
22658         * stdio-common/tst-fwrite.c: Likewise.
22659         * sunrpc/Makefile: Likewise.
22660         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22661         * wcsmbs/tst-mbrtowc2.c: Likewise.
22662         * configure: Regenerate.
22663         * INSTALL: Regenerate.
22665 2017-11-15  Martin Sebor  <msebor@redhat.com>
22667         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22668         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22669         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22671 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
22673         [BZ #22145]
22674         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22675         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22677         [BZ #22145]
22678         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22679         Defer is_pty check until end of the function.
22680         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22682         [BZ #22145]
22683         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22684         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22685         (ttyname): Likewise.
22686         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22687         (__ttyname_r): Likewise.
22689         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22690         int to bool.
22692         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22694         * manual/terminal.texi (Is It a Terminal):
22695         Mention ENODEV for ttyname and ttyname_r.
22697 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22699         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22700         constant and macro.
22702         * sysdeps/unix/sysv/linux/bits/mman-linux.h
22703         [__USE_MISC] (MADV_WIPEONFORK): New macro.
22704         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22705         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22706         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22707         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22709 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22711         * signal/sigrelse.c (sigrelse): Optimize implementation.
22713         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22714         (__sigpause): Rely on __sigsuspend to implement single thread
22715         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
22717 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22719         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22720         kernel version to 4.14.
22722 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
22724         [BZ #22442]
22725         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22726         Check if ifname is too long.
22728 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
22730         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22732 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
22734         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22735         was accidentally lost.
22737 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
22739         * localedata/locales/az_IR: Add standard copyright header.
22741 2017-11-15  Florian Weimer  <fweimer@redhat.com>
22743         [BZ #22439]
22744         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22745         not just the top one.  Output a new "subheaps" statistic.
22747 2017-11-15  Florian Weimer  <fweimer@redhat.com>
22749         [BZ #22408]
22750         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22751         under the per-arena lock.
22752         * malloc/Makefile (tests): Add tst-malloc_info.
22753         (tst-malloc_info): Link with libpthread.
22754         * malloc/tst-malloc_info.c: New file.
22756 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22758         [BZ #21660]
22759         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22760         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22761         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22762         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22763         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22764         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22765         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22766         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22767         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22768         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22769         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22770         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22771         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22772         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22773         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22774         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22775         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22776         (__floating_type): Likewise.
22777         (__real_integer_type): Likewise.
22778         (__complex_integer_type): Likewise.
22779         (__expr_is_real): Likewise.
22780         (__tgmath_real_type_sub): Likewise.
22781         (__tgmath_real_type): Likewise.
22782         (__tgmath_complex_type_sub): Likewise.
22783         (__tgmath_complex_type): Likewise.
22784         (__TGMATH_F128): Likewise.
22785         (__TGMATH_CF128): Likewise.
22786         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22787         new macros.
22788         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22789         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22790         Likewise.
22791         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22792         Likewise.
22793         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22794         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22795         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22796         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22797         Likewise.
22798         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22799         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22800         Likewise.
22801         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22802         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22803         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22804         Likewise.
22805         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22806         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22807         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22808         (cimag): Likewise.
22809         (creal): Likewise.
22811 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
22813         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22814         for stpncpy calls for GCC 8.
22815         (test_strncat): Disable -Wstringop-truncation warning for strncat
22816         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
22817         strncat call for GCC 7.
22818         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22819         calls for GCC 8.
22820         (test_memcmp): Use memcpy instead of strncpy for calls not copying
22821         trailing NUL.
22823         * string/bug-strncat1.c: Include <libc-diag.h>.
22824         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22826 2017-11-13  Claude Paroz  <claude@2xlibre.net>
22828         [BZ #22387]
22829         * localedata/locales/aa_DJ: Improved readibility by replacing
22830         <Uxxxx> sequences in the ASCII printable range by their ASCII
22831         character equivalents.
22832         * localedata/locales/aa_ER: Likewise.
22833         * localedata/locales/aa_ER@saaho: Likewise.
22834         * localedata/locales/aa_ET: Likewise.
22835         * localedata/locales/af_ZA: Likewise.
22836         * localedata/locales/agr_PE: Likewise.
22837         * localedata/locales/ak_GH: Likewise.
22838         * localedata/locales/am_ET: Likewise.
22839         * localedata/locales/anp_IN: Likewise.
22840         * localedata/locales/ar_AE: Likewise.
22841         * localedata/locales/ar_BH: Likewise.
22842         * localedata/locales/ar_DZ: Likewise.
22843         * localedata/locales/ar_EG: Likewise.
22844         * localedata/locales/ar_IN: Likewise.
22845         * localedata/locales/ar_IQ: Likewise.
22846         * localedata/locales/ar_JO: Likewise.
22847         * localedata/locales/ar_KW: Likewise.
22848         * localedata/locales/ar_LB: Likewise.
22849         * localedata/locales/ar_LY: Likewise.
22850         * localedata/locales/ar_MA: Likewise.
22851         * localedata/locales/ar_OM: Likewise.
22852         * localedata/locales/ar_QA: Likewise.
22853         * localedata/locales/ar_SA: Likewise.
22854         * localedata/locales/ar_SD: Likewise.
22855         * localedata/locales/ar_SS: Likewise.
22856         * localedata/locales/ar_SY: Likewise.
22857         * localedata/locales/ar_TN: Likewise.
22858         * localedata/locales/ar_YE: Likewise.
22859         * localedata/locales/as_IN: Likewise.
22860         * localedata/locales/ast_ES: Likewise.
22861         * localedata/locales/ayc_PE: Likewise.
22862         * localedata/locales/az_AZ: Likewise.
22863         * localedata/locales/az_IR: Likewise.
22864         * localedata/locales/be_BY: Likewise.
22865         * localedata/locales/be_BY@latin: Likewise.
22866         * localedata/locales/bem_ZM: Likewise.
22867         * localedata/locales/ber_DZ: Likewise.
22868         * localedata/locales/ber_MA: Likewise.
22869         * localedata/locales/bg_BG: Likewise.
22870         * localedata/locales/bhb_IN: Likewise.
22871         * localedata/locales/bho_IN: Likewise.
22872         * localedata/locales/bi_VU: Likewise.
22873         * localedata/locales/bn_BD: Likewise.
22874         * localedata/locales/bn_IN: Likewise.
22875         * localedata/locales/bo_CN: Likewise.
22876         * localedata/locales/bo_IN: Likewise.
22877         * localedata/locales/br_FR: Likewise.
22878         * localedata/locales/brx_IN: Likewise.
22879         * localedata/locales/bs_BA: Likewise.
22880         * localedata/locales/byn_ER: Likewise.
22881         * localedata/locales/ca_AD: Likewise.
22882         * localedata/locales/ca_ES: Likewise.
22883         * localedata/locales/ca_FR: Likewise.
22884         * localedata/locales/ca_IT: Likewise.
22885         * localedata/locales/ce_RU: Likewise.
22886         * localedata/locales/chr_US: Likewise.
22887         * localedata/locales/cmn_TW: Likewise.
22888         * localedata/locales/crh_UA: Likewise.
22889         * localedata/locales/cs_CZ: Likewise.
22890         * localedata/locales/csb_PL: Likewise.
22891         * localedata/locales/cv_RU: Likewise.
22892         * localedata/locales/cy_GB: Likewise.
22893         * localedata/locales/da_DK: Likewise.
22894         * localedata/locales/de_AT: Likewise.
22895         * localedata/locales/de_BE: Likewise.
22896         * localedata/locales/de_CH: Likewise.
22897         * localedata/locales/de_DE: Likewise.
22898         * localedata/locales/de_IT: Likewise.
22899         * localedata/locales/de_LI: Likewise.
22900         * localedata/locales/de_LU: Likewise.
22901         * localedata/locales/doi_IN: Likewise.
22902         * localedata/locales/dv_MV: Likewise.
22903         * localedata/locales/dz_BT: Likewise.
22904         * localedata/locales/el_CY: Likewise.
22905         * localedata/locales/el_GR: Likewise.
22906         * localedata/locales/en_AG: Likewise.
22907         * localedata/locales/en_AU: Likewise.
22908         * localedata/locales/en_BW: Likewise.
22909         * localedata/locales/en_CA: Likewise.
22910         * localedata/locales/en_DK: Likewise.
22911         * localedata/locales/en_GB: Likewise.
22912         * localedata/locales/en_HK: Likewise.
22913         * localedata/locales/en_IE: Likewise.
22914         * localedata/locales/en_IL: Likewise.
22915         * localedata/locales/en_IN: Likewise.
22916         * localedata/locales/en_NG: Likewise.
22917         * localedata/locales/en_NZ: Likewise.
22918         * localedata/locales/en_PH: Likewise.
22919         * localedata/locales/en_SG: Likewise.
22920         * localedata/locales/en_US: Likewise.
22921         * localedata/locales/en_ZA: Likewise.
22922         * localedata/locales/en_ZM: Likewise.
22923         * localedata/locales/en_ZW: Likewise.
22924         * localedata/locales/eo: Likewise.
22925         * localedata/locales/es_AR: Likewise.
22926         * localedata/locales/es_BO: Likewise.
22927         * localedata/locales/es_CL: Likewise.
22928         * localedata/locales/es_CO: Likewise.
22929         * localedata/locales/es_CR: Likewise.
22930         * localedata/locales/es_CU: Likewise.
22931         * localedata/locales/es_DO: Likewise.
22932         * localedata/locales/es_EC: Likewise.
22933         * localedata/locales/es_ES: Likewise.
22934         * localedata/locales/es_GT: Likewise.
22935         * localedata/locales/es_HN: Likewise.
22936         * localedata/locales/es_MX: Likewise.
22937         * localedata/locales/es_NI: Likewise.
22938         * localedata/locales/es_PA: Likewise.
22939         * localedata/locales/es_PE: Likewise.
22940         * localedata/locales/es_PR: Likewise.
22941         * localedata/locales/es_PY: Likewise.
22942         * localedata/locales/es_SV: Likewise.
22943         * localedata/locales/es_US: Likewise.
22944         * localedata/locales/es_UY: Likewise.
22945         * localedata/locales/es_VE: Likewise.
22946         * localedata/locales/et_EE: Likewise.
22947         * localedata/locales/eu_ES: Likewise.
22948         * localedata/locales/eu_ES@euro: Likewise.
22949         * localedata/locales/fa_IR: Likewise.
22950         * localedata/locales/ff_SN: Likewise.
22951         * localedata/locales/fi_FI: Likewise.
22952         * localedata/locales/fil_PH: Likewise.
22953         * localedata/locales/fo_FO: Likewise.
22954         * localedata/locales/fr_BE: Likewise.
22955         * localedata/locales/fr_CA: Likewise.
22956         * localedata/locales/fr_CH: Likewise.
22957         * localedata/locales/fr_FR: Likewise.
22958         * localedata/locales/fr_LU: Likewise.
22959         * localedata/locales/fur_IT: Likewise.
22960         * localedata/locales/fy_DE: Likewise.
22961         * localedata/locales/fy_NL: Likewise.
22962         * localedata/locales/ga_IE: Likewise.
22963         * localedata/locales/gd_GB: Likewise.
22964         * localedata/locales/gez_ER: Likewise.
22965         * localedata/locales/gez_ET: Likewise.
22966         * localedata/locales/gl_ES: Likewise.
22967         * localedata/locales/gu_IN: Likewise.
22968         * localedata/locales/gv_GB: Likewise.
22969         * localedata/locales/ha_NG: Likewise.
22970         * localedata/locales/hak_TW: Likewise.
22971         * localedata/locales/he_IL: Likewise.
22972         * localedata/locales/hi_IN: Likewise.
22973         * localedata/locales/hif_FJ: Likewise.
22974         * localedata/locales/hne_IN: Likewise.
22975         * localedata/locales/hr_HR: Likewise.
22976         * localedata/locales/hsb_DE: Likewise.
22977         * localedata/locales/ht_HT: Likewise.
22978         * localedata/locales/hu_HU: Likewise.
22979         * localedata/locales/hy_AM: Likewise.
22980         * localedata/locales/i18n: Likewise.
22981         * localedata/locales/ia_FR: Likewise.
22982         * localedata/locales/id_ID: Likewise.
22983         * localedata/locales/ig_NG: Likewise.
22984         * localedata/locales/ik_CA: Likewise.
22985         * localedata/locales/is_IS: Likewise.
22986         * localedata/locales/it_CH: Likewise.
22987         * localedata/locales/it_IT: Likewise.
22988         * localedata/locales/iu_CA: Likewise.
22989         * localedata/locales/ja_JP: Likewise.
22990         * localedata/locales/ka_GE: Likewise.
22991         * localedata/locales/kk_KZ: Likewise.
22992         * localedata/locales/kl_GL: Likewise.
22993         * localedata/locales/kn_IN: Likewise.
22994         * localedata/locales/ko_KR: Likewise.
22995         * localedata/locales/kok_IN: Likewise.
22996         * localedata/locales/ks_IN: Likewise.
22997         * localedata/locales/ks_IN@devanagari: Likewise.
22998         * localedata/locales/ku_TR: Likewise.
22999         * localedata/locales/kw_GB: Likewise.
23000         * localedata/locales/ky_KG: Likewise.
23001         * localedata/locales/lb_LU: Likewise.
23002         * localedata/locales/lg_UG: Likewise.
23003         * localedata/locales/li_BE: Likewise.
23004         * localedata/locales/li_NL: Likewise.
23005         * localedata/locales/lij_IT: Likewise.
23006         * localedata/locales/ln_CD: Likewise.
23007         * localedata/locales/lo_LA: Likewise.
23008         * localedata/locales/lt_LT: Likewise.
23009         * localedata/locales/lv_LV: Likewise.
23010         * localedata/locales/lzh_TW: Likewise.
23011         * localedata/locales/mag_IN: Likewise.
23012         * localedata/locales/mai_IN: Likewise.
23013         * localedata/locales/mg_MG: Likewise.
23014         * localedata/locales/mhr_RU: Likewise.
23015         * localedata/locales/mi_NZ: Likewise.
23016         * localedata/locales/mk_MK: Likewise.
23017         * localedata/locales/ml_IN: Likewise.
23018         * localedata/locales/mn_MN: Likewise.
23019         * localedata/locales/mni_IN: Likewise.
23020         * localedata/locales/mr_IN: Likewise.
23021         * localedata/locales/ms_MY: Likewise.
23022         * localedata/locales/mt_MT: Likewise.
23023         * localedata/locales/my_MM: Likewise.
23024         * localedata/locales/nan_TW: Likewise.
23025         * localedata/locales/nan_TW@latin: Likewise.
23026         * localedata/locales/nb_NO: Likewise.
23027         * localedata/locales/nds_DE: Likewise.
23028         * localedata/locales/nds_NL: Likewise.
23029         * localedata/locales/ne_NP: Likewise.
23030         * localedata/locales/nhn_MX: Likewise.
23031         * localedata/locales/niu_NU: Likewise.
23032         * localedata/locales/niu_NZ: Likewise.
23033         * localedata/locales/nl_AW: Likewise.
23034         * localedata/locales/nl_BE: Likewise.
23035         * localedata/locales/nl_NL: Likewise.
23036         * localedata/locales/nn_NO: Likewise.
23037         * localedata/locales/nr_ZA: Likewise.
23038         * localedata/locales/nso_ZA: Likewise.
23039         * localedata/locales/oc_FR: Likewise.
23040         * localedata/locales/om_ET: Likewise.
23041         * localedata/locales/om_KE: Likewise.
23042         * localedata/locales/or_IN: Likewise.
23043         * localedata/locales/os_RU: Likewise.
23044         * localedata/locales/pa_IN: Likewise.
23045         * localedata/locales/pa_PK: Likewise.
23046         * localedata/locales/pap_AW: Likewise.
23047         * localedata/locales/pap_CW: Likewise.
23048         * localedata/locales/pl_PL: Likewise.
23049         * localedata/locales/ps_AF: Likewise.
23050         * localedata/locales/pt_BR: Likewise.
23051         * localedata/locales/pt_PT: Likewise.
23052         * localedata/locales/quz_PE: Likewise.
23053         * localedata/locales/raj_IN: Likewise.
23054         * localedata/locales/ro_RO: Likewise.
23055         * localedata/locales/ru_RU: Likewise.
23056         * localedata/locales/ru_UA: Likewise.
23057         * localedata/locales/rw_RW: Likewise.
23058         * localedata/locales/sa_IN: Likewise.
23059         * localedata/locales/sat_IN: Likewise.
23060         * localedata/locales/sc_IT: Likewise.
23061         * localedata/locales/sd_IN: Likewise.
23062         * localedata/locales/sd_IN@devanagari: Likewise.
23063         * localedata/locales/se_NO: Likewise.
23064         * localedata/locales/sgs_LT: Likewise.
23065         * localedata/locales/shs_CA: Likewise.
23066         * localedata/locales/si_LK: Likewise.
23067         * localedata/locales/sid_ET: Likewise.
23068         * localedata/locales/sk_SK: Likewise.
23069         * localedata/locales/sl_SI: Likewise.
23070         * localedata/locales/sm_WS: Likewise.
23071         * localedata/locales/so_DJ: Likewise.
23072         * localedata/locales/so_ET: Likewise.
23073         * localedata/locales/so_KE: Likewise.
23074         * localedata/locales/so_SO: Likewise.
23075         * localedata/locales/sq_AL: Likewise.
23076         * localedata/locales/sq_MK: Likewise.
23077         * localedata/locales/sr_ME: Likewise.
23078         * localedata/locales/sr_RS: Likewise.
23079         * localedata/locales/sr_RS@latin: Likewise.
23080         * localedata/locales/ss_ZA: Likewise.
23081         * localedata/locales/st_ZA: Likewise.
23082         * localedata/locales/sv_FI: Likewise.
23083         * localedata/locales/sv_SE: Likewise.
23084         * localedata/locales/sw_KE: Likewise.
23085         * localedata/locales/sw_TZ: Likewise.
23086         * localedata/locales/szl_PL: Likewise.
23087         * localedata/locales/ta_IN: Likewise.
23088         * localedata/locales/ta_LK: Likewise.
23089         * localedata/locales/tcy_IN: Likewise.
23090         * localedata/locales/te_IN: Likewise.
23091         * localedata/locales/tg_TJ: Likewise.
23092         * localedata/locales/th_TH: Likewise.
23093         * localedata/locales/the_NP: Likewise.
23094         * localedata/locales/ti_ER: Likewise.
23095         * localedata/locales/ti_ET: Likewise.
23096         * localedata/locales/tig_ER: Likewise.
23097         * localedata/locales/tk_TM: Likewise.
23098         * localedata/locales/tl_PH: Likewise.
23099         * localedata/locales/tn_ZA: Likewise.
23100         * localedata/locales/to_TO: Likewise.
23101         * localedata/locales/tpi_PG: Likewise.
23102         * localedata/locales/tr_CY: Likewise.
23103         * localedata/locales/tr_TR: Likewise.
23104         * localedata/locales/ts_ZA: Likewise.
23105         * localedata/locales/tt_RU: Likewise.
23106         * localedata/locales/tt_RU@iqtelif: Likewise.
23107         * localedata/locales/ug_CN: Likewise.
23108         * localedata/locales/uk_UA: Likewise.
23109         * localedata/locales/unm_US: Likewise.
23110         * localedata/locales/ur_IN: Likewise.
23111         * localedata/locales/ur_PK: Likewise.
23112         * localedata/locales/uz_UZ: Likewise.
23113         * localedata/locales/uz_UZ@cyrillic: Likewise.
23114         * localedata/locales/ve_ZA: Likewise.
23115         * localedata/locales/vi_VN: Likewise.
23116         * localedata/locales/wa_BE: Likewise.
23117         * localedata/locales/wae_CH: Likewise.
23118         * localedata/locales/wal_ET: Likewise.
23119         * localedata/locales/wo_SN: Likewise.
23120         * localedata/locales/xh_ZA: Likewise.
23121         * localedata/locales/yi_US: Likewise.
23122         * localedata/locales/yo_NG: Likewise.
23123         * localedata/locales/yue_HK: Likewise.
23124         * localedata/locales/yuw_PG: Likewise.
23125         * localedata/locales/zh_CN: Likewise.
23126         * localedata/locales/zh_HK: Likewise.
23127         * localedata/locales/zh_SG: Likewise.
23128         * localedata/locales/zh_TW: Likewise.
23129         * localedata/locales/zu_ZA: Likewise.
23131 2017-11-13  Florian Weimer  <fweimer@redhat.com>
23133         * support/next_to_fault.h, support/next_to_fault.c: New files.
23134         * support/Makefile (libsupport-routines): Add next_to_fault.
23135         * resolv/tst-inet_pton.c (struct next_to_fault)
23136         (next_to_fault_allocate, next_to_fault_free): Remove.
23137         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23139 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
23141         * elf/dl-support.c: Include <dl-procruntime.c>.
23142         * include/link.h: Include <link_map.h>.
23143         * sysdeps/generic/dl-procruntime.c: New file.
23144         * sysdeps/generic/link_map.h: Likewise.
23145         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23146         the writable ld.so namespace.
23148 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23150         timezone: pacify GCC -Wstringop-truncation
23151         Problem reported by Martin Sebor in:
23152         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23153         * timezone/zic.c (writezone): Use memcpy, not strncpy.
23155 2017-11-12  Florian Weimer  <fweimer@redhat.com>
23157         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23158         tst-xreadlink.
23159         (tests): Add tst-xreadlink.
23160         * support/support.h (xstrndup): Declare.
23161         * support/xunistd.h (xunlink, xreadlink): Declare.
23162         * support/temp_file.h (support_create_temp_directory): Declare.
23163         * support/temp_file.c (support_create_temp_directory): New function.
23164         * support/support_chroot.c (support_chroot_create): Use it.
23165         * support/xreadlink.c: New file.
23166         * support/xstrndup.c: Likewise.
23167         * support/xunlink.c: Likewise.
23168         * support/tst-xreadlink.c: Likewise.
23170 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
23172         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23174 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23176         [BZ #22409]
23177         [BZ #22412]
23178         * resolv/res_comp.c (printable_string, binary_hnok)
23179         (binary_leading_dash): New functions.
23180         (res_hnok): Reimplement using these functions and ns_name_pton.
23181         (res_ownok): Likewise.
23182         (res_mailok): Reimplement using printable_string, ns_name_pton and
23183         binary_hnok.
23184         (res_dnok): Reimplement using printable_string and ns_name_pton.
23185         * resolv/tst-res_hnok.c (tests): Add additional tests.
23186         (LETTERDIGITS, PRINTABLE): Define.
23187         (do_test): Adjust one_char results.
23189 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23191         [BZ #22413]
23192         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23193         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23195 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23197         * resolv/tst-ns_name_pton.c: New file.
23198         * resolv/Makefile (tests): Add tst-ns_name_pton.
23199         (tst-ns_name_pton): Link against libresolv.
23201 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23203         * resolv/tst-res_hnok.c: New file.
23204         * resolv/Makefile (tests): Add tst-res_hnok.
23205         (tst-res_hnok): Link against libresolv.
23207 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23209         * resolv/tst-resolv-network.c: Use test framework instead explicit
23210         main function.
23212 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
23214         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23215         <jmp_buf-macros.h>.
23216         [!_ISOMAC] (STR_HELPER): New.
23217         [!_ISOMAC] (STR): Likewise.
23218         [!_ISOMAC] (TEST_SIZE): Likewise.
23219         [!_ISOMAC] (TEST_ALIGN): Likewise.
23220         [!_ISOMAC] (TEST_OFFSET): Likewise.
23221         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23222         field offsets of jmp_buf as well as sigjmp_buf.
23223         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23224         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23225         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23226         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23227         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23228         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23229         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23230         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23231         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23232         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23233         Likewise.
23234         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23235         Likewise.
23236         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23238         Likewise.
23239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23240         Likewise.
23241         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23242         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23243         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23244         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23245         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23246         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23247         Likewise.
23248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23249         Likewise.
23250         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23251         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23252         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23254 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
23256         * include/float.h
23257         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23258         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23259         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23260         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23261         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23262         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23263         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23264         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23265         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23266         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23267         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23268         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23269         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23270         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23271         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23272         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23273         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23274         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23275         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23276         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23277         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23278         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23279         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23280         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23281         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23282         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23283         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23284         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23285         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23286         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23287         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23288         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23289         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23290         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23291         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23292         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23293         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23294         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23295         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23296         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23297         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23298         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23299         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23300         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23301         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23302         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23303         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23304         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23305         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23306         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23307         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23308         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23309         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23310         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23311         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23312         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23313         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23314         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23315         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23316         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23317         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23318         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23319         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23320         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23321         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23322         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23323         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23324         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23325         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23326         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23327         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23328         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23329         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23330         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23331         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23332         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23333         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23334         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23335         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23336         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23337         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23338         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23339         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23340         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23341         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23342         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23343         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23344         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23346         * stdlib/tst-strtod.h (F16): New macro.
23347         (F32): Likewise.
23348         (F64): Likewise.
23349         (F32X): Likewise.
23350         (F64X): Likewise.
23351         (F128X): Likewise.
23352         (IF_FLOAT16): Likewise.
23353         (IF_FLOAT32): Likewise.
23354         (IF_FLOAT64): Likewise.
23355         (IF_FLOAT32X): Likewise.
23356         (IF_FLOAT64X): Likewise.
23357         (IF_FLOAT128X): Likewise.
23358         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23359         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23360         (STRTOD_TEST_FOREACH): Likewise.
23361         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23362         (CHOOSE_f64): Likewise.
23363         (CHOOSE_f32x): Likewise.
23364         (CHOOSE_f64x): Likewise.
23366 2017-11-07  Andreas Schwab  <schwab@suse.de>
23368         * nptl/Makefile (tests-internal): Remove tst-typesizes.
23370 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
23372         [BZ #22403]
23373         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23374         to be escaped.
23375         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23376         to be escaped.
23378 2017-11-07  Claude Paroz  <claude@2xlibre.net>
23380         [BZ #22403]
23381         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23382         to be escaped.
23383         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23384         to be escaped.
23385         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23386         to be escaped.
23388 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23390         [BZ #22298]
23391         * nptl/allocatestack.c (allocate_stack): Check if
23392         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23393         __PTHREAD_MUTEX_HAVE_PREV is defined.
23394         * nptl/descr.h (pthread): Likewise.
23395         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23396         Likewise.
23397         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23398         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23399         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23400         * sysdeps/nptl/bits/thread-shared-types.h
23401         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23402         defines.
23403         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23404         of __WORDSIZE for internal layout.
23405         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23406         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23407         instead of __WORDSIZE whether to use an union for __spins and __list
23408         fields.
23409         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23410         case.
23411         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23412         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23413         defines.
23414         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23415         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23416         Likewise.
23417         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23418         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23419         Likewise.
23420         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23421         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23422         Likewise.
23423         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23424         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23425         Likewise.
23426         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23427         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23428         Likewise.
23429         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23430         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23431         Likewise.
23432         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23433         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23434         Likewise.
23435         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23436         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23437         Likewise.
23438         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23439         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23440         Likewise.
23441         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23442         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23443         Likewise.
23444         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23445         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23446         Likewise.
23447         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23448         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23449         Likewise.
23450         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23451         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23452         Likewise.
23453         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23454         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23455         Likewise.
23457         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23458         New macros.
23459         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23460         checks for expected input type size.
23461         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23462         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23463         Likewise.
23464         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23465         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23466         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23467         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23468         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23469         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23470         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23471         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23472         superflous runtime assert check.
23473         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23474         Likewise.
23475         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23476         Likewise.
23477         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23478         Likewise.
23479         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23480         Likewise.
23481         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23482         Likewise.
23483         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23484         Likewise.
23485         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23486         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23487         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23488         Likewise.
23489         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23490         Likewise.
23491         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23492         Likewise.
23493         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23494         Likewise.
23495         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23496         Likewise.
23497         * nptl/pthread_attr_setinheritsched.c
23498         (__pthread_attr_setinheritsched): Likewise.
23499         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23500         Likewise.
23501         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23502         Likewise.
23503         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23504         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23505         __old_pthread_attr_setstack): Likewise.
23506         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23507         Likewise.
23508         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23509         Likewise.
23510         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23511         Likewise.
23512         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23513         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23514         Likewise.
23515         * nptl/tst-typesizes.c: Remove file.
23517         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23518         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23519         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23520         checks for internal pthread_mutex_t offsets.
23521         * sysdeps/aarch64/nptl/pthread-offsets.h
23522         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23523         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23524         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23525         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23526         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23527         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23528         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23529         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23530         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23531         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23532         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23533         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23534         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23535         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23536         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23537         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23538         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23539         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23541 2017-11-07  Florian Weimer  <fweimer@redhat.com>
23543         * bits/mman-linux.h: Move ...
23544         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
23545         comment.
23546         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23547         outdated comment.
23549 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23551         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23552         Redefine STRNLEN as __strnlen_power8.
23554 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23556         * signal/sighold.c (sighold): Optimize implementation.
23558         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23559         __NR_rt_sigqueueinfo.
23561         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23562         __sigtimedwait.
23563         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23564         assume __NR_rt_sigtimedwait.
23565         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23566         and add LIBC_CANCEL_HANDLED for cancellation marking.
23567         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23569         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23570         (sysdeps_routines): Add memchr_noneon.
23571         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23572         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23573         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23574         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23575         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23576         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23577         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23579         * sysdeps/arm/arm-ifunc.h: New file.
23580         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23581         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23582         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23583         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23584         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23585         (__memcpy_neon): Avoid create hidden alias.
23586         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23587         (__memcpy_vfp): Likewise.
23588         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23589         (sysdep_routines): Add memcpy_arm.
23590         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23592 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
23594         [BZ #22362]
23595         * Makerules (make-link-multidir): New.
23596         * config.make.in (multidir): New.
23597         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
23598         * configure: Regenerated.
23599         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23600         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23601         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23602         New target.
23604 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
23606         [BZ #22402]
23607         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23608         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23610 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
23612         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23613         to be escaped.
23615 2017-11-04  Florian Weimer  <fweimer@redhat.com>
23617         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23619 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
23621         * math/math.h [__HAVE_DISTINCT_FLOAT16
23622         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23623         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23624         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23625         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23626         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23627         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23628         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23629         (__MATH_TG_F32): New macro.
23630         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23631         (__MATH_TG_F64X): Likewise.
23632         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23633         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23635 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
23637         * po/de.po: Update translations.
23638         * po/ru.po: Likewise.
23640 2017-11-03  Florian Weimer  <fweimer@redhat.com>
23642         * manual/filesys.texi (Hard Links): Document linkat.
23644 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
23646         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23647         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23648         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23649         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23650         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23651         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23652         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23653         the same as _Float128.
23654         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23655         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23656         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23658         * stdlib/stdlib.h
23659         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23660         Declare.
23661         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23662         Likewise.
23663         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23664         Likewise.
23665         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23666         (strtof32x): Likewise.
23667         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23668         (strtof64x): Likewise.
23669         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23670         (strtof128x): Likewise.
23671         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23672         (strfromf16): Likewise.
23673         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23674         (strfromf32): Likewise.
23675         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23676         (strfromf64): Likewise.
23677         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23678         (strfromf32x): Likewise.
23679         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23680         (strfromf64x): Likewise.
23681         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23682         (strfromf128x): Likewise.
23683         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23684         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23685         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23686         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23687         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23688         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23690 2017-11-03  Richard Henderson  <rth@twiddle.net>
23692         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23694 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23696         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23698 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23700         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23701         DT_TLSDESC_GOT initialization.
23702         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23703         (_dl_tlsdesc_resolve_hold): Likewise.
23704         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23705         (_dl_tlsdesc_resolve_hold): Likewise.
23706         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23707         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23709 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23711         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23713 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23715         [BZ #18572]
23716         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23717         non-lazily for R_ARM_TLS_DESC.
23719 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23721         [BZ #17078]
23722         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23723         R_ARM_TLS_DESC case.
23724         (elf_machine_lazy_rel): Remove the prelink check.
23726 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23728         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23729         DT_TLSDESC_GOT initialization.
23730         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23731         (_dl_tlsdesc_resolve_rela): Likewise.
23732         (_dl_tlsdesc_resolve_hold): Likewise.
23733         (_dl_tlsdesc_undefweak): Remove ldar.
23734         (_dl_tlsdesc_dynamic): Likewise.
23735         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23736         (_dl_tlsdesc_resolve_rela): Likewise.
23737         (_dl_tlsdesc_resolve_hold): Likewise.
23738         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23739         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23740         (_dl_tlsdesc_resolve_rela): Likewise.
23741         (_dl_tlsdesc_resolve_hold): Likewise.
23743 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23745         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23746         binding and initialization non-lazily for R_AARCH64_TLSDESC.
23748 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23750         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23751         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23753 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
23755         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23756         Declare.
23757         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23758         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23759         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23760         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23761         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23762         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23763         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23764         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23765         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23766         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23767         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23769 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
23771         [BZ #22382]
23772         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23773         * localedata/locales/tpi_PG: Add standard header.
23775 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23777         test-errno-linux: quotactl can fail with EPERM in containers.
23778         * sysdeps/unix/sysv/linux/test-errno-linux.c
23779         (LIST, LIST_FORWARD): New macros.
23780         (check_error_in_list): New function.
23781         (test_wrp_rv): Accept list of permitted error codes.
23782         (test_wrp_rv2): Remove.
23783         (test_wrp): Call test_wrp_rv with list of error codes.
23784         (test_wrp2): Accept list of error codes.
23785         (do_test): Adjust.  Allow EPERM for quotactl.
23787 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23789         * stdio-common/bug16.c (do_test): Use array_length.
23790         * stdio-common/errlist.c (_sys_nerr): Likewise.
23791         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23792         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23793         * stdio-common/psiginfo.c (psiginfo): Use array_length.
23794         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23795         (do_test): Use array_length.
23796         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23797         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23798         * stdio-common/tst-printf-round.c (do_test): Likewise.
23799         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23800         (CHECK): Use array_length.
23801         * stdio-common/tstdiomisc.c (t3, F): Likewise.
23802         * stdio-common/tstscanf.c (main): Likewise.
23803         * stdio-common/vfprintf.c (process_string_arg): Likewise.
23805 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23807         Add array_length and array_end macros.
23808         * include/array_length.h: New file.
23810 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23812         [BZ #22332]
23813         * posix/tst-glob-tilde.c (do_noescape): New variable.
23814         (one_test): Process it.
23815         (do_test): Set do_noescape.  Add unescaping test case.
23817 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
23819         * math/complex.h
23820         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23821         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23822         with appropriate macros defined and undefined.
23823         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23824         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23825         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23826         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23827         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23828         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23829         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23830         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23831         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23832         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23834         * math/complex.h
23835         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23836         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23837         that for long double.  Do not condition define and undefine of
23838         _Mdouble_complex_ on [__CFLOAT128].
23840 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
23842         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23843         of <sysdeps/generic/sysdep.h>.
23844         (ALIGNARG): Removed.
23845         (ASM_SIZE_DIRECTIVE): Likewise.
23846         (ENTRY): Likewise.
23847         (END): Likewise.
23848         (ENTRY_CHK): Likewise.
23849         (END_CHK): Likewise.
23850         (syscall_error): Likewise.
23851         (mcount): Likewise.
23852         (PSEUDO_END): Likewise.
23853         (L): Likewise.
23854         (atom_text_section): Likewise.
23855         * sysdeps/x86/sysdep.h: New file.
23856         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23857         of <sysdeps/generic/sysdep.h>.
23858         (ALIGNARG): Removed.
23859         (ASM_SIZE_DIRECTIVE): Likewise.
23860         (ENTRY): Likewise.
23861         (END): Likewise.
23862         (ENTRY_CHK): Likewise.
23863         (END_CHK): Likewise.
23864         (syscall_error): Likewise.
23865         (mcount): Likewise.
23866         (PSEUDO_END): Likewise.
23867         (L): Likewise.
23868         (atom_text_section): Likewise.
23870 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
23872         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23873         category of LC_CTYPE set to "i18n:2012".
23874         * localedata/locales/i18n_ctype: Regenerate.
23876 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
23878         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23879         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23880         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23881         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23883         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23884         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23885         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23886         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23888 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
23890         * math/complex.h
23891         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23892         New macro.
23893         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23894         Likewise.
23895         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23896         Likewise.
23897         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23898         (CMPLXF32X): Likewise.
23899         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23900         (CMPLXF64X): Likewise.
23901         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23902         (CMPLXF128X): Likewise.
23904         * math/math.h
23905         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23906         (__MATH_EVAL_FMT2): Define to add 0.0f.
23908 2017-10-31  Alan Modra  <amodra@gmail.com>
23910         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23911         include sysdep.h.
23912         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23914         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23916         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23923         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23925         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23926         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23927         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23928         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23929         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23930         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23931         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23932         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23933         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23934         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23935         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23936         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23937         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23938         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23939         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23940         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23941         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23942         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23943         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23944         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23945         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23946         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23947         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23948         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23949         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23950         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23951         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23952         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23953         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23954         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23955         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23956         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23957         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23958         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23959         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23960         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23961         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23962         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23963         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23964         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23965         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23966         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23967         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23968         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23969         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23970         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23971         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23972         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23973         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23974         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23975         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23976         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23977         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23978         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23979         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23980         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23982         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23983         include sysdep.h and math_ldbl_opt.h.
23985         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23986         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
23987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23988         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23990         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23992         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23993         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23994         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23995         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23997         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23999         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24002         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24004         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24005         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24006         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24009         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24012 2017-10-31  Alan Modra  <amodra@gmail.com>
24014         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24015         string/strncase_l.c, not string/strncase.c.
24016         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24017         (libc_hidden_def): Redefine.
24019 2017-10-31  Alan Modra  <amodra@gmail.com>
24021         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24022         (__STRCMP, STRCMP, __strcasecmp_l): Define.
24023         (__strcasecmp): Don't define.
24025 2017-10-31  Alan Modra  <amodra@gmail.com>
24027         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24028         IS_IN (libc).
24029         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24030         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24031         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24033 2017-10-31  Alan Modra  <amodra@gmail.com>
24035         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24036         USE_AS_STPNCPY.
24038 2017-10-31  Alan Modra  <amodra@gmail.com>
24040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24041         Redefine only when SHARED.
24043 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
24045         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24046         Include <bits/math-finite.h> with appropriate macros defined and
24047         undefined.
24048         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24049         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24050         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24051         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24052         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24054         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24055         [!_Mlong_double_] (_Mlong_double_): Likewise.
24056         [!_Mfloat16_] (_Mfloat16_): Likewise.
24057         [!_Mfloat32_] (_Mfloat32_): Likewise.
24058         [!_Mfloat64_] (_Mfloat64_): Likewise.
24059         [!_Mfloat128_] (_Mfloat128_): Likewise.
24060         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24061         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24062         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24063         (_Mdouble_): Define without indirection through those macros.
24064         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24065         [!_Mfloat128_] (_Mfloat128_): Likewise.
24066         [_Mlong_double_] (_Mlong_double_): Likewise.
24067         (_Mdouble_): Define without indirection through those macros.
24068         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24069         not add -D_Mlong_double_=double.
24070         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24071         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24073 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24075         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24077 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24079         * sysdeps/x86/libc-start.c: Reformat.
24081 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24083         [BZ #22353]
24084         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24085         (1): Renamed to ...
24086         (L(Src0)): This.
24087         (L(Src1)): New.
24088         (L(Src2)): Likewise.
24089         (L(1)): Renamed to ...
24090         (L(Src3)): This.
24092 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
24094         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24095         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24096         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24097         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24098         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24099         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24100         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24101         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24102         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24103         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24104         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24105         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24106         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24107         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24108         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24109         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24110         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24111         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24112         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24113         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24114         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24115         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24116         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24117         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24118         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24119         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24120         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24121         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24122         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24123         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24124         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24125         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24126         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24127         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24128         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24129         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24130         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24131         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24132         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24133         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24134         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24135         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24136         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24137         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24138         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24139         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24140         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24141         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24142         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24143         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24144         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24145         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24146         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24147         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24148         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24149         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24150         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24151         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24152         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24153         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24154         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24155         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24156         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24157         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24158         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24159         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24161 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24163         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24164         always defined.
24165         * io/tst-mkdirat.c (do_test): Likewise.
24166         * io/tst-mkfifoat.c (do_test): Likewise.
24167         * io/tst-mknodat.c (do_test): Likewise.
24168         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24169         * locale/programs/locale.c (select_dirs): Likewise.
24170         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24171         * posix/bug-glob2.c (my_readdir): Likewise.
24172         * posix/tst-dir.c (main): Likewise.
24173         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24174         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24176 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24178         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24179         just __USE_GNU.
24181 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24183         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24184         Convert to support/test-driver.c.
24185         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24186         New macro parameters.
24187         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
24188         * posix/tst-gnuglob.c: New file.
24189         * posix/tst-gnuglob64.c: Likewise.
24190         * posix/Makefile (tests): Add tst-gnuglob64.
24192 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
24194         [BZ #19485]
24195         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24196         and use a better translation for March in “mon”.
24197         * localedata/locales/csb_PL: Use more ASCII to improve the
24198         readability of the source.
24200 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
24202         [BZ #13953]
24203         * localedata/locales/km_KH: Use ASCII as much
24204         as possible for better readability of the source and
24205         remove useless comments.
24206         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24207         was commented out and apparently wrong anyway because it was
24208         using Lao characters. If Buddhist era should be used
24209         for km_KH, a native speaker should write the correct formaat
24210         for Khmer.
24211         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24212         (According to CLDR, the first weekday for Cambodia is Sunday).
24213         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24214         (These were using Lao characters which must be wrong. If we get
24215         the correct data from a native speaker, we could add it back, until
24216         then it is better not to have name_mr and name_mrs at all than
24217         having it wrong).
24219 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
24221         * locale/loadlocale.c: Correct size of
24222         _nl_value_type_LC_<category> arrays.
24224 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
24226         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24227         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24228         with appropriate macros defined and undefined.
24229         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24230         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24231         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24232         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24233         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24235 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
24237         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24238         "-O2 -march=i586".
24240 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
24242         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24243         with lowercase letters to make it agree with CLDR.
24245 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
24247         [BZ #15260]
24248         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24249         first letters of yesstr and nostr in yesexpr and noexpr,
24250         not for the full words.
24251         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24252         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24253         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24254         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24255         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24256         first letters of yesstr and nostr in yesexpr and noexpr,
24257         until now only English was matched in yesexpr and noexpr.
24258         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24259         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24260         fil but not for tl. As tl and fil are very similar, using fil
24261         is probably better than using English.
24263 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
24265         [BZ #21706]
24266         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24267         in yesstr and nostr.
24269 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
24271         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24272         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24273         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24274         Likewise.
24275         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24276         Likewise.
24277         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24278         Likewise.
24279         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24280         Likewise.
24281         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24282         (SNANF128X): Likewise.
24284         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24285         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24286         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24287         (HUGE_VAL_F32): Likewise.
24288         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24289         (HUGE_VAL_F64): Likewise.
24290         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24291         (HUGE_VAL_F32X): Likewise.
24292         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24293         (HUGE_VAL_F64X): Likewise.
24294         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24295         (HUGE_VAL_F128X): Likewise.
24297 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
24299         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24300         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24301         for the br_FR locale.
24303 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
24305         [BZ #21706]
24306         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24308 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
24310         * locale/programs/record-status.h: Define globals, and function
24311         prototypes. Move function bodies...
24312         * locale/programs/record-status.c: ... to here. New file.
24313         * iconv/Makefile (iconv_prog-modules): Add record-status.
24314         * locale/Makefile (lib-modules): Likewise.
24315         * iconv/iconv_prog.c: Remove verbose.
24316         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24317         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24318         record a warning about ASCII compatibility.
24319         * locale/programs/ld-monetary.c (monetary_finish): If
24320         warn_int_curr_symbol is true then record a warning about the symbol
24321         not being in our ISO 4217 list.
24322         * locale/programs/locale.c: Include record-status.h. Remove verbose.
24323         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24324         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24325         (OPT_NO_WARN): Define.
24326         (OPT_WARN): Define.
24327         (options): Add entry for --no-warnings, and --warnings.
24328         (set_warnings): New function to enable/disable warnings.
24329         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24330         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24331         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24332         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24333         Pass flags to generate_locale.
24334         (generate_locale): Accept new flag argument and pass it to localedef
24335         invocation.
24336         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24337         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24339         * localedata/Makefile (test-input-data): Use full file name.
24340         * localedata/da_DK.in: Rename to...
24341         * localedata/da_DK.ISO-8859-1.in: ...this.
24342         * localedata/de_DE.in: Rename to...
24343         * localedata/de_DE.ISO-8859-1.in: ...this.
24344         * localedata/en_US.in: Rename to...
24345         * localedata/en_US.ISO-8859-1.in: ...this.
24346         * localedata/fr_FR.in: Rename to...
24347         * localedata/fr_FR.UTF-8.in: ... this.
24348         * localedata/hr_HR.in: Rename to...
24349         * localedata/hr_HR.ISO-8859-2.in: ...this.
24350         * localedata/hu_HU.in: Rename to...
24351         * localedata/hu_HU.UTF-8.in: ...this.
24352         * localedata/si_LK.in: Rename to...
24353         * localedata/si_LK.UTF-8.in: ...this.
24354         * localedata/sv_SE.in: Rename to...
24355         * localedata/sv_SE.ISO-8859-1.in: ...this.
24356         * localedata/tr_TR.in: Rename to...
24357         * localedata/tr_TR.UTF-8.in: ...this.
24358         * localedata/uk_UA.in: Rename to...
24359         * localedata/uk_UA.UTF-8.in: ...this.
24360         * localedata/sort-test.sh: Test file is locale name with the
24361         suffix.
24363         * localedata/unicode-gen/Makefile (check_i18n): Rename to
24364         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24365         file.
24366         * localedata/locales/i18n_ctype: Regenerate.
24367         * localedata/locales/tr_TR: Likewise.
24368         * localedata/locales/translit_circle: Likewise.
24369         * localedata/locales/translit_cjk_compat: Likewise.
24370         * localedata/locales/translit_combining: Likewise.
24371         * localedata/locales/translit_compat: Likewise.
24372         * localedata/locales/translit_font: Likewise.
24373         * localedata/locales/translit_fraction: Likewise.
24375 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24377         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24378         lxvd2x/stxvd2x with lvx/stvx.
24379         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24381 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
24383         * include/alloc_buffer.h: Replace "if if " with "if " in
24384         comments.
24385         * sysdeps/mips/memcpy.S: Likkewise.
24386         * sysdeps/mips/memset.S: Likewise.
24387         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24388         Likewise.
24389         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24390         Likewise.
24391         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24392         Likewise.
24394 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24396         [BZ #15261]
24397         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24398         yesexpr and noexpr.
24399         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24400         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24401         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24402         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24403         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24404         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24405         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24407 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24409         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24410         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24411         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24412         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24413         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24414         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24415         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24416         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24417         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24418         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24419         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24420         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24422 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24424         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24425         as possible for better readability of the source.
24426         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24427         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24428         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24429         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24430         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24431         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24432         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24433         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24434         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24435         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24436         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24437         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24438         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24439         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24440         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24441         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24442         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24443         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24444         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24445         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24446         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24447         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24448         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24449         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24450         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24451         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24452         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24453         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24454         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24455         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24456         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24457         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24458         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24459         * localedata/locales/en_US (LC_MESSAGES): Likewise.
24460         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24461         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24462         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24463         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24464         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24465         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24466         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24467         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24468         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24469         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24470         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24471         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24472         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24473         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24474         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24475         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24476         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24477         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24478         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24479         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24480         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24481         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24482         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24483         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24484         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24485         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24486         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24487         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24488         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24489         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24490         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24491         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24492         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24493         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24494         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24495         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24496         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24497         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24498         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24499         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24500         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24501         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24502         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24503         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24504         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24505         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24506         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24507         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24508         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24509         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24510         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24511         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24512         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24513         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24514         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24515         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24516         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24517         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24518         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24519         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24520         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24521         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24522         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24523         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24524         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24525         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24526         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24527         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24528         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24529         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24530         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24531         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24532         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24533         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24534         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24535         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24536         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24537         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24538         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24539         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24540         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24541         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24542         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24543         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24544         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24545         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24546         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24547         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24548         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24549         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24550         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24551         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24552         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24553         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24554         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24555         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24556         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24557         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24558         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24559         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24560         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24561         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24562         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24563         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24564         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24565         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24566         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24567         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24568         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24569         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24570         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24571         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24572         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24573         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24574         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24575         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24576         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24577         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24578         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24579         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24580         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24581         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24582         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24583         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24584         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24585         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24586         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24587         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24588         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24589         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24590         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24591         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24592         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24593         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24594         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24595         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24596         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24597         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24598         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24599         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24601 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24603         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24604         (Use first letters of yesstr and nostr correctly instead of using
24605         full words).
24607 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24609         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24610         (Use first letters of yesstr and nostr correctly).
24612 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24614         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24615         also check for the first characters of yesstr and nostr.
24616         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24617         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24619 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24621         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24622         also check for Chinese characters.
24624 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24626         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24627         match also for the contents of yesstr and nostr. As the first letter
24628         of yesstr and nostr is equal, checking only for the first letter
24629         is not enough.
24631 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24633         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24634         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
24636 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24638         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24639         of main contributor.
24641 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24643         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24644         instead of using English.
24646 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24648         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24649         by including the first letters of nostr and yesexpr in the regexp.
24650         Also make it more readable by using ASCII where possible.
24652 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24654         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24655         the first letter of nostr in the regexp. It agrees with CLDR now.
24656         Also make it more readable by using ASCII where possible.
24658 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24660         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24661         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24662         these strings contain a U+17D6 (which somewhat looks like a colon)
24663         instead of a real colon to separate the full words for “yes”
24664         and “no” from the single letter responses.
24666 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24668         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24669         it agree with CLDR (include the first letter of yesstr).
24670         Also make it more readable by using ASCII where possible.
24672 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24674         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24675         and improve yesexpr and noexpr. The yesstr and nostr apparently
24676         came from CLDR. And CLDR has a bug there: these strings contain
24677         a U+0903 (which looks like a colon) instead of a real colon
24678         to separate the full words for “yes” and “no” from the single
24679         letter responses.
24681 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24683         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24684         letters of the full yesstr and nostr in yesexpr and noexpr.
24686 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24688         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24689         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24690         * localedata/locales/an_ES: Make source more readable by using ASCII
24691         where possible.
24693 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24695         [BZ #20952]
24696         * localedata/locales/yuw_PG: New file.
24697         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24698         * locale/iso-639.def: Add Yau (Uruwa).
24700 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
24702         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24704 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
24706         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24707         (__libc_realloc): Likewise.
24708         (_mid_memalign): Likewise.
24709         (__libc_calloc): Likewise.
24711 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
24713         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24714         by adding the generic +1 and -0 as in all other locales.
24715         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24716         day names and make it more readable by using ASCII where possible.
24718 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
24720         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24721         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24723 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24725         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24726         WNOHANG in waitpid call.
24728 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24730         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24731         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24733         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24734         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24735         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24736         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24737         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24738         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24739         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24740         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24741         variables.
24743 2017-10-23  Michael Collison  <michael.collison@arm.com>
24745         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24746         with __builtin_sqrt.
24747         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24748         with __builtin_sqrtf.
24749         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24750         with __builtin_ceil.
24751         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24752         with __builtin_ceilf.
24753         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24754         with __builtin_floor.
24755         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24756         with __builtin_floorf.
24757         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24758         with __builtin_fma.
24759         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24760         with __builtin_fmaf.
24761         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24762         with __builtin_fmax.
24763         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24764         with __builtin_fmaxf.
24765         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24766         with __builtin_fmin.
24767         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24768         with __builtin_fminf.
24769         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24770         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24771         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24772         with builtin_rint and conversion to int.
24773         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24774         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24775         with builtin_llround.
24776         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24777         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24778         with builtin_rint and conversion to long int.
24779         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24780         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24781         with builtin_lround.
24782         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24783         with builtin_lroundf.
24784         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24785         statements with __builtin_nearbyint.
24786         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24787         statements with __builtin_nearbyintf.
24788         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24789         with __builtin_rint.
24790         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24791         with __builtin_rintf.
24792         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24793         with __builtin_round.
24794         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24795         with __builtin_roundf.
24796         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24797         with __builtin_trunc.
24798         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24799         with __builtin_truncf.
24800         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24801         and s_l[l]round[f].c too.
24803 2017-10-23  Alan Modra  <amodra@gmail.com>
24805         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24806         Adjust stack after restoring regs.  Add missing LR cfi_restore.
24808 2017-10-23  Alan Modra  <amodra@gmail.com>
24810         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24811         Move LR save and frame setup/teardown and LR restore to
24812         immediately around memset call.  Provide cfi.
24814 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24816         * sysdeps/i386/fpu/e_powf.S: Removed.
24817         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24818         * sysdeps/i386/fpu/w_powf.c: Likewise.
24819         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24820         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24821         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24822         Add e_powf-sse2.
24823         (CFLAGS-e_powf-sse2.c): New.
24824         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24825         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24827 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24829         * sysdeps/i386/fpu/e_log2f.S: Removed.
24830         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24831         * sysdeps/i386/fpu/w_log2f.c: Likewise.
24832         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24833         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24834         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24835         Add e_log2f-sse2.
24836         (CFLAGS-e_log2f-sse2.c): New.
24837         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24838         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24840 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24842         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24843         Add e_powf-fma.
24844         (CFLAGS-e_powf-fma.c): New.
24845         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24846         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24848 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24850         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24851         Add e_log2f-fma.
24852         (CFLAGS-e_log2f-fma.c): New.
24853         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24854         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24856 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24858         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24859         Add e_logf-fma.
24860         (CFLAGS-e_logf-fma.c): New.
24861         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24862         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24864 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24866         * sysdeps/i386/fpu/e_logf.S: Removed.
24867         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24868         * sysdeps/i386/fpu/w_logf.c: Likewise.
24869         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24870         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24871         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24872         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24873         Add e_logf-sse2.
24874         (CFLAGS-e_logf-sse2.c): New.
24875         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24876         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24878 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24880         * sysdeps/i386/fpu/e_exp2f.S: Removed.
24881         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24882         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24883         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24884         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24885         Add e_exp2f-sse2.
24886         (CFLAGS-e_exp2f-sse2.c): New.
24887         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24888         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24890 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24892         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24893         Add e_exp2f-fma.
24894         (CFLAGS-e_exp2f-fma.c): New.
24895         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24896         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24898 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24900         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24901         * sysdeps/i386/fpu/e_expf.S: Likewise.
24902         * sysdeps/i386/fpu/math_errf.c: Likewise.
24903         * sysdeps/i386/fpu/w_expf.c: Likewise.
24904         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24905         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24906         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24907         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24908         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24909         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24910         Remove e_expf-ia32.
24911         (CFLAGS-e_expf-sse2.c): New.
24912         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24913         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24915 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24917         * sysdeps/x86_64/fpu/e_expf.S: Removed.
24918         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24919         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24920         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24921         e_expf.c.
24922         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24923         New.
24924         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24925         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24926         Renamed to ...
24927         (__redirect_expf): This.
24928         (SYMBOL_NAME): Changed to expf.
24929         (__ieee754_expf): Renamed to ...
24930         (__expf): This.
24931         (__GI___expf): This.
24932         (__ieee754_expf): Add strong_alias.
24933         (__expf_finite): Likewise.
24934         (__expf): New.
24935         Include <sysdeps/ieee754/flt-32/e_expf.c>.
24937 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
24939         [BZ #22332]
24940         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24941         unescaping.
24943 2017-10-21  Florian Weimer  <fweimer@redhat.com>
24945         * posix/Makefile (tests): Add tst-glob-tilde.
24946         (tests-special): Add tst-glob-tilde-mem.out
24947         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24948         (tst-glob-tilde-mem.out): Add mtrace check.
24949         * posix/tst-glob-tilde.c: New file.
24951 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
24953         * bits/floatn-common.h: New file.
24954         * math/Makefile (headers): Add bits/floatn-common.h.
24955         * bits/floatn.h: Include <bits/floatn-common.h>.
24956         * sysdeps/ia64/bits/floatn.h: Likewise.
24957         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24958         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24959         * sysdeps/powerpc/bits/floatn.h: Likewise.
24960         * sysdeps/x86/bits/floatn.h: Likewise.
24962 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24964         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24965         indicates whether compiler emits an warning for alias for
24966         functions with incompatible types.
24968         [BZ #22273]
24969         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24970         the auxiliary process is terminated by a signal before calling _exit
24971         or execve.
24973 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
24975         [BZ #21265]
24976         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24977         New.
24978         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24979         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24980         and bit_arch_XSAVEC_Usable if needed.
24981         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24982         and bit_arch_Use_dl_runtime_resolve_opt.
24983         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24984         Removed.
24985         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24986         (bit_arch_Prefer_No_AVX512): Updated.
24987         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24988         (bit_arch_XSAVEC_Usable): New.
24989         (STATE_SAVE_OFFSET): Likewise.
24990         (STATE_SAVE_MASK): Likewise.
24991         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24992         (cpu_features): Add xsave_state_size and xsave_state_full_size.
24993         (index_arch_Use_dl_runtime_resolve_opt): Removed.
24994         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24995         (index_arch_XSAVEC_Usable): New.
24996         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24997         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
24998         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24999         is enabled.
25000         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25001         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25002         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25003         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25004         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25005         _dl_runtime_resolve_xsavec.
25006         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25007         Removed.
25008         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25009         instead of VEC_SIZE.
25010         (REGISTER_SAVE_BND0): Removed.
25011         (REGISTER_SAVE_BND1): Likewise.
25012         (REGISTER_SAVE_BND3): Likewise.
25013         (REGISTER_SAVE_RAX): Always defined to 0.
25014         (VMOV): Removed.
25015         (_dl_runtime_resolve_avx): Likewise.
25016         (_dl_runtime_resolve_avx_slow): Likewise.
25017         (_dl_runtime_resolve_avx_opt): Likewise.
25018         (_dl_runtime_resolve_avx512): Likewise.
25019         (_dl_runtime_resolve_avx512_opt): Likewise.
25020         (_dl_runtime_resolve_sse): Likewise.
25021         (_dl_runtime_resolve_sse_vex): Likewise.
25022         (USE_FXSAVE): New.
25023         (_dl_runtime_resolve_fxsave): Likewise.
25024         (USE_XSAVE): Likewise.
25025         (_dl_runtime_resolve_xsave): Likewise.
25026         (USE_XSAVEC): Likewise.
25027         (_dl_runtime_resolve_xsavec): Likewise.
25028         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25029         Removed.
25030         (_dl_runtime_resolve_avx512_opt): Likewise.
25031         (_dl_runtime_resolve_avx): Likewise.
25032         (_dl_runtime_resolve_avx_opt): Likewise.
25033         (_dl_runtime_resolve_sse): Likewise.
25034         (_dl_runtime_resolve_sse_vex): Likewise.
25035         (_dl_runtime_resolve_fxsave): New.
25036         (_dl_runtime_resolve_xsave): Likewise.
25037         (_dl_runtime_resolve_xsavec): Likewise.
25039 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25041         [BZ #22320]
25042         CVE-2017-15670
25043         * posix/glob.c (__glob): Fix one-byte overflow.
25045 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
25047         * malloc/malloc.c (sysdep-cancel.h): Add include.
25049 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
25051         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25053 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
25055         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25056         (tests): Remove $(objpfx)ga_test depdendency.
25057         * resolv/ga_test.c: Remove file.
25059 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
25061         [BZ #18812]
25062         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25063         * localedata/locales/kab_DZ: New file.
25065 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25067         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25068         _dl_relocate_static_pie instead of _dl_start to compute load
25069         address in static PIE.
25071 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25073         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25075 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
25077         [BZ #13605]
25078         * localedata/SUPPORTED: Add shn_MM/UTF-8.
25079         * localedata/locales/shn_MM: New file.
25081 2017-10-20  Florian Weimer  <fweimer@redhat.com>
25083         [BZ #22321]
25084         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25085         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25086         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25087         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25088         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25089         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25091 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
25093         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25095 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
25097         * sysdeps/mips/ieee754/bits/floatn.h: New file.
25099         [BZ #22322]
25100         * sysdeps/mips/bits/long-double.h: Move to ....
25101         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25103 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
25105         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25107 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
25108             H.J. Lu  <hongjiu.lu@intel.com>
25110         [BZ #22299]
25111         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25112         GLRO(dl_platform) to NULL.
25113         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25114         (modules-names): Add tst-platformmod-1 and
25115         x86_64/tst-platformmod-2.
25116         (CFLAGS-tst-platform-1.c): New.
25117         (CFLAGS-tst-platformmod-1.c): Likewise.
25118         (CFLAGS-tst-platformmod-2.c): Likewise.
25119         (LDFLAGS-tst-platformmod-2.so): Likewise.
25120         ($(objpfx)tst-platform-1): Likewise.
25121         ($(objpfx)tst-platform-1.out): Likewise.
25122         (tst-platform-1-ENV): Likewise.
25123         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25124         * sysdeps/x86_64/tst-platform-1.c: New file.
25125         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25126         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25128 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
25130         [BZ #13994]
25131         * locale/iso-639.def: Add Karbi.
25132         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25133         * localedata/locales/mjw_IN: New file.
25135 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
25137         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25138         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25139         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25140         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25141         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25142         (libm_alias_ldouble_other_r): Also create _Float128 alias.
25143         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25144         <bits/floatn.h>.
25145         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25146         (libm_alias_ldouble_other_r): Also create _Float128 alias.
25147         * manual/math.texi (Mathematics): Document additional architecture
25148         support for _Float128.
25149         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25150         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25151         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25152         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25153         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25154         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25155         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25156         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25157         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25158         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25159         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25160         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25161         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25162         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25163         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25165 2017-10-18  Renlin Li  <renlin.li@arm.com>
25167         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25168         _DYNAMIC symbol to calculate load address.
25170 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
25172         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25173         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25174         summary bits.
25175         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25176         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25178 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
25180         [BZ #16777]
25181         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25182         and improve readability by using more ASCII.
25183         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25184         and improve readability by using more ASCII.
25186 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
25188         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25189         not all targets support atomics on bool.
25191 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
25193         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25194         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25195         __f128.
25196         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25197         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25198         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25199         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25200         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25201         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25203 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25205         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25206         defines.
25208 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25210         [BZ #22159]
25211         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25212         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25213         (do_check_remalloced_chunk): Fix build bug.
25214         (do_check_malloc_state): Add assert that checks arena->top.
25215         (malloc_consolidate): Remove initialization.
25216         (int_mallinfo): Remove call to malloc_consolidate.
25217          (__libc_mallopt): Clarify why malloc_consolidate is needed.
25219 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25221         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25222         (have_fastchunks): Remove.
25223         (clear_fastchunks): Remove.
25224         (set_fastchunks): Remove.
25225         (malloc_state): Add have_fastchunks.
25226         (malloc_init_state): Use have_fastchunks.
25227         (do_check_malloc_state): Remove incorrect invariant checks.
25228         (_int_malloc): Use have_fastchunks.
25229         (_int_free): Likewise.
25230         (malloc_consolidate): Likewise.
25232 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25234         * malloc/malloc.c (tcache_put): Inline.
25235         (tcache_get): Inline.
25237 2017-10-17  Jordi Mallach  <jordi@gnu.org>
25239         Aurelien Jarno  <aurelien@aurel32.net>
25240         [BZ #2522]
25241         * localedata/locales/ca_ES@valencia: New file.
25242         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25244 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
25246         [BZ #22296]
25247         * math/math.h: Let signbit use the builtin in C++ mode with gcc
25248         < 6.x
25250 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25252         * scripts/build-many-glibcs.py (Context.add_all_configs):
25253         Add arm-linux-gnueabihf multiarch extra_glibcs.
25255         * sysdeps/generic/ifunc-init.h: New file.
25256         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25258 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
25260         [BZ #22019]
25261         * localedata/locales/el_GR: Set n_cs_precedes to 0.
25262         * localedata/locales/el_CY: copy "el_GR" because it is identical.
25263         * stdlib/tst-strfmon_l.c: adapt test case.
25265 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
25267         * sysdeps/generic/float128-abi.h: New file.
25268         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25269         non-__prefixed symbols to ....
25270         * math/Versions: ... here.  Include <float128-abi.h>.
25271         * stdlib/Versions ... and here.  Include <float128-abi.h>
25273 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25275         * version.h (VERSION): Switch to ".9000" as the development
25276         version suffix.
25278 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25280         [BZ #22050]
25281         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25282         compat_symbol_reference to access non-default version.
25284 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25286         * malloc/Makefile (others-extras): Set to mcheck-init.o.
25288 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
25290         * include/shlib-compat.h (compat_symbol_reference): Update
25291         comment.
25293 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
25295         * math/Makefile (test-types): Add
25296         $(type-float128-$(float128-alias-fcts)).
25297         * math/test-float128.h (TYPE_STR): Define conditional on
25298         [FLT128_MANT_DIG == LDBL_MANT_DIG].
25299         (ULP_IDX): Likewise.
25300         (ULP_I_IDX): Likewise.
25302         * stdlib/strtold.c: Include <bits/floatn.h>
25303         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25304         and later undefine as macro.  Define as weak alias if
25305         [!USE_WIDE_CHAR].
25306         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25307         and later undefine as macro.  Define as weak alias if
25308         [USE_WIDE_CHAR].
25309         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25310         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25311         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
25312         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25313         Define and later undefine as macro.  Define as weak alias if
25314         [USE_WIDE_CHAR].
25315         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25316         <bits/floatn.h>.
25317         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25318         Define and later undefine as macro.  Define as weak alias if
25319         [!USE_WIDE_CHAR].
25320         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25321         Define and later undefine as macro.  Define as weak alias if
25322         [USE_WIDE_CHAR].
25324 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
25326         * localedata/collate-test.c (allocate_arrays): Don't use \n in
25327         record_verbose messages.
25329 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
25331         [BZ #22052]
25332         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25333         to silence -O3 -Wall warning with GCC 7.
25335 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
25337         * Makeconfig (+link-static-before-libc): Use the first of
25338         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25339         * gmon/Makefile (tests): Add tst-gmon-static.
25340         (tests-static): Likewise.
25341         (CFLAGS-tst-gmon-static.c): New.
25342         (CRT-tst-gmon-static): Likewise.
25343         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25344         (tst-gmon-static-ENV): Likewise.
25345         (tests-special): Likewise.
25346         ($(objpfx)tst-gmon-static.out): Likewise.
25347         (clean-tst-gmon-static-data): Likewise.
25348         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25349         * gmon/tst-gmon-static-gprof.sh: New file.
25350         * gmon/tst-gmon-static.c: Likewise.
25352 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
25354         [BZ #22295]
25355         * locale/programs/linereader.c (get_string): Don't warn on
25356         non-symbolic character.
25358         [BZ #22294]
25359         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25360         int_curr_symbol.
25362         [BZ #22292]
25363         * locale/programs/record-status.h: New file
25364         * locale/programs/locale.c: Add comment.
25365         * locale/programs/charmap-dir.c: Don't include error.h.
25366         (charmap_opendir): Use record_error.
25367         * locale/programs/charmap.c: Don't include error.h.
25368         (charmap_read): Use record_error, and record_warning.
25369         (parse_charmap): Likewise.
25370         * locale/programs/ld-address.c: Don't include error.h.
25371         (address_finish): Use record_error, and record_warning.
25372         * locale/programs/ld-collate.c: Don't include error.h.
25373         (collate_finish): Use record_error, and record_error_at_line.
25374         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25375         (ctype_class_new): Likewise.
25376         (ctype_map_new): Likewise.
25377         (set_one_default): Likewise.
25378         (set_class_defaults): Likewise.
25379         (translit_flatten): Likewise.
25380         (allocate_arrays): Use record_error, and record_verbose.
25381         * locale/programs/ld-identification.c: Don't include error.h.
25382         (indentation_finish): Use record_error and record_warning.
25383         * locale/programs/ld-measurement.c: Don't include error.h.
25384         (measurement_finish): Use record_error.
25385         * locale/programs/ld-messages.c
25386         (message_finish): Likewise.
25387         * locale/programs/ld-monetary.c
25388         (monetary_finish): Likewise.
25389         * locale/programs/ld-name.c (name_finish): Use record_error
25390         and record_warning.
25391         * locale/programs/ld-numeric.c
25392         (numeric_finish): Use record_error.
25393         * locale/programs/ld-paper.c: Don't include error.h.
25394         (paper_finish): Use record_error.
25395         * locale/programs/ld-telephone.c: Don't include error.h.
25396         (telephone_finish): Use record_error.
25397         * locale/programs/ld-time.c (time_finish): Likewise.
25398         * locale/programs/linereader.h (lr_error): Make inline func.
25399         * locale/programs/localedef.c: Define recorded_warning_count,
25400         and recorded_error_count.
25401         (main): Use record_error. Use recorded_error_count and
25402         recorded_warning_count to issue correct error returns.
25403         (add_to_readlist): Use record_error.
25404         (find_locale): Likewise.
25405         (load_locale): Likewise.
25406         * locale/programs/localedef.h: Remove be_quiet
25407         and WITH_CUR_LOCALE.
25408         * locale/programs/locarchive.c (compare_from_file): Use
25409         record_error.
25410         * locale/programs/locfile.c (write_locale_data): Use
25411         record_error.
25412         * locale/programs/repertoire.c: Dont include error.h.
25413         (repertoire_complain): Use record_error.
25414         * localedata/tst-fmon.sh: Expect failures from localedef.
25415         * localedata/tst-locale.sh: Likewise.
25416         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25418         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25419         (REPORTS): Likewise.
25420         (check): Likewise.
25421         (i18n): Rename to...
25422         (i18n_ctype): ...this.
25423         (i18n-report): Rename to...
25424         (i18n_ctype-report): ...this.
25425         * localedata/locales/i18n_ctype: Regenerate.
25426         * localedata/locales/i18n: copy i18n_ctype.
25428 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
25430         * stdlib/strfroml.c: Include <bits/floatn.h>.
25431         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25432         Define before include of <stdlib.h> and undefine afterwards, then
25433         define as weak alias.
25435         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25436         Undefine and restore default definition.  Use
25437         libm_alias_ldouble_other.
25439 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
25441         [BZ #22153]
25442         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25443         in coredumps.
25445 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
25447         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25448         Assign sym_map to be map for local symbols, as TLS relocations
25449         use sym_map to determine whether the symbol is defined and to
25450         extract the TLS information.
25451         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25452         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25454 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25456         [BZ #22189]
25457         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25458         (math_force_eval): Add powerpc version.
25460         [BZ #22142]
25461         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25462         -DBL_MAX.
25463         (do_test): Likewise.
25464         * stdio-common/tst-printf.sh: Likewise.
25465         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25466         ifdef clause in order to set the carry bit right.  Replace r0 by
25467         0 without changing the behavior.
25469 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
25471         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25472         <libm-alias-ldouble.h>.
25473         (fabsl): Define using libm_alias_ldouble.
25474         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25475         <libm-alias-ldouble.h>.
25476         (fabsl): Define using libm_alias_ldouble.
25478         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25479         Remove conditional code.
25481         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25482         Rename to __clog10_internal_l.
25483         (__clog10_internal_l): Define aliases using
25484         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25485         with __clog10.
25487 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25489         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
25490         * benchtests/sincosf-inputs: New file.
25491         * benchtests/cosf-inputs: New file.
25492         * benchtests/sinf-inputs: New file.
25494 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25496         * posix/tst-spawn.c (do_test): Wait for both children.
25498 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
25500         [BZ #22284]
25501         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25502         tests-pie): Add tst-gmon-pie.
25503         (CFLAGS-tst-gmon-pie.c): New.
25504         (CRT-tst-gmon-pie): Likewise.
25505         (tst-gmon-pie-ENV): Likewise.
25506         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25507         ($(objpfx)tst-gmon-pie.out): Likewise.
25508         (clean-tst-gmon-pie-data): Likewise.
25509         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25510         * gmon/gmon.c [PIC]: Include <link.h>.
25511         [PIC] (callback): New function.
25512         (write_hist): Add an argument for load address.  Subtract load
25513         address from PCs.
25514         (write_call_graph): Likewise.
25515         (write_gmon): Call __dl_iterate_phdr to get load address, pass
25516         it to write_hist and write_call_graph.
25517         * gmon/tst-gmon-pie.c: New file.
25519 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
25521         * math/Makefile (test-types-basic): New variable.
25522         (test-types): Likewise.
25523         (libm-test-support): Use $(test-types) instead of $(types).
25524         (libm-tests-base-normal): Likewise.
25525         (libm-tests-base-finite): Likewise.
25526         (libm-tests-base-inline): Likewise.
25527         (generated): Likewise.
25528         ($(objpfx)libm-test-support-$(t).c): Likewise.
25529         (libm-tests-for-type iterator): Likewise.
25530         (libm-test-support iterator): Likewise.
25531         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25532         (ulp_idx): Use ULP_IDX.
25533         * math/test-ldouble.h: Include <float.h>.
25534         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25535         (ULP_IDX): New macro.
25536         (ULP_I_IDX): Likewise.
25537         * math/test-double.h (ULP_IDX): Likewise.
25538         (ULP_I_IDX): Likewise.
25539         * math/test-float.h (ULP_IDX): Likewise.
25540         (ULP_I_IDX): Likewise.
25541         * math/test-float128.h (ULP_IDX): Likewise.
25542         (ULP_I_IDX): Likewise.
25544 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25546         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25547         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25548         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25549         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25550         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25551         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25552         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25553         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25554         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25555         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25556         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25557         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25558         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25559         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25560         (SINGLE_THREAD_BY_GLOBAL): Define.
25561         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25562         Likewise.
25563         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25564         Likewise.
25565         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25566         Likewise.
25567         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25568         Likewise.
25569         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25570         (SINGLE_THREAD_BY_GLOBAL): Likewise.
25571         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25572         Likewise.
25574 2017-10-11  Andreas Schwab  <schwab@suse.de>
25576         * nis/Makefile (aux): Remove.
25577         * nscd/Makefile (aux): Add nscd_hash.
25578         (nscd-modules): Likewise.
25579         ($(objpfx)nscd): Don't depend on libnsl.
25580         * nscd/nscd_hash.c: New file.
25581         * nscd/nscd_hash.h: Likewise.
25582         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25583         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25584         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25585         instead of <nis/rpcsvc/nis.h>.
25586         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25588 2017-10-11  Florian Weimer  <fweimer@redhat.com>
25590         [BZ #22078]
25591         Avoid large NSS buffers with many addresses, aliases.
25592         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25593         using dynarrays and struct alloc_buffer.
25594         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25595         (tst-nss-files-hosts-multi): Link with -ldl.
25596         * nss/tst-nss-files-hosts-multi.c: New file.
25598 2017-10-11  Florian Weimer  <fweimer@redhat.com>
25600         [BZ #18023]
25601         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25602         scratch_buffer.  Eliminate gotos.
25604 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
25606         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25607         libm_alias_ldouble_other.
25608         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25609         undefine and redefine.
25610         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25611         (exp10l): Do not define here.
25612         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25613         (weak_alias): Undefine and redefine.
25614         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25615         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25616         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25617         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25619         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25620         [!__fma] (fma): Define using libm_alias_double.
25621         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25622         [!__fmaf] (fmaf): Define using libm_alias_float.
25623         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25624         (fmal): Define using libm_alias_ldouble.
25626 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
25628         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25629         New macro.
25630         (libm_alias_double_other): Likewise.
25631         (libm_alias_double_r): Use libm_alias_double_other_r.
25632         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25633         New macro.
25634         (libm_alias_float_other): Likewise.
25635         (libm_alias_float_r): Use libm_alias_float_other_r.
25636         * sysdeps/generic/libm-alias-float128.h
25637         (libm_alias_float128_other_r): New macro.
25638         (libm_alias_float128_other): Likewise.
25639         (libm_alias_float128_r): Use libm_alias_float128_other_r.
25640         * sysdeps/generic/libm-alias-ldouble.h
25641         (libm_alias_ldouble_other_r): New macro.
25642         (libm_alias_ldouble_other): Likewise.
25643         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25644         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25645         (libm_alias_double_other_r): New macro.
25646         (libm_alias_double_other): Likewise.
25647         (libm_alias_double_r): Use libm_alias_double_other_r.
25648         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25649         (libm_alias_ldouble_other_r): New macro.
25650         (libm_alias_ldouble_other): Likewise.
25651         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25652         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25653         [!USE_AS_COMPAT]: Use libm_alias_double_other.
25654         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25655         [!USE_AS_COMPAT]: Use libm_alias_float_other.
25656         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25657         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25658         * math/w_exp2f.c: Use libm_alias_float_other.
25659         * math/w_expf.c: Likewise.
25660         * math/w_log2f.c: Likewise.
25661         * math/w_logf.c: Likewise.
25662         * math/w_powf.c: Likewise.
25663         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25664         [!__exp2f]: Use libm_alias_float_other.
25665         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25666         [!__expf]: Use libm_alias_float_other.
25667         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25668         [!__log2f]: Use libm_alias_float_other.
25669         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25670         [!__logf]: Use libm_alias_float_other.
25671         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25672         [!__powf]: Use libm_alias_float_other.
25674 2017-10-10  Florian Weimer  <fweimer@redhat.com>
25676         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25677         function.
25678         (_nss_files_gethostbyname3_r): Call it.
25680 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
25682         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25683         error.  Remove default definition of declare_mgen_alias.
25684         [!declare_mgen_alias_r]: Likewise.
25685         * sysdeps/generic/math-type-macros-double.h
25686         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25687         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25688         (declare_mgen_alias_r): Likewise.
25689         * sysdeps/generic/math-type-macros-float128.h
25690         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25691         * sysdeps/generic/math-type-macros-ldouble.h
25692         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25693         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25694         macro.
25695         (declare_mgen_alias_r_s): Likewise.
25696         (declare_mgen_alias_r): Likewise.
25697         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25698         (lgamma_r): Define using libm_alias_double_r.
25699         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25700         (lgammaf_r): Define using libm_alias_float_r.
25701         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25702         (lgammal_r): Define using libm_alias_ldouble_r.
25703         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25704         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25706 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25708         * lib/glob.c (__glob_pattern_type): Remove now-spurious
25709         extern declaration.
25711 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
25713         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25715 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
25717         [BZ #21326]
25718         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25719         [__cplusplus >= 201103] (__USE_ISOC99): Define.
25720         * math/Makefile (test-math-cxx11): New test.
25721         * math/test-math-cxx11.cc: New file.
25723 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
25725         * login/openpty.c (openpty): Close slave pty file descriptor on error.
25727         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25728         call to allocate the slave pty file descriptor.
25730 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
25732         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25733         [!__fma] (fma): Define using libm_alias_double.
25734         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25735         [!__fma] (fma): Define using libm_alias_double.
25737         * sysdeps/ieee754/float128/float128_private.h: Include
25738         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25739         (libm_alias_ldouble_r): Undefine and redefine.
25740         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25741         <libm-alias-ldouble.h>.
25742         (asinhl): Define using libm_alias_ldouble.
25743         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25744         <libm-alias-ldouble.h>.
25745         (atanl): Define using libm_alias_ldouble.
25746         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25747         <libm-alias-ldouble.h>.
25748         (cbrtl): Define using libm_alias_ldouble.
25749         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25750         <libm-alias-ldouble.h>.
25751         (ceill): Define using libm_alias_ldouble.
25752         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25753         <libm-alias-ldouble.h>.
25754         (copysignl): Define using libm_alias_ldouble.
25755         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25756         <libm-alias-ldouble.h>.
25757         (cosl): Define using libm_alias_ldouble.
25758         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25759         <libm-alias-ldouble.h>.
25760         (erfl): Define using libm_alias_ldouble.
25761         (erfcl): Likewise.
25762         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25763         <libm-alias-ldouble.h>.
25764         (expm1l): Define using libm_alias_ldouble.
25765         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25766         <libm-alias-ldouble.h>.
25767         (fabsl): Define using libm_alias_ldouble.
25768         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25769         <libm-alias-ldouble.h>.
25770         (floorl): Define using libm_alias_ldouble.
25771         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25772         <libm-alias-ldouble.h>.
25773         (fmal): Define using libm_alias_ldouble.
25774         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25775         <libm-alias-ldouble.h>.
25776         (frexpl): Define using libm_alias_ldouble.
25777         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25778         libm_alias_ldouble.
25779         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25780         <libm-alias-ldouble.h>.
25781         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25782         libm_alias_ldouble.
25783         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25784         <libm-alias-ldouble.h>.
25785         (getpayloadl): Define using libm_alias_ldouble.
25786         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25787         <libm-alias-ldouble.h>.
25788         (llrintl): Define using libm_alias_ldouble.
25789         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25790         <libm-alias-ldouble.h>.
25791         (llroundl): Define using libm_alias_ldouble.
25792         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25793         <libm-alias-ldouble.h>.
25794         (logbl): Define using libm_alias_ldouble.
25795         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25796         <libm-alias-ldouble.h>.
25797         (lrintl): Define using libm_alias_ldouble.
25798         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25799         <libm-alias-ldouble.h>.
25800         (lroundl): Define using libm_alias_ldouble.
25801         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25802         <libm-alias-ldouble.h>.
25803         (modfl): Define using libm_alias_ldouble.
25804         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25805         <libm-alias-ldouble.h>.
25806         (nearbyintl): Define using libm_alias_ldouble.
25807         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25808         <libm-alias-ldouble.h>.
25809         (nextafterl): Define using libm_alias_ldouble.
25810         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25811         <libm-alias-ldouble.h>.
25812         (nextupl): Define using libm_alias_ldouble.
25813         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25814         <libm-alias-ldouble.h>.
25815         (remquol): Define using libm_alias_ldouble.
25816         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25817         <libm-alias-ldouble.h>.
25818         (rintl): Define using libm_alias_ldouble.
25819         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25820         <libm-alias-ldouble.h>.
25821         (roundevenl): Define using libm_alias_ldouble.
25822         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25823         <libm-alias-ldouble.h>.
25824         (roundl): Define using libm_alias_ldouble.
25825         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25826         using libm_alias_ldouble.
25827         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25828         <libm-alias-ldouble.h>.
25829         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25830         Define using libm_alias_ldouble.
25831         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25832         <libm-alias-ldouble.h>.
25833         (sincosl): Define using libm_alias_ldouble.
25834         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25835         <libm-alias-ldouble.h>.
25836         (sinl): Define using libm_alias_ldouble.
25837         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25838         <libm-alias-ldouble.h>.
25839         (tanhl): Define using libm_alias_ldouble.
25840         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25841         <libm-alias-ldouble.h>.
25842         (tanl): Define using libm_alias_ldouble.
25843         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25844         <libm-alias-ldouble.h>.
25845         (totalorderl): Define using libm_alias_ldouble.
25846         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25847         <libm-alias-ldouble.h>.
25848         (totalordermagl): Define using libm_alias_ldouble.
25849         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25850         <libm-alias-ldouble.h>.
25851         (truncl): Define using libm_alias_ldouble.
25852         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25853         libm_alias_ldouble.
25854         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25855         libm_alias_ldouble.
25856         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25857         <libm-alias-ldouble.h>.
25858         (weak_alias): Do not undefine and redefine.
25859         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25860         (copysignl): Define with long_double_symbol only if [IS_IN
25861         (libc)].
25862         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25863         <libm-alias-ldouble.h>.
25864         (weak_alias): Do not undefine and redefine.
25865         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25866         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25867         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25868         <libm-alias-ldouble.h>.
25869         (weak_alias): Do not undefine and redefine.
25870         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25871         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25872         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25873         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25874         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25875         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25876         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25877         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25878         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25879         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25880         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25881         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25882         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25883         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25884         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25885         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25886         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25887         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25888         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25889         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25890         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25891         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25892         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25893         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25894         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25895         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25897 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
25899         [BZ #22111]
25900         * malloc/malloc.c (tcache_shutting_down): Use bool type.
25901         (tcache_thread_freeres): Set tcache_shutting_down before
25902         freeing the tcache.
25903         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25904         * malloc/tst-malloc-tcache-leak.c: New file.
25906 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25908         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25909         back to powerpc32 file.
25910         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25911         (memrchr): Add __memrchr_power8 to ifunc list.
25912         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25913         extra bytes for unaligned inputs.
25915 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
25917         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25918         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25919         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25920         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25921         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25923 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
25925         * sysdeps/arm/libm-test-ulps: Update.
25927         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25928         <libm-alias-ldouble.h>.
25929         (asinhl): Define using libm_alias_ldouble.
25930         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25931         <libm-alias-ldouble.h>.
25932         (cbrtl): Define using libm_alias_ldouble.
25933         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25934         <libm-alias-ldouble.h>.
25935         (copysignl): Define using libm_alias_ldouble.
25936         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25937         <libm-alias-ldouble.h>.
25938         (cosl): Define using libm_alias_ldouble.
25939         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25940         <libm-alias-ldouble.h>.
25941         (erfl): Define using libm_alias_ldouble.
25942         (erfcl): Likewise.
25943         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25944         <libm-alias-ldouble.h>.
25945         (fmal): Define using libm_alias_ldouble.
25946         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25947         <libm-alias-ldouble.h>.
25948         (frexpl): Define using libm_alias_ldouble.
25949         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25950         libm_alias_ldouble.
25951         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25952         <libm-alias-ldouble.h>.
25953         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25954         libm_alias_ldouble.
25955         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25956         <libm-alias-ldouble.h>.
25957         (getpayloadl): Define using libm_alias_ldouble.
25958         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25959         <libm-alias-ldouble.h>.
25960         (llrintl): Define using libm_alias_ldouble.
25961         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25962         <libm-alias-ldouble.h>.
25963         (llroundl): Define using libm_alias_ldouble.
25964         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25965         <libm-alias-ldouble.h>.
25966         (lrintl): Define using libm_alias_ldouble.
25967         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25968         <libm-alias-ldouble.h>.
25969         (lroundl): Define using libm_alias_ldouble.
25970         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25971         <libm-alias-ldouble.h>.
25972         (modfl): Define using libm_alias_ldouble.
25973         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25974         <libm-alias-ldouble.h>.
25975         (nextupl): Define using libm_alias_ldouble.
25976         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25977         <libm-alias-ldouble.h>.
25978         (remquol): Define using libm_alias_ldouble.
25979         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25980         <libm-alias-ldouble.h>.
25981         (roundevenl): Define using libm_alias_ldouble.
25982         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25983         <libm-alias-ldouble.h>.
25984         (roundl): Define using libm_alias_ldouble.
25985         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25986         using libm_alias_ldouble.
25987         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25988         <libm-alias-ldouble.h>.
25989         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25990         <libm-alias-ldouble.h>.
25991         (setpayloadsigl): Define using libm_alias_ldouble.
25992         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25993         <libm-alias-ldouble.h>.
25994         (sincosl): Define using libm_alias_ldouble.
25995         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25996         <libm-alias-ldouble.h>.
25997         (sinl): Define using libm_alias_ldouble.
25998         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25999         <libm-alias-ldouble.h>.
26000         (tanhl): Define using libm_alias_ldouble.
26001         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26002         <libm-alias-ldouble.h>.
26003         (tanl): Define using libm_alias_ldouble.
26004         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26005         <libm-alias-ldouble.h>.
26006         (totalorderl): Define using libm_alias_ldouble.
26007         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26008         <libm-alias-ldouble.h>.
26009         (totalordermagl): Define using libm_alias_ldouble.
26010         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26011         libm_alias_ldouble.
26012         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26013         libm_alias_ldouble.
26015 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26017         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26018         memmove_falkor.
26019         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26020         (__libc_ifunc_impl_list): Likewise.
26021         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26022         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26024         * benchtests/bench-memmove-walk.c: New file.
26025         * benchtests/Makefile (string-benchset): Add it.
26027         * benchtests/bench-memset-walk.c: New file.
26028         * benchtests/Makefile (string-benchset): Add it.
26030         * benchtests/bench-memcpy-walk.c: New file.
26031         * benchtests/Makefile (string-benchset): Add it.
26033 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26035         nscd: Eliminate compilation time dependency in the build output.
26036         * nscd/nscd_stat.c (STATDATA_VERSION)
26037         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26038         (STATDATA_VERSION_FULL): New macro definitions.
26039         (compilation): Remove.
26040         (struct statdata): Adjust version member.
26041         (send_stats): Set version from STATDATA_VERSION_FULL.
26042         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26044 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
26046         * configure.ac (--enable-add-ons): Remove option.
26047         (machine): Do not mention add-ons in comment.
26048         (LIBC_PRECONFIGURE): Likewise.
26049         (add_ons): Remove variable and sanity checks and logic to locate
26050         add-ons.
26051         (add_ons_automatic): Remove variable.
26052         (configured_add_ons): Likewise.
26053         (add_ons_sfx): Likewise.
26054         (add_ons_pfx): Likewise.
26055         (add_on_subdirs): Likewise.
26056         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
26057         consideration of add-ons in Implies handling.
26058         (sysdeps_add_ons): Likewise.
26059         * configure: Regenerated.
26060         * libidn/configure.ac: Remove.
26061         * libidn/configure: Likewise.
26062         * sysdeps/unix/inet/configure.ac: New file.
26063         * sysdeps/unix/inet/configure: New generated file.
26064         * sysdeps/unix/inet/Subdirs: Add libidn.
26065         * Makeconfig (sysdeps-srcdirs): Remove variable.
26066         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26067         ($(common-objpfx)config.status): Do not depend on add-on files.
26068         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26069         comment.
26070         (all-subdirs): Do not include $(add-on-subdirs).
26071         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26072         * config.make.in (add-ons): Remove variable.
26073         (add-on-subdirs): Likewise.
26074         (sysdeps-add-ons): Likewise.
26075         * manual/Makefile (add-chapters): Remove.
26076         ($(objpfx)texis): Do not depend on $(add-chapters).
26077         (nonexamples): Do not handle $(add-chapters).
26078         (examples): Do not handle $(add-ons).
26079         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26080         libc-texinfo.sh.
26081         * manual/install.texi (Installation): Do not mention add-ons.
26082         (--enable-add-ons): Do not document configure option.
26083         * INSTALL: Regenerated.
26084         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26085         * manual/maint.texi (Hierarchy Conventions): Do not mention
26086         add-ons.
26087         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26088         --enable-add-ons.
26089         * scripts/gen-sorted.awk: Do not handle Subdirs files from
26090         add-ons.
26091         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26092         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26094 2017-10-05  Andreas Schwab  <schwab@suse.de>
26096         [BZ #15142]
26097         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
26098         (_IO_flush_all_lockp): Always lock list_all_lock.
26099         (_IO_flush_all_linebuffered): Likewise.
26100         (_IO_unbuffer_all): Likewise.
26102 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26104         [BZ #15436]
26105         Do not flush stdio streams on abort.
26106         * stdlib/abort.c (fflush): Remove macro definition.
26107         (abort): Remove stages related to stdio flushing.
26109 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26111         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26113 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
26115         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26117 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26119         * support/support_format_hostent.c (support_format_hostent): Add
26120         more error information for NETDB_INTERNAL.
26122 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26124         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26125         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26126         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26127         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26128         AC_DEFINE if multi-arch is enabled.
26129         * sysdeps/i386/configure: Regenerated.
26131 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26133         * Makeconfig (+link-static-before-libc): Use
26134         $(DEFAULT-LDFLAGS-$(@F)).
26135         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26136         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26137         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26139 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26141         * elf/Makefile (tests): Add tst-main1.
26142         (modules-names): Add tst-main1mod.
26143         ($(objpfx)tst-main1): New.
26144         (CRT-tst-main1): Likewise.
26145         (LDFLAGS-tst-main1): Likewise.
26146         (LDLIBS-tst-main1): Likewise.
26147         (tst-main1mod.so-no-z-defs): Likewise.
26148         * elf/tst-main1.c: New file.
26149         * elf/tst-main1mod.c: Likewise.
26151 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26153         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26155 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
26157         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26158         (fma): Define using libm_alias_double.
26159         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26160         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26161         <math_ldbl_opt.h>.
26162         (fmal): Do not define as compat symbol here.
26163         * sysdeps/alpha/fpu/s_fma.c: New file.
26165 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26167         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26169 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
26171         [BZ #22229]
26172         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26173         <math_ldbl_opt.h>
26174         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26175         and libc.
26176         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26177         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26178         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26179         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26181         Include <math_ldbl_opt.h>
26182         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26183         and libc.
26184         (compat_symbol): Undefine and redefine.
26185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26186         <math_ldbl_opt.h>
26187         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26188         (compat_symbol): Undefine and redefine.
26189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26190         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26191         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26192         GLIBC_2_1 for libm.
26193         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26194         GLIBC_2.0 copysignl symbol.
26195         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26196         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26198         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26200 2017-10-04  Florian Weimer  <fweimer@redhat.com>
26202         * scripts/check-local-headers.sh: Ignore nspr4 header file
26203         directory in addition to nspr.
26205 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
26207         [BZ #17956]
26208         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26209         * configure: Regenerate.
26210         * crypt/Makefile (nss-cpp-flags): New variable.
26211         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26212         (CPPFLAGS-md5-crypt.c): Use it.
26213         * scripts/check-local-headers.sh: Ignore nspr header file
26214         directory.
26216 2017-10-04  Andreas Schwab  <schwab@suse.de>
26218         * nis/Makefile (services): Remove compat.
26219         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26220         ($(objpfx)libnss_compat.so): Remove rule.
26221         * nis/Versions (libnss_compat): Remove.
26222         * nss/Makefile (services): Add compat.
26223         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26224         * nss/Versions (libnss_compat): Define.
26225         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26226         Don't include <rpc/types.h>.  Replace bool_t by bool.
26227         * nss/nss_compat/compat-initgroups.c: Likewise.
26228         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
26229         instead of <rpcsrv/ypclnt.h>.
26230         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26231         yp_get_default_domain.
26232         * nss/nss_compat/compat-pwd.c: Likewise.
26233         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26234         yp_get_default_domain.
26235         * nss/nss_compat/nisdomain.c: New file.
26236         * nss/nss_compat/nisdomain.h: Likewise.
26238 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26240         [BZ #22244]
26241         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26242         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26244 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26246         [BZ #22243]
26247         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26248         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26250 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26252         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26253         "movl main@GOTOFF(%ebx), %eax".
26255 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26257         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26258         allow undefined _DYNAMIC in PIE libc.a.
26259         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26260         Likewse.
26262 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26264         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26265         check _DYNAMIC.
26267 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26269         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26270         check _DYNAMIC.
26272 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26274         * math/test-math-iscanonical.cc (error): Replace bool with int.
26276 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26278         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26279         (modf): Define using libm_alias_double, only if [!__modf].
26280         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26281         <libm-alias-double.h>.
26282         (modf): Define using libm_alias_double, only if [!__modf].
26283         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26284         compat symbol here.
26285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26286         (weak_alias): Do not undefine and redefine.
26287         (strong_alias): Likewise.
26288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26289         (weak_alias): Likewise.
26290         (strong_alias): Likewise.
26292         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26293         (logb): Define using libm_alias_double, only if [!__logb].
26294         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26295         <libm-alias-double.h>.
26296         (logb): Define using libm_alias_double, only if [!__logb].
26297         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26299         (weak_alias): Do not undefine and redefine.
26300         (strong_alias): Likewise.
26301         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26302         (weak_alias): Likewise.
26303         (strong_alias): Likewise.
26305 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26307         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26308         Check SHARED instead PIC.
26310 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26312         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26313         [!__fmaf] (fmaf): Define using libm_alias_float.
26315         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26316         (frexp): Define using libm_alias_double.
26317         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26318         <libm-alias-double.h>.
26319         (frexp): Define using libm_alias_double.
26320         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26321         compat symbol here.
26323 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
26325         [BZ #22235]
26326         * math/math.h: Trivial fix for unbalanced parentheses in comment.
26327         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26328         (CFLAGS-test-math-iscanonical.cc): New variable.
26329         * math/test-math-iscanonical.cc: New file.
26330         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26331         Provide a C++ implementation based on function overloading,
26332         rather than using __MATH_TG, which uses C-only builtins.
26333         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26334         Likewise.
26335         * sysdeps/powerpc/powerpc64le/Makefile
26336         (CFLAGS-test-math-iscanonical.cc): New variable.
26338 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26340         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26341         (ceil): Define using libm_alias_double.
26342         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26343         (floor): Define using libm_alias_double.
26344         * sysdeps/ieee754/dbl-64/s_llround.c: Include
26345         <libm-alias-double.h>.
26346         (llround): Define using libm_alias_double.
26347         * sysdeps/ieee754/dbl-64/s_lround.c: Include
26348         <libm-alias-double.h>.
26349         (lround): Define using libm_alias_double.
26350         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26351         <libm-alias-double.h>.
26352         (nearbyint): Define using libm_alias_double.
26353         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26354         <libm-alias-double.h>.
26355         (remquo): Define using libm_alias_double.
26356         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26357         (rint): Define using libm_alias_double.
26358         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26359         (round): Define using libm_alias_double.
26360         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26361         (trunc): Define using libm_alias_double.
26362         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26363         <libm-alias-double.h>.
26364         (ceil): Define using libm_alias_double.
26365         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26366         <libm-alias-double.h>.
26367         (floor): Define using libm_alias_double.
26368         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26369         <libm-alias-double.h>.
26370         (llround): Define using libm_alias_double.
26371         [_LP64] (lround): Likewise.
26372         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26373         <libm-alias-double.h>.
26374         [!_LP64] (lround): Define using libm_alias_double.
26375         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26376         <libm-alias-double.h>.
26377         (nearbyint): Define using libm_alias_double.
26378         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26379         <libm-alias-double.h>.
26380         (remquo): Define using libm_alias_double.
26381         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26382         <libm-alias-double.h>.
26383         (rint): Define using libm_alias_double.
26384         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26385         <libm-alias-double.h>.
26386         (round): Define using libm_alias_double.
26387         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26388         <libm-alias-double.h>.
26389         (trunc): Define using libm_alias_double.
26390         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26391         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26392         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26393         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26394         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26395         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26396         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26397         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26398         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26400 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26402         * math/w_remainder.c: New file.
26403         * math/w_remainderf.c: New file.
26404         * math/w_remainderl.c: New file.
26406 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26408         * elf/rtld.c (BOOTSTRAP_MAP): New.
26409         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26410         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26411         Likewise.
26412         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26413         Likewise.
26414         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26415         Likewise.
26417 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26419         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26420         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26421         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26422         rtld_hidden_data_ver): Define to empty.
26423         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26424         __assert_perror_fail): Likewise.
26425         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26426         (__rewinddir): Likewise.
26427         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26428         (__profile_frequency): Likewise.
26429         * include/setjmp.h (__sigsetjmp): Likewise.
26430         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26431         __libc_sigaction): Likewise.
26432         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26433         not set hidden attribute.
26434         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26435         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26436         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26437         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26438         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26439         __fxstatat64): Likewise.
26440         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26441         (__uname): Likewise.
26442         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26443         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26444         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26445         (NO_RTLD_HIDDEN): Set.
26446         * sysdeps/mach/hurd/configure: Refresh.
26447         * config.h.in: Refresh.
26449 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
26451         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26452         (atan): Define using libm_alias_double.
26453         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26454         (tan): Define using libm_alias_double.
26455         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26456         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26458         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26459         define as weak alias of __atan.  Do not define any aliases if
26460         [__atan].
26461         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26462         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26463         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26464         as weak alias of __tan.  Do not define any aliases if [__tan].
26465         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26466         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26467         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26468         __atan.
26469         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26470         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26471         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26472         and define as weak alias of __atan.
26473         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26474         __atan.
26475         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26476         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26477         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26478         define as weak alias of __tan.
26480 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26482         * math/w_lgamma.c: New file.
26483         * math/w_lgammaf.c: New file.
26484         * math/w_lgammal.c: New file.
26486 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26488         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26489         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26490         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26491         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26492         * sysdeps/ieee754/flt-32/w_logf.c: New file.
26493         * sysdeps/ieee754/flt-32/w_powf.c: New file.
26494         * sysdeps/i386/fpu/w_log2f.c: New file.
26495         * sysdeps/i386/fpu/w_logf.c: New file.
26496         * sysdeps/i386/fpu/w_powf.c: New file.
26497         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26498         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26499         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26501 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26502             H.J. Lu  <hongjiu.lu@intel.com>
26504         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26505         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26506         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26507         * sysdeps/ieee754/flt-32/w_expf.c: New file.
26508         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26509         the new expf code.
26510         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26511         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26512         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26513         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26514         * sysdeps/i386/fpu/w_exp2f.c: New file.
26515         * sysdeps/i386/fpu/w_expf.c: New file.
26516         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26517         * sysdeps/x86_64/fpu/w_expf.c: New file.
26519 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26521         * math/Versions (logf): New libm symbol at GLIBC_2.27.
26522         (log2f): Likewise.
26523         (powf): Likewise.
26524         * math/w_log2f.c: New file.
26525         * math/w_logf.c: New file.
26526         * math/w_powf.c: New file.
26527         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26528         * math/w_logf_compat.c (__logf_compat): Likewise.
26529         * math/w_powf_compat.c (__powf_compat): Likewise.
26530         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26531         * sysdeps/ia64/fpu/e_logf.S: Likewise.
26532         * sysdeps/ia64/fpu/e_powf.S: Likewise.
26533         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26534         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26535         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26536         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26537         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26538         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26539         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26540         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26541         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26542         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26543         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26544         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26546         Likewise.
26547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26548         Likewise.
26549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26550         Likewise.
26551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26552         Likewise.
26553         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26554         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26555         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26556         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26557         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26558         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26559         Likewise.
26560         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26561         Likewise.
26562         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26563         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26564         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26566 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26568         * sysdeps/powerpc/powerpc64/multiarch/Makefile
26569         (sysdep_routines): Add memrchr_power8.
26570         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26571         (memrchr): Add __memrchr_power8 to list of memrchr functions.
26572         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26573         New file.
26574         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26575         (memrchr): Add __memrchr_power8 to ifunc list.
26576         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26578 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26580         [BZ #18822]
26581         * sysdeps/unix/sysv/linux/posix_fadvise64.c
26582         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26583         libc_hidden_def.
26584         * sysdeps/unix/sysv/linux/posix_fallocate64.c
26585         (__posix_fallocate64_l64): Likewise.
26587 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26589         [BZ #18822]
26590         * sysdeps/unix/sysv/linux/sched_setaffinity.c
26591         (__sched_setaffinity_new): Add libc_hidden_proto and
26592         libc_hidden_def.
26594 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26596         [BZ #18822]
26597         * include/glob.h (__glob64): Add libc_hidden_proto.
26598         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26599         libc_hidden_def.
26601 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26603         [BZ #18822]
26604         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26605         attribute_hidden.
26607 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26609         [BZ #18822]
26610         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26612 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26614         [BZ #18822]
26615         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26616         libc_hidden_def.
26618 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26620         [BZ #18822]
26621         * csu/version.c (__libc_print_version): Add attribute_hidden.
26623 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26625         [BZ #18822]
26626         * include/libc-internal.h (__init_misc): Add attribute_hidden.
26628 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26630         [BZ #18822]
26631         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26633 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26635         [BZ #18822]
26636         * nscd/nscd_helper.c (__nis_hash): New prototype.
26638 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26640         [BZ #18822]
26641         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26642         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26643         libc_hidden_def.
26644         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26645         * termios/tcgetattr.c (__tcgetattr): Likewise.
26647 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26649         [BZ #18822]
26650         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26651         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26652         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26653         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26654         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26656 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26658         [BZ #18822]
26659         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26661 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26663         [BZ #18822]
26664         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26665         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26667 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26669         [BZ #18822]
26670         * intl/hash-string.h (__hash_string): Add attribute_hidden.
26672 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26674         [BZ #18822]
26675         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26676         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26678 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26680         [BZ #18822]
26681         * include/ifreq.h: New file.
26682         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26683         (__ifreq): Likewise.
26684         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26685         (__ifreq): Likewise.
26687 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26689         [BZ #18822]
26690         * include/idna.h: New file.
26691         * inet/getnameinfo.c: Include <idna.h> instead of
26692         <libidn/idna.h>.
26693         (__idna_to_unicode_lzlz): Removed.
26694         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26695         <libidn/idna.h>.
26696         (__idna_to_ascii_lz): Removed.
26697         (__idna_to_unicode_lzlz): Likewise.
26699 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26701         [BZ #18822]
26702         * include/plural-exp.h: New file.
26703         * intl/plural-exp.c: Include <plural-exp.h> instead of
26704         "plural-exp.h".
26706 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26708         [BZ #18822]
26709         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26710         "getsourcefilter.h".
26711         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26712         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26713         "getsourcefilter.h".
26714         (__get_sol): Removed.
26716 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26718         [BZ #18822]
26719         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26720         to ...
26721         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26723 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26725         [BZ #18822]
26726         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26727         attribute_hidden.
26729 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26731         [BZ #18822]
26732         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26734 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26736         [BZ #18822]
26737         * include/search.h (__tdestroy): Add libc_hidden_proto.
26738         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26740 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26742         [BZ #18822]
26743         * include/assert.h (__assert_fail_base): Add attribute_hidden.
26745 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26747         [BZ #18822]
26748         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26749         attribute_hidden.
26751 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26753         [BZ #18822]
26754         * include/signal.h (__kill): Add libc_hidden_proto.
26755         (__sigblock): Likewise.
26756         (__sigprocmask): Likewise.
26757         (__sigaltstack): Likewise.
26758         * signal/kill.c (__kill): Add libc_hidden_def.
26759         * signal/sigblock.c (__sigblock): Likewise.
26760         * signal/sigprocmask.c (__sigprocmask): Likewise.
26761         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26762         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26763         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26764         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26765         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26766         Likewise.
26767         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26768         Likewise.
26769         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26770         (__sigprocmask): Likewise.
26771         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26772         Likewise.
26773         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26774         (__sigprocmask): Likewise.
26775         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26776         Likewise.
26778 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26780         [BZ #18822]
26781         * include/string.h (__strsep): Add libc_hidden_proto.
26782         * string/strsep.c (__strsep): Add libc_hidden_def.
26784 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26786         [BZ #18822]
26787         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26788         attribute_hidden.
26789         (__spawni): Likewise.
26791 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26793         [BZ #18822]
26794         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26795         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26796         libc_hidden_def.
26798 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26800         [BZ #18822]
26801         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26803 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26805         [BZ #18822]
26806         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26807         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26808         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26809         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26810         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26811         Likewise.
26812         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26813         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26817         [BZ #18822]
26818         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26819         (__dcigettext): Likewise.
26821 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26823         [BZ #18822]
26824         * include/sys/sysinfo.h (__get_nprocs_conf): Add
26825         libc_hidden_proto.
26826         (__get_nprocs): Likewise.
26827         (__get_phys_pages): Likewise.
26828         (__get_avphys_pages): Likewise.
26829         (__get_child_max): Add attribute_hidden.
26830         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26831         (__get_nprocs): Likewise.
26832         (__get_phys_pages): Likewise.
26833         (__get_avphys_pages): Likewise.
26834         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26835         libc_hidden_def.
26836         (__get_nprocs): Likewise.
26837         (__get_phys_pages): Likewise.
26838         (__get_avphys_pages): Likewise.
26839         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26840         libc_hidden_def.
26841         (__get_nprocs_conf): Likewise.
26842         (__get_phys_pages): Likewise.
26843         (__get_avphys_pages): Likewise.
26845 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26847         [BZ #18822]
26848         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26849         attribute_hidden.
26850         (__netlink_close): Likewise.
26851         (__netlink_free_handle): Likewise.
26852         (__netlink_request): Likewise.
26854 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26856         [BZ #18822]
26857         * include/rpc/rpc.h (__rpc_thread_variables): Add
26858         attribute_hidden.
26859         (__rpc_thread_svc_cleanup): Likewise.
26860         (__rpc_thread_clnt_cleanup): Likewise.
26861         (__rpc_thread_key_cleanup): Likewise.
26863 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26865         [BZ #18822]
26866         * include/sys/uio.h (__readv): Add libc_hidden_proto.
26867         (__writev): Likewise.
26868         * misc/readv.c (__readv): Add libc_hidden_def.
26869         * misc/writev.c (__writev): Likewise.
26870         * sysdeps/posix/readv.c (__readv): Likewise.
26871         * sysdeps/posix/writev.c (__writev): Likewise.
26872         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26873         (__readv): Likewise.
26874         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26875         (__writev): Likewise.
26877 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26879         [BZ #18822]
26880         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26881         (__regcomp): Add libc_hidden_proto.
26882         (__regexec): Likewise.
26883         (__regfree): Likewise.
26884         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26885         (__regfree): Likewise.
26886         * posix/regexec.c (__regexec): Likewise.
26888 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26890         [BZ #18822]
26891         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26892         (__getutent): Likewise.
26893         (__getutid): Likewise.
26894         (__getutline): Likewise.
26895         (__pututline): Likewise.
26896         (__getutent_r): Likewise.
26897         (__getutid_r): Likewise.
26898         (__getutline_r): Likewise.
26899         (__utmpname): Add attribute_hidden.
26900         (__setutent): Likewise.
26901         (__endutent): Likewise.
26902         * login/getutent.c (__getutent): Add libc_hidden_def.
26903         * login/getutent_r.c (__getutent_r): Likewise.
26904         (__pututline): Likewise.
26905         * login/getutid.c (__getutid): Likewise.
26906         * login/getutid_r.c (__getutid_r): Likewise.
26907         * login/getutline.c (__getutline): Likewise.
26908         * login/getutline_r.c (__getutline_r): Likewise.
26909         * login/updwtmp.c (__updwtmp): Likewise.
26911 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26913         [BZ #18822]
26914         * include/dirent.h (__opendir): Always add attribute_hidden.
26915         (__fdopendir): Likewise.
26916         (__closedir): Likewise.
26917         (__readdir): Likewise.
26918         (__readdir64): Add libc_hidden_proto.
26919         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26920         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26921         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26922         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26923         New alias.
26925 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26927         [BZ #18822]
26928         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26929         * include/netdb.h (__gethostbyaddr_r): Likewise.
26930         (__gethostbyname_r): Likewise.
26931         (__gethostbyname2_r): Likewise.
26932         (__getnetbyaddr_r): Likewise.
26933         (__getnetbyname_r): Likewise.
26934         (__getservbyname_r): Likewise.
26935         (__getservbyport_r): Likewise.
26936         (__getprotobyname_r): Likewise.
26937         (__getprotobynumber_r): Likewise.
26938         (__getnetgrent_r): Likewise.
26939         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26940         (__getrpcbynumber_r): Likewise.
26941         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26943 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26945         [BZ #18822]
26946         * include/stdio.h (__fcloseall): Add attribute_hidden.
26947         (__getline): Likewise.
26948         (__path_search): Likewise.
26949         (__gen_tempname): Likewise.
26950         (__libc_message): Likewise.
26951         (__flockfile): Likewise.
26952         (__funlockfile): Likewise.
26953         (__fxprintf): Likewise.
26954         (__fxprintf_nocancel): Likewise.
26956 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26958         [BZ #18822]
26959         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26960         (__sgetsgent_r): Likewise.
26962 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26964         [BZ #18822]
26965         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26966         (__statfs64): Likewise.
26967         (__fstatfs64): Likewise.
26968         * include/sys/statvfs.h (__statvfs64): Likewise.
26969         (__fstatvfs64): Likewise.
26970         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26971         (__statfs_filesize_max): Likewise.
26972         (__statfs_symlinks): Likewise.
26973         (__statfs_chown_restricted): Likewise.
26975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26977         [BZ #18822]
26978         * include/time.h (__tzstring): Add attribute_hidden.
26979         (__tzfile_read): Likewise.
26980         (__tzfile_compute): Likewise.
26981         (__tzfile_default): Likewise.
26982         (__tzset_parse_tz): Likewise.
26983         (__offtime): Likewise.
26984         (__asctime_r): Likewise.
26985         (__tzset): Likewise.
26986         (__tz_convert): Likewise.
26987         (__getdate_r): Likewise.
26988         (__getclktck): Likewise.
26990 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26992         [BZ #18822]
26993         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26994         (__nscd_unmap): Likewise.
26995         (__nscd_cache_search): Likewise.
26996         (__nscd_get_nl_timestamp): Likewise.
26997         (__nscd_getpwnam_r): Likewise.
26998         (__nscd_getpwuid_r): Likewise.
26999         (__nscd_getgrnam_r): Likewise.
27000         (__nscd_getgrgid_r): Likewise.
27001         (__nscd_gethostbyname_r): Likewise.
27002         (__nscd_gethostbyname2_r): Likewise.
27003         (__nscd_gethostbyaddr_r): Likewise.
27004         (__nscd_getai): Likewise.
27005         (__nscd_getgrouplist): Likewise.
27006         (__nscd_getservbyname_r): Likewise.
27007         (__nscd_getservbyport_r): Likewise.
27008         (__nscd_innetgr): Likewise.
27009         (__nscd_setnetgrent): Likewise.
27011 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27013         [BZ #18822]
27014         * include/gmp.h: Declare internal functions only if _ISOMAC is
27015         undefined.
27016         (__mpn_extract_double): Add attribute_hidden.
27017         (__mpn_extract_long_double): Likewise.
27018         (__mpn_extract_float128): Likewise.
27019         (__mpn_construct_float): Likewise.
27020         (__mpn_construct_double): Likewise.
27021         (__mpn_construct_long_double): Likewise.
27022         (__mpn_construct_float128): Likewise.
27023         (mpn_add_1): Likewise.
27024         (mpn_addmul_1): Likewise.
27025         (mpn_add_n): Likewise.
27026         (mpn_cmp): Likewise.
27027         (mpn_divrem): Likewise.
27028         (mpn_lshift): Likewise.
27029         (mpn_mul): Likewise.
27030         (mpn_mul_1): Likewise.
27031         (mpn_rshift): Likewise.
27032         (mpn_sub_1): Likewise.
27033         (mpn_submul_1): Likewise.
27034         (mpn_sub_n): Likewise.
27036 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27038         [BZ #18822]
27039         * include/wchar.h (__wcsnlen): Add attribute_hidden.
27040         (__wcscat): Likewise.
27041         (__btowc): Likewise.
27042         (__wcrtomb): Likewise.
27043         (__mbsrtowcs): Likewise.
27044         (__wcsrtombs): Likewise.
27045         (__mbsnrtowcs): Likewise.
27046         (__wcsnrtombs): Likewise.
27047         (__wcsncpy): Likewise.
27048         (__wcpncpy): Likewise.
27049         (__wmemcpy): Likewise.
27050         (__wmempcpy): Likewise.
27051         (__wmemmove): Likewise.
27052         (__wcschrnul): Likewise.
27053         (__vfwscanf): Likewise.
27054         (__vswprintf): Likewise.
27055         (__fwprintf): Likewise.
27056         (__vfwprintf): Likewise.
27058 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27060         [BZ #18822]
27061         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27062         (__getgrgid_r): Likewise.
27063         (__getgrnam_r): Likewise.
27064         * include/pwd.h (__getpwuid_r): Likewise.
27065         (__getpwnam_r): Likewise.
27066         (__fgetpwent_r): Likewise.
27067         * include/shadow.h (__getspnam_r): Likewise.
27068         (__sgetspent_r): Likewise.
27069         (__fgetspent_r): Likewise.
27071 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27073         [BZ #18822]
27074         * include/unistd.h (__access): Add attribute_hidden.
27075         (__lseek64): Likewise.
27076         (__libc_pread64): Likewise.
27077         (__pipe2): Likewise.
27078         (__sleep): Likewise.
27079         (__chdir): Likewise.
27080         (__fchdir): Likewise.
27081         (__getcwd): Likewise.
27082         (__rmdir): Likewise.
27083         (__execvpe): Likewise.
27084         (__execve): Likewise.
27085         (__setsid): Likewise.
27086         (__getuid): Likewise.
27087         (__geteuid): Likewise.
27088         (__getgid): Likewise.
27089         (__getegid): Likewise.
27090         (__getgroups): Likewise.
27091         (__group_member): Likewise.
27092         (__ttyname_r): Likewise.
27093         (__isatty): Likewise.
27094         (__readlink): Likewise.
27095         (__unlink): Likewise.
27096         (__gethostname): Likewise.
27097         (__profil): Likewise.
27098         (__getdtablesize): Likewise.
27099         (__brk): Likewise.
27100         (__ftruncate): Likewise.
27101         (__ftruncate64): Likewise.
27103 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27105         [BZ #18822]
27106         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27107         * argp/argp-fs-xinl.c: Likewise.
27108         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27109         * argp/argp-parse.c: Include <argp.h>.
27110         * argp/argp-xinl.c: Likewise.
27111         * include/argp-fmtstream.h: New file.
27112         * include/argp.h (__argp_error): Add attribute_hidden.
27113         (__argp_failure): Likewise.
27114         (__argp_input): Likewise.
27115         (__argp_state_help): Likewise.
27117 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27119         [BZ #18822]
27120         * include/wchar.h (____wcstof_l_internal): New prototype.
27121         (____wcstod_l_internal): Likewise.
27122         (____wcstold_l_internal): Likewise.
27123         (____wcstol_l_internal): Likewise.
27124         (____wcstoul_l_internal): Likewise.
27125         (____wcstoll_l_internal): Likewise.
27126         (____wcstoull_l_internal): Likewise.
27127         (____wcstof128_l_internal): Likewise.
27128         * sysdeps/ieee754/float128/wcstof128.c
27129         (____wcstof128_l_internal): Removed.
27130         * sysdeps/ieee754/float128/wcstof128_l.c
27131         (____wcstof128_l_internal): Likewise.
27132         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27133         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27134         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27135         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27136         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27137         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27138         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27139         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27140         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27141         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27143 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27145         [BZ #18822]
27146         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27147         instead of <sys/statvfs.h>.
27148         (__internal_statvfs): Removed.
27149         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27150         instead of <sys/statvfs.h>.
27151         (__internal_statvfs64): Removed.
27152         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27153         "internal_statvfs.h" instead of <sys/statvfs.h>.
27154         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27155         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27156         instead of <sys/statvfs.h>.
27157         (__internal_statvfs): Removed.
27158         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27159         instead of <sys/statvfs.h>.
27160         (__internal_statvfs64): Removed.
27162 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27164         [BZ #18822]
27165         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27166         (__gconv_close): Likewise.
27167         (__gconv): Likewise.
27168         (__gconv_find_transform): Likewise.
27169         (__gconv_lookup_cache): Likewise.
27170         (__gconv_compare_alias_cache): Likewise.
27171         (__gconv_load_cache): Likewise.
27172         (__gconv_get_path): Likewise.
27173         (__gconv_close_transform): Likewise.
27174         (__gconv_release_cache): Likewise.
27175         (__gconv_find_shlib): Likewise.
27176         (__gconv_release_shlib): Likewise.
27177         (__gconv_get_builtin_trans): Likewise.
27178         (__gconv_compare_alias): Likewise.
27179         * include/dlfcn.h (_dlerror_run): Likewise.
27180         * include/stdio.h (__fortify_fail_abort): Likewise.
27181         * include/time.h (__tz_compute): Likewise.
27182         (__strptime_internal): Likewise.
27183         * intl/gettextP.h (_nl_find_domain): Likewise.
27184         (_nl_load_domain): Likewise.
27185         (_nl_find_msg): Likewise.
27186         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27187         (EXTRACT_PLURAL_EXPRESSION): Likewise.
27188         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27189         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27190         (__gai_find_request): Likewise.
27191         (__gai_remove_request): Likewise.
27192         (__gai_notify): Likewise.
27193         (__gai_notify_only): Likewise.
27194         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27195         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27196         (_dl_non_dynamic_init): Likewise.
27197         (_dl_aux_init): Likewise.
27198         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27199         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27200         Likewise.
27201         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27202         (__wcsmbs_clone_conv): Likewise.
27203         (__wcsmbs_named_conv): Likewise.
27205 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27207         [BZ #18822]
27208         * include/stdlib.h (__random): Add attribute_hidden.
27209         (__random_r): Likewise.
27210         (__srandom_r): Likewise.
27211         (__initstate_r): Likewise.
27212         (__setstate_r): Likewise.
27213         (__erand48_r): Likewise.
27214         (__nrand48_r): Likewise.
27215         (__jrand48_r): Likewise.
27216         (__srand48_r): Likewise.
27217         (__seed48_r): Likewise.
27218         (__lcong48_r): Likewise.
27219         (__drand48_iterate): Likewise.
27220         (__setenv): Likewise.
27221         (__unsetenv): Likewise.
27222         (__clearenv): Likewise.
27223         (__ptsname_r): Likewise.
27224         (__posix_openpt): Likewise.
27225         (__add_to_environ): Likewise.
27226         (__realpath): Add libc_hidden_proto.
27227         (__ecvt_r): Likewise.
27228         (__fcvt_r): Likewise.
27229         (__qecvt_r): Likewise.
27230         (__qfcvt_r): Likewise.
27231         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27232         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27234 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27236         [BZ #18822]
27237         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27238         * include/time.h (__mktime_internal): Likewise.
27239         * libio/iolibio.h (__fopen_internal): Likewise.
27241 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
27243         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27244         pointer in frame.
27245         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27246         Correct offset used to restore PIC register.
27248 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
27250         [BZ libc/22165]
27251         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27252         code to load address of __getcontext_ret when generating PIC code.
27254 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
27256         * elf/Makefile (tests-static-internal): Add
27257         tst-tls1-static-non-pie.
27258         (LDFLAGS-tst-tls1-static-non-pie): New.
27259         * elf/tst-tls1-static-non-pie.c: New file.
27261 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
27263         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27264         (asinh): Define using libm_alias_double.
27265         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27266         (cbrt): Define using libm_alias_double.
27267         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27268         <libm-alias-double.h>.
27269         (copysign): Define using libm_alias_double.
27270         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27271         (erf): Define using libm_alias_double.
27272         (erfc): Likewise.
27273         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27274         (expm1): Define using libm_alias_double.
27275         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27276         (fabs): Define using libm_alias_double.
27277         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27278         libm_alias_double.
27279         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27280         <libm-alias-double.h>.
27281         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27282         libm_alias_double.
27283         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27284         <libm-alias-double.h>.
27285         (getpayload): Define using libm_alias_double.
27286         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27287         <libm-alias-double.h>.
27288         (llrint): Define using libm_alias_double.
27289         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27290         (lrint): Define using libm_alias_double.
27291         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27292         <libm-alias-double.h>.
27293         (nextup): Define using libm_alias_double.
27294         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27295         <libm-alias-double.h>.
27296         (roundeven): Define using libm_alias_double.
27297         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27298         libm_alias_double.
27299         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27300         <libm-alias-double.h>.
27301         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27302         using libm_alias_double.
27303         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27304         (cos): Define using libm_alias_double.
27305         (sin): Likewise.
27306         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27307         <libm-alias-double.h>.
27308         (sincos): Define using libm_alias_double.
27309         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27310         (tanh): Define using libm_alias_double.
27311         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27312         <libm-alias-double.h>.
27313         (totalorder): Define using libm_alias_double.
27314         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27315         <libm-alias-double.h>.
27316         (totalordermag): Define using libm_alias_double.
27317         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27318         libm_alias_double.
27319         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27320         libm_alias_double.
27321         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27322         <libm-alias-double.h>.
27323         (getpayload): Define using libm_alias_double.
27324         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27325         <libm-alias-double.h>.
27326         (roundeven): Define using libm_alias_double.
27327         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27328         <libm-alias-double.h>.
27329         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27330         <libm-alias-double.h>.
27331         (totalorder): Define using libm_alias_double.
27332         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27333         <libm-alias-double.h>.
27334         (totalordermag): Define using libm_alias_double.
27335         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27336         libc compat symbol here.
27337         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27338         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27339         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27340         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27341         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27342         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27343         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27344         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27345         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27346         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27348 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27350         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27351         _dl_relocate_static_pie instead of _dl_start to compute load
27352         address in static PIE.  Return 0 if _DYNAMIC is undefined for
27353         static executable.
27355 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27357         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27358         _DYNAMIC is undefined for static executable.
27360 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27362         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27364 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
27366         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27368 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
27370         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27371         (__ieee754_lgamma_r): Use fabs rather than __fabs.
27372         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27373         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27374         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27375         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27376         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27377         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27378         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27379         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27380         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27381         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27382         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27383         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27384         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27385         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27386         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27388 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
27390         * math/bits/cmathcalls.h (cimag): Remove inline.
27391         (creal): Remove inline.
27392         (conj): Remove inline.
27394 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27396         * math/Makefile (type-float-routines): Add e_powf_log2_data.
27397         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27398         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27399         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27400         (issignalingf_inline): Likewise.
27401         (POWF_LOG2_TABLE_BITS): Likewise.
27402         (POWF_LOG2_POLY_ORDER): Likewise.
27403         (POWF_SCALE_BITS): Likewise.
27404         (POWF_SCALE): Likewise.
27405         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27406         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27407         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27409 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27411         * math/Makefile (type-float-routines): Add e_log2f_data.
27412         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27413         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27414         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27415         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27416         * sysdeps/i386/fpu/e_log2f_data.c: New file.
27417         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27418         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27420 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27422         * math/Makefile (type-float-routines): Add e_logf_data.
27423         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27424         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27425         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27426         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27427         * sysdeps/i386/fpu/e_logf_data.c: New file.
27428         * sysdeps/ia64/fpu/e_logf_data.c: New file.
27429         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27431 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27433         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27434         undefined _DYNAMIC in PIE libc.a.
27435         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27436         Likewse.
27438 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
27440         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27441         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27442         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27443         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27444         (__signbit): Remove.
27445         (__signbitl): Remove.
27446         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27447         (__signbit): Remove.
27448         (__signbitl): Remove.
27449         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27450         (__signbit): Remove.
27451         (__signbitl): Remove.
27452         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27453         (__signbit): Remove.
27454         (__signbitl): Remove.
27455         * sysdeps/tile/bits/mathinline.h: Delete file.
27456         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27457         (__signbit): Remove.
27458         (__signbitl): Remove.
27460 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
27462         * math/math.h: Improve handling of C99 isgreater macros.
27463         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27464         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27465         * sysdeps/powerpc/bits/mathinline.h: Likewise.
27466         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27467         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27469 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27471         * sysdeps/aarch64/libm-test-ulps: Update.
27473 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
27475         [BZ #22225]
27476         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27477         math_opt_barrier on argument when doing arithmetic on it.
27478         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27479         Likewise.  Use math_force_eval not math_opt_barrier after
27480         arithmetic.
27481         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27482         math_opt_barrier on argument when doing arithmetic on it.
27483         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27484         Likewise.
27486 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27488         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27489         libc_hidden_def.
27490         (__freeifaddrs): Likewise.
27492 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27494         * include/dirent.h (__dirfd): New declaration.
27495         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27496         alias.
27497         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27498         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27499         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27500         * include/unistd.h (__revoke): New declaration.
27501         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27502         alias.
27503         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27504         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27505         revoke.
27506         * include/dirent.h (__seekdir): New declaration.
27507         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27508         redefine as weak alias.
27509         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27510         of seekdir.
27511         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27512         and use libc_hidden_def on them.
27513         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27514         them.
27515         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27516         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27517         instead of getifaddrs and freeifaddrs.
27519 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
27521         [BZ #18822]
27522         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27523         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27524         (__dso_handle): Remove declaration.
27525         * dlfcn/tstatexit.c (__dso_handle): Removed.
27526         (main): Don't check __dso_handle.
27527         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27528         (main): Don't check __dso_handle.
27529         * include/dso_handle.h: New file.
27530         * malloc/mtrace.c: Include <dso_handle.h>.
27531         (mtrace): Pass __dso_handle directly.
27532         * nptl/pthread_atfork.c: Include <dso_handle.h>.
27533         (__dso_handle): Remove declaration.
27534         (__pthread_atfork): Pass __dso_handle directly.
27535         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27536         (__dso_handle): Removed.
27537         * posix/wordexp-test.c: Include <dso_handle.h>.
27538         (__dso_handle): Remove declaration.
27539         (__app_register_atfork): Pass __dso_handle directly.
27540         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27541         (__dso_handle): Remove declaration.
27542         (at_quick_exit): Pass __dso_handle directly.
27543         * stdlib/atexit.c: Include <dso_handle.h>.
27544         (__dso_handle): Remove declaration.
27545         (atexit): Pass __dso_handle directly.
27546         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27547         (__dso_handle): Removed.
27549 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27551         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27552         using VDSO.
27554 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
27556         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27557         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27558         values to correct default value for given type.
27560 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
27562         [BZ #22101]
27563         * elf/Makefile (tests): Add tst-debug1.
27564         ($(objpfx)tst-debug1): New.
27565         ($(objpfx)tst-debug1.out): Likewise.
27566         ($(objpfx)tst-debug1mod1.so): Likewise.
27567         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27568         with p_filesz == 0.
27569         * elf/tst-debug1.c: New file.
27571 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27573         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27574         Define using __ifunc.
27576 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27578         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27579         exp2f() values.
27581 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27583         [BZ #22156]
27584         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27586 2017-09-26  Florian Weimer  <fweimer@redhat.com>
27588         * resolv/Makefile (tests-internal): Fix typo in comment.
27590 2017-09-26  Florian Weimer  <fweimer@redhat.com>
27592         * resolv/nss_dns/dns-host.c: Fix typo in comment.
27594 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27596         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27597         Use an union instead of a max_align_t array for __space,
27598         so that __space is the same size on all platforms.
27599         * malloc/scratch_buffer_grow_preserve.c
27600         (__libc_scratch_buffer_grow_preserve): Likewise.
27602         [BZ #22183]
27603         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27604         version to 2.
27605         * posix/Makefile (routines): Add glob-lstat-compat and
27606         glob64-lstat-compat.
27607         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27608         * posix/glob-lstat-compat.c: New file.
27609         * posix/glob64-lstat-compat.c: Likewise.
27610         * posix/tst-glob_lstat_compat.c: Likewise.
27611         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27612         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27613         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27614         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27615         Likewise.
27616         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27617         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27618         * posix/glob.c (glob_lstat): New function.
27619         (glob): Rename to __glob and add versioned symbol to 2.27.
27620         (glob_in_dir): Use glob_lstat.
27621         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27622         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27623         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27624         2.27.
27625         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27626         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27627         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27628         gl_lstat on glob call.
27629         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27630         and glob64 symbols.
27631         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27632         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27633         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27634         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27635         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27636         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27637         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27638         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27639         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27640         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27641         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27642         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27643         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27644         Likewise.
27645         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27647         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27648         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27649         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27650         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27651         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27653         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27654         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27655         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27656         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27658 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
27660         * configure.ac (AS): Require binutils 2.25 or later.
27661         * configure: Regenerated.
27663 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
27665         [BZ #22207]
27666         * stdlib/test-atexit-race-common.c (do_test): Minimize required
27667         VM size.
27669 2017-09-25  DJ Delorie  <dj@redhat.com>
27671         [BZ #22161]
27672         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27673         resetting timeout.
27675 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
27677         * sysdeps/ieee754/dbl-64/sincos32.h
27678         [SINCCOS32_H]: Remove define.
27679         [SINCOS32_H]: Define.
27681 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27683         * math/Versions (expf): New libm symbol at GLIBC_2.27.
27684         (exp2f): Likewise.
27685         * math/w_exp2f.c: New file.
27686         * math/w_expf.c: New file.
27687         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27688         * math/w_expf_compat.c (__expf_compat): Likewise.
27689         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27690         * sysdeps/ia64/fpu/e_expf.S: Likewise.
27691         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27692         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27693         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27694         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27695         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27696         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27697         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27698         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27699         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27700         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27701         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27702         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27703         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27704         Likewise.
27705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27706         Likewise.
27707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27708         Likewise.
27709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27710         Likewise.
27711         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27712         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27713         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27714         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27715         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27717         Likewise.
27718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27719         Likewise.
27720         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27721         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27722         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27724 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27726         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27727         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27728         (roundtoint, converttoint): Likewise.
27729         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27730         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27731         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27732         * sysdeps/ieee754/flt-32/math_config.h: New file.
27733         * sysdeps/ieee754/flt-32/math_errf.c: New file.
27734         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27735         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27736         * sysdeps/i386/fpu/math_errf.c: New file.
27737         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27738         * sysdeps/ia64/fpu/math_errf.c: New file.
27739         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27740         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27742 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27744         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27745         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27746         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27747         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27748         to make sure that these symbols are defined.
27749         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27750         of <limits.h>
27751         (__need_NULL): Do not define.
27752         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27753         alignment.
27754         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27755         CMGROUP_MAX, cmsgcred): Do not define.
27756         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27757         NULL.
27758         * bits/socket.h: Likewise.
27759         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27760         __gettimeofday instead of gettimeofday.
27761         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27762         instead of settimeofday.
27764 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
27766         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27767         (asinhf): Define using libm_alias_float.
27768         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27769         (atanf): Define using libm_alias_float.
27770         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27771         (cbrtf): Define using libm_alias_float.
27772         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27773         (ceilf): Define using libm_alias_float.
27774         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27775         <libm-alias-float.h>.
27776         (copysignf): Define using libm_alias_float.
27777         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27778         (cosf): Define using libm_alias_float.
27779         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27780         (erff): Define using libm_alias_float.
27781         (erfcf): Likewise.
27782         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27783         (expm1f): Define using libm_alias_float.
27784         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27785         (fabsf): Define using libm_alias_float.
27786         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27787         (floorf): Define using libm_alias_float.
27788         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27789         (frexpf): Define using libm_alias_float.
27790         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27791         libm_alias_float.
27792         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27793         <libm-alias-float.h>.
27794         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27795         libm_alias_float.
27796         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27797         <libm-alias-float.h>.
27798         (getpayloadf): Define using libm_alias_float.
27799         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27800         <libm-alias-float.h>.
27801         (llrintf): Define using libm_alias_float.
27802         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27803         <libm-alias-float.h>.
27804         (llroundf): Define using libm_alias_float.
27805         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27806         (logbf): Define using libm_alias_float.
27807         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27808         (lrintf): Define using libm_alias_float.
27809         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27810         (lroundf): Define using libm_alias_float.
27811         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27812         (modff): Define using libm_alias_float.
27813         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27814         <libm-alias-float.h>.
27815         (nearbyintf): Define using libm_alias_float.
27816         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27817         <libm-alias-float.h>.
27818         (nextafterf): Define using libm_alias_float.
27819         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27820         <libm-alias-float.h>.
27821         (nextupf): Define using libm_alias_float.
27822         * sysdeps/ieee754/flt-32/s_remquof.c: Include
27823         <libm-alias-float.h>.
27824         (remquof): Define using libm_alias_float.
27825         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27826         (rintf): Define using libm_alias_float.
27827         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27828         <libm-alias-float.h>.
27829         (roundevenf): Define using libm_alias_float.
27830         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27831         (roundf): Define using libm_alias_float.
27832         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27833         using libm_alias_float.
27834         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27835         <libm-alias-float.h>.
27836         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27837         Define using libm_alias_float.
27838         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27839         <libm-alias-float.h>.
27840         (sincosf): Define using libm_alias_float.
27841         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27842         (sinf): Define using libm_alias_float.
27843         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27844         (tanf): Define using libm_alias_float.
27845         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27846         (tanhf): Define using libm_alias_float.
27847         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27848         <libm-alias-float.h>.
27849         (totalorderf): Define using libm_alias_float.
27850         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27851         <libm-alias-float.h>.
27852         (totalordermagf): Define using libm_alias_float.
27853         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27854         (truncf): Define using libm_alias_float.
27855         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27856         libm_alias_float.
27857         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27858         libm_alias_float.
27860 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27862         [BZ #22146]
27863         math/math.h: Let fpclassify use the builtin in C++ mode, even
27864         when optimazing for size.
27866 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
27868         * csu/Makefile (generated): Do not add version-info.h.
27869         (before-compile): Likewise.
27870         (all-Banner-files): Remove variable.
27871         ($(objpfx)version-info.h): Remove rule.
27872         * csu/version.c (banner): Do not include "version-info.h".
27873         * libidn/Banner: Remove.
27874         * manual/contrib.texi (Simon Josefsson): New entry.
27876 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27878         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27879         Remove conditionals on LDBL_MANT_DIG.
27880         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27881         (__ieee754_lgammal_r): Likewise.
27883 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27885         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27886         _Float128 and L().
27887         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27888         _Float128 and L(). Replace _Float128 with long double and L(x)
27889         with xL, throughout the file.
27890         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27891         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27892         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27893         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27895 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27897         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27898         sysdeps/ieee754/ldbl-128ibm.
27899         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27900         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27901         of including it.  Keep _Float128 and L() intact.  These will be
27902         reviewed by a separate patch.
27903         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27904         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27905         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27906         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27908 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27911         (__finitef128): Define to __redirect___finitef128.
27912         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27913         (__isinff128): Define to __redirect___isinff128.
27914         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27915         (__isnanf128): Define to __redirect___isnanf128.
27917 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27919         * sysdeps/powerpc/powerpc64le/Makefile
27920         (CFLAGS-tst-strtod-nan-locale.c): New variable.
27921         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27923 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
27924             Carlos O'Donell  <carlos@redhat.com>
27926         [BZ #22180]
27927         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27928         * stdlib/test-dlclose-exit-race.c: New file.
27929         * stdlib/test-dlclose-exit-race-helper.c: New file.
27930         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27932 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
27934         * crypt/Banner: Remove file.
27935         * nptl/Banner: Likewise.
27936         * resolv/Banner: Likewise.
27937         * soft-fp/Banner: Likewise.
27938         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27939         ($(objpfx)version.d): Remove dependency on banner.h.
27940         ($(objpfx)version.os): Likewise.
27941         * nptl/version.c (banner): Do not include banner.h.
27942         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27943         Jelinek and BIND code.
27945 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
27946             Carlos O'Donell  <carlos@redhat.com>
27948         * support/xdlfcn.h: New file.
27949         * support/xdlfcn.c: New file.
27950         * support/Makefile (libsupport-routines): Add xdlfcn.
27951         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27953 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
27955         [BZ #20142]
27956         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27957         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27958         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27959         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27960         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27961         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27962         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27963         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27965 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
27966             Ricky Zhou  <rickyz@google.com>
27967             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
27969         [BZ #14333]
27970         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27971         Remove atomics.
27972         (__new_exitfn): Fail registration when we finished at_exit processing.
27973         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27974         * stdlib/on_exit.c (__on_exit): Likewise.
27975         * stdlib/exit.c (__exit_funcs_done): New variable.
27976         (__run_exit_handlers): Use __exit_funcs_lock.
27977         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27978         declarations.
27979         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27980         (test-cxa_atexit-race, test-on_exit-race): New tests.
27981         * stdlib/test-atexit-race-common.c: New file.
27982         * stdlib/test-atexit-race.c: New file.
27983         * stdlib/test-at_quick_exit-race.c: New file.
27984         * stdlib/test-cxa_atexit-race.c: New file.
27985         * stdlib/test-on_exit-race.c: New file.
27987 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27989         * benchtests/Makefile: Add exp2f and log2f benchmarks.
27990         * benchtests/exp2f-inputs: Copy of expf-inputs.
27991         * benchtests/log2f-inputs: Copy of logf-inputs.
27993 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
27995         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27996         Explicitly take address of first element of array arguments in
27997         call to INLINE_SYSCALL.
27999 2017-09-19  Andreas Schwab  <schwab@suse.de>
28001         [BZ #22134]
28002         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28003         execveat first.
28004         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28005         unimplemented.
28006         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28007         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28008         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28009         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28010         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28011         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28012         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28013         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28014         * posix/Makefile (tests): Add tst-fexecve.
28015         * posix/tst-fexecve.c: New file.
28017 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28019         * benchtests/Makefile: Add logf benchmark.
28020         * benchtests/logf-inputs: Add reduced trace from wrf_r.
28022 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28024         * benchtests/Makefile: Add expf benchmark.
28025         * benchtests/expf-inputs: Add reduced trace from wrf_r.
28027 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28029         * csu/Makefile: Add -funwind-tables to libc-start.c.
28030         * debug/Makefile: Add -funwind-tables to backtrace.c.
28031         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28032         * sysdeps/arm/Makefile: Likewise.
28033         * sysdeps/i386/Makefile: Likewise.
28034         * sysdeps/m68k/Makefile: Likewise.
28035         * sysdeps/mips/Makefile: Likewise.
28036         * sysdeps/nios2/Makefile: Likewise.
28037         * sysdeps/sh/Makefile: Likewise.
28038         * sysdeps/sparc/Makefile: Likewise.
28040 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
28042         * benchtests/Makefile (bench-math): Add trunc and truncf.
28043         (CFLAGS-bench-trunc.c): New variable.
28044         (CFLAGS-bench-truncf.c): Likewise.
28045         * benchtests/trunc-inputs: New file.
28046         * benchtests/truncf-inputs: Likewise.
28048 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28050         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28052 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
28054         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28055         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28056         redefine.
28057         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28058         (exp10l): Define as weak alias.
28059         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28060         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28061         and redefine.
28062         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28063         (remainderl): Define as weak alias.
28065         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28066         (fmal): Define using libm_alias_ldouble.
28067         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28068         (acoshl): Define using libm_alias_ldouble.
28069         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28070         (acosl): Define using libm_alias_ldouble.
28071         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28072         (asinl): Define using libm_alias_ldouble.
28073         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28074         (atan2l): Define using libm_alias_ldouble.
28075         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28076         (atanhl): Define using libm_alias_ldouble.
28077         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28078         (coshl): Define using libm_alias_ldouble.
28079         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28080         (exp10l): Define using libm_alias_ldouble.
28081         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28082         (exp2l): Define using libm_alias_ldouble.
28083         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28084         (expl): Define using libm_alias_ldouble.
28085         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28086         (fmodl): Define using libm_alias_ldouble.
28087         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28088         (hypotl): Define using libm_alias_ldouble.
28089         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28090         (j0l): Define using libm_alias_ldouble.
28091         (y0l): Likewise.
28092         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28093         (j1l): Define using libm_alias_ldouble.
28094         (y1l): Likewise.
28095         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28096         (jnl): Define using libm_alias_ldouble.
28097         (ynl): Likewise.
28098         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28099         (log10l): Define using libm_alias_ldouble.
28100         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28101         (log2l): Define using libm_alias_ldouble.
28102         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28103         (logl): Define using libm_alias_ldouble.
28104         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28105         (powl): Define using libm_alias_ldouble.
28106         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28107         (remainderl): Define using libm_alias_ldouble.
28108         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28109         (sinhl): Define using libm_alias_ldouble.
28110         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28111         (sqrtl): Define using libm_alias_ldouble.
28112         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28113         (tgammal): Define using libm_alias_ldouble.
28114         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28115         (exp10l): Do not use long_double_symbol here.
28116         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28117         [LIBM_SVID_COMPAT] (remainderl): Likewise.
28118         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28119         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28120         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28121         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28122         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28123         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28124         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28125         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28126         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28127         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28128         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28129         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28130         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28131         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28132         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28133         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28134         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28135         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28136         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28137         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28139 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
28141         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28142         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28144 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28146         * io/read.c (read): Add libc_hidden_weak.
28147         * sysdeps/mach/hurd/read.c (read): Likewise.
28148         * io/write.c (write): Likewise.
28149         * sysdeps/mach/hurd/write.c (write): Likewise.
28150         * io/pread64.c (__pread64): Likewise.
28151         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28152         * posix/pread64.c (__pread64): Add libc_hidden_def.
28154 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28156         * benchtests/scripts/compare_strings.py: New option -g.
28157         (draw_graph): Print a message that a graph is being generated.
28158         (process_results): Generate graph only if -g is passed.
28159         (main): Process option -g.
28161         * benchtests/scripts/compare_strings.py (process_results):
28162         Better spacing for output.
28164         * benchtests/scripts/compare_strings.py: Use argparse.
28165         * benchtests/README: Document existence of compare_strings.py.
28167 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
28169         * math/s_fma.c: Include <libm-alias-double.h>.
28170         (fma): Define using libm_alias_double.
28171         * math/s_nextafter.c: Include <libm-alias-double.h>.
28172         (nextafter): Define using libm_alias_double.
28173         * math/w_acos_compat.c: Include <libm-alias-double.h>.
28174         (acos): Define using libm_alias_double.
28175         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28176         (aocsh): Define using libm_alias_double.
28177         * math/w_asin_compat.c: Include <libm-alias-double.h>.
28178         (asin): Define using libm_alias_double.
28179         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28180         (atan2): Define using libm_alias_double.
28181         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28182         (atanh): Define using libm_alias_double.
28183         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28184         (cosh): Define using libm_alias_double.
28185         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28186         (exp10): Define using libm_alias_double.
28187         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28188         (exp2): Define using libm_alias_double.
28189         * math/w_exp_compat.c: Include <libm-alias-double.h>.
28190         (exp): Define using libm_alias_double.
28191         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28192         (fmod): Define using libm_alias_double.
28193         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28194         (hypot): Define using libm_alias_double.
28195         * math/w_j0_compat.c: Include <libm-alias-double.h>.
28196         (j0): Define using libm_alias_double.
28197         (y0): Likewise.
28198         * math/w_j1_compat.c: Include <libm-alias-double.h>.
28199         (j1): Define using libm_alias_double.
28200         (y1): Likewise.
28201         * math/w_jn_compat.c: Include <libm-alias-double.h>.
28202         (jn): Define using libm_alias_double.
28203         (yn): Likewise.
28204         * math/w_log10_compat.c: Include <libm-alias-double.h>.
28205         (log10): Define using libm_alias_double.
28206         * math/w_log2_compat.c: Include <libm-alias-double.h>.
28207         (log2): Define using libm_alias_double.
28208         * math/w_log_compat.c: Include <libm-alias-double.h>.
28209         (log): Define using libm_alias_double.
28210         * math/w_pow_compat.c: Include <libm-alias-double.h>.
28211         (pow): Define using libm_alias_double.
28212         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28213         (remainder): Define using libm_alias_double.
28214         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28215         (sinh): Define using libm_alias_double.
28216         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28217         (sqrt): Define using libm_alias_double.
28218         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28219         (tgamma): Define using libm_alias_double.
28220         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28221         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28222         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28223         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28224         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28225         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28226         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28227         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28228         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28229         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28230         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28231         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28232         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28233         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28234         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28235         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28236         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28237         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28238         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28239         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28240         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28241         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28242         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28243         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28244         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28246         * math/e_acoshl.c: Remove.
28247         * math/e_acosl.c: Likewise.
28248         * math/e_asinl.c: Likewise.
28249         * math/e_atan2l.c: Likewise.
28250         * math/e_atanhl.c: Likewise.
28251         * math/e_coshl.c: Likewise.
28252         * math/e_expl.c: Likewise.
28253         * math/e_fmodl.c: Likewise.
28254         * math/e_gammal_r.c: Likewise.
28255         * math/e_hypotl.c: Likewise.
28256         * math/e_j0l.c: Likewise.
28257         * math/e_j1l.c: Likewise.
28258         * math/e_jnl.c: Likewise.
28259         * math/e_lgammal_r.c: Likewise.
28260         * math/e_log10l.c: Likewise.
28261         * math/e_log2l.c: Likewise.
28262         * math/e_logl.c: Likewise.
28263         * math/e_powl.c: Likewise.
28264         * math/e_rem_pio2l.c: Likewise.
28265         * math/e_sinhl.c: Likewise.
28266         * math/e_sqrtf128.c: Likewise.
28267         * math/e_sqrtl.c: Likewise.
28268         * math/k_cosl.c: Likewise.
28269         * math/k_sinl.c: Likewise.
28270         * math/k_tanl.c: Likewise.
28271         * math/s_asinhl.c: Likewise.
28272         * math/s_atanl.c: Likewise.
28273         * math/s_cbrtl.c: Likewise.
28274         * math/s_erfl.c: Likewise.
28275         * math/s_expm1l.c: Likewise.
28276         * math/s_log1pl.c: Likewise.
28277         * math/s_tanhl.c: Likewise.
28279 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28281         [BZ #21745]
28282         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28283         [$(subdir) = math] (sysdep_calls): New variable.  Has the
28284         previous contents of sysdep_routines, but re-sorted..
28285         [$(subdir) = math] (sysdep_routines): Re-use the contents from
28286         sysdep_calls.
28287         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28288         defined in sysdep_calls and replace by the respective m_* names.
28289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28290         (compat_symbol): Undefine to avoid duplicated compat symbols in
28291         libc.
28293 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
28295         * math/s_fmaf.c: Include <libm-alias-float.h>.
28296         (fmaf): Define using libm_alias_float.
28297         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28298         (acosf): Define using libm_alias_float.
28299         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28300         (acoshf): Define using libm_alias_float.
28301         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28302         (asinf): Define using libm_alias_float.
28303         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28304         (atan2f): Define using libm_alias_float.
28305         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28306         (atanhf): Define using libm_alias_float.
28307         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28308         (coshf): Define using libm_alias_float.
28309         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28310         (exp10f): Define using libm_alias_float.
28311         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28312         (fmodf): Define using libm_alias_float.
28313         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28314         (hypotf): Define using libm_alias_float.
28315         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28316         (j0f): Define using libm_alias_float.
28317         (y0f): Likewise.
28318         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28319         (j1f): Define using libm_alias_float.
28320         (y1f): Likewise.
28321         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28322         (jnf): Define using libm_alias_float.
28323         (ynf): Likewise.
28324         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28325         (log10f): Define using libm_alias_float.
28326         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28327         (log2f): Define using libm_alias_float.
28328         * math/w_logf_compat.c: Include <libm-alias-float.h>.
28329         (logf): Define using libm_alias_float.
28330         * math/w_powf_compat.c: Include <libm-alias-float.h>.
28331         (powf): Define using libm_alias_float.
28332         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28333         (remainderf): Define using libm_alias_float.
28334         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28335         (sinhf): Define using libm_alias_float.
28336         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28337         (sqrtf): Define using libm_alias_float.
28338         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28339         (tgammaf): Define using libm_alias_float.
28341 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
28343         * include/math.h (roundeven): Change hidden_proto call to
28344         __roundeven.
28345         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28346         alias.
28347         [NO_LONG_DOUBLE] (__j0l): New strong alias.
28348         (y0): Rename to __y0 and define as weak alias.
28349         [NO_LONG_DOUBLE] (__y0l): New strong alias.
28350         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28351         alias.
28352         (y0f): Rename to __y0f and define as weak alias.
28353         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28354         alias.
28355         [NO_LONG_DOUBLE] (__j1l): New strong alias.
28356         (y1): Rename to __y1 and define as weak alias.
28357         [NO_LONG_DOUBLE] (__y1l): New strong alias.
28358         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28359         alias.
28360         (y1f): Rename to __y1f and define as weak alias.
28361         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28362         alias.
28363         [NO_LONG_DOUBLE] (__jnl): New strong alias.
28364         (yn): Rename to __yn and define as weak alias.
28365         [NO_LONG_DOUBLE] (__ynl): New strong alias.
28366         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28367         alias.
28368         (ynf): Rename to __ynf and define as weak alias.
28369         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28370         (fromfp): Define as weak alias.
28371         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28372         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28373         (fromfpx): Define as weak alias.
28374         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28375         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28376         __getpayload and define as weak alias.
28377         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28378         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28379         __roundeven and define as weak alias.
28380         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28381         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28382         __setpayload.
28383         (setpayload): Define as weak alias.
28384         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28385         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28386         __setpayloadsig.
28387         (setpayloadsig): Define as weak alias.
28388         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28389         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28390         __totalorder and define as weak alias.
28391         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28392         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28393         to __totalordermag and define as weak alias.
28394         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28395         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28396         (ufromfp): Define as weak alias.
28397         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28398         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28399         __ufromfpx.
28400         (ufromfpx): Define as weak alias.
28401         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28402         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28403         Rename to __getpayload and define as weak alias.
28404         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28405         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28406         Rename to __roundeven and define as weak alias.
28407         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28408         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28409         Rename to __totalorder and define as weak alias.
28410         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28411         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28412         (totalordermag): Rename to __totalordermag and define as weak
28413         alias.
28414         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28415         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28416         macro.
28417         (__roundevenl): Likewise.
28418         (__totalorderl): Likewise.
28419         (__totalordermagl): Likewise
28420         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28421         __fromfpf128.
28422         (fromfpf128): Define as weak alias.
28423         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28424         __fromfpxf128.
28425         (fromfpxf128): Define as weak alias.
28426         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28427         __setpayloadf128.
28428         (setpayloadf128): Define as weak alias.
28429         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28430         __setpayloadsigf128.
28431         (setpayloadsigf128): Define as weak alias.
28432         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28433         __ufromfpf128.
28434         (ufromfpf128): Define as weak alias.
28435         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28436         __ufromfpxf128.
28437         (ufromfpxf128): Define as weak alias.
28438         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28439         (fromfpf): Define as weak alias.
28440         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28441         __fromfpxf.
28442         (fromfpxf): Define as weak alias.
28443         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28444         __getpayloadf and define as weak alias.
28445         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28446         __roundevenf and define as weak alias.
28447         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28448         __setpayloadf.
28449         (setpayloadf): Define as weak alias.
28450         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28451         __setpayloadsigf.
28452         (setpayloadsigf): Define as weak alias.
28453         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28454         __totalorderf and define as weak alias.
28455         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28456         Rename to __totalordermagf and define as weak alias.
28457         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28458         __ufromfpf.
28459         (ufromfpf): Define as weak alias.
28460         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28461         __ufromfpxf.
28462         (ufromfpxf): Define as weak alias.
28463         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28464         __fromfpl.
28465         (fromfpl): Define as weak alias.
28466         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28467         __fromfpxl.
28468         (fromfpxl): Define as weak alias.
28469         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28470         to __getpayloadl and define as weak alias.
28471         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28472         __roundevenl and define as weak alias.
28473         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28474         __setpayloadl.
28475         (setpayloadl): Define as weak alias.
28476         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28477         __setpayloadsigl.
28478         (setpayloadsigl): Define as weak alias.
28479         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28480         to __totalorderl and define as weak alias.
28481         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28482         Rename to __totalordermagl and define as weak alias.
28483         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28484         __ufromfpl.
28485         (ufromfpl): Define as weak alias.
28486         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28487         __ufromfpxl.
28488         (ufromfpxl): Define as weak alias.
28489         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28490         __fromfpl.
28491         (fromfpl): Define as weak alias.
28492         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28493         __fromfpxl.
28494         (fromfpxl): Define as weak alias.
28495         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28496         Rename to __getpayloadl and define as weak alias.
28497         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28498         to __roundevenl and define as weak alias.  Call __roundeven
28499         instead of roundeven.
28500         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28501         __setpayloadl.
28502         (setpayloadl): Define as weak alias.
28503         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28504         __setpayloadsigl.
28505         (setpayloadsigl): Define as weak alias.
28506         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28507         Rename to __totalorderl and define as weak alias.
28508         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28509         Rename to __totalordermagl and define as weak alias.
28510         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28511         __ufromfpl.
28512         (ufromfpl): Define as weak alias.
28513         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28514         __ufromfpxl.
28515         (ufromfpxl): Define as weak alias.
28516         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28517         __fromfpl.
28518         (fromfpl): Define as weak alias.
28519         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28520         __fromfpxl.
28521         (fromfpxl): Define as weak alias.
28522         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28523         __getpayloadl and define as weak alias.
28524         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28525         __roundevenl and define as weak alias.
28526         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28527         __setpayloadl.
28528         (setpayloadl): Define as weak alias.
28529         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28530         __setpayloadsigl.
28531         (setpayloadsigl): Define as weak alias.
28532         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28533         __totalorderl and define as weak alias.
28534         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28535         Rename to __totalordermagl and define as weak alias.
28536         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28537         __ufromfpl.
28538         (ufromfpl): Define as weak alias.
28539         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28540         __ufromfpxl.
28541         (ufromfpxl): Define as weak alias.
28543 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28545         * benchtests/bench-string.h (realloc_bufs): New function.
28546         (test_init): Call it.
28547         * benchtests/bench-memset-large.c (do_test): Likewise.
28548         * benchtests/bench-memset.c (do_test): Likewise.
28550         * benchtests/bench-memset-large.c: Print output in JSON
28551         format.
28552         * benchtests/bench-memset.c: Likewise.
28554 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
28556         [BZ #21084]
28557         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28558         * iconvdata/Makefile: Add IBM858.
28559         * iconvdata/gconv-modules: Likewise.
28560         * iconvdata/tst-tables.sh: Likewise.
28561         * iconvdata/ibm858.c: New file.
28562         * localedata/charmaps/IBM858: Likewise.
28564 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
28566         [BZ #22023]
28567         * locales/niu_NZ (LC_TIME): copy "niu_NU".
28568         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28570 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
28572         [BZ #22112]
28573         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28574         and add tel_int_fmt.
28576 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
28578         * sysdeps/generic/libm-alias-float128.h: New file.
28579         * sysdeps/generic/math-type-macros-float128.h: Include
28580         <libm-alias-float128.h>.
28581         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28583 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28585         * sysdeps/generic/libm-alias-ldouble.h: New file.
28586         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28587         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28588         * sysdeps/generic/math-type-macros-ldouble.h: Include
28589         <libm-alias-ldouble.h>.
28590         [!declare_mgen_alias] (declare_mgen_alias): Define to use
28591         libm_alias_ldouble.
28593 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28595         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28596         * math/w_exp_compat.c: ... here.
28597         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28598         * math/w_expf_compat.c: ... here.
28599         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28600         * math/w_expl_compat.c: ... here.
28601         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28602         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28603         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28604         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28606 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28608         * math/w_scalbln_template.c (strong_alias): Do not undefine and
28609         redefine.
28610         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28611         macro.
28612         (ldexpl): Only define as compat symbol for libc, not libm.
28613         (scalbnl): Define as compat symbol for libc here.
28614         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28615         define for [IS_IN (libc)].
28616         (__ldexpl_2): Remove alias.
28617         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28618         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
28619         name in long_double_symbol call.
28620         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28621         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28622         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28623         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28624         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28625         Remove macro.
28626         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28627         Define as compat symbol.
28629 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28631         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28632         * sysdeps/unix/sysv/linux/alpha/Makefile
28633         [$(subdir) = csu] (sysdep_routines): Remove rule.
28635 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28637         * sysdeps/generic/libm-alias-double.h: New file.
28638         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28639         * sysdeps/generic/math-type-macros-double.h: Include
28640         <libm-alias-double.h>.
28641         [declare_mgen_alias] (declare_mgen_alias): Define to use
28642         libm_alias_double.
28643         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28644         (M_LIBM_NEED_COMPAT): Remove macro.
28645         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28646         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28647         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28648         code.
28649         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28650         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28651         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28652         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28653         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28654         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28655         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28656         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28657         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28658         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28659         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28660         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28661         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28662         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28663         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28664         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28665         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28666         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28667         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28668         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28669         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28670         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28671         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28672         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28673         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28674         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28675         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28676         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28677         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28678         macro.
28679         (declare_mgen_alias): New macro.
28680         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28681         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28683         (M_LIBM_NEED_COMPAT): Remove macro.
28684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28685         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28686         <first-versions.h>.
28687         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28688         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28690 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
28692         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28693         (declare_mgen_alias_2): Remove.
28694         * sysdeps/generic/math-type-macros-double.h
28695         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28696         Likewise.
28697         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28698         alias.
28699         (ldexp): Define with declare_mgen_alias.
28700         (scalbn): Likewise.
28702 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
28704         * grp/initgroups.c: Include config.h.
28705         (DEFAULT_CONFIG): New macro.
28706         (internal_getgrouplist): Use DEFAULT_CONFIG.
28707         * nscd/initgrcache.c (addinitgroupsX): Likewise.
28708         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28709         (DEFAULT_DEFCONFIG): New macro.
28710         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28711         * nss/grp-lookup.c: Include config.h
28712         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28713         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28714         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28715         * manual/nss.texi: Update default values section.
28717 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
28719         [BZ #21967]
28720         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28721         New.
28722         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28723         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28724         Handle MathVec_Prefer_No_AVX512.
28725         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28726         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28727         is set.
28729 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28731         * posix/sched_primax.c (__sched_get_priority_max): Add
28732         libc_hidden_def.
28733         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28734         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28735         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28736         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28737         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28738         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28739         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28740         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28741         Add aliases.
28743 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
28745         * sysdeps/generic/libm-alias-float.h: New file.
28746         * sysdeps/generic/math-type-macros-float.h: Include
28747         <libm-alias-float.h>.
28748         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28750 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28752         [BZ #22093]
28753         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28754         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28755         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28756         (HWCAP_IMPORTANT): Likewise.
28757         (HWCAP_X86_64): New enum.
28758         (HWCAP_X86_AVX512_1): Updated.
28759         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28760         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28761         (modules-names): Add x86_64/tst-x86_64mod-1.
28762         (LDFLAGS-tst-x86_64mod-1.so): New.
28763         ($(objpfx)tst-x86_64-1): Likewise.
28764         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28765         (tst-x86_64-1-clean): Likewise.
28766         * sysdeps/x86_64/tst-x86_64-1.c: New file.
28767         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28769 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28771         * po/sv.po: Update translations.
28772         * po/fr.po: Likewise.
28774 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28776         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28777         seconds.
28778         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28779         seconds.
28780         * elf/rtld-Rules: Fix $(error) use.
28782 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
28784         [BZ #14925]
28785         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28786         * locale/iso-639.def: Change “Bengali” to “Bangla”.
28787         * localedata/locales/bn_BD: “Bengali” was still used in some
28788         comments. Change it to “Bangla”.
28790 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
28792         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28794 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
28796         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28797         thunderx2t99p1 to list of cpu names.
28798         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28799         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28801 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
28803         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28804         Use strcmp instead of tunable_is_name.
28806 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
28808         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28809         (F_GET_RW_HINT): New macro.
28810         [__USE_GNU] (F_SET_RW_HINT): Likewise.
28811         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28812         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28813         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28814         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28815         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28816         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28817         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28818         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28820         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28821         (F_ADD_SEALS): New macro.
28822         [__USE_GNU] (F_GET_SEALS): Likewise.
28823         [__USE_GNU] (F_SEAL_SEAL): Likewise.
28824         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28825         [__USE_GNU] (F_SEAL_GROW): Likewise.
28826         [__USE_GNU] (F_SEAL_WRITE): Likewise.
28828 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28830         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28831         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28832         * posix/glob_internal.h (__glob_pattern_type):
28833         * posix/glob.c (glob):
28834         * posix/glob_pattern_p.c (__glob_pattern_p):
28835         Use them.
28837         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28838         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28839         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28840         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28841         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28843         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28844         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28845         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28846         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28847         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28848         * sysdeps/wordsize-64/glob.c: Likewise.
28849         * sysdeps/wordsize-64/glob64.c: Likewise.
28850         * sysdeps/wordsize-64/globfree.c: Likewise.
28851         * sysdeps/wordsize-64/globfree64.c: Likewise.
28852         * sysdeps/unix/sysv/linux/glob.c: New file.
28853         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28854         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28855         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28856         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28857         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28858         adds !GLOB_NO_OLD_VERSION as an extra condition.
28859         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28860         using relative path instead of absolute one.
28861         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28862         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28863         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28864         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28865         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28866         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28868         [BZ #1062]
28869         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28870         (glob): Use the same scratch buffer for both getlogin_r and
28871         getpwnam_r.  Don’t require preallocation of the login name.  This
28872         simplifies storage allocation, and corrects the handling of
28873         long login names.
28875         [BZ #1062]
28876         * posix/glob.c (glob): Port recent patches to platforms
28877         lacking getpwnam_r.
28878         (glob): Fix longstanding misuse of errno after getpwnam_r, which
28879         returns an error number rather than setting errno.
28881         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28882         instead of GCC extension.
28883         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28884         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28885         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28887         [BZ #866]
28888         [BZ #1062]
28889         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28890         * posix/bug-glob1.c: Remove file.
28891         * posix/tst-glob_symlinks.c: New file.
28892         * posix/glob.c (__lstat64): New macro.
28893         (is_dir): New function.
28894         (glob, glob_in_dir): Match symlinks even if they are dangling.
28895         (link_stat, link_exists_p): Remove.  All uses removed.
28897         [BZ #1062]
28898         [BZ #19971]
28899         * posix/glob.c (struct readdir_result): Remove skip_entry member.
28900         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28901         All uses removed.
28903         [BZ #1062]
28904         CVE-2017-15671
28905         * posix/Makefile (routines): Add globfree, globfree64, and
28906         glob_pattern_p.
28907         * posix/flexmember.h: New file.
28908         * posix/glob_internal.h: Likewise.
28909         * posix/glob_pattern_p.c: Likewise.
28910         * posix/globfree.c: Likewise.
28911         * posix/globfree64.c: Likewise.
28912         * sysdeps/gnu/globfree64.c: Likewise.
28913         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28914         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28915         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28916         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28917         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28918         * sysdeps/wordsize-64/globfree.c: Likewise.
28919         * sysdeps/wordsize-64/globfree64.c: Likewise.
28920         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28921         [NDEBUG): Remove comments.
28922         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28923         (dirent_type): New type.  Use uint_fast8_t not
28924         uint8_t, as C99 does not require uint8_t.
28925         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28926         (struct readdir_result): Use dirent_type.  Do not define skip_entry
28927         unless it is needed; this saves a byte on platforms lacking d_ino.
28928         (readdir_result_type, readdir_result_skip_entry):
28929         New functions, replacing ...
28930         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28931          these functions, which were removed.  This makes the callers
28932         easier to read.  All callers changed.
28933         (D_INO_TO_RESULT): Now empty if there is no d_ino.
28934         (size_add_wrapv, glob_use_alloca): New static functions.
28935         (glob, glob_in_dir): Check for size_t overflow in several places,
28936         and fix some size_t checks that were not quite right.
28937         Remove old code using SHELL since Bash no longer
28938         uses this.
28939         (glob, prefix_array): Separate MS code better.
28940         (glob_in_dir): Remove old Amiga and VMS code.
28941         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28942         separate files.
28943         (glob_in_dir): Do not rely on undefined behavior in accessing
28944         struct members beyond their bounds.  Use a flexible array member
28945         instead
28946         (link_stat): Rename from link_exists2_p and return -1/0 instead of
28947         0/1.  Caller changed.
28948         (glob): Fix memory leaks.
28949         * posix/glob64 (globfree64): Move to separate file.
28950         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28951         (globfree64): Remove hidden alias.
28952         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28953         oldglob.
28954         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28955         separate file.
28956         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28957         define.
28958         Move compat code to separate file.
28959         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28960         separate file.
28962 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28964         * resolv/tst-resolv-qtypes.c (domain): Changed to
28965         "const char domain[] =".
28967 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
28969         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28970         version to 3.1.6.
28972         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28973         (TCP_MD5SIG_EXT): Likewise.
28974         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28975         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28976         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
28978         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28980 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
28982         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28984 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
28986         [BZ #22100]
28987         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28989 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28991         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28992         before assuming that the file is empty.  Avoid testing buffer content
28993         when nread == 0.
28995 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28997         [BZ #18858]
28998         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28999         Remove define.
29000         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29001         Likewise.
29002         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29003         Likewise.
29004         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29005         Likewise.
29006         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29007         Likewise.
29008         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29009         Likewise.
29010         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29011         Likewise.
29013 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29015         * malloc/dynarray_emplace_enlarge.c
29016         (__libc_dynarray_emplace_enlarge): Add missing else.
29018 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29020         [BZ #22096]
29021         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29022         case of failure to obtain the global conf object.
29024 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29026         [BZ #22095]
29027         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29028         dynarray allocation failure.
29030 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29032         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29033         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29034         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29035         New functions.
29036         (response): Call them.  Add 'p', '6' flag processing.
29037         (test_reverse): New function.
29038         (test_get2_any): Call it.
29039         (test_no_inet6): Add 'p' test.
29040         (test_inet6): Likewise.
29042 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29044         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29045         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29046         the QNAME.
29047         (test_gai): Adjust query names.  Add additional tests.
29048         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29049         test_get2.  Adjust query names.  Add additional tests.
29050         (test_no_inet6): New function, extracted from threadfunc.
29051         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29052         Add additional tests.
29054 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
29056         [BZ #22070]
29057         * localedata/unicode-gen/utf8_gen.py: Set the width for
29058         characters with Prepended_Concatenation_Mark property to 1
29059         * localedata/charmaps/UTF-8: Updated using the improved script.
29061 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
29063         [BZ #21750]
29064         * localedata/unicode-gen/utf8_gen.py: Improve the script to
29065         use the range notation for all ranges of neighbouring characters
29066         with the same width.
29068 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
29070         * sysdeps/generic/math-type-macros-double.h: Include
29071         <math-svid-compat.h>.
29072         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29073         * sysdeps/generic/math-type-macros-float.h: Include
29074         <math-svid-compat.h>.
29075         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29076         * sysdeps/generic/math-type-macros-ldouble.h: Include
29077         <math-svid-compat.h>.
29078         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29079         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29080         condition.
29081         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29082         * math/w_acosf_compat.c: Likewise.
29083         * math/w_acosh_compat.c: Likewise.
29084         * math/w_acoshf_compat.c: Likewise.
29085         * math/w_acoshl_compat.c: Likewise.
29086         * math/w_acosl_compat.c: Likewise.
29087         * math/w_asin_compat.c: Likewise.
29088         * math/w_asinf_compat.c: Likewise.
29089         * math/w_asinl_compat.c: Likewise.
29090         * math/w_atan2_compat.c: Likewise.
29091         * math/w_atan2f_compat.c: Likewise.
29092         * math/w_atan2l_compat.c: Likewise.
29093         * math/w_atanh_compat.c: Likewise.
29094         * math/w_atanhf_compat.c: Likewise.
29095         * math/w_atanhl_compat.c: Likewise.
29096         * math/w_cosh_compat.c: Likewise.
29097         * math/w_coshf_compat.c: Likewise.
29098         * math/w_coshl_compat.c: Likewise.
29099         * math/w_exp10_compat.c: Likewise.
29100         * math/w_exp10f_compat.c: Likewise.
29101         * math/w_exp10l_compat.c: Likewise.
29102         * math/w_exp2_compat.c: Likewise.
29103         * math/w_exp2f_compat.c: Likewise.
29104         * math/w_exp2l_compat.c: Likewise.
29105         * math/w_fmod_compat.c: Likewise.
29106         * math/w_fmodf_compat.c: Likewise.
29107         * math/w_fmodl_compat.c: Likewise.
29108         * math/w_hypot_compat.c: Likewise.
29109         * math/w_hypotf_compat.c: Likewise.
29110         * math/w_hypotl_compat.c: Likewise.
29111         * math/w_j0_compat.c: Likewise.
29112         * math/w_j0f_compat.c: Likewise.
29113         * math/w_j0l_compat.c: Likewise.
29114         * math/w_j1_compat.c: Likewise.
29115         * math/w_j1f_compat.c: Likewise.
29116         * math/w_j1l_compat.c: Likewise.
29117         * math/w_jn_compat.c: Likewise.
29118         * math/w_jnf_compat.c: Likewise.
29119         * math/w_jnl_compat.c: Likewise.
29120         * math/w_lgamma_r_compat.c: Likewise.
29121         * math/w_lgammaf_r_compat.c: Likewise.
29122         * math/w_lgammal_r_compat.c: Likewise.
29123         * math/w_log10_compat.c: Likewise.
29124         * math/w_log10f_compat.c: Likewise.
29125         * math/w_log10l_compat.c: Likewise.
29126         * math/w_log2_compat.c: Likewise.
29127         * math/w_log2f_compat.c: Likewise.
29128         * math/w_log2l_compat.c: Likewise.
29129         * math/w_log_compat.c: Likewise.
29130         * math/w_logf_compat.c: Likewise.
29131         * math/w_logl_compat.c: Likewise.
29132         * math/w_pow_compat.c: Likewise.
29133         * math/w_powf_compat.c: Likewise.
29134         * math/w_powl_compat.c: Likewise.
29135         * math/w_remainder_compat.c: Likewise.
29136         * math/w_remainderf_compat.c: Likewise.
29137         * math/w_remainderl_compat.c: Likewise.
29138         * math/w_sinh_compat.c: Likewise.
29139         * math/w_sinhf_compat.c: Likewise.
29140         * math/w_sinhl_compat.c: Likewise.
29141         * math/w_sqrt_compat.c: Likewise.
29142         * math/w_sqrtf_compat.c: Likewise.
29143         * math/w_sqrtl_compat.c: Likewise.
29144         * math/w_tgamma_compat.c: Likewise.
29145         * math/w_tgammaf_compat.c: Likewise.
29146         * math/w_tgammal_compat.c: Likewise.
29147         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29148         [LIBM_SVID_COMPAT].
29149         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29150         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29151         [LIBM_SVID_COMPAT].
29152         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29153         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29154         [LIBM_SVID_COMPAT].
29155         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29156         * sysdeps/i386/fpu/w_sqrt.c: New file.
29157         * sysdeps/ia64/fpu/w_acos.c: Likewise.
29158         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29159         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29160         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29161         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29162         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29163         * sysdeps/ia64/fpu/w_asin.c: Likewise.
29164         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29165         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29166         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29167         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29168         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29169         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29170         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29171         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29172         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29173         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29174         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29175         * sysdeps/ia64/fpu/w_exp.c: Likewise.
29176         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29177         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29178         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29179         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29180         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29181         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29182         * sysdeps/ia64/fpu/w_expf.c: Likewise.
29183         * sysdeps/ia64/fpu/w_expl.c: Likewise.
29184         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29185         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29186         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29187         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29188         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29189         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29190         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29191         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29192         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29193         * sysdeps/ia64/fpu/w_log.c: Likewise.
29194         * sysdeps/ia64/fpu/w_log10.c: Likewise.
29195         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29196         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29197         * sysdeps/ia64/fpu/w_log2.c: Likewise.
29198         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29199         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29200         * sysdeps/ia64/fpu/w_logf.c: Likewise.
29201         * sysdeps/ia64/fpu/w_logl.c: Likewise.
29202         * sysdeps/ia64/fpu/w_pow.c: Likewise.
29203         * sysdeps/ia64/fpu/w_powf.c: Likewise.
29204         * sysdeps/ia64/fpu/w_powl.c: Likewise.
29205         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29206         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29207         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29208         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29209         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29210         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29211         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29212         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29213         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29214         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29215         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29216         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29217         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29218         [LIBM_SVID_COMPAT].
29219         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29220         * sysdeps/ieee754/k_standard.c: Likewise.
29221         * sysdeps/ieee754/k_standardf.c: Likewise.
29222         * sysdeps/ieee754/k_standardl.c: Likewise.
29223         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29224         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29225         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29226         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29227         long_double_symbol call on [LIBM_SVID_COMPAT].
29228         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29229         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29230         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29231         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29232         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29233         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29234         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29235         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29236         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29237         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29238         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29239         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29240         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29241         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29242         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29243         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29244         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29245         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29246         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29247         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29248         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29249         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29251 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
29253         * include/shlib-compat.h (TEST_COMPAT): New Macro.
29254         * malloc/tst-mallocstate.c: Convert from test-skeleton
29255         to test-driver.  Ifdef code using TEST_COMPAT macro.
29256         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29257         * math/test-matherr.c: Likewise.
29259 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
29261         [BZ #22086]
29262         * debug/pcprofiledump.c (main): Use byte-swapped mask when
29263         comparing word with byte-swapped constant.
29265 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
29267         [BZ #20498]
29268         * locale/iso-639.def: add Miskito.
29269         * localedata/SUPPORTED: Add miq_NI/UTF-8.
29270         * localedata/locales/miq_NI: New file.
29272 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
29274         [BZ #18822]
29275         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29276         (__mkdir): Likewise.
29277         * io/chmod.c (__chmod): Add libc_hidden_def.
29278         * io/mkdir.c (__mkdir): Likewise.
29279         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29280         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29281         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29282         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29284 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
29286         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29287         version to 4.13.
29289         [BZ #22082]
29290         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29291         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29293 2017-09-04  Florian Weimer  <fweimer@redhat.com>
29295         * math/math.h: Issue warning if log is defined.
29297 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
29299         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29300         kernel version to 4.13.
29302 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29304         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29305         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29306         parameter.
29307         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29308         just <bits/types.h>.
29309         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29310         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29311         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29312         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29313         * misc/preadv2.c: Include <errno.h>.
29314         * misc/preadv64v2.c: Include <errno.h>.
29315         * misc/pwritev2.c: Include <errno.h>.
29316         * misc/pwritev64v2.c: Include <errno.h>.
29317         * sysdeps/posix/preadv2.c: Include <errno.h>.
29318         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29319         Fix <unistd.h> inclusion.
29320         * sysdeps/posix/pwritev2.c: Include <errno.h>.
29321         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29322         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29323         __strtoul_internal): New functions.
29324         * sysdeps/posix/pause.c: Include <sigsetops.h>.
29325         * sysdeps/posix/system.c: Include <sigsetops.h>.
29326         * sysdeps/mach/hurd/i386/Makefile
29327         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29328         [$(subdir) = csu] (sysdep-only-routines): Likewise.
29329         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29330         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29331         __feraiseexcept_renamed to feraiseexcept instead of
29332         __GI_feraiseexcept.
29333         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29334         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29335         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29336         RWF_NOWAIT): Define to 0 if undefined already.
29337         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29338         boils down to 0.
29339         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29340         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29342 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
29344         * manual/math.texi (pow10): Do not document.
29345         (pow10f): Likewise.
29346         (pow10l): Likewise.
29347         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29348         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29349         * math/libm-test-exp10.inc (pow10_test): Remove.
29350         (do_test): Do not call pow10.
29351         * math/w_exp10_compat.c (pow10): Make into compat symbol.
29352         [NO_LONG_DOUBLE] (pow10l): Likewise.
29353         * math/w_exp10f_compat.c (pow10f): Likewise.
29354         * math/w_exp10l_compat.c (pow10l): Likewise.
29355         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29356         (pow10): Make into compat symbol.
29357         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29358         (pow10f): Make into compat symbol.
29359         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29360         (pow10l): Make into compat symbol.
29361         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29362         pow10.
29363         (CFLAGS-nldbl-pow10.c): Remove variable..
29364         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29365         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29366         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29367         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29368         Undefine and redefine.
29369         (pow10l): Make into compat symbol.
29370         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29371         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29372         * sysdeps/arm/libm-test-ulps: Likewise.
29373         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29374         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29375         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29376         * sysdeps/microblaze/libm-test-ulps: Likewise.
29377         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29378         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29379         * sysdeps/nios2/libm-test-ulps: Likewise.
29380         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29381         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29382         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29383         * sysdeps/sh/libm-test-ulps: Likewise.
29384         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29385         * sysdeps/tile/libm-test-ulps: Likewise.
29386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29388 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29390         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29392 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29394         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29395         "../ChangeLog.old/ChangeLog.8".
29396         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29397         "../ChangeLog.old/ChangeLog.14".
29399 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29401         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29402         Threads Library.
29404 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
29406         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29408 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29410         * csu/version.c (banner): Remove "by Roland McGrath et al.".
29411         * nptl/Banner: Remove "by Ulrich Drepper et al.".
29413 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29415         * stdlib/tst-atexit-common.c (do_test): Test support for at least
29416         32 atexit handlers.
29418 2017-09-01  Zack Weinberg  <zackw@panix.com>
29420         * math/math.h (HUGE_VAL): Improve commentary.
29422 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29423             Andreas Schwab  <schwab@suse.de>
29425         [BZ #21530]
29426         * include/stdio.h (__gen_tempfd): New function.
29427         * stdio-common/Makefile (routines): Add gentempfd.
29428         * stdio-common/gentempfd.c: New file.
29429         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29430         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29431         unnamed file first.
29433 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29435         [BZ #21915]
29436         [BZ #21922]
29437         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29438         result to determine success or failure, not the errno value.
29439         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29440         (tst-nss-files-hosts-erange): Link with -ldl.
29441         * nss/tst-nss-files-hosts-erange.c: New file.
29442         * nss/tst-resolv-basic.c (response): Handle nodata.example.
29443         (do_test): Add NO_DATA tests.
29444         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29445         (do_test): Call it.
29447 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29449         [BZ #21922]
29450         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29451         coming from gethostbyname2_r.
29453 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29455         * support/namespace.h (struct support_chroot_configuration): Add
29456         hosts, host_conf.
29457         (struct support_chroot): Add path_hosts, path_host_conf.
29458         * support/support_chroot.c (write_file): New function.
29459         (support_chroot_create): Call it to process /etc/resolv.conf,
29460         /etc/hosts, /etc/host.conf.
29461         (support_chroot_free): Update.
29463 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29465         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29466         status indicates it is set.
29468 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29470         [BZ #20532]
29471         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29472         function lookup failures more reliable.
29474 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29476         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29477         (getcanonname): Likewise.
29478         (gaih_inet): Likewise.
29480 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29482         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29483         (getcanonname): Likewise.
29484         (gaih_inet): Likewise.
29486 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
29487             Richard Henderson <rth@twiddle.net>
29489         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29490         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29491         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29492         (IREG_SIZE, OREG_SIZE): New macros.
29493         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29494         (IREG_SIZE, OREG_SIZE): New macros.
29495         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29496         (IREG_SIZE): New macro.
29497         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29498         (IREG_SIZE): New macro.
29499         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29500         New includes.
29501         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29502         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29503         (__CONCATX): Handle exceptions correctly on large values that may
29504         set FE_INVALID.
29505         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29506         Initialize if not already set.
29507         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29509 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29511         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29512         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29513         Likewise.
29514         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29515         Likewise.
29516         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29517         Likewise.
29518         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29519         Likewise.
29520         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29521         Likewise.
29522         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29523         Likewise.
29524         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29525         Likewise.
29526         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29527         (NO_CANCELLATION): Likewise.
29528         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29529         Likewise.
29530         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29531         Likewise.
29532         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29533         Likewise.
29534         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29535         (NO_CANCELLATION): Likewise.
29536         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29537         (NO_CANCELLATION): Likewise.
29538         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29539         Likewise
29540         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29541         Likewise.
29542         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29543         Likewise.
29544         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29545         Likewise.
29546         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29547         hidden prototype.
29548         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29549         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29551 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
29553         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29554         in resolver call.
29556 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29558         * include/libc-symbols.h (internal_function): Remove.
29560 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29562         * stdlib/fmtmsg.c (internal_addseverity): Remove
29563         internal_function.
29565 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29567         * stdio-common/printf_fp.c (group_number): Remove
29568         internal_function.
29569         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29571 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29573         * posix/fnmatch.c (internal_function): Remove definition.
29574         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29575         * posix/regcomp.c (peek_token, init_word_char)
29576         (duplicate_node_closure, fetch_token, peek_token)
29577         (peek_token_bracket, build_range_exp, build_collating_symbol):
29578         Likewise.
29579         * posix/regex_internal.c (re_string_construct_common)
29580         (create_ci_newstate, create_cd_newstate, re_string_allocate)
29581         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29582         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29583         (re_string_translate_buffer, re_string_reconstruct)
29584         (re_string_peek_byte_case, re_string_fetch_byte_case)
29585         (re_string_destruct, re_string_context_at, re_node_set_alloc)
29586         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29587         (re_node_set_add_intersect, re_node_set_init_union)
29588         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29589         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29590         (re_dfa_add_node, calc_state_hash, re_acquire_state)
29591         (re_acquire_state_context): Likewise.
29592         * posix/regex_internal.h (internal_function): Remove definition.
29593         (re_string_realloc_buffers, build_wcs_buffer)
29594         (build_wcs_upper_buffer, build_upper_buffer)
29595         (re_string_translate_buffer, re_string_context_at)
29596         (re_string_char_size_at, re_string_wchar_at)
29597         (re_string_elem_size_at): Likewise.
29598         * posix/regexec.c (match_ctx_init, match_ctx_clean)
29599         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29600         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29601         (re_search_internal, re_search_2_stub, re_search_stub)
29602         (re_copy_regs, prune_impossible_nodes, check_matching)
29603         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29604         (free_fail_stack_return, sift_states_iter_mb)
29605         (sift_states_backward, build_sifted_states)
29606         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29607         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29608         (check_subexp_limits, sift_states_bkref, merge_state_array)
29609         (find_recover_state, transit_state, merge_state_with_log)
29610         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29611         (transit_state_mb, transit_state_bkref, get_subexp)
29612         (get_subexp_sub, find_subexp_node, check_arrival)
29613         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29614         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29615         (check_node_accept_bytes, find_collation_sequence_value)
29616         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29617         (acquire_init_state_context, check_halt_node_context)
29618         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29619         (sub_epsilon_src_nodes): Likewise.
29620         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29621         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29622         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29623         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29624         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29625         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29626         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29627         * sysdeps/posix/ttyname.c (getttyname): Likewise.
29628         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29629         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29630         (PREADV): Likewise.
29631         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29632         (PREADV): Likewise.
29633         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29634         (PWRITEV): Likewise.
29635         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29636         (PWRITEV): Likewise.
29637         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29638         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29640 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29642         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29643         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29644         Remove internal_function.
29645         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29646         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29647         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29648         (__deallocate_stack, __libc_pthread_init)
29649         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29650         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29651         (__libc_disable_asynccancel, __librt_disable_asynccancel):
29652         Likewise.
29653         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29654         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29655         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29656         Likewise.
29657         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29658         (__pthread_mutex_unlock_usercnt): Likewise.
29660 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29662         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29663         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29664         (fts_safe_changedir): Remove internal_function.
29665         * io/ftw.c (internal_function): Remove definition.
29666         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29668 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29670         * inet/deadline.c (__deadline_current_time)
29671         (__deadline_from_timeval, __deadline_to_ms): Remove
29672         internal_function.
29673         * inet/getnameinfo.c (nrl_domainname): Likewise.
29674         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29675         * inet/inet6_option.c (add_pad): Likewise.
29676         * inet/net-internal.h (__deadline_current_time)
29677         (__deadline_from_timeval, __deadline_to_ms): Likewise.
29678         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29679         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29680         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29682 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
29684         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
29685         include <bits/nan.h>.
29686         * math/Makefile (headers): Remove bits/nan.h.
29687         * bits/nan.h: Remove.
29688         * sysdeps/ieee754/bits/nan.h: Likewise.
29689         * sysdeps/mips/bits/nan.h: Likewise.
29691         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
29692         not include <bits/inf.h>.
29693         * math/Makefile (headers): Remove bits/inf.h.
29694         * bits/inf.h: Remove.
29695         * sysdeps/ieee754/bits/inf.h: Likewise.
29697         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29698         bits/huge_vall.h or bits/huge_val_flt128.h.
29699         (HUGE_VAL): Define directly here.
29700         [__USE_ISOC99] (HUGE_VALF): Likewise.
29701         [__USE_ISOC99] (HUGE_VALL): Likewise.
29702         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29703         (HUGE_VAL_F128): Likewise.
29704         * math/Makefile (headers): Remove bits/huge_val.h,
29705         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29706         * bits/huge_val.h: Remove.
29707         * bits/huge_val_flt128.h: Likewise.
29708         * bits/huge_valf.h: Likewise.
29709         * bits/huge_vall.h: Likewise.
29710         * sysdeps/ia64/bits/huge_vall.h: Likewise.
29711         * sysdeps/ieee754/bits/huge_val.h: Likewise.
29712         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29713         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29714         * sysdeps/sh/bits/huge_val.h: Likewise.
29715         * sysdeps/sparc/bits/huge_vall.h: Likewise.
29716         * sysdeps/x86/bits/huge_vall.h: Likewise.
29718 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29720         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29721         internal_function.
29722         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29723         Likewise.
29724         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29725         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29726         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29727         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29728         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29729         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29730         * elf/dl-libc.c (dlerror_run): Likewise.
29731         * elf/dl-load.c (add_name_to_object, decompose_rpath)
29732         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29733         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29734         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29735         Likewise.
29736         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29737         (_dl_higher_prime_number, _dl_strtoul): Likewise.
29738         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29739         * elf/dl-profile.c (_dl_start_profile): Likewise.
29740         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29741         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29742         Likewise.
29743         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29744         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29745         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29746         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29747         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29748         (_dl_allocate_tls_storage): Likewise.
29749         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29750         (_dl_check_all_versions): Likewise.
29751         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29752         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29753         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29754         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29755         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29756         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29757         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29758         internal_function from __dl_start.
29759         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29760         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29761         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29762         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29763         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29764         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29765         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29766         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29767         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29768         (_dl_next_ld_env_entry, _dl_important_hwcaps)
29769         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29770         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29771         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29772         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29773         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29774         Likewise.
29775         (struct rtld_global_ro): Remove internal_function from the
29776         _dl_lookup_symbol_x member.
29777         (_dl_symbol_value): Remove.  No longer defined anywhere.
29778         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29779         internal_function.
29780         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29781         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29782         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29783         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29784         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29785         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29786         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29787         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29788         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29789         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29790         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29791         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29793 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29795         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29796         Remove internal_function.
29797         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29798         Likewise.
29799         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29800         Likewise.
29802 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29804         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29805         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29806         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29808 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29810         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29811         (__gai_enqueue_request): Remove internal_function.
29812         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29813         (__gai_remove_request, __gai_notify, __gai_notify_only)
29814         (__gai_sigqueue): Likewise.
29815         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29816         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29817         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29818         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29819         Likewise.
29821 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29823         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29824         * include/dirent.h (__opendirat, __getdents, __getdents64)
29825         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29826         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29827         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29828         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29829         Likewise.
29830         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29832 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29834         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29835         internal_function.
29836         (GETCWD_RETURN_TYPE): Likewise.
29838 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29840         * include/time.h (__tz_compute, __strptime_internal): Remove
29841         internal_function.
29842         * time/strptime_l.c (__strptime_internal): Likewise.
29843         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29845 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29847         * iconv/gconv.c (__gconv): Remove internal_function.
29848         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29849         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29850         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29851         (__gconv_release_cache): Likewise.
29852         * iconv/gconv_close.c (__gconv_close): Likewise.
29853         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29854         (read_conf_file, __gconv_get_path): Likewise.
29855         * iconv/gconv_db.c (derivation_lookup, add_derivation)
29856         (__gconv_release_step, gen_steps, increment_counter)
29857         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29858         (__gconv_close_transform, free_modules_db): Likewise.
29859         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29860         Likewise.
29861         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29862         (__gconv_find_transform, __gconv_lookup_cache)
29863         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29864         (__gconv_close_transform, __gconv_release_cache)
29865         (__gconv_loaded_object, __gconv_release_shlib)
29866         (__gconv_compare_alias): Likewise.
29867         * iconv/gconv_open.c (__gconv_open): Likewise.
29868         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29869         * iconv/iconvconfig.c (add_module): Likewise.
29870         * intl/dcigettext.c (plural_lookup, guess_category_value)
29871         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29872         * intl/eval-plural.h (plural_eval): Likewise.
29873         * intl/finddomain.c (_nl_find_domain): Likewise.
29874         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29875         (_nl_load_domain, _nl_find_msg): Likewise.
29876         (internal_function): Remove definition.
29877         * intl/loadinfo.h (internal_function): Likewise.
29878         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29879         internal_function.
29880         * intl/localealias.c (internal_function): Remove definition.
29881         (read_alias_file): Remove internal_function.
29882         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29883         * intl/plural-exp.h (internal_function): Remove definition.
29884         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29885         internal_function.
29886         * intl/plural.c: Regenerate.
29887         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29888         * locale/coll-lookup.c (__collidx_table_lookup)
29889         (__collseq_table_lookup): Likewise.
29890         * locale/coll-lookup.h (__collidx_table_lookup)
29891         (__collseq_table_lookup): Likewise.
29892         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29893         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29894         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29895         (_nl_unload_locale): Likewise.
29896         * locale/localeinfo.h (struct __locale_data): Remove
29897         internal_function from cleanup member.
29898         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29899         (_nl_remove_locale, _nl_load_locale_from_archive)
29900         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29901         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29902         (_nl_cleanup_time): Remove internal_function.
29903         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29904         (_nl_parse_alt_digit): Likewise.
29905         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29906         (_nl_select_era_entry): Likewise.
29907         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29908         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29909         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29910         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29911         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29913 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29915         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29916         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29917         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29918         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29919         Likewise.
29920         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29921         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29922         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29923         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29924         Likewise.
29925         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29927 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29929         * misc/getttyent.c (skip, value): Remove internal_function.
29930         * misc/syslog.c (openlog_internal): Likewise.
29931         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29933 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29935         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29936         (__nss_rewrite_field): Remove internal_function.
29937         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29938         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29939         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29940         * nss/nsswitch.c (nss_parse_file, nss_getline)
29941         (nss_parse_service_list, nss_new_service): Likewise.
29942         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29943         * nss/valid_field.c (__nss_valid_field): Likewise.
29944         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29946 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29948         * malloc/arena.c (__malloc_fork_lock_parent)
29949         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29950         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29951         internal_function from defintions.
29952         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29953         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29954         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29955         internal_function from declarations.
29956         * malloc/malloc.c (internal_function): Do not define.
29957         (mem2mem_check): Remove internal_function from declaration.
29958         (munmap_chunk, mremap_chunk): Remove internal_function.
29959         * malloc/mtrace.c (tr_where): Likewise.
29961 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29963         * include/rpc/pmap_clnt.h (__get_socket): Remove
29964         internal_function.
29965         * sunrpc/auth_des.c (synchronize): Likewise.
29966         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29967         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29968         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29969         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29970         (key_call): Likewise.
29971         * sunrpc/pm_getport.c (__get_socket): Likewise.
29972         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29973         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29974         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29975         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29976         (invalidate): Likewise.
29977         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29978         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29979         (set_input_fragment, get_input_bytes): Likewise.
29981 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29983         * malloc/malloc.c (_int_free): Remove locked variable and related
29984         asserts.
29986 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
29988         [BZ #22051]
29989         * Makerules (build-module-helper-objlist): Filter out
29990         $(elf-objpfx)sofini.os.
29991         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29992         needed.
29994 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29996         * libio/fcloseall.c: Assume weak_alias is defined.
29997         * libio/feof.c: Likewise.
29998         * libio/fileno.c: Likewise.
29999         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30000         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30001         definitions.
30002         (_IO_file_open): Call __open directly.
30003         (_IO_new_file_sync): Assume ESPIPE is defined.
30004         (_IO_file_seekoff_maybe_mmap): Call __read directly.
30005         (_IO_new_file_write): Call __write directly.
30006         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30007         * libio/ftello64.c (__ftello64): Assume EIO is defined.
30008         * libio/genops.c: Assume _LIBC is defined.
30009         (save_for_backup): Remove internal_function.
30010         * libio/getc.c: Assume weak_alias is defined.
30011         * libio/getwc.c: Likewise.
30012         * libio/iofclose.c: Assume _LIBC is defined.
30013         * libio/iofdopen.c: Likewise.
30014         (_IO_fcntl): Remove macro definition.
30015         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30016         Call __fcntl directly.
30017         * libio/iofflush.c: Assume weak_alias is defined.
30018         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30019         defined.
30020         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30021         * libio/iofgets.c: Likewise.
30022         * libio/iofopen.c: Assume _LIBC is defined.
30023         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30024         * libio/iofputs.c: Assume weak_alias is defined.
30025         * libio/iofread.c: Likewise.
30026         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30027         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30028         * libio/ioftell.c: Assume weak_alias is defined.
30029         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30030         * libio/iofwide.c: Assume _LIBC is defined.
30031         (_IO_fwide): Drop SHARED conditional because it is implied by
30032         SHLIB_COMPAT.
30033         * libio/iofwrite.c: Assume weak_alias is defined.
30034         * libio/iogetdelim.c: Likewise.
30035         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30036         * libio/iogetwline.c (wmemcpy): Remove macro definition.
30037         (_IO_getwline): Call __wmemcpy directly.
30038         * libio/iopopen.c: Assume _LIBC is defined.
30039         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30040         (_IO_close): Remove macro definitions.
30041         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30042         _exit directly.
30043         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30044         directly.
30045         * libio/ioputs.c: Assume weak_alias is defined.
30046         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30047         * libio/iosetbuffer.c: Assume weak_alias is defined.
30048         * libio/iosetvbuf.c: Likewise.
30049         * libio/ioungetc.c: Likewise.
30050         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30051         libc_hidden_def, libc_hidden_weak, NULL are defined.
30052         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30053         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30054         defined.
30055         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30056         definitions.
30057         (_IO_old_file_init_internal): Drop SHARED conditional because it
30058         is implied by SHLIB_COMPAT.
30059         (_IO_old_file_fopen): Call __open directly.
30060         (_IO_old_file_sync): Assume ESPIPE is defined.
30061         (_IO_old_file_write): Call __write directly.
30062         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30063         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30064         Call __fcntl directly.
30065         * libio/oldiofgetpos.c: Assume weak_alias is defined.
30066         (_IO_old_fgetpos): Assume EIO is defined.
30067         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30068         (_IO_old_fgetpos64): Assume EIO is defined.
30069         * libio/oldiofsetpos.c: Assume weak_alias is defined.
30070         (_IO_old_fsetpos): Assume EIO is defined.
30071         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30072         (_IO_old_fsetpos64): Assume EIO is defined.
30073         * libio/oldiopopen.c:  Assume _LIBC is defined.
30074         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30075         (_IO_close): Remove macro definitions.
30076         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30077         directly.
30078         (_IO_old_proc_close): Call __close, __waitpid directly.
30079         * libio/put.c: Assume weak_alias is defined.
30080         * libio/stdfiles.c: Assume _LIBC is defined.
30081         * libio/stdio.c: Likewise.
30082         * libio/wfileops.c: Likewise.
30083         (_IO_wfile_sync): Assume ESPIPE is defined.
30084         * libio/wgenops.c: Assume _LIBC is defined.
30085         (save_for_wbackup): Remove internal_function.
30087 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30089         * malloc/malloc.c (top_check): Change return type to void.  Remove
30090         internal_function.
30091         * malloc/hooks.c (top_check): Likewise.
30092         (malloc_check, realloc_check, memalign_check): Adjust.
30094 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
30096         [BZ #21457]
30097         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30098         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30099         sigcontext and namespace requirements.
30100         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30101         * sysdeps/m68k/sys/ucontext.h: Likewise.
30102         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
30103         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30104         <bits/sigcontext.h>.
30105         (__ctx): Define earlier.
30106         (mcontext_t): Define structure contents rather than using struct
30107         sigcontext.
30108         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30109         __glibc_reserved1 instead of __reserved.
30110         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30111         <bits/sigcontext.h>.
30112         (__ctx): Define earlier.
30113         (mcontext_t): Define structure contents rather than using struct
30114         sigcontext.
30115         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30116         mcontext_t instead of struct sigcontext.
30117         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30118         <bits/sigcontext.h>.
30119         (__ctx): Define earlier.
30120         (mcontext_t): Define structure contents rather than using struct
30121         sigcontext.
30122         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30123         <bits/sigcontext.h>.
30124         (__ctx): Define earlier.
30125         (mcontext_t): Define structure contents rather than using struct
30126         sigcontext.
30127         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30128         mcontext_t instead of struct sigcontext.
30129         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30130         mcontext_t instead of struct sigcontext.
30131         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30132         <bits/sigcontext.h>.
30133         (__ctx): New macro.
30134         (struct __ia64_fpreg_mcontext): New type.
30135         (mcontext_t): Define structure contents rather than using struct
30136         sigcontext.
30137         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30138         (uc_sigmask): Define using __ctx.
30139         (uc_stack): Likewise.
30140         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30141         <bits/sigcontext.h>.
30142         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30143         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30144         <bits/sigcontext.h>.
30145         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30146         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30147         <bits/sigcontext.h>.
30148         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30149         <bits/sigcontext.h>.
30150         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30151         <bits/sigcontext.h>.
30152         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30153         <bits/sigcontext.h>.
30154         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30155         <bits/sigcontext.h>.
30156         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30157         <bits/sigcontext.h>.
30158         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30159         <bits/sigcontext.h>.
30160         (__ctx): Define earlier.
30161         (mcontext_t): Define structure contents rather than using struct
30162         sigcontext.
30163         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30164         <bits/sigcontext.h>.  Include <bits/types.h>.
30165         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30166         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30167         (test-xfail-XPG42/ucontext.h/conform): Likewise.
30168         (test-xfail-UNIX98/signal.h/conform): Likewise.
30169         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30170         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30171         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30172         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30173         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30174         (test-xfail-POSIX2008/signal.h/conform): Likewise.
30175         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30176         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30177         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30179 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30181         * malloc/dynarray_emplace_enlarge.c
30182         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30183         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30184         * malloc/tst-dynarray.c (test_long_overflow): New function.
30185         (do_test): Call it.
30187 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30189         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30190         (set_arena_corrupt): Remove definitions.
30191         (mtrim): Do not check for corrupt arena.
30192         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30193         Likewise.
30195 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30197         [BZ #21754]
30198         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30199         check_action.
30200         (ptmalloc_init): Do not set or use check_action.
30201         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30202         call to malloc_printerr.  Remove return statement.
30203         (free_check): Likewise.  Remove arena unlock.
30204         (top_check): Update comment.  Adjust call to malloc_printerr.
30205         Remove heap repair code.
30206         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30207         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30208         (sysmalloc): Adjust call to malloc_printerr.
30209         (munmap_chunk, __libc_realloc): Likewise.  Remove return
30210         statement.
30211         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
30212         Remove errout label and corresponding gotos.
30213         (_int_free): Likewise.  Remove arena unlock.
30214         (do_set_mallopt_check): Do not set check_action.
30215         (malloc_printerr): Adjust parameter list.  Do not mark arena as
30216         corrupt.
30217         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30218         comment.
30219         * manual/probes.texi (Memory Allocation Probes): Remove
30220         memory_mallopt_check_action.
30222 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
30224         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30225         Use pointer to uint64_t instead of long int for sp.
30227 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30229         [BZ #21754]
30230         * malloc/malloc.c (malloc_printerr): Always terminate the process,
30231         without printing a backtrace.  Do not leak any information in the
30232         error message.
30233         * manual/memory.texi (Heap Consistency Checking): Update.
30234         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30236 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30238         Do not scale NPTL tests with available number of CPUs.
30239         * nptl/tst-cond16.c (count): Set to constant value of 8.
30240         * nptl/tst-cond18.c (count): Likewise.
30242 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
30244         [BZ #22035]
30245         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30246         Define to take a second argument that is a macro that
30247         concatentates a suffix, not the suffix itself.
30248         (__CONCAT_d): New macro.
30249         (__CONCAT_f): Likewise.
30250         (__CONCAT_l): Likewise.
30252 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
30254         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30255         by child.
30257 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30258             Aurelien Jarno  <aurelien@aurel32.net>
30259             Maciej W. Rozycki  <macro@imgtec.com>
30261         [BZ #21956]
30262         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30263         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30264         `mips16-syscall6' and `mips16-syscall7'.
30265         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30266         (CFLAGS-mips16-syscall7.c): Remove.
30267         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30268         Remove `__mips16_syscall5', `__mips16_syscall6' and
30269         `__mips16_syscall7'.
30270         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30271         (__mips16_syscall0): Rename `__mips16_syscall_return' to
30272         `__mips_syscall_return'.
30273         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30274         (__mips16_syscall1): Likewise.
30275         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30276         (__mips16_syscall2): Likewise.
30277         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30278         (__mips16_syscall3): Likewise.
30279         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30280         (__mips16_syscall4): Likewise.
30281         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30282         Remove.
30283         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30284         Remove.
30285         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30286         Remove.
30287         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30288         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30289         `__mips16_syscall5'.  Remove prototype.
30290         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30291         `__mips16_syscall6'.  Remove prototype.
30292         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30293         `__mips16_syscall7'.  Remove prototype.
30294         (__nomips16, __mips16_syscall_return): Move to...
30295         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30296         (__nomips16, __mips_syscall_return): ... here.
30297         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30298         `__mips16_syscall_return' to `__mips_syscall_return'.
30299         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30300         `internal_syscall##nr'.
30301         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30302         `internal_syscall##nr'.
30303         (FORCE_FRAME_POINTER): Remove.
30304         (__mips_syscall5): New prototype.
30305         (internal_syscall5): Rewrite to call `__mips_syscall5'.
30306         (__mips_syscall6): New prototype.
30307         (internal_syscall6): Rewrite to call `__mips_syscall6'.
30308         (__mips_syscall7): New prototype.
30309         (internal_syscall7): Rewrite to call `__mips_syscall7'.
30310         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30311         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30312         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30313         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30314         (sysdep_routines): Add libc-do-syscall.
30315         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30316         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30318 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30320         [BZ #21672]
30321         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30322         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30323         (advise_stack_range): New function.
30324         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30325         stack non required to advise_stack_range at allocatestack.c
30327 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30329         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30331 2017-08-29  Florian Weimer  <fweimer@redhat.com>
30333         [BZ #22026]
30334         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30335         __end_fct.  Mangle __end_fct after setting it to NULL.
30336         * iconv/Makefile (tests): Add tst-gconv-init-failure.
30337         (modules-names, modules-names-tests): Add
30338         tst-gconv-init-failure-mod.
30339         (gconv-modules): New target.
30340         (tst-gconv-init-failure-mod.so): Link against libsupport.
30341         (tst-gconv-init-failure): Depend on gconv-modules,
30342         tst-gconv-init-failure-mod.so.
30343         * iconv/tst-gconv-init-failure-mod.c: New file.
30344         * iconv/tst-gconv-init-failure.c: Likewise.
30345         * iconv/test-gconv-modules: Likewise.
30347 2017-08-29  Florian Weimer  <fweimer@redhat.com>
30349         [BZ #22025]
30350         * iconv/gconv_db.c (free_derivation): Remove redundant
30351         parentheses.
30352         (gen_steps): Unconditionally mangle __btowc_fct after
30353         initialization.
30354         (increment_counter): Likewise.  Do not call init_fct for internal
30355         modules.
30357 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
30359         [BZ #22028]
30360         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30361         (_MSUF_): Remove macro.
30362         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30363         Likewise.
30364         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30365         (__REDIRFROM_X): New macro.
30366         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30367         Likewise.
30368         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30369         (__REDIRTO_X): Likewise.
30370         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30371         arguments.
30372         (__MATH_REDIRCALL_2): Likewise.
30373         (__MATH_REDIRCALL_INTERNAL): Likewise.
30374         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30375         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30376         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30377         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30378         * math/test-finite-macros.c: New file.
30379         * math/Makefile (tests): Add test-finite-macros.
30380         (CFLAGS-test-finite-macros.c): New variable.
30382 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
30383             Jeff Law  <law@redhat.com>
30385         [BZ #22025]
30386         Mangle NULL pointers in iconv/gconv.
30387         * iconv/gconv_cache.c (find_module): Demangle init_fct before
30388         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30389         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30390         is non-NULL before demangling the end_fct.  Check for NULL
30391         end_fct after demangling.
30392         (__gconv_release_step): Demangle the end_fct before checking
30393         it for NULL.   Remove assert on __shlibc_handle != NULL.
30394         (gen_steps): Don't check btowc_fct for NULL before mangling.
30395         Demangle init_fct before checking for NULL.
30396         (increment_counter): Likewise.
30397         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30398         end_fct for NULL before mangling.
30399         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30400         for NULL.
30402 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
30404         [BZ #21971]
30405         * locale/iso-639.def: add Morisyen.
30407 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30409         [BZ #21930]
30410         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30411         (iszero): New C++ implementation that does not use
30412         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30413         signaling nans are enabled, since __builtin_types_compatible_p
30414         is a C-only feature.
30415         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30416         defined, include ieee754_float128.h for access to the union and
30417         member ieee854_float128.ieee.
30418         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30419         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30420         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30421         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30422         options of test-math-zero on powerpc64le.
30424 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
30426         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30427         Change double to float.
30429 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
30431         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30432         unconditional.
30433         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30434         conditional code; define contents only for [LIBM_SVID_COMPAT].
30436 2017-08-28  Florian Weimer  <fweimer@redhat.com>
30438         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30439         (abi-lp64_be-options): Remove.
30440         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30441         (abi-hard-options): Likewise.
30442         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30443         (abi-o32_hard-options, abi-o32_soft_2008-options)
30444         (abi-o32_hard_2008-options, abi-n32_soft-options)
30445         (abi-n32_hard-options, abi-n32_soft_2008-options)
30446         (abi-n32_hard_2008-options, abi-n64_soft-options)
30447         (abi-n64_hard-options, abi-n64_soft_2008-options)
30448         (abi-n64_hard_2008-options): Likewise.
30449         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30450         (abi-64-v1-options, abi-64-v2-options): Likewise.
30451         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30452         (abi-64-options): Likewise.
30453         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30454         (abi-64-options): Likewise.
30455         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30456         (abi-64-options): Likewise.
30457         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30458         (abi-64-options, abi-x32-options): Likewise.
30460 2017-08-28  Florian Weimer  <fweimer@redhat.com>
30462         Store supported list of SYS_* system calls in the source tree.
30463         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30464         (bits/syscall.h): Generate from list file.
30465         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30466         [$(subdir) = misc] (tests): Add tst-syscall-list.
30467         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30468         [$(subdir) = misc] (tst-syscall-list-macros.list)
30469         [$(subdir) = misc] (tst-syscall-list-nr.list)
30470         (tst-syscall-list-sys.list): Helper targets for new
30471         tst-syscall-list test.
30472         [$(subdir) = misc] (tst-syscall-list.out): Run test script
30473         tst-syscall-list.sh.
30474         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30475         target. Do not include bits/syscall.d.
30476         [$(subdir) = misc] (generated): Do not update.
30477         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30478         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30479         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30480         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30482 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
30484         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30485         (tst-cxa_atexit, tst-on_exit): Likewise.
30486         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30487         tst-cxa_atexit, and tst-on_exit.
30488         * stdlib/tst-atexit-common.c: New file.
30489         * stdlib/tst-atexit.c: New file.
30490         * stdlib/tst-at_quick_exit.c: New file.
30491         * stdlib/tst-cxa_atexit.c: New file.
30492         * stdlib/tst-on_exit.c: New file.
30494 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30496         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30497         * mach/stack_chk_fail_local.c: New file.
30498         * hurd/stack_chk_fail_local.c: New file.
30499         * mach/Machrules ($(interface-library)-routines): Add
30500         stack_chk_fail_local.
30501         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30502         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30503         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30504         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30505         * hurd/Makefile (CFLAGS-hurdstartup.o,
30506         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30508 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
30510         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30511         (index_cpu_*, index_arch_*): Removed.
30513 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30515         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30516         Use uint64_t instead of unsigned long.
30518 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
30520         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30521         [__HAVE_DISTINCT_FLOAT128].
30523         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30524         of <bits/math-finite.h>.
30525         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30526         inclusion of <bits/math-finite.h>.
30527         * math/bits/math-finite.h (__REDIRTO_X): Do not define
30528         conditionally on [__MATH_DECLARING_LDOUBLE && defined
30529         __NO_LONG_DOUBLE_MATH].
30530         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30531         (__MATH_REDIRCALL_2): Likewise.
30532         (__MATH_REDIRCALL_INTERNAL): Likewise.
30533         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30534         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30535         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30538         Remove file.
30539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30540         Likewise.
30541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30542         Likewise.
30543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30544         Likewise.
30545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30546         Likewise.
30547         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30548         Likewise.
30549         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30550         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30551         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30552         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30553         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30554         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30555         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30556         w_sqrtf_compat-ppc32.
30558 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30560         * math/math.h [defined __cplusplus] (issignaling): In the long
30561         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30562         is not defined.  Call __issignaling, otherwise.
30564 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30566         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30567         syscall definitions and replace __builtin_expect with __glibc_likely.
30568         * sysdeps/unix/syscall-template.S: Update comment about cancellable
30569         syscall.
30570          (SYSCALL_CANCELLABLE): Removedefinition
30571         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30572         definition.
30573         (PSEUDO_END): Likewise.
30574         [IS_IN (libpthread)] (CENABLE): Likewise.
30575         [IS_IN (libpthread)] (CDISABLE): Likewise.
30576         [IS_IN (libc)] (CENABLE): Likewise.
30577         [IS_IN (libc)] (CENABLE): Likewise.
30578         [IS_IN (librt)] (CDISABLE): Likewise.
30579         [IS_IN (librt)] (CDISABLE): Likewise.
30580         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30581         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30582         definition.
30583         (PSEUDO_END): Likewise.
30584         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30585         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30586         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30587         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30588         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30589         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30590         (CENABLE): Likewise.
30591         (CDISABLE): Likewise.
30592         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30593         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30594         defintion.
30595         (PSEUDO_END): Likewise.
30596         [IS_IN (libpthread)] (CENABLE): Likewise.
30597         [IS_IN (libpthread)] (CDISABLE): Likewise.
30598         [IS_IN (libc)] (CENABLE): Likewise.
30599         [IS_IN (libc)] (CENABLE): Likewise.
30600         [IS_IN (librt)] (CDISABLE): Likewise.
30601         [IS_IN (librt)] (CDISABLE): Likewise.
30602         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30603         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30604         definition.
30605         (PSEUDO_END): Likewise.
30606         [IS_IN (libpthread)] (CENABLE): Likewise.
30607         [IS_IN (libpthread)] (CDISABLE): Likewise.
30608         [IS_IN (libc)] (CENABLE): Likewise.
30609         [IS_IN (libc)] (CENABLE): Likewise.
30610         [IS_IN (librt)] (CDISABLE): Likewise.
30611         [IS_IN (librt)] (CDISABLE): Likewise.
30612         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30613         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30614         definition.
30615         (PSEUDO_END): Likewise.
30616         [IS_IN (libpthread)] (CENABLE): Likewise.
30617         [IS_IN (libpthread)] (CDISABLE): Likewise.
30618         [IS_IN (libc)] (CENABLE): Likewise.
30619         [IS_IN (libc)] (CENABLE): Likewise.
30620         [IS_IN (librt)] (CDISABLE): Likewise.
30621         [IS_IN (librt)] (CDISABLE): Likewise.
30622         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30623         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30624         definition.
30625         (PSEUDO_END): Likewise.
30626         [IS_IN (libpthread)] (CENABLE): Likewise.
30627         [IS_IN (libpthread)] (CDISABLE): Likewise.
30628         [IS_IN (libc)] (CENABLE): Likewise.
30629         [IS_IN (libc)] (CENABLE): Likewise.
30630         [IS_IN (librt)] (CDISABLE): Likewise.
30631         [IS_IN (librt)] (CDISABLE): Likewise.
30632         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30633         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30634         definition.
30635         (PSEUDO_END): Likewise.
30636         [IS_IN (libpthread)] (CENABLE): Likewise.
30637         [IS_IN (libpthread)] (CDISABLE): Likewise.
30638         [IS_IN (libc)] (CENABLE): Likewise.
30639         [IS_IN (libc)] (CENABLE): Likewise.
30640         [IS_IN (librt)] (CDISABLE): Likewise.
30641         [IS_IN (librt)] (CDISABLE): Likewise.
30642         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30643         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30644         definition.
30645         (PSEUDO_END): Likewise.
30646         [IS_IN (libpthread)] (CENABLE): Likewise.
30647         [IS_IN (libpthread)] (CDISABLE): Likewise.
30648         [IS_IN (libc)] (CENABLE): Likewise.
30649         [IS_IN (libc)] (CENABLE): Likewise.
30650         [IS_IN (librt)] (CDISABLE): Likewise.
30651         [IS_IN (librt)] (CDISABLE): Likewise.
30652         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30653         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30654         Remove definition.
30655         (PSEUDO_END): Likewise.
30656         [IS_IN (libpthread)] (CENABLE): Likewise.
30657         [IS_IN (libpthread)] (CDISABLE): Likewise.
30658         [IS_IN (libc)] (CENABLE): Likewise.
30659         [IS_IN (libc)] (CENABLE): Likewise.
30660         [IS_IN (librt)] (CDISABLE): Likewise.
30661         [IS_IN (librt)] (CDISABLE): Likewise.
30662         (SINGLE_THREAD_P): Likewise.
30663         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30664         definition.
30665         (PSEUDO_END): Likewise.
30666         [IS_IN (libpthread)] (CENABLE): Likewise.
30667         [IS_IN (libpthread)] (CDISABLE): Likewise.
30668         [IS_IN (libc)] (CENABLE): Likewise.
30669         [IS_IN (libc)] (CENABLE): Likewise.
30670         [IS_IN (librt)] (CDISABLE): Likewise.
30671         [IS_IN (librt)] (CDISABLE): Likewise.
30672         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30673         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30674         definition.
30675         (PSEUDO_END): Likewise.
30676         [IS_IN (libpthread)] (CENABLE): Likewise.
30677         [IS_IN (libpthread)] (CDISABLE): Likewise.
30678         [IS_IN (libc)] (CENABLE): Likewise.
30679         [IS_IN (libc)] (CENABLE): Likewise.
30680         [IS_IN (librt)] (CDISABLE): Likewise.
30681         [IS_IN (librt)] (CDISABLE): Likewise.
30682         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30683         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30684         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30685         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30686         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30687         definition.
30688         (PSEUDO_END): Likewise.
30689         [IS_IN (libpthread)] (CENABLE): Likewise.
30690         [IS_IN (libpthread)] (CDISABLE): Likewise.
30691         [IS_IN (libc)] (CENABLE): Likewise.
30692         [IS_IN (libc)] (CENABLE): Likewise.
30693         [IS_IN (librt)] (CDISABLE): Likewise.
30694         [IS_IN (librt)] (CDISABLE): Likewise.
30695         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30696         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30697         definition.
30698         (PSEUDO_END): Likewise.
30699         [IS_IN (libpthread)] (CENABLE): Likewise.
30700         [IS_IN (libpthread)] (CDISABLE): Likewise.
30701         [IS_IN (libc)] (CENABLE): Likewise.
30702         [IS_IN (libc)] (CENABLE): Likewise.
30703         [IS_IN (librt)] (CDISABLE): Likewise.
30704         [IS_IN (librt)] (CDISABLE): Likewise.
30705         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30706         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30707         definition.
30708         (PSEUDO_END): Likewise.
30709         [IS_IN (libpthread)] (CENABLE): Likewise.
30710         [IS_IN (libpthread)] (CDISABLE): Likewise.
30711         [IS_IN (libc)] (CENABLE): Likewise.
30712         [IS_IN (libc)] (CENABLE): Likewise.
30713         [IS_IN (librt)] (CDISABLE): Likewise.
30714         [IS_IN (librt)] (CDISABLE): Likewise.
30715         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30716         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30718         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30719         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30720         definition.
30721         (PSEUDO_END): Likewise.
30722         [IS_IN (libpthread)] (CENABLE): Likewise.
30723         [IS_IN (libpthread)] (CDISABLE): Likewise.
30724         [IS_IN (libc)] (CENABLE): Likewise.
30725         [IS_IN (libc)] (CENABLE): Likewise.
30726         [IS_IN (librt)] (CDISABLE): Likewise.
30727         [IS_IN (librt)] (CDISABLE): Likewise.
30728         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30729         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30730         definition.
30731         (PSEUDO_END): Likewise.
30732         [IS_IN (libpthread)] (CENABLE): Likewise.
30733         [IS_IN (libpthread)] (CDISABLE): Likewise.
30734         [IS_IN (libc)] (CENABLE): Likewise.
30735         [IS_IN (libc)] (CENABLE): Likewise.
30736         [IS_IN (librt)] (CDISABLE): Likewise.
30737         [IS_IN (librt)] (CDISABLE): Likewise.
30738         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30740 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30742         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30744 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30746         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30748 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30750         [BZ #21982]
30751         * string/stratcliff.c (do_test): Declare size, nchars, inner,
30752         middle and outer with size_t instead of int.  Repleace %d and
30753         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
30754         "MAX (outer, nchars - 64)" to support unsigned outer and
30755         nchars.  Also exit loop when outer == 0.
30757 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30759         * include/fcntl.h (__fcntl_nocancel): Remove definition.
30760         * include/signal.h (__sigsuspend_nocancel): Likewise.
30761         * include/time.h (__nanosleep_nocancel): Likewise.
30762         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30763         * login/utmp_file.c: Include non cancellable syscall header.
30764         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30765         prototype.
30767 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30769         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30770         .byte sequences with AVX512F instructions.
30771         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30772         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30773         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30774         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30775         Likewise.
30776         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30777         Likewise.
30779 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30780             Steve Ellcey  <sellcey@cavium.com>
30782         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30783         Use PTR_REG macro in cmp instruction.
30785 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30787         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30788         Change the return type of the ifunc resolver to match the return
30789         type of the target function.
30791 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30793         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30794         (preadv64): Likewise.
30795         (pwrite64(: Likewise.
30796         (pwritev64): Likewise.
30798         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30799         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30800         (LOAD_ARGS_0): Likewise.
30801         (LOAD_ARGS_1): Likewise.
30802         (LOAD_ARGS_2): Likewise.
30803         (LOAD_ARGS_3): Likewise.
30804         (LOAD_ARGS_4): Likewise.
30805         (LOAD_ARGS_5): Likewise.
30806         (LOAD_ARGS_6): Likewise.
30807         (LOAD_REGS_0): Likewise.
30808         (LOAD_REGS_1): Likewise.
30809         (LOAD_REGS_2): Likewise.
30810         (LOAD_REGS_3): Likewise.
30811         (LOAD_REGS_4): Likewise.
30812         (LOAD_REGS_5): Likewise.
30813         (LOAD_REGS_6): Likewise.
30814         (ASM_ARGS_0): Likewise.
30815         (ASM_ARGS_1): Likewise.
30816         (ASM_ARGS_2): Likewise.
30817         (ASM_ARGS_3): Likewise.
30818         (ASM_ARGS_4): Likewise.
30819         (ASM_ARGS_5): Likewise.
30820         (ASM_ARGS_6): Likewise.
30821         (LOAD_ARGS_TYPES_1): Likewise.
30822         (LOAD_ARGS_TYPES_2): Likewise.
30823         (LOAD_ARGS_TYPES_3): Likewise.
30824         (LOAD_ARGS_TYPES_4): Likewise.
30825         (LOAD_ARGS_TYPES_5): Likewise.
30826         (LOAD_ARGS_TYPES_6): Likewise.
30827         (LOAD_REGS_TYPES_1): Likewise.
30828         (LOAD_REGS_TYPES_2): Likewise.
30829         (LOAD_REGS_TYPES_3): Likewise.
30830         (LOAD_REGS_TYPES_4): Likewise.
30831         (LOAD_REGS_TYPES_5): Likewise.
30832         (LOAD_REGS_TYPES_6): Likewise.
30833         (TYPEFY): New define.
30834         (ARGIFY): Likewise.
30835         (internal_syscall0): Likewise.
30836         (internal_syscall1): Likewise.
30837         (internal_syscall2): Likewise.
30838         (internal_syscall3): Likewise.
30839         (internal_syscall4): Likewise.
30840         (internal_syscall5): Likewise.
30841         (internal_syscall6): Likewise.
30842         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30843         (INTERNAL_SYSCALL_NCS): Remove define.
30844         (internal_syscall1): Add define.
30846 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30848         * math/w_remainder_compat.c: Remove duplicate inclusion of
30849         math-svid-compat.h.
30850         * math/w_remainderf_compat.c: Likewise.
30851         * math/w_remainderl_compat.c: Likewise.
30853 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30855         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30857 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
30859         [BZ #21684]
30860         * math/tgmath.h (__floating_type): Simplify definitions.
30861         (__real_integer_type): New macro.
30862         (__complex_integer_type): Likewise.
30863         (__expr_is_real): Likewise.
30864         (__tgmath_real_type_sub): Update comment to describe handling of
30865         complex types.
30866         (__tgmath_complex_type_sub): New macro.
30867         (__tgmath_complex_type): Likewise.
30868         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30869         (__TGMATH_CF128): Use __expr_is_real.
30870         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30871         __expr_is_real.
30872         (__TGMATH_BINARY_REAL_IMAG): Likewise.
30873         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30874         * math/gen-tgmath-tests.py (Type.create_type): Create complex
30875         integer types.
30877 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30879         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30880         macro.
30881         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30882         alias.
30883         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30884         Likewise.
30886         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30887         nanosleep_not_cancel with __nanosleep_nocancel.
30888         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30889         (__nanosleep_nocancel): New macro.
30890         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30891         function.
30892         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30893         macro.
30894         (__nanosleep_nocancel): New prototype.
30896         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30897         pause_not_cancel with __pause_nocancel.
30898         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30899         (__pause_nocancel): New macro.
30900         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30901         macro.
30902         (__pause_nocancel): New prototype.
30903         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30905 2017-08-22  Martin Sebor  <msebor@redhat.com>
30907         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30908         to return a pointer to the same type as the target function.
30910 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
30912         [BZ #18822]
30913         [BZ #21986]
30914         * include/printf.h (__printf_fphex): Add attribute_hidden.
30915         (__guess_grouping): New prototype.
30916         * stdio-common/printf_fp.c (__guess_grouping): Removed.
30917         * stdio-common/reg-printf.c (__register_printf_specifier): Add
30918         libc_hidden_proto and libc_hidden_def.
30919         * stdlib/strfmon_l.c (__guess_grouping): Removed.
30920         (__vstrfmon_l): Remove the third argument passed to
30921         __guess_grouping.
30923 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30925         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30926         definition for issignaling that does not rely on __MATH_TG,
30927         since __MATH_TG uses __builtin_types_compatible_p, which is only
30928         available in C mode.
30929         (CFLAGS-test-math-issignaling.cc): New variable.
30930         * math/Makefile [CXX] (tests): Add test-math-issignaling.
30931         * math/test-math-issignaling.cc: New test for C++ implementation
30932         of type-generic issignaling.
30933         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30934         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30935         options of test-math-issignaling on powerpc64le.
30937 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
30939         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30940         building libc.a.
30941         (hidden_proto): Likewise.
30942         (hidden_tls_proto): Likewise.
30943         (__hidden_proto): Likewise.
30945 2017-08-22  Florian Weimer  <fweimer@redhat.com>
30947         math: Statically link tests of internal functionality.
30948         * math/Makefile (tests): Remove atest-exp, atest-sincos,
30949         atest-exp2.
30950         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30951         (gmp-objs): Remove assignment.
30952         (atest-exp, atest-sincos, atest-exp2): Remove targets.
30954 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
30956         [BZ #21987]
30957         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30958         and copy to ...
30959         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30960         ... here.
30961         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30962         ... and here.
30964         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30965         variable definitions above inclusion of ../Rules.
30967 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
30969         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30970         case calling __builtin_unreachable.
30972 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30974         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30975         __waitpid_nocancel.
30976         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30977         (__waitpid_nocancel): New macro.
30978         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30979         macro.
30980         (__waitpid_nocancel): Replace macro with a function.
30981         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30982         function.
30984         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30985         __fcntl_nocancel.
30986         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30987         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30989         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30990         __writev_nocancel_nostatus.
30991         (write_call_graph): Likewise.
30992         (write_bb_counts): Likewise.
30993         * resolv/herror.c (herror): Likewise.
30994         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30995         macro.
30996         (__writev_nocancel_nostatus): New macro.
30997         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30998         Remove macro.
30999         (__writev_nocancel_nostatus): New function.
31001 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
31003         Revert:
31004         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31006         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31007         building libc.a.
31008         (hidden_proto): Likewise.
31009         (hidden_tls_proto): Likewise.
31010         (__hidden_proto): Likewise.
31012         [BZ #21973]
31013         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31014         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31016         Likewise.
31017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31018         Likewise.
31019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31020         Likewise.
31021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31022         Likewise.
31023         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31024         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31025         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31026         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31027         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31028         GLIBC_2.0 sqrtl symbol.
31030         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31031         [__USE_MISC] (_LIB_VERSION): Likewise.
31032         [__USE_MISC] (struct exception): Likewise.
31033         [__USE_MISC] (matherr): Likewise.
31034         [__USE_MISC] (DOMAIN): Likewise.
31035         [__USE_MISC] (SING): Likewise.
31036         [__USE_MISC] (OVERFLOW): Likewise.
31037         [__USE_MISC] (UNDERFLOW): Likewise.
31038         [__USE_MISC] (TLOSS): Likewise.
31039         [__USE_MISC] (PLOSS): Likewise.
31040         [__USE_MISC] (HUGE): Likewise.
31041         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31042         * math/math-svid-compat.h: New file.
31043         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31044         and matherrl.
31045         * include/math.h [!_ISOMAC] (__matherr): Remove.
31046         * manual/arith.texi (FP Exceptions): Do not document matherr.
31047         * math/Makefile (tests): Change test-matherr to test-matherr-3.
31048         (tests-internal): New variable.
31049         (install-lib): Do not add libieee.a.
31050         (non-lib.a): Likewise.
31051         (extra-objs): Do not add libieee.a and ieee-math.o.
31052         (CPPFLAGS-s_lib_version.c): Remove variable.
31053         ($(objpfx)libieee.a): Remove rule.
31054         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31055         * math/ieee-math.c: Remove.
31056         * math/libm-test-support.c (matherr): Remove.
31057         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
31058         and license notices.  Include <math-svid-compat.h> and
31059         <shlib-compat.h>.
31060         (matherr): Undefine as macro.  Use compat_symbol_reference.
31061         (_LIB_VERSION): Likewise.
31062         * math/test-matherr-2.c: New file.
31063         * math/test-matherr-3.c: Likewise.
31064         * sysdeps/generic/math_private.h (__kernel_standard): Remove
31065         declaration.
31066         (__kernel_standard_f): Likewise.
31067         (__kernel_standard_l): Likewise.
31068         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31069         <math_private.h>.  Include <math-svid-compat.h>.
31070         (_LIB_VERSION): Undefine as macro.
31071         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
31072         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
31073         [LIBM_SVID_COMPAT], use compat_symbol.
31074         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31075         <math_private.h>.  Include <math-svid-compat.h>.
31076         (matherr): Undefine as macro.
31077         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
31078         compat_symbol.
31079         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31080         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31081         compat_symbol_reference.
31082         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31083         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31084         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31085         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31086         (MATHERR_D): Remove declaration.
31087         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31088         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31089         [LIBM_BUILD] (pmatherrf): Likewise.
31090         [LIBM_BUILD] (pmatherr): Likewise.
31091         [LIBM_BUILD] (pmatherrl): Likewise.
31092         (DOMAIN): Likewise.
31093         (SING): Likewise.
31094         (OVERFLOW): Likewise.
31095         (UNDERFLOW): Likewise.
31096         (TLOSS): Likewise.
31097         (PLOSS): Likewise.
31098         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31099         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
31100         compat_symbol.
31101         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31102         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
31103         compat_symbol.
31104         * math/lgamma-compat.h: Include <math-svid-compat.h>.
31105         * math/w_acos_compat.c: Likewise.
31106         * math/w_acosf_compat.c: Likewise.
31107         * math/w_acosh_compat.c: Likewise.
31108         * math/w_acoshf_compat.c: Likewise.
31109         * math/w_acoshl_compat.c: Likewise.
31110         * math/w_acosl_compat.c: Likewise.
31111         * math/w_asin_compat.c: Likewise.
31112         * math/w_asinf_compat.c: Likewise.
31113         * math/w_asinl_compat.c: Likewise.
31114         * math/w_atan2_compat.c: Likewise.
31115         * math/w_atan2f_compat.c: Likewise.
31116         * math/w_atan2l_compat.c: Likewise.
31117         * math/w_atanh_compat.c: Likewise.
31118         * math/w_atanhf_compat.c: Likewise.
31119         * math/w_atanhl_compat.c: Likewise.
31120         * math/w_cosh_compat.c: Likewise.
31121         * math/w_coshf_compat.c: Likewise.
31122         * math/w_coshl_compat.c: Likewise.
31123         * math/w_exp10_compat.c: Likewise.
31124         * math/w_exp10f_compat.c: Likewise.
31125         * math/w_exp10l_compat.c: Likewise.
31126         * math/w_exp2_compat.c: Likewise.
31127         * math/w_exp2f_compat.c: Likewise.
31128         * math/w_exp2l_compat.c: Likewise.
31129         * math/w_fmod_compat.c: Likewise.
31130         * math/w_fmodf_compat.c: Likewise.
31131         * math/w_fmodl_compat.c: Likewise.
31132         * math/w_hypot_compat.c: Likewise.
31133         * math/w_hypotf_compat.c: Likewise.
31134         * math/w_hypotl_compat.c: Likewise.
31135         * math/w_j0_compat.c: Likewise.
31136         * math/w_j0f_compat.c: Likewise.
31137         * math/w_j0l_compat.c: Likewise.
31138         * math/w_j1_compat.c: Likewise.
31139         * math/w_j1f_compat.c: Likewise.
31140         * math/w_j1l_compat.c: Likewise.
31141         * math/w_jn_compat.c: Likewise.
31142         * math/w_jnf_compat.c: Likewise.
31143         * math/w_jnl_compat.c: Likewise.
31144         * math/w_lgamma_main.c: Likewise.
31145         * math/w_lgamma_r_compat.c: Likewise.
31146         * math/w_lgammaf_main.c: Likewise.
31147         * math/w_lgammaf_r_compat.c: Likewise.
31148         * math/w_lgammal_main.c: Likewise.
31149         * math/w_lgammal_r_compat.c: Likewise.
31150         * math/w_log10_compat.c: Likewise.
31151         * math/w_log10f_compat.c: Likewise.
31152         * math/w_log10l_compat.c: Likewise.
31153         * math/w_log2_compat.c: Likewise.
31154         * math/w_log2f_compat.c: Likewise.
31155         * math/w_log2l_compat.c: Likewise.
31156         * math/w_log_compat.c: Likewise.
31157         * math/w_logf_compat.c: Likewise.
31158         * math/w_logl_compat.c: Likewise.
31159         * math/w_pow_compat.c: Likewise.
31160         * math/w_powf_compat.c: Likewise.
31161         * math/w_powl_compat.c: Likewise.
31162         * math/w_remainder_compat.c: Likewise.
31163         * math/w_remainderf_compat.c: Likewise.
31164         * math/w_remainderl_compat.c: Likewise.
31165         * math/w_scalb_compat.c: Likewise.
31166         * math/w_scalbf_compat.c: Likewise.
31167         * math/w_scalbl_compat.c: Likewise.
31168         * math/w_sinh_compat.c: Likewise.
31169         * math/w_sinhf_compat.c: Likewise.
31170         * math/w_sinhl_compat.c: Likewise.
31171         * math/w_sqrt_compat.c: Likewise.
31172         * math/w_sqrtf_compat.c: Likewise.
31173         * math/w_sqrtl_compat.c: Likewise.
31174         * math/w_tgamma_compat.c: Likewise.
31175         * math/w_tgammaf_compat.c: Likewise.
31176         * math/w_tgammal_compat.c: Likewise.
31177         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31178         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31179         * sysdeps/ieee754/k_standard.c: Likewise.
31180         * sysdeps/ieee754/k_standardf.c: Likewise.
31181         * sysdeps/ieee754/k_standardl.c: Likewise.
31182         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31183         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31184         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31185         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31186         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31187         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31188         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31189         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31190         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31192         Likewise.
31193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31194         Likewise.
31195         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31196         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31197         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31198         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31200 2017-08-21  Florian Weimer  <fweimer@redhat.com>
31202         [BZ #21864]
31203         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31204         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31205         Move before inclusion of ../Rules.
31207 2017-08-21  Florian Weimer  <fweimer@redhat.com>
31209         [BZ #21972]
31210         * assert/assert.h (assert): Use static_cast (bool) for C++.
31211         Use the ternary operator in the warning branch for GNU C.
31212         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31213         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31214         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31215         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31216         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31218 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31220         [BZ #18822]
31221         * sysdeps/unix/sysv/linux/x86_64/init-first.c
31222         (__syscall_clock_gettime): Add attribute_hidden.
31223         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31224         (__start_context): Likewise.
31226 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31228         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31229         building libc.a.
31230         (hidden_proto): Likewise.
31231         (hidden_tls_proto): Likewise.
31232         (__hidden_proto): Likewise.
31234 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31236         * include/libc-symbols.h (attribute_hidden): Enable hidden
31237         visibility in libc.a compiled with PIE.
31239 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31241         [BZ #18822]
31242         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31243         Add attribute_hidden.
31245 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31247         [BZ #21864]
31248         * Makerules (all-nonlib): Add $(others-extras).
31249         * catgets/Makefile (others-extras): New.
31250         * elf/Makefile (others-extras): Likewise.
31251         * nss/Makefile (others-extras): Likewise.
31253 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31255         [BZ #18822]
31256         * csu/libc-start.c (__libc_multiple_libcs): Removed.
31257         * elf/dl-open.c: Include <libc-internal.h>.
31258         (__libc_multiple_libcs): Removed.
31259         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31260         <hp-timing.h>.
31261         * include/libc-internal.h (__libc_multiple_libcs): New.
31262         * misc/sbrk.c: Include <libc-internal.h>.
31263         (__libc_multiple_libcs): Removed.
31265 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31267         [BZ #18822]
31268         * grp/initgroups.c (__nss_group_database): Removed.
31269         (__nss_initgroups_database): Likewise.
31270         * nscd/gai.c (__nss_hosts_database): Likewise.
31271         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31272         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31273         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31274         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31275         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31276         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31277         attribute_hidden.
31278         * nss/nsswitch.c (__nss_database_custom): Define only if
31279         USE_NSCD is defined.
31280         (__nss_configure_lookup): Use __nss_database_custom only if
31281         USE_NSCD is defined.
31282         * nss/nsswitch.h (__nss_database_custom): Declare only if
31283         USE_NSCD is defined.  Add attribute_hidden.
31284         (__nss_setent): Add attribute_hidden.
31285         (__nss_endent): Likewise.
31286         (__nss_getent_r): Likewise.
31287         (__nss_getent): Likewise.
31288         (DEFINE_DATABASE): Declare __nss_##arg##_database.
31290 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31292         [BZ #18822]
31293         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31294         libc_hidden_proto and libc_hidden_def.
31296 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31298         [BZ #18822]
31299         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31300         Add libc_hidden_proto.
31301         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31302         Add libc_hidden_def.
31304 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31306         [BZ #21974]
31307         * gmon/Makefile (routines): Remove bb_init_func and
31308         bb_exit_func.
31309         (elide-routines.os): Removed.
31310         * gmon/bb_exit_func.c: Likewise.
31311         * gmon/bb_init_func.c: Likewise.
31312         * include/sys/gmon.h (__bb): Likewise.
31313         (__bb_init_func): Likewise.
31314         (__bb_exit_func): Likewise.
31315         * sysdeps/alpha/bb_init_func.S: Likewise.
31317 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31319         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31320         * include/setjmp.h (____longjmp_chk): Here.  Add
31321         attribute_hidden.
31323 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
31325         [BZ #18822]
31326         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31327         attribute_hidden.
31328         (__strspn_sse2): Likewise.
31330 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31332         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31333         (close_not_cancel_no_status): Likewise.
31334         (__close_nocancel): New macro.
31335         (__close_nocancel_nostatus): Likewise.
31336         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31337         macro.
31338         (close_not_cancel): Likewise.
31339         (close_not_cancel_no_status): Likewise.
31340         (__close_nocancel): New prototype.
31341         (__close_nocancel_nostatus): New function.
31342         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31343         * catgets/open_catalog.c (__open_catalog): Replace
31344         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31345         * gmon/gmon.c (write_gmon): Likewise.
31346         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31347         * intl/loadmsgcat.c (close): Likewise.
31348         * io/ftw.c (open_dir_stream): Likewise.
31349         (ftw_startup): Likewise.
31350         * libio/fileops.c (_IO_file_open): Likewise.
31351         (_IO_file_close_mmap): Likewise.
31352         (_IO_file_close): Likewise.
31353         * libio/iopopen.c (_IO_dup2): Likewise.
31354         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31355         * locale/loadlocale.c (_nl_load_locale): Likewise.
31356         * login/utmp_file.c (pututline_file): Likewise.
31357         (endutent_file): Likewise.
31358         * misc/daemon.c (daemon): Likewise.
31359         * nscd/nscd_getai.c (__nscd_getai): Likewise.
31360         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31361         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31362         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31363         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31364         * nscd/nscd_helper.c (open_socket): Likewise.
31365         (__nscd_open_socket): Likewise.
31366         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31367         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31368         (__nscd_innetgr): Likewise.
31369         * nss/nss_db/db-open.c (internal_setent): Likewise.
31370         * resolv/res-close.c (__res_iclose): Likewise.
31371         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31372         * sysdeps/posix/closedir.c (__closedir): Likewise.
31373         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31374         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31375         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31376         (opendir_tail): Likewise.
31377         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31378         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31379         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31380         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31381         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31382         (gethostid): Likewise.
31383         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31384         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31385         Likewise.
31386         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31387         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31388         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31389         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31390         Likewise.
31391         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31392         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31393         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31394         Likewise.
31395         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31396         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31397         Likewise.
31398         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31399         Likewise.
31400         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31401         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31402         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31403         __close_nocancel.
31405         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31406         (openat_not_cancel_3): Likewise.
31407         (openat64_not_cancel_3): Likewise).
31408         (openat_not_cancel_3): Likewise).
31409         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31410         macro.
31411         (openat_not_cancel_3): Likewise.
31412         (openat64_not_cancel): Likewise.
31413         (openat64_not_cancel_3): Likewise.
31414         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31415         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31416         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31417         __open{64}_nocancel.
31418         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31419         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31420         * sysdeps/posix/opendir.c (__opendirat): Likewise.
31422 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31424         [BZ #18822]
31425         * include/argz.h (__argz_create_sep): New function prototype.
31426         (__argz_append): Likewise.
31427         (__argz_add): Likewise.
31428         (__argz_add_sep): Likewise.
31429         (__argz_delete): Likewise.
31430         (__argz_insert): Likewise.
31431         (__argz_replace): Likewise.
31432         * string/argz.h (__argz_create_sep): Removed.
31433         (__argz_append): Likewise.
31434         (__argz_add): Likewise.
31435         (__argz_add_sep): Likewise.
31436         (__argz_delete): Likewise.
31437         (__argz_insert): Likewise.
31438         (__argz_replace): Likewise.
31440 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31442         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31443         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31444         (GNU_PROPERTY_STACK_SIZE): Likewie.
31445         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31446         (GNU_PROPERTY_LOPROC): Likewise.
31447         (GNU_PROPERTY_HIPROC): Likewise.
31448         (GNU_PROPERTY_LOUSER): Likewise.
31449         (GNU_PROPERTY_HIUSER): Likewise.
31450         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31451         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31452         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31453         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31454         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31455         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31456         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31457         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31458         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31459         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31460         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31461         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31462         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31463         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31464         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31465         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31466         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31467         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31468         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31469         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31470         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31471         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31472         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31474 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31476         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31477         in C++ mode.
31479 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31481         [BZ #21930]
31482         * math/math.h (isinf): Check if in C or C++ mode before using
31483         __builtin_types_compatible_p, since this is a C mode feature.
31485 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31487         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31488         (__write_nocancel): New macro.
31489         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31490         Rewrite as a function prototype.
31491         (write_not_cancel): Remove macro.
31492         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31493         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31494         (write_gmon): Likewise.
31495         * libio/fileops.c (_IO_new_file_write): Likewise.
31496         * login/utmp_file.c (pututline_file): Likewise.
31497         (updwtmp_file): Likewise.
31498         * stdio-common/psiginfo.c (psiginfo): Likewise.
31499         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31500         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31501         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31502         Likewise.
31503         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31504         Likewise.
31506         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31507         (__read_nocancel): New macro.
31508         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31509         __read_nocancel.
31510         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31511         macro.
31512         (__read_nocancel): New prototype.
31513         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31514         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31515         with __read_nocancel.
31516         * intl/loadmsgcat.c (read): Likewise.
31517         * libio/fileops.c (_IO_file_read): Likewise.
31518         * locale/loadlocale.c (_nl_load_locale): Likewise.
31519         * login/utmp_file.c (getutent_r_file): Likewise.
31520         (internal_getut_r): Likewise.
31521         (getutline_r_file): Likewise.
31522         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31523         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31524         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31525         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31526         Likewise.
31527         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31528         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31529         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31530         Likewise.
31531         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31532         Likewise.
31533         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31534         Likewise.
31535         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31536         Likewise.
31537         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31539 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31541         [BZ #21966]
31542         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31543         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31544         usable.
31546 2017-08-17  DJ Delorie  <dj@redhat.com>
31548         * bug17079.c: Update to new test harness.
31549         * test-digits-dots.c: Likewise.
31550         * test-netdb.c: Likewise.
31551         * tst-field.c: Likewise.
31552         * tst-nss-getpwent.c: Likewise.
31553         * tst-nss-static.c: Likewise.
31554         * tst-nss-test1.c: Likewise.
31555         * tst-nss-test2.c: Likewise.
31556         * tst-nss-test3.c: Likewise.
31557         * tst-nss-test4.c: Likewise.
31558         * tst-nss-test5.c: Likewise.
31560 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31562         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31563         (open_not_cancel_2): Likewise.
31564         (open_nocancel): New macro.
31565         (open64_nocancel): Likewise.
31566         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31567         (open_not_cancel_2): Likewise.
31568         (__open_nocancel): New prototype.
31569         (__open64_nocancel): Likewise.
31570         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31571         __open_nocancel.
31572         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31573         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31574         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31575         with __open_nocancel.
31576         * csu/check_fds.c (check_one_fd): Likewise.
31577         * gmon/gmon.c (write_gmon): Likewise.
31578         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31579         * intl/loadmsgcat.c (open): Likewise.
31580         * libio/fileops.c (_IO_file_open): Likewise.
31581         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31582         * locale/loadlocale.c (_nl_load_locale): Likewise.
31583         * login/utmp_file.c (setutent_file): Likewise.
31584         * misc/daemon.c (daemon): Likewise.
31585         * nss/nss_db/db-open.c (internal_setent): Likewise.
31586         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31587         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31588         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31589         (__opendir): Likewise.
31590         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31591         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31592         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31593         (gethostid): Likewise.
31594         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31595         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31596         Likewise.
31597         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31598         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31599         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31600         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31601         Likewise.
31602         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31603         Likewise.
31604         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31605         Likewise.
31606         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31607         Likewise.
31608         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31609         Likewise.
31610         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31611         Likewise.
31612         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31613         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31615 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
31617         * benchtests/bench-skeleton.c (main): Add support for
31618         latency benchmarking.
31619         * benchtests/scripts/bench.py: Add support for latency benchmarking.
31621 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
31623         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31624         the startup object.
31626 2017-08-17  Florian Weimer  <fweimer@redhat.com>
31628         * include/sys/socket.h (__opensock): Remove internal_function.
31629         * socket/opensock.c (__opensock): Likewise.
31630         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31632 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
31634         [BZ #21944]
31635         * signal/bits/types/__sigval_t.h: New file.
31636         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31637         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31638         and define sigval_t using __sigval_t.
31639         * include/bits/types/__sigval_t.h: New file.
31640         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31641         instead of <bits/types/__sigval_t.h>.
31642         (struct sigevent): Use __sigval_t instead of sigval_t.
31643         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31644         instead of <bits/types/__sigval_t.h>.
31645         (siginfo_t): Use __sigval_t instead of sigval_t.
31646         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31647         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31648         (struct sigevent): Use __sigval_t instead of sigval_t.
31649         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31650         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31651         (siginfo_t): Use __sigval_t instead of sigval_t.
31652         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31654 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31656         * NEWS: Remove "[Add new features here]" for 2.27.
31658 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
31660         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31661         libc.so.
31663 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31665         * NEWS: Mention x86-64 FMA optimization.
31667 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31669         [BZ #21912]
31670         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31671         Add e_expf-fma.
31672         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31673         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31674         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31676 2017-08-16  Andreas Schwab  <schwab@suse.de>
31678         [BZ #16750]
31679         CVE-2009-5064
31680         * elf/ldd.bash.in: Never run file directly.
31682 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
31684         [BZ #21955]
31685         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31686         (L(SP_INF_0)): Likewise.
31688 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31690         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31691         run-built-tests.
31693 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31695         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31696         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31697         BROKEN_THREAD_SIGNALS code.
31698         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31699         request_list): Remove caller_pid member used for
31700         BROKEN_THREAD_SIGNALS.
31701         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31702         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31703         Remove BROKEN_THREAD_SIGNALS support.
31704         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31705         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31707 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31709         * gmon/Makefile (tests): Add tst-gmon.
31710         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31711         Set.
31712         (tests-special): Add tst-gmon-prof.out.
31713         (tst-gmon.out): Depend on clean-tst-gmon-data.
31714         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31715         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31716         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31717         startup object.
31718         * aclocal.m4 (GPROF): Set and substitute.
31719         * config.amke.in (GPROF): Set.
31720         * configure: Regenerate.
31722 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
31724         * elf/elf.h A (NT_PPC_TAR): New macro.
31725         (NT_PPC_PPR): Likewise.
31726         (NT_PPC_DSCR): Likewise.
31727         (NT_PPC_EBB): Likewise.
31728         (NT_PPC_PMU): Likewise.
31729         (NT_PPC_TM_CGPR): Likewise.
31730         (NT_PPC_TM_CFPR): Likewise.
31731         (NT_PPC_TM_CVMX): Likewise.
31732         (NT_PPC_TM_CVSX): Likewise.
31733         (NT_PPC_TM_SPR): Likewise.
31734         (NT_PPC_TM_CTAR): Likewise.
31735         (NT_PPC_TM_CPPR): Likewise.
31736         (NT_PPC_TM_CDSCR): Likewise.
31738 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31740         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31741         regparm (2) instead of internal_function.
31742         (_MCOUNT_DECL): Adjust.
31744 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
31746         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31747         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31749 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
31751         * conform/data/sys/wait.h-data (si_value): Do not expect for
31752         XPG42.
31754 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31756         [BZ #21962]
31757         NSS: Create stubs for accidentally exported lookup functions.
31758         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31759         Remove declaration.
31760         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31761         (ether_hostton): Call __nss_ethers_lookup2 instead.
31762         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31763         (ether_ntohost): Call __nss_ethers_lookup2 instead.
31764         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31765         (setup): Call __nss_netgroup_lookup2 instead.
31766         * nss/Makefile (routines): Add compat-lookup.
31767         * nss/Versions (GLIBC_2.27): Add symbol version.
31768         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
31769         (DB_COMPAT_FCT): Remove.
31770         * nss/compat-lookup.c: New file.
31771         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31772         from databases.def.
31773         * nss/service-lookup.c (NO_COMPAT): Remove definition.
31774         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31775         (netname2user): Call __nss_publickey_lookup2 instead.
31776         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31777         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31778         instead.
31780 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31781             Sergei Trofimovich  <slyfox@inbox.ru>
31783         [BZ #21908]
31784         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31785         Rename to MMAP2_PAGE_UNIT.
31786         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31787         __OFF_T_MATCHES_OFF64_T is not defined.
31788         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31789         uint64_t.
31790         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31791         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31793 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31795         i386: Do not set internal_function.
31796         * config.h.in (USE_REGPARMS, internal_function): Remove.
31797         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31798         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31800 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31802         * elf/dl-init.c (_dl_init): Remove internal_function.
31803         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31804         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31806 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31808         * elf/rtld.c (_dl_start): Remove internal_function.
31809         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31810         _dl_start.
31812 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31814         * elf/dl-fini.c (_dl_fini): Remove internal_function
31815         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31817 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
31819         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31820         (bit_cpu_SHSTK): Likewise.
31821         (index_cpu_IBT): Likewise.
31822         (index_cpu_SHSTK): Likewise.
31823         (reg_IBT): Likewise.
31824         (reg_SHSTK): Likewise.
31825         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31826         Handle index_cpu_IBT and index_cpu_SHSTK.
31828 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
31830         [BZ #19982]
31831         * po/fr.po: Fix spelling mistake.
31833 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31835         * elf/dl-addr.c (_dl_addr): Remove internal_function.
31836         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31837         (_dl_catch_error, _dl_receive_error): Likewise.
31838         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31839         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31840         (_dl_deallocate_tls): Likewise.
31841         * include/dlfcn.h (_dl_addr): Likewise.
31842         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31843         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31844         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31845         Likewise.
31847 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31849         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31850         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31851         internal_function.
31852         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31854 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31856         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31857         internal_function.
31858         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31859         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31860         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31861         internal_function from _dl_make_stack_executable_hook member.
31862         (_dl_make_stack_executable): Remove internal_function.
31863         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31864         Likewise.
31865         * sysdeps/unix/sysv/linux/dl-execstack.c
31866         (_dl_make_stack_executable): Likewise.
31868 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31870         * sysdeps/unix/sysv/linux/netlinkaccess.h
31871         (__netlink_assert_response): Remove internal_function.
31872         * sysdeps/unix/sysv/linux/netlink_assert_response.c
31873         (__netlink_assert_response): Likewise.
31875 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31877         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31878         internal_function.
31879         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31881 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31883         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31884         internal_function.
31885         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31886         * inet/netgroup.h (__internal_setnetgrent)
31887         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31888         * inet/getnetgrent_r.c (__internal_setnetgrent)
31889         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31890         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31891         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31892         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31893         * nss/nsswitch.h (db_lookup_function): Likewise.
31895 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31897         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31898         Remove internal_function.
31899         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31900         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31901         message argument on the stack.
31902         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31903         Likeweise.
31905 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
31907         Adapt test case data to the changes in the thousands
31908         separators.
31910         [BZ #20756]
31911         * localedata/tst-langinfo.sh: Adapt test case data.
31912         * stdlib/tst-strfmon_l.c: Likewise.
31913         * stdlib/tst-strtod4.c: Likewise.
31914         * stdlib/tst-strtod5i.c: Likewise.
31916 2017-08-11  Florian Weimer  <fweimer@redhat.com>
31918         [BZ #21242]
31919         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31920         Suppress pedantic warning resulting from statement expression.
31921         (__ASSERT_FUNCTION): Add missing __extension__.
31923 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
31925         * benchtests/bench-memmove-large.c: Print output in JSON
31926         format.
31927         * benchtests/bench-memmove.c: Likewise.
31929         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31930         * benchtests/bench-memchr.c (do_one_test): Likewise.
31931         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31932         * benchtests/bench-memcpy.c (do_one_test): Likewise.
31933         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31934         * benchtests/bench-memmove.c (do_one_test): Likewise.
31935         * benchtests/bench-memset-large.c (do_one_test): Likewise.
31936         * benchtests/bench-memset.c (do_one_test): Likewise.
31937         * benchtests/bench-string.h (test_init): Remove memsets.
31939 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
31941         * manual/lang.texi
31942         (Computing the Width of an Integer Data Type): Rename section to
31943         "Width of an Integer Type".  Remove inaccurate statement regarding
31944         lack of C language facilities for determining width of integer
31945         types, and reorder content to improve flow and context of
31946         discussion.
31948 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
31950         * lang.texi (va_copy): Change standard from ISO to C99.
31951         (__va_copy): Add standard and header annotation.
31952         Update description for clarity of origins and current use.
31954 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31956         [BZ #21941]
31957         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31958         xssqrtqp requires operands to be in Vector Registers
31959         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31960         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31961         (__ieee754_sqrtf128): Likewise.
31963 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
31965         * sysdeps/aarch64/memcmp.S (memcmp):
31966         Rewrite of optimized memcmp.
31968 2017-08-10  Florian Weimer  <fweimer@redhat.com>
31970         Introduce ld.so exceptions.
31971         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31972         (_dl_exception_create, _dl_exception_create_format)
31973         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31974         (_dl_catch_exception): Declare.
31975         (_dl_catch_error): Update comment.
31976         * elf/dl-error-skeleton.c (struct catch): Replace objname,
31977         errstring, malloced members with exception member.
31978         (_dl_out_of_memory): Remove.
31979         (fatal_error): New function, extracted from _dl_signal_error.
31980         (_dl_signal_exception, _dl_signal_cexception): New functions.
31981         (_dl_signal_error): Call _dl_exception_create to allocate an
31982         exception object.
31983         (_dl_catch_exception): New function, based on _dl_catch_error.
31984         (_dl_catch_error): Implement using _dl_catch_exception.
31985         * elf/dl-exception.c: New file.
31986         * elf/Makefile (dl-routines): Add dl-exception.
31987         (elide-routines.os): Likewise.
31988         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31989         _dl_exception_create_format, _dl_exception_free.
31990         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31991         _dl_signal_exception.
31992         * elf/dl-lookup.c (make_string): Remove.
31993         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31994         _dl_signal_cexception, _dl_exception_free.
31995         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31996         _dl_signal_exception.
31997         * elf/dl-sym.c (do_sym): Likewise.
31998         * elf/dl-version.c (make_string): Remove.
31999         (match_symbol): Use _dl_exception_create_format,
32000         _dl_signal_cexception, _dl_exception_free.
32001         (_dl_check_map_versions): Likewise.
32002         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32003         _dl_catch_exception.
32004         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32005         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32006         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32007         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32008         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32009         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32010         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32011         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32012         Likewise.
32013         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32015         (ld.so): Likewise.
32016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32017         (ld.so): Likewise.
32018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32019         Likewise.
32020         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32021         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32022         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32023         Likewise.
32024         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32025         Likewise.
32026         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32028 2017-08-10  Florian Weimer  <fweimer@redhat.com>
32030         * inet/net-internal.h (__inet6_scopeid_pton): Remove
32031         attribute_hidden, internal_function.
32032         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32033         internal_function.
32035 2017-08-10  Florian Weimer  <fweimer@redhat.com>
32037         * malloc/malloc.c (get_max_fast): Reimplement as an inline
32038         function which calls __builtin_unreachable.
32040 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
32042         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32043         Indian monetary formatting
32044         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32045         test cases.
32047 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
32049         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32050         Fix typo in comment.
32052         [BZ #21928]
32053         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32054         PTRACE_SEIZE_DEVEL): Remove.
32055         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32056         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32057         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32058         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32059         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32061 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
32063         * posix/bits/types.h (__qaddr_t): Remove.
32065         [BZ #21457]
32066         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32067         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32068         __glibc_reserved1.
32069         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32070         (ucontext_t): Use __ctx with uc_flags.
32071         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32072         (__ctxt): Likewise.
32073         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32074         __glibc_reserved1.
32075         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32076         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32077         __glibc_reserved1.
32078         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32079         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32080         __glibc_reserved1.
32081         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32082         macro.
32083         (ucontext_t): Use __ctx with uc_flags.
32084         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32085         (ucontext_t): Use __ctx with uc_flags.
32086         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32087         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32088         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32089         (ucontext_t): Use __ctx with uc_flags.
32090         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32091         undefine further down.
32092         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32093         __glibc_reserved1.
32094         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32095         undefine further down.
32096         (ucontext_t): Use __ctx with uc_flags.
32097         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32098         undefine further down.
32099         (ucontext_t): Use __ctx with uc_flags.
32100         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32101         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32102         Rename uc_pad to __glibc_reserved1.
32103         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32104         undefine further down.
32105         (ucontext_t): Use __ctx with uc_flags.
32106         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32107         further down.
32108         (ucontext_t): Use __ctx with uc_flags.
32109         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32110         __ctx with uc_flags.
32111         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32112         (ucontext_t): Use __ctx with uc_flags.
32113         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32114         __ctx with uc_flags.
32116 2017-08-09  Florian Weimer  <fweimer@redhat.com>
32118         [BZ #21932]
32119         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32120         before early return.
32122 2017-08-09  Andreas Schwab  <schwab@suse.de>
32124         [BZ #21041]
32125         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32126         renamed alias.
32128         [BZ #21041]
32129         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32130         tst-compat-forwarder.
32131         (modules-names): Add tst-compat-forwarder-mod.
32132         ($(objpfx)tst-compat-forwarder): Depend on
32133         $(objpfx)tst-compat-forwarder-mod.so.
32134         * nptl/tst-compat-forwarder.c: New file.
32135         * nptl/tst-compat-forwarder-mod.c: New file.
32137 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32139         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32140         comments.
32142         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32143         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32144         memcpy_falkor.
32145         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32146         Bump.
32147         (__libc_ifunc_impl_list): Add __memcpy_falkor.
32148         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32149         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32150         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32151         Add falkor.
32152         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32153         New macro.
32155 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32157         [BZ #759]
32158         * manual/setjmp.texi (getcontex): Document uc_stack value
32159         compatibility differences.
32161 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
32163         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32164         (old_malloc_hook): Likewise.
32165         (old_memalign_hook): Likewise.
32166         (old_realloc_hook): Likewise.
32167         (struct hdr): Likewise.
32168         (flood): Likewise.
32169         (freehook): Likewise.
32170         (mallochook): Likewise.
32171         (memalignhook): Likewise.
32172         (reallochook): Likewise.
32173         (mprobe): Likewise.
32174         * malloc/mtrace.c (mallwatch): Likewise.
32175         (tr_old_free_hook): Likewise.
32176         (tr_old_malloc_hook): Likewise.
32177         (tr_old_realloc_hook): Likewise.
32178         (tr_old_memalign_hook): Likewise.
32179         (tr_where): Likewise.
32180         (lock_and_info): Likewise.
32181         (tr_freehook): Likewise.
32182         (tr_mallochook): Likewise.
32183         (tr_reallochook): Likewise.
32184         (tr_memalignhook): Likewise.
32185         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32186         * misc/mmap.c (__mmap): Likewise.
32187         * misc/mmap64.c (__mmap64): Likewise.
32188         * misc/mprotect.c (__mprotect): Likewise.
32189         * misc/msync.c (msync): Likewise.
32190         * misc/munmap.c (__munmap): Likewise.
32191         * posix/posix_madvise.c (posix_madvise): Likewise.
32192         * socket/send.c (__send): Likewise.
32193         * socket/sendto.c (__sendto): Likewise.
32194         * socket/setsockopt.c (__setsockopt): Likewise.
32195         * string/memcmp.c (__ptr_t): Remove macro.
32196         (MEMCMP): Use void * instead of ptr_t.
32197         * string/memrchr.c (__ptr_t): Remove macro.
32198         (__memrchr): Use void * instead of ptr_t.
32199         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32200         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32201         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32202         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32203         * sysdeps/mach/msync.c (msync): Likewise.
32204         * sysdeps/mach/munmap.c (__munmap): Likewise.
32205         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32206         Likewise.
32207         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32208         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32209         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32210         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32211         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32212         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32213         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32214         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32215         Likewise.
32216         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32217         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32218         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32219         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32220         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32221         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32222         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32223         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32224         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32225         Likewise.
32226         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32227         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32228         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32229         (MEMCMP): Use void * instead of ptr_t.
32230         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32231         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32233 2017-08-08  Florian Weimer  <fweimer@redhat.com>
32235         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32236         return statement.
32238 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
32240         [BZ #21913]
32241         * csu/libc-tls.c: Include <startup.h> first.
32242         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32243         * elf/dl-tunables.c: Include <startup.h> first.
32244         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32245         * sysdeps/generic/startup.h: New file.
32246         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32247         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32248         (I386_USE_SYSENTER): New.  Defined to 0.
32250 2017-08-08  Andreas Schwab  <schwab@suse.de>
32252         [BZ #21041]
32253         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32254         * nptl/pt-system.c (system): Likewise.
32256 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32258         [BZ #21780]
32259         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32260         EOPNOTSUPP.
32261         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32262         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32263         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32264         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32265         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32266         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32267         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32269 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
32271         [BZ #21899]
32272         * bits/sigaction.h (struct sigaction): Define sa_handler and
32273         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32274         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32275         [__USE_XOPEN_EXTENDED].
32276         (SA_RESTART): Likewise.
32277         (SA_NODEFER): Likewise.
32278         (SA_RESETHAND): Likewise.
32279         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32280         (struct sigaction): Define sa_handler and sa_sigaction using union
32281         also for [__USE_XOPEN_EXTENDED].
32282         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32283         [__USE_XOPEN_EXTENDED].
32284         (SA_RESTART): Likewise.
32285         (SA_NODEFER): Likewise.
32286         (SA_RESETHAND): Likewise.
32287         * sysdeps/unix/sysv/linux/bits/sigaction.h
32288         (struct sigaction): Define sa_handler and sa_sigaction using union
32289         also for [__USE_XOPEN_EXTENDED].
32290         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32291         [__USE_XOPEN_EXTENDED].
32292         (SA_RESTART): Likewise.
32293         (SA_NODEFER): Likewise.
32294         (SA_RESETHAND): Likewise.
32295         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32296         (struct sigaction): Define sa_handler and sa_sigaction using union
32297         also for [__USE_XOPEN_EXTENDED].
32298         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32299         [__USE_XOPEN_EXTENDED].
32300         (SA_RESTART): Likewise.
32301         (SA_NODEFER): Likewise.
32302         (SA_RESETHAND): Likewise.
32303         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32304         (struct sigaction): Define sa_handler and sa_sigaction using union
32305         also for [__USE_XOPEN_EXTENDED].
32306         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32307         [__USE_XOPEN_EXTENDED].
32308         (SA_RESTART): Likewise.
32309         (SA_NODEFER): Likewise.
32310         (SA_RESETHAND): Likewise.
32311         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32312         (struct sigaction): Define sa_handler and sa_sigaction using union
32313         also for [__USE_XOPEN_EXTENDED].
32314         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32315         [__USE_XOPEN_EXTENDED].
32316         (SA_RESTART): Likewise.
32317         (SA_NODEFER): Likewise.
32318         (SA_RESETHAND): Likewise.
32319         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32320         (struct sigaction): Define sa_handler and sa_sigaction using union
32321         also for [__USE_XOPEN_EXTENDED].
32322         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32323         [__USE_XOPEN_EXTENDED].
32324         (SA_RESTART): Likewise.
32325         (SA_NODEFER): Likewise.
32326         (SA_RESETHAND): Likewise.
32327         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32328         (struct sigaction): Define sa_handler and sa_sigaction using union
32329         also for [__USE_XOPEN_EXTENDED].
32330         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32331         [__USE_XOPEN_EXTENDED].
32332         (SA_RESTART): Likewise.
32333         (SA_NODEFER): Likewise.  Define directly rather than as alias.
32334         (SA_RESETHAND): Likewise.
32335         (SA_INTERRUPT): Define only for [__USE_MISC].
32336         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32337         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32338         [__USE_MISC].
32339         (SA_STACK): Define only for [__USE_MISC].
32340         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32341         (struct sigaction): Define sa_handler and sa_sigaction using union
32342         also for [__USE_XOPEN_EXTENDED].
32343         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32344         [__USE_XOPEN_EXTENDED].
32345         (SA_RESTART): Likewise.
32346         (SA_NODEFER): Likewise.
32347         (SA_RESETHAND): Likewise.
32348         (SA_NOPTRACE): Define only for [__USE_MISC].
32350         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32351         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32352         (struct catalog_info): Likewise.
32353         * inet/htontest.c (lo): Likewise.
32354         (foo): Likewise.
32355         * inet/inet_lnaof.c (inet_lnaof): Likewise.
32356         * inet/inet_net.c (inet_network): Likewise.
32357         * inet/inet_netof.c (inet_netof): Likewise.
32358         * inet/rcmd.c (__ivaliduser): Likewise.
32359         (iruserok): Likewise.
32360         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32361         * locale/programs/locale-spec.c (locale_special): Likewise.
32362         * nis/nis_findserv.c (struct findserv_req): Likewise.
32363         (__nis_findfastest_with_timeout): Likewise.
32364         * nss/test-netdb.c (test_network): Likewise.
32365         * resolv/inet_neta.c (inet_neta): Likewise.
32366         * resolv/ns_date.c (ns_datetosecs): Likewise.
32367         (SECS_PER_DAY): Likewise.
32368         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32369         Likewise.
32370         * resolv/res_comp.c (__putlong): Likewise.
32371         (__putshort): Likewise.
32372         (_getlong): Likewise.
32373         (_getshort): Likewise.
32374         * resolv/res_debug.c (p_time): Likewise.
32375         (precsize_ntoa): Likewise.
32376         (precsize_aton): Likewise.
32377         (latlon2ul): Likewise.
32378         (loc_aton): Likewise.
32379         (loc_ntoa): Likewise.
32380         * resolv/res_hconf.c (struct netaddr): Likewise.
32381         (_res_hconf_reorder_addrs): Likewise.
32382         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32383         (clnttcp_control): Likewise.
32384         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32385         (clntudp_control): Likewise.
32386         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32387         (clntunix_control): Likewise.
32388         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32389         * sunrpc/rpc/auth.h (union des_block): Likewise.
32390         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32391         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32392         (xdrrec_create): Likewise.
32393         (xdrrec_endofrecord): Likewise.
32394         (flush_out): Likewise.
32395         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32396         (xdrstdio_putlong): Likewise.
32397         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32398         Likewise.
32400         * misc/sys/cdefs.h (__long_double_t): Remove.
32401         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32402         instead of __long_double_t,
32403         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32405 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32407         * benchtests/scripts/compare_strings.py: Avoid display error when
32408         running on a text terminal.
32410         * benchtests/scripts/compare_strings.py (main): Add an
32411         optional -base option.
32412         (process_results): New argument base_func.
32414         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32415         hardcoding memcpy.
32416         * benchtests/bench-memcpy-large.c (test_name): Likewise.
32417         * benchtests/bench-memcpy-random.c (test_name): Likewise.
32419 2017-08-07  Andreas Schwab  <schwab@suse.de>
32421         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32422         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32423         * intl/Makefile ($(objpfx)tst-gettext.out)
32424         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32425         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32426         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32427         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32428         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32429         * posix/Makefile ($(objpfx)globtest.out)
32430         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32431         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32432         ($(objpfx)tst-printf.out): Likewise.
32433         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32434         ($(objpfx)tst-setcontext3.out): Likewise.
32436 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
32438         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32439         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32440         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32441         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32442         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32443         and mptan-fma.
32444         (CFLAGS-doasin-fma.c): New.
32445         (CFLAGS-dosincos-fma.c): Likewise.
32446         (CFLAGS-e_asin-fma.c): Likewise.
32447         (CFLAGS-e_atan2-fma.c): Likewise.
32448         (CFLAGS-e_exp-fma.c): Likewise.
32449         (CFLAGS-e_log-fma.c): Likewise.
32450         (CFLAGS-e_pow-fma.c): Likewise.
32451         (CFLAGS-halfulp-fma.c): Likewise.
32452         (CFLAGS-mpa-fma.c): Likewise.
32453         (CFLAGS-mpatan-fma.c): Likewise.
32454         (CFLAGS-mpatan2-fma.c): Likewise.
32455         (CFLAGS-mpexp-fma.c): Likewise.
32456         (CFLAGS-mplog-fma.c): Likewise.
32457         (CFLAGS-mpsqrt-fma.c): Likewise.
32458         (CFLAGS-mptan-fma.c): Likewise.
32459         (CFLAGS-s_atan-fma.c): Likewise.
32460         (CFLAGS-sincos32-fma.c): Likewise.
32461         (CFLAGS-slowexp-fma.c): Likewise.
32462         (CFLAGS-slowpow-fma.c): Likewise.
32463         (CFLAGS-s_sin-fma.c): Likewise.
32464         (CFLAGS-s_tan-fma.c): Likewise.
32465         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32466         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32467         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32468         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32469         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32470         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32471         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32472         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32473         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32474         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32475         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32476         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32477         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32478         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32479         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32480         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32481         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32482         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32483         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32484         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32485         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32486         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32487         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32488         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32489         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32490         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32491         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32492         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32493         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32494         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32495         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32497 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
32499         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32500         (min_of_type_f): New macro.
32501         (min_of_type_): Likewise.
32502         (min_of_type_l): Likewise.
32503         (min_of_type_f128): Likewise.
32504         (min_of_type): Define using __MATH_TG and taking an expression
32505         argument.
32506         (math_check_force_underflow): Pass expression instead of type to
32507         min_of_type.
32508         (math_check_force_underflow_nonneg): Likewise.
32510 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32512         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32513         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32514         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32516 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32518         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32519         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32520         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32521         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32522         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32523         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32524         memcpy_chk-nonshared, mempcpy_chk-nonshared,
32525         memmove_chk-nonshared and memset_chk-nonshared
32526         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32527         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32528         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32529         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32530         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32531         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32532         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32533         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32534         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32535         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32536         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32537         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32538         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32539         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32540         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32541         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32542         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32543         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32544         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32545         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32546         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32547         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32548         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32549         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32550         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32551         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32552         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32553         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32554         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32555         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32556         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32557         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32558         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32559         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32560         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32561         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32562         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32563         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32564         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32565         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32566         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32567         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32568         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32569         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32570         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32571         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32572         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32573         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32574         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32575         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32576         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32577         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32578         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32579         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32580         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32581         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32582         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32583         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32584         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32585         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32586         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32587         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32588         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32589         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32590         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32591         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32592         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32593         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32594         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32595         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32596         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32597         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32598         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32599         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32600         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32601         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32602         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32603         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32604         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32605         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32606         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32607         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32608         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32609         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32610         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32611         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32612         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32613         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32614         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32615         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32616         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32617         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32618         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32619         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32620         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32621         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32622         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32623         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32624         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32625         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32626         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32627         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32628         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32629         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32630         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32631         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32632         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32633         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32635 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32637         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32638         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32639         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32640         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32641         svml_d_log2_core-sse2, svml_d_log4_core-sse,
32642         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32643         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32644         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32645         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32646         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32647         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32648         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32649         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32650         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32651         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32652         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32653         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32654         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32655         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32656         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32657         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32658         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32659         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32660         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32661         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32662         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32663         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32664         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32665         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32666         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32667         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32668         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32669         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32670         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32671         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32672         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32673         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32674         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32675         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32676         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32677         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32678         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32679         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32680         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32681         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32682         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32683         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32684         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32685         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32686         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32687         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32688         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32689         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32690         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32691         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32692         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32693         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32694         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32695         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
32696         ...
32697         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32698         Don't include <sysdep.h> nor <init-arch.h>.
32699         (_ZGVbN2v_cos): Removed.
32700         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
32701         ...
32702         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32703         Don't include <sysdep.h> nor <init-arch.h>.
32704         (_ZGVdN4v_cos): Removed.
32705         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
32706         ...
32707         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32708         Don't include <sysdep.h> nor <init-arch.h>.
32709         (_ZGVeN8v_cos): Removed.
32710         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
32711         ...
32712         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32713         Don't include <sysdep.h> nor <init-arch.h>.
32714         (_ZGVbN2v_exp): Removed.
32715         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
32716         ...
32717         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32718         Don't include <sysdep.h> nor <init-arch.h>.
32719         (_ZGVdN4v_exp): Removed.
32720         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
32721         ...
32722         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32723         Don't include <sysdep.h> nor <init-arch.h>.
32724         (_ZGVeN8v_exp): Removed.
32725         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
32726         ...
32727         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32728         Don't include <sysdep.h> nor <init-arch.h>.
32729         (_ZGVbN2v_log): Removed.
32730         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
32731         ...
32732         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32733         Don't include <sysdep.h> nor <init-arch.h>.
32734         (_ZGVdN4v_log): Removed.
32735         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
32736         ...
32737         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32738         Don't include <sysdep.h> nor <init-arch.h>.
32739         (_ZGVeN8v_log): Removed.
32740         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
32741         ...
32742         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32743         Don't include <sysdep.h> nor <init-arch.h>.
32744         (_ZGVbN2vv_pow): Removed.
32745         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
32746         ...
32747         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32748         Don't include <sysdep.h> nor <init-arch.h>.
32749         (_ZGVdN4vv_pow): Removed.
32750         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
32751         ...
32752         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32753         Don't include <sysdep.h> nor <init-arch.h>.
32754         (_ZGVeN8vv_pow): Removed.
32755         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
32756         ...
32757         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32758         Don't include <sysdep.h> nor <init-arch.h>.
32759         (_ZGVbN2v_sin): Removed.
32760         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
32761         ...
32762         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32763         Don't include <sysdep.h> nor <init-arch.h>.
32764         (_ZGVbN4v_sin): Removed.
32765         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
32766         ...
32767         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32768         Don't include <sysdep.h> nor <init-arch.h>.
32769         (_ZGVbN8v_sin): Removed.
32770         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
32771         ...
32772         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32773         Don't include <sysdep.h> nor <init-arch.h>.
32774         (_ZGVbN2vvv_sincos): Removed.
32775         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
32776         ...
32777         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32778         Don't include <sysdep.h> nor <init-arch.h>.
32779         (_ZGVdN4vvv_sincos): Removed.
32780         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
32781         ...
32782         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32783         Don't include <sysdep.h> nor <init-arch.h>.
32784         (_ZGVeN8vvv_sincos): Removed.
32785         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
32786         ...
32787         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32788         Don't include <sysdep.h> nor <init-arch.h>.
32789         (_ZGVeN16v_cosf): Removed.
32790         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
32791         ...
32792         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32793         Don't include <sysdep.h> nor <init-arch.h>.
32794         (_ZGVbN4v_cosf): Removed.
32795         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
32796         ...
32797         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32798         Don't include <sysdep.h> nor <init-arch.h>.
32799         (_ZGVdN8v_cosf): Removed.
32800         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
32801         ...
32802         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32803         Don't include <sysdep.h> nor <init-arch.h>.
32804         (_ZGVeN16v_expf): Removed.
32805         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
32806         ...
32807         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32808         Don't include <sysdep.h> nor <init-arch.h>.
32809         (_ZGVbN4v_expf): Removed.
32810         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
32811         ...
32812         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32813         Don't include <sysdep.h> nor <init-arch.h>.
32814         (_ZGVdN8v_expf): Removed.
32815         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
32816         ...
32817         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32818         Don't include <sysdep.h> nor <init-arch.h>.
32819         (_ZGVeN16v_logf): Removed.
32820         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
32821         ...
32822         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32823         Don't include <sysdep.h> nor <init-arch.h>.
32824         (_ZGVbN4v_logf): Removed.
32825         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
32826         ...
32827         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32828         Don't include <sysdep.h> nor <init-arch.h>.
32829         (_ZGVdN8v_logf): Removed.
32830         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
32831         ...
32832         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32833         Don't include <sysdep.h> nor <init-arch.h>.
32834         (_ZGVeN16vv_powf): Removed.
32835         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
32836         ...
32837         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32838         Don't include <sysdep.h> nor <init-arch.h>.
32839         (_ZGVbN4vv_powf): Removed.
32840         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
32841         ...
32842         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32843         Don't include <sysdep.h> nor <init-arch.h>.
32844         (_ZGVdN8vv_powf): Removed.
32845         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
32846         ...
32847         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32848         Don't include <sysdep.h> nor <init-arch.h>.
32849         (_ZGVeN16vvv_sincosf): Removed.
32850         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
32851         ...
32852         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32853         Don't include <sysdep.h> nor <init-arch.h>.
32854         (_ZGVbN4vvv_sincosf): Removed.
32855         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
32856         ...
32857         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32858         Don't include <sysdep.h> nor <init-arch.h>.
32859         (_ZGVdN8vvv_sincosf): Removed.
32860         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
32861         ...
32862         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32863         Don't include <sysdep.h> nor <init-arch.h>.
32864         (_ZGVeN16v_sinf): Removed.
32865         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
32866         ...
32867         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32868         Don't include <sysdep.h> nor <init-arch.h>.
32869         (_ZGVbN4v_sinf): Removed.
32870         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
32871         ...
32872         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32873         Don't include <sysdep.h> nor <init-arch.h>.
32874         (_ZGVdN8v_sinf): Removed.
32876 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32878         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32879         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32880         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32881         s_rint-sse4_1 and s_rintf-sse4_1.
32882         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32883         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32884         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32885         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32886         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32887         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32888         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32889         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32890         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32891         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32892         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
32893         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32894         (__ceil): Removed.
32895         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32896         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
32897         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32898         (__ceilf): Removed.
32899         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32900         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
32901         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32902         (__floor): Removed.
32903         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32904         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
32905         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32906         (__floorf): Removed.
32907         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32908         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
32909         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32910         (__nearbyint): Removed.
32911         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32912         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
32913         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32914         (__nearbyintf): Removed.
32915         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32916         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
32917         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32918         (__rint): Removed.
32919         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32920         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
32921         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
32922         (__rintf): Removed.
32924 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32926         * sysdeps/i386/start.S (_start): Check Check PIC instead of
32927         SHARED.  Avoid dynamic relocation against main in static PIE.
32929 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32931         [BZ #21815]
32932         * elf/Makefile (CFLAGS-tst-prelink.c): New.
32933         (LDFLAGS-tst-prelink): Likewise.
32935 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32937         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32938         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32939         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32940         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32941         (INTERNAL_SYSCALL_NCS): Likewise.
32942         (LOADARGS_1): Likewise.
32943         (LOADARGS_5): Likewise.
32944         (RESTOREARGS_1): Likewise.
32945         (RESTOREARGS_5): Likewise.
32947 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32949         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32950         (MEMPCPY_SYMBOL): Likewise.
32951         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32952         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32953         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32954         in libc.a.
32955         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32956         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32957         Likewise.
32958         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32959         (__hidden_ver1): Don't use in libc.a.
32960         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32961         (__mempcpy): Don't create a weak alias in libc.a.
32962         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32963         libc.a.
32964         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32965         (__hidden_ver1): Don't use in libc.a.
32967 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32969         * config.make.in (have-insert): New.
32970         * configure.ac (libc_cv_insert): New.  Set to yes if linker
32971         supports INSERT in linker script.
32972         (AC_SUBST(libc_cv_insert): New.
32973         * configure: Regenerated.
32974         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32975         if $(have-insert) == yes.
32977 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32979         * elf/Makefile (tests): Add vismain only if
32980         $(have-protected-data) == yes.
32981         (tests-pie): Likewise.
32983 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32985         [BZ #21871]
32986         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32987         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32989 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32991         [BZ #21790]
32992         * sysdeps/i386/i586/memset.S
32993         (__memset_zero_constant_len_parameter): Removed.
32994         * sysdeps/i386/i686/memset.S
32995         (__memset_zero_constant_len_parameter): Likewise.
32996         * sysdeps/i386/i686/multiarch/memset_chk.S
32997         (__memset_zero_constant_len_parameter): Likewise.
32998         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32999         Likewise.
33001 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
33003         * stdlib/getentropy.c (getentropy): Change return type to int.
33005 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
33007         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33009 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
33011         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33012         u_intN_t.
33013         * math/s_nexttowardf.c (__nexttowardf): Likewise.
33014         * sysdeps/generic/math_private.h (ieee_double_shape_type):
33015         Likewise.
33016         (ieee_float_shape_type): Likewise.
33017         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33018         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33019         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33020         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33021         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33022         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33023         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33024         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33025         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33026         Likewise.
33027         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33028         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33029         (__ieee754_yn): Likewise.
33030         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33031         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33032         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33033         Likewise.
33034         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33035         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33036         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33037         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33038         (__erfc): Likewise.
33039         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33040         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33041         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33042         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33043         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33044         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33045         Likewise.
33046         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33047         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33048         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33049         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33050         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33051         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33052         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33053         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33054         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33055         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33056         (__issignaling): Likewise.
33057         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33058         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33059         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33060         Likewise.
33061         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33062         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33063         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33064         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33065         Likewise.
33066         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33067         Likewise.
33068         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33069         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33070         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33071         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33072         (__erfcf): Likewise.
33073         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33074         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33075         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33076         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33077         Likewise.
33078         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33079         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33080         Likewise.
33081         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33082         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33083         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33084         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33085         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33086         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33087         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33088         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33089         Likewise.
33090         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33091         Likewise.
33092         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33093         Likewise.
33094         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33095         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33096         Likewise.
33097         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33098         Likewise.
33099         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33100         (__ieee754_ynl): Likewise.
33101         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33102         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33103         Likewise.
33104         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33105         Likewise.
33106         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33107         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33108         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33109         Likewise.
33110         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33111         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33112         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33113         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33114         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33115         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33116         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33117         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33118         Likewise.
33119         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33120         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33121         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33122         Likewise.
33123         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33124         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33125         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33126         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33127         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33128         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33129         Likewise.
33130         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33131         Likewise.
33132         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33133         Likewise.
33134         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33135         Likewise.
33136         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33137         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33138         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33139         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33140         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33141         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33142         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33143         Likewise.
33144         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33145         Likewise.
33146         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33147         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33148         Likewise.
33149         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33150         (__ieee754_remainderl): Likewise.
33151         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33152         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33153         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33154         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33155         Likewise.
33156         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33157         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33158         Likewise.
33159         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33160         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33161         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33162         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33163         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33164         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33165         Likewise.
33166         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33167         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33168         (__ieee754_y0l): Likewise.
33169         (pzero): Likewise.
33170         (qzero): Likewise.
33171         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33172         (__ieee754_y1l): Likewise.
33173         (pone): Likewise.
33174         (qone): Likewise.
33175         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33176         (__ieee754_ynl): Likewise.
33177         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33178         (__ieee754_lgammal_r): Likewise.
33179         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33180         Likewise.
33181         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33182         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33183         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33184         (__erfcl): Likewise.
33185         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33186         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33187         Likewise.
33188         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33189         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33190         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33191         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33192         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33193         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33194         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33195         Likewise.
33196         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33197         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33198         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33199         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33200         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33201         Likewise.
33202         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33203         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33204         Likewise.
33205         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33206         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33207         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33208         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33209         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33211 2017-08-03  Florian Weimer  <fweimer@redhat.com>
33213         [BZ #21885]
33214         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33215         on memory allocation failure.
33217 2017-08-03  Alan Modra  <amodra@gmail.com>
33219         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33220         tst-tlsopt-powerpc.c with function name change and no test harness.
33221         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33222         Call tls_get_addr_opt_test.
33223         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33224         (modules-names): Add mod-tlsopt-powerpc.
33225         (mod-tlsopt-powerpc.so-no-z-defs): Define.
33226         (tst-tlsopt-powerpc): Depend on .so.
33227         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33228         define.  Expand use in TLS_GD and TLS_LD.
33230 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33232         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33233         function.
33234         * sysdeps/posix/shm_open.c: Include <pthread.h>.
33236 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
33238         [BZ #21686]
33239         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33240         comparing size with that of double.
33241         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33242         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33243         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33244         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33245         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33246         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33247         unsigned __int128 types.
33249 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
33251         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33252         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33253         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33254         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33255         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33257 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33259         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33261 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33263         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33264         of SHARED.
33265         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33266         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33267         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33268         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33269         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33270         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33271         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33273 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
33275         [BZ #21685]
33276         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33277         bit-field expressions passed to sizeof or typeof.
33278         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33279         (__TGMATH_F128): Likewise.
33280         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33281         (__TGMATH_CF128): Likewise.
33282         (__TGMATH_UNARY_REAL_ONLY): Likewise.
33283         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33284         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33285         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33286         (__TGMATH_BINARY_REAL_ONLY): Likewise.
33287         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33288         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33289         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33290         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33291         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33292         (__TGMATH_UNARY_REAL_IMAG): Likewise.
33293         (__TGMATH_UNARY_IMAG): Likewise.
33294         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33295         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33296         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33297         type.
33298         (define_vars_for_type): Handle bit_field type specially.
33299         (Tests.__init__): Declare structure with bit-field element.
33301 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33303         [BZ #21791]
33304         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33305         (MEMCPY_CHK): Define only if SHARED is defined.
33306         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33307         Likewise.
33308         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33309         Likewise.
33311 See ChangeLog.18 for earlier changes.