ChangeLog: Correct more dates.
[platform/upstream/glibc.git] / ChangeLog
1 2019-03-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2
3         * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
4         clang 2.8.
5         (signbit): Use builtin for clang 3.3.
6         (isinf): Use builtin for clang 3.7.
7
8 2019-03-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9
10         * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
11
12 2019-03-25  Andreas K. Hüttel  <dilfridge@gentoo.org>
13
14         * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
15         quote in printf.
16
17 2019-03-25  Mike Crowe  <mac@mcrowe.com>
18
19         * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
20         pthread_rwlock_timedrdlock with calls to
21         pthread_rwlock_timedwrlock to ensure that the latter is tested
22         too. Use new function name in diagnostic messages too.
23
24         * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
25         (do_test) Use libsupport test macros rather than hand-coded
26         conditionals and error messages. Ensure that sem_init returns zero
27         rather than not -1. Use <support/test-driver.c> rather than
28         test-skeleton.c.
29
30         * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
31         test macros rather than hand-coded conditionals and error messages.
32         Use <support/test-driver.c> rather than test-skeleton.c.
33
34 2019-03-25  Joseph Myers  <joseph@codesourcery.com>
35
36         * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
37
38         * elf/elf.h (NT_ARM_PAC_MASK): New macro.
39         (NT_MIPS_MSA): Likewise.
40
41 2019-03-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
42
43         * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
44         * benchtests/README: Update description.
45         * benchtests/bench-timing.h: Default to hp-timing.
46         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
47         HP_TIMING_PRINT): Remove.
48         (HP_TIMING_NOW): Add generic implementation.
49         (hp_timing_t): Change to uint64_t.
50
51         * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
52         HP_TIMING_INLINE.
53         * nptl/descr.h: Likewise.
54         * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
55         RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
56         (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
57         Abstract hp-timing usage with RTLD_* macros.
58         * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
59         (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
60         * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
61         HP_TIMING_NONAVAIL): Likewise.
62         * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
63         Likewise.
64         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
65         HP_SMALL_TIMING_AVAIL): Likewise.
66         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
67         HP_SMALL_TIMING_AVAIL): Likewise.
68         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
69         HP_SMALL_TIMING_AVAIL): Likewise.
70         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
71         HP_SMALL_TIMING_AVAIL): Likewise.
72         * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
73         Likewise.
74         * sysdeps/generic/hp-timing-common.h: Update comment with
75         HP_TIMING_AVAIL removal.
76
77         * include/random-bits.h: New file.
78         * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
79         (__res_context_mkquery): Remove usage hp-timing usage and replace with
80         random_bits.
81         * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
82         * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
83         Likewise.
84
85         * include/libc-internal.h (__get_clockfreq): Remove prototype.
86         * rt/Makefile (clock-routines): Remove get_clockfreq.
87         * rt/get_clockfreq.c: Remove file.
88         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
89         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
90         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
91         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
92         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
93
94         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
95         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
96         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
97         (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
98         _SC_CPUTIME, and _SC_THREAD_CPUTIME.
99
100         * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
101         pthread_clock_settime.
102         * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
103         * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
104         (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
105         * elf/rtld.c (_dl_start_final): Likewise.
106         * nptl/allocatestack.c (__find_thread_by_id): Remove function.
107         * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
108         Remove.
109         * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
110         (_dl_cpuclock_offset): Remove.
111         * nptl/descr.h (struct pthread): Rename cpuclock_offset to
112         cpuclock_offset_ununsed.
113         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
114         cpuclock_offset set.
115         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
116         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
117         * nptl/pthread_clock_gettime.c: Remove file.
118         * nptl/pthread_clock_settime.c: Likewise.
119         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
120         [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
121         and CLOCK_PROCESS_CPUTIME_ID support.
122         * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
123         [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
124         * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
125         [HP_TIMING_AVAIL] (__clock_getres): Likewise.
126         * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
127         Likewise.
128         (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
129
130 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
131
132         * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
133         * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
134         MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
135         New defines.
136         * sysdeps/s390/memmem-arch13.S: New file.
137         * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
138         if it is only used as fallback.
139         * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
140         * sysdeps/s390/multiarch/ifunc-impl-list.c
141         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
142
143 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
144
145         * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
146         * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
147         STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
148         New defines.
149         * sysdeps/s390/multiarch/ifunc-impl-list.c
150         (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
151         * sysdeps/s390/strstr-arch13.S: New file.
152         * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
153         if it is only used as fallback.
154         * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
155
156 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
157
158         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
159         HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
160         * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
161         * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
162         ifunc selector.
163         * sysdeps/s390/multiarch/ifunc-impl-list.c
164         (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
165         * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
166         S390_IS_ARCH13_MIE3): New defines.
167
168 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
169
170         * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
171         HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
172         * sysdeps/s390/configure.ac: Add checks for arch13 support.
173         * sysdeps/s390/configure: Regenerated.
174
175 2019-03-22  Stefan Liebler  <stli@linux.ibm.com>
176
177         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
178         Add vxe2, vxp, dflt, sort flags.
179         * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
180         HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
181         capabilities.
182         (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
183         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
184         (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
185         HWCAP_S390_DFLT): Define.
186
187 2019-03-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
188
189         [BZ #24372]
190         * iconv/iconvconfig.c (write_output): Add parentheses to get rid
191         of compiler warning.
192         * locale/programs/ld-collate.c (collate_output): Likewise.
193
194 2019-03-21  DJ Delorie  <dj@redhat.com>
195
196         [BZ #24372]
197         * iconv/iconvconfig.c (write_output): Replace floating point math
198         with integer math to avoid imprecise results.
199         * locale/programs/ld-collate.c (collate_output): Likewise.
200
201 2019-03-21  Stefan Liebler  <stli@linux.ibm.com>
202
203         * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
204         Add HWCAP_S390_VX and HWCAP_S390_VXE.
205
206 2019-03-20  mansayk  <6688000@gmail.com>
207
208         [BZ #24296]
209         * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
210         (abday): Likewise, but remove the trailing dots.
211
212 2019-03-19  Joseph Myers  <joseph@codesourcery.com>
213
214         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
215         macro.
216         (HWCAP_PACA): Likewise.
217         (HWCAP_PACG): Likewise.
218         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
219         Increase to 32.
220         (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
221
222 2019-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
223
224         * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
225         should be handled.
226
227 2019-03-15  Joseph Myers  <joseph@codesourcery.com>
228
229         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
230         version to 5.0.
231         (old_getpagesize): New syscall.
232
233 2019-03-15  Felix Yan  <felixonmars@archlinux.org>
234
235         [BZ #24293]
236         * localedata/locales/zh_TW (era): Add, support Minguo calendar.
237         * localedata/locales/cmn_TW (era): Likewise.
238         * localedata/locales/hak_TW (era): Likewise.
239         * localedata/locales/lzh_TW (era): Likewise.
240         * localedata/locales/nan_TW (era): Likewise.
241
242 2019-03-14  Florian Weimer  <fweimer@redhat.com>
243
244         Remove obsolete, never-implemented XSI STREAMS declarations.
245         * manual/terminal.texi (Allocation): Remove portability note and
246         adjust example.
247         * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
248         _SC_STREAMS.
249         * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
250         * sysdeps/unix/inet/Subdirs (streams): Remove.
251         * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
252         (conformtest-headers-UNIX98): Likewise.
253         (conformtest-headers-XOPEN2K): Likewise.
254         (conformtest-headers-POSIX2008): Likewise.
255         * posix/compat-streams.c: New file.
256         * posix/Makefile (routines): Add it.
257         * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
258         getpmsg, isastream, putmsg, putpmsg.
259         (GLIBC_2.30): New section.
260         * bits/stropts.h: Remove file.
261         * bits/xtitypes.h: Likewise.
262         * conform/data/stropts.h-data: Likewise.
263         * include/stropts.h: Likewise.
264         * include/sys/stropts.h: Likewise.
265         * include/xtitypes.h: Likewise.
266         * streams/Makefile: Likewise.
267         * streams/fattach.c: Likewise.
268         * streams/fdetach.c: Likewise.
269         * streams/getmsg.c: Likewise.
270         * streams/getpmsg.c: Likewise.
271         * streams/isastream.c: Likewise.
272         * streams/putmsg.c: Likewise.
273         * streams/putpmsg.c: Likewise.
274         * streams/stropts.h: Likewise.
275         * streams/sys/stropts.h: Likewise.
276         * sysdeps/ia64/bits/xtitypes.h: Likewise.
277         * sysdeps/s390/bits/xtitypes.h: Likewise.
278         * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
279         * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
280         * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
281         * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
282         * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
283         * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
284         * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
285         * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
286         * sysdeps/x86/bits/xtitypes.h: Likewise.
287
288 2019-03-14  Florian Weimer  <fweimer@redhat.com>
289
290         * nss/tst-nss-files-alias-truncated.c (do_test): Load
291         libnss_files.
292         * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
293         but not with libnss_files.
294         (tst-nss-files-alias-truncated.out): Depend on libnss_files.
295
296 2019-03-14  Zack Weinberg  <zackw@panix.com>
297
298         * scripts/check-obsolete-constructs.py (HeaderChecker.check):
299         Specify encoding="utf-8" when opening headers to check.
300
301 2019-03-13  Joseph Myers  <joseph@codesourcery.com>
302
303         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
304         version to 5.0.
305         (Context.checkout_tar): Handle variable major version for Linux
306         kernel.
307
308 2019-03-13  Florian Weimer  <fweimer@redhat.com>
309
310         [BZ #24047]
311         * sysdeps/mach/hurd/res_enable_icmp.c: New file.
312
313 2019-03-13  Zack Weinberg  <zackw@panix.com>
314
315         * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
316         Move to stdlib.
317         * include/inttypes.h: Adjust to match.
318         * include/stdint.h: New wrapper.
319
320 2019-03-13  Zack Weinberg  <zackw@panix.com>
321
322         * scripts/check-obsolete-constructs.py: New test script.
323         * scripts/check-installed-headers.sh: Remove tests for
324         obsolete typedefs, superseded by check-obsolete-constructs.py.
325         * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
326         as a special test.  Update commentary.
327         * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
328         (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
329         Update commentary.
330         * posix/sys/types.h (__u_intN_t): Remove.
331         (u_int8_t): Typedef using __uint8_t.
332         (u_int16_t): Typedef using __uint16_t.
333         (u_int32_t): Typedef using __uint32_t.
334         (u_int64_t): Typedef using __uint64_t.
335
336 2019-03-13  Stefan Liebler  <stli@linux.ibm.com>
337
338         * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
339         call _dl_procinfo.
340         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
341         Ignore types other than AT_HWCAP.
342         * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
343         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
344         Likewise.
345         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
346         in the case of falling back to generic output mechanism.
347         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
348         Likewise.
349
350 2019-03-12  Florian Weimer  <fweimer@redhat.com>
351
352         * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
353
354 2019-03-12  Florian Weimer  <fweimer@redhat.com>
355
356         [BZ #24047]
357         resolv: Enable full ICMP errors for UDP DNS sockets
358         * resolv/res_enable_icmp.c: New file.
359         * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
360         * resolv/resolv-internal.h (__res_enable_icmp): Declare.
361         * resolv/res_send.c (reopen): Call __res_enable_icmp on new
362         socket.
363
364 2019-03-11  Mao Han  <han_mao@c-sky.com>
365
366         * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
367         (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
368
369 2019-03-11  Mao Han  <han_mao@c-sky.com>
370
371         * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
372         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
373         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
374
375 2019-03-11  Mao Han  <han_mao@c-sky.com>
376
377         * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
378         directly.
379         * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
380         definition.
381
382 2019-03-11  Mao Han  <han_mao@c-sky.com>
383
384         * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
385         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
386         in mcontext_t
387
388 2019-03-08  Mike FABIAN  <mfabian@redhat.com>
389
390         [BZ #24307]
391         * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
392         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
393         Unicode 12.0.0.
394         * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
395         * localedata/unicode-gen/PropList.txt: Likewise.
396         * localedata/unicode-gen/UnicodeData.txt: Likewise.
397         * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
398         became "Alphabetic" in Unicode 12.0.0. Adapt test case.
399         * localedata/charmaps/UTF-8: Regenerate.
400         * localedata/locales/i18n_ctype: Likewise.
401         * localedata/locales/tr_TR: Likewise.
402         * localedata/locales/translit_circle: Likewise.
403         * localedata/locales/translit_cjk_compat: Likewise.
404         * localedata/locales/translit_combining: Likewise.
405         * localedata/locales/translit_compat: Likewise.
406         * localedata/locales/translit_font: Likewise.
407         * localedata/locales/translit_fraction: Likewise.
408
409 2019-03-07  Joseph Myers  <joseph@codesourcery.com>
410
411         * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
412         than after operators.
413         * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
414         (setitimer_locked): Likewise.
415         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
416         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
417         * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
418         * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
419         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
420         (PPC_CPU_SUPPORTED): Likewise.
421         * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
422         * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
423         (stat_overflow): Likewise.
424         (statfs_overflow): Likewise.
425         * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
426         * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
427         (eq_ttyname_r): Likewise.
428         (run_chroot_tests): Likewise.
429
430 2019-03-07  Florian Weimer  <fweimer@redhat.com>
431
432         * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
433         header check.
434
435 2019-03-07  Martin Liska  <mliska@suse.cz>
436
437         * math/Makefile: Change location where math-vector-fortran.h is
438         installed.
439         * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
440         * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
441         from sysdeps/x86/fpu/bits/math-vector-fortran.h.
442         * scripts/check-installed-headers.sh: Skip Fortran header files.
443         * scripts/check-wrapper-headers.py: Likewise.
444
445 2019-03-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
446
447         * nptl/nptl-init.c (__have_futex_clock_realtime,
448         __have_futex_clock_realtime): Remove definition.
449         (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
450         check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
451         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
452         __ASSUME_FUTEX_CLOCK_REALTIME support.
453         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
454         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
455         * sysdeps/unix/sysv/linux/kernel-features.h
456         (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
457         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
458         Adjust comment.
459
460 2019-03-05  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
461
462         * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
463         __wcscpy, then use libc_hidden_def and weak_alias to bind it to
464         __GI___wcscpy and wcscpy.
465
466 2019-03-04  Florian Weimer  <fweimer@redhat.com>
467
468         * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
469         declaration.
470         * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
471         defined.
472
473 2019-03-04  Stefan Liebler  <stli@linux.ibm.com>
474
475         * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
476         * sysdeps/s390/s390-32/sysdep.h: Likewise.
477
478 2019-03-02  TAMUKI Shoichi  <tamuki@linet.gr.jp>
479
480         [BZ #24162]
481         * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
482         gan-nen from 2 to 1.  Problem reported by Morimitsu, Junji.
483
484 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
485
486         * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
487         tests.
488         (do_test): Likewise.
489         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
490         (do_test_call_varg): Likewise.
491         (do_test_call_rarg): Likewise.
492         * sysdeps/ieee754/ldbl-opt/Makefile
493         [subdir == misc] (tests-internal): Add tst-nldbl-warn,
494         tst-nldbl-error.
495         ($(objpfx)tst-nldbl-warn.c): New rule.
496         ($(objpfx)tst-nldbl-error.c): Likewise.
497         (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
498         New variables.
499
500 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
501
502         [BZ #23984]
503         * include/bits/error-ldbl.h: New file.
504         * include/error.h: Include stdarg.h.  Declare internal functions
505         __error_internal and __error_at_line_internal.
506         * misc/Makefile (headers): Add bits/error-ldbl.h.
507         * misc/bits/error-ldbl.h: New file.
508         * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
509         avoid the inclusion of bits/error.h.
510         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
511         and __nldbl_error_at_line.
512         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
513         (__nldbl_error, __ndlbl_error_at_line): New functions.
514         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
515         Redirect error and error_at_line.
516         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
518         Likewise.
519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
520         Likewise.
521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
522         Likewise.
523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
524         Likewise.
525         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
526         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
527         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
528
529 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
530
531         [BZ #23984]
532         * include/bits/err-ldbl.h: New file.
533         * include/err.h: Add prototypes for the internal functions:
534         __vwarnx_internal and __vwarn_internal.
535         * misc/Makefile (headers): Add bits/err-ldbl.h.
536         * misc/bits/err-ldbl.h: New file.
537         * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
538         defined, i.e.: when -mlong-double-64 is in use.
539         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
540         __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
541         __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
542         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
543         (VA_CALL): New macro.
544         (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
545         (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
546         functions.
547         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
548         declare prototypes for the new functions.
549         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
551         Likewise.
552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
553         Likewise.
554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
555         Likewise.
556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
557         Likewise.
558         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
559         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
560         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
561
562 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
563
564         * sysdeps/ieee754/ldbl-opt/Makefile
565         [subdir == argp] (tests-internal): Add tst-nldbl-argp.
566         [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
567         [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
568
569 2019-03-01  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
570
571         [BZ #23983]
572         * argp/Makefile (headers): Add bits/argp-ldbl.h.
573         * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
574         * argp/bits/argp-ldbl.h: New file.
575         * include/argp.h: Include stdarg.h.  Add prototypes for internal
576         functions: __argp_error_internal and __argp_failure_internal.
577         * include/bits/argp-ldbl.h: New file.
578         * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
579         __nldbl_argp_error and __nldbl_argp_failure.
580         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
581         (__nldbl_argp_error, __nldbl_argp_failure): New functions.
582         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
583         Redirect argp_error and argp_failure calls.
584         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
586         Likewise.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
588         Likewise.
589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
590         Likewise.
591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
592         Likewise.
593         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
594         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
595         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
596
597 2019-03-01  Florian Weimer  <fweimer@redhat.com>
598
599         [BZ #20419]
600         * elf/tst-big-note-lib.S: Create a syntactically valid note.
601         * elf/Makefile (tst-big-note-lib.so): Do not link with startup
602         code, to avoid creating an ABI tag note.
603         (modules-names-nobuild): Add tst-big-note-lib.
604
605 2019-03-01  Stefan Liebler  <stli@linux.ibm.com>
606
607         * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
608         __wcscpy, __GI___wcscpy and weak alias to wcscpy.
609
610 2019-03-01  Florian Weimer  <fweimer@redhat.com>
611
612         [BZ #20271]
613         * sysdeps/unix/sysv/linux/netlink_assert_response.c
614         (__netlink_assert_response): Add additional missing newlines.
615
616 2019-02-28  Joseph Myers  <joseph@codesourcery.com>
617
618         * sysdeps/powerpc/powerpc32/dl-machine.c
619         (__elf_machine_fixup_plt): Use space before '('.
620         (__process_machine_rela): Likewise.
621         * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
622         Likewise.
623         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
624         Likewise.
625         * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
626         Likewise.
627         * sysdeps/powerpc/test-arith.c (union_t): Likewise.
628         (pattern): Likewise.
629         (delta): Likewise.
630         (check_result): Likewise.
631         (check_excepts): Likewise.
632         (check_op): Likewise.
633         (fail_xr): Likewise.
634         * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
635         * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
636         (SCNHSZ): Likewise.
637         * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
638         Likewise.
639         (ARGS): Likewise.
640         (__makecontext): Likewise.
641         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
642         Likewise.
643
644 2019-02-28  Florian Weimer  <fweimer@redhat.com>
645
646         [BZ #23937]
647         elf: Add test with a local IFUNC resolver.
648         * elf/ifuncmain9.c: New file.
649         * elf/ifuncmain9pic.c: Likewise.
650         * elf/ifuncmain9picstatic.c: Likewise.
651         * elf/ifuncmain9pie.c: Likewise.
652         * elf/ifuncmain9static.c: Likewise.
653         * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
654         ifuncmain9static, ifuncmain9picstatic.
655         * elf/Makefile [multi-arch && build-shared] (tests-internal):
656         Add ifuncmain9, ifuncmain9pic.
657         * elf/Makefile [multi-arch && build-shared && have-fpie]
658         (ifunc-pie-tests): Add ifuncmain9pie.
659         (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
660         (CFLAGS-ifuncmain9picstatic.c): Likewise.
661         (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
662
663 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
664
665         * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
666         * configure: Regenerated.
667         * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
668
669 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
670
671         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
672         symbol as __wcspcy instead of wcscpy.
673
674 2019-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
675
676         * include/stdio.h (__renameat2): New hidden prototype.
677         * stdio-common/renameat2.c (__renameat2): Add hidden definition.
678         * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
679         * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
680         * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
681
682 2019-02-27  Joseph Myers  <joseph@codesourcery.com>
683
684         * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
685         if statement.
686
687         * benchtests/bench-strcpy.c (do_test): Use space before '('.
688         * benchtests/bench-string.h (cmdline_process_function): Likewise.
689         * benchtests/bench-strlen.c (do_test): Likewise.
690         (test_main): Likewise.
691         * catgets/gencat.c (read_old): Likewise.
692         * elf/cache.c (load_aux_cache): Likewise.
693         * iconvdata/bug-iconv8.c (do_test): Likewise.
694         * math/test-tgmath-ret.c (do_test): Likewise.
695         * nis/nis_call.c (rec_dirsearch): Likewise.
696         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
697         * nptl/tst-audit-threads.c (do_test): Likewise.
698         * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
699         * nss/nss_test1.c (init): Likewise.
700         * nss/test-netdb.c (test_hosts): Likewise.
701         * posix/execvpe.c (maybe_script_execute): Likewise.
702         * stdio-common/tst-fmemopen4.c (do_test): Likewise.
703         * stdio-common/tst-printf.c (do_test): Likewise.
704         * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
705         * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
706         * stdlib/qsort.c (STACK_SIZE): Likewise.
707         * stdlib/test-canon.c (do_test): Likewise.
708         * stdlib/tst-swapcontext1.c (do_test): Likewise.
709         * string/memcmp.c (OPSIZ): Likewise.
710         * string/test-strcpy.c (do_test): Likewise.
711         (do_random_tests): Likewise.
712         * string/test-strlen.c (do_test): Likewise.
713         (test_main): Likewise.
714         * string/test-strrchr.c (do_test): Likewise.
715         (do_random_tests): Likewise.
716         * string/tester.c (test_memrchr): Likewise.
717         (test_memchr): Likewise.
718         * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
719         * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
720         * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
721         (read_encoded_value_with_base): Likewise.
722         * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
723         * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
724         * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
725         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
726         * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
727         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
728         Likewise.
729         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
730         Likewise.
731         * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
732         * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
733         * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
734         Likewise.
735         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
736         Likewise.
737         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
738         Likewise.
739         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
740         Likewise.
741         * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
742         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
743         (FP_XSTATE_MAGIC2_SIZE): Likewise.
744         * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
745         * time/test_time.c (main): Likewise.
746
747 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
748
749         * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
750
751         * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
752         wmemcpy.
753
754         * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
755         wmemcpy.
756
757         * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
758
759         * include/wchar.h (__wcscpy): New prototype.
760         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
761         (__wcscpy): Route internal symbol to generic implementation.
762         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
763         Add internal __wcscpy alias.
764         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
765         * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
766         * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
767         * wcsmbs/wcscpy.c (wcscpy): Add
768         * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
769         use generic implementation.
770         * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
771
772         * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
773         wmemset.
774
775         * sysdeps/m68k/wcpcpy.c: Remove file.
776         * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
777
778 2019-02-26  Joseph Myers  <joseph@codesourcery.com>
779
780         * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
781         than after operators.
782         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
783         * sysdeps/mach/hurd/getcwd.c
784         (__hurd_canonicalize_directory_name_internal): Likewise.
785         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
786         (pthread_mutex_consistent): Likewise.
787         * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
788         Likewise.
789         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
790         (__pthread_mutex_transfer_np): Likewise.
791         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
792         (__pthread_mutex_unlock): Likewise.
793         * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
794         (mtx_owned_p): Likewise.
795         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
796         (pthread_mutexattr_getrobust): Likewise.
797         * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
798         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
799         Likewise.
800         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
801         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
802         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
803         * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
804         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
805         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
806         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
807         Likewise.
808         * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
809         Likewise.
810         * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
811         * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
812         * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
813         (____longjmp_chk): Likewise.
814         * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
815         Likewise.
816         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
817         (INTERNAL_SYSCALL): Likewise.
818         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
819         (INTERNAL_SYSCALL): Likewise.
820         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
821         (__get_clockfreq_via_cpuinfo): Likewise.
822
823         * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
824         comments.
825         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
826         * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
827         (WORD_COPY_BWD): Likewise.
828         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
829         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
830         Likewise.
831         * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
832         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
833         comment.
834         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
835
836 2019-02-25  Joseph Myers  <joseph@codesourcery.com>
837
838         * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
839         && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
840         rather than after operators.
841         * elf/cache.c (print_cache): Likewise.
842         * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
843         * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
844         * hurd/hurdinit.c (_hurd_setproc): Likewise.
845         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
846         * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
847         * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
848         (reauth_proc): Likewise.
849         * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
850         (__file_name_split_at): Likewise.
851         (__directory_name_split_at): Likewise.
852         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
853         * hurd/port2fd.c (_hurd_port2fd): Likewise.
854         * iconv/gconv_dl.c (do_print): Likewise.
855         * inet/netinet/in.h (struct sockaddr_in): Likewise.
856         * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
857         * locale/setlocale.c (new_composite_name): Likewise.
858         * malloc/memusagestat.c (main): Likewise.
859         * misc/fstab.c (fstab_convert): Likewise.
860         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
861         Likewise.
862         * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
863         (getgrent_next_file): Likewise.
864         (internal_getgrnam_r): Likewise.
865         (internal_getgrgid_r): Likewise.
866         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
867         Likewise.
868         (internal_getgrent_r): Likewise.
869         * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
870         (getpwent_next_nss): Likewise.
871         (getpwent_next_file): Likewise.
872         (internal_getpwnam_r): Likewise.
873         (internal_getpwuid_r): Likewise.
874         * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
875         Likewise.
876         (getspent_next_nss): Likewise.
877         (internal_getspnam_r): Likewise.
878         * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
879         * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
880         * string/strchr.c (STRCHR): Likewise.
881         * string/strchrnul.c (STRCHRNUL): Likewise.
882         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
883         * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
884         * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
885         * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
886         * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
887         Likewise.
888         * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
889         * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
890         * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
891         * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
892         * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
893         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
894         (open_file): Likewise.
895         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
896         (pthread_mutexattr_setprotocol): Likewise.
897         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
898         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
899         * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
900         * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
901         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
902         Likewise.
903         (elf_machine_rela): Likewise.
904         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
905         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
906         * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
907         * sysdeps/posix/rename.c (rename): Likewise.
908         * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
909         * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
910         * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
911         * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
912         * sysdeps/unix/grantpt.c (grantpt): Likewise.
913         * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
914         * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
915         Likewise.
916         * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
917         Likewise.
918         * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
919         * time/tzfile.c (__tzfile_compute): Likewise.
920
921 2019-02-22  Joseph Myers  <joseph@codesourcery.com>
922
923         * benchtests/bench-memmem.c (simple_memmem): Break lines before
924         rather than after operators.
925         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
926         * crypt/md5.c (md5_finish_ctx): Likewise.
927         * crypt/sha256.c (__sha256_finish_ctx): Likewise.
928         * crypt/sha512.c (__sha512_finish_ctx): Likewise.
929         * elf/cache.c (load_aux_cache): Likewise.
930         * elf/dl-load.c (open_verify): Likewise.
931         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
932         * elf/readelflib.c (process_elf_file): Likewise.
933         * elf/rtld.c (dl_main): Likewise.
934         * elf/sprof.c (generate_call_graph): Likewise.
935         * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
936         * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
937         * hurd/dtable.c (reauth_dtable): Likewise.
938         * hurd/getdport.c (__getdport): Likewise.
939         * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
940         * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
941         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
942         Likewise.
943         * hurd/hurdioctl.c (fioctl): Likewise.
944         * hurd/hurdselect.c (_hurd_select): Likewise.
945         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
946         (STOPSIGS): Likewise.
947         * hurd/hurdstartup.c (_hurd_startup): Likewise.
948         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
949         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
950         * hurd/msgportdemux.c (msgport_server): Likewise.
951         * hurd/setauth.c (_hurd_setauth): Likewise.
952         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
953         * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
954         * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
955         * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
956         * login/tst-utmp.c (do_check): Likewise.
957         (simulate_login): Likewise.
958         * mach/lowlevellock.h (lll_lock): Likewise.
959         (lll_trylock): Likewise.
960         * math/test-fenv.c (ALL_EXC): Likewise.
961         * math/test-fenvinline.c (ALL_EXC): Likewise.
962         * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
963         * nis/nis_call.c (__do_niscall3): Likewise.
964         * nis/nis_callback.c (cb_prog_1): Likewise.
965         * nis/nis_defaults.c (searchaccess): Likewise.
966         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
967         * nis/nis_ismember.c (internal_ismember): Likewise.
968         * nis/nis_local_names.c (nis_local_principal): Likewise.
969         * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
970         * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
971         Likewise.
972         * nis/ypclnt.c (yp_match): Likewise.
973         (yp_first): Likewise.
974         (yp_next): Likewise.
975         (yp_master): Likewise.
976         (yp_order): Likewise.
977         * nscd/hstcache.c (cache_addhst): Likewise.
978         * nscd/initgrcache.c (addinitgroupsX): Likewise.
979         * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
980         (internal_getpwuid_r): Likewise.
981         * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
982         * posix/glob.h (__GLOB_FLAGS): Likewise.
983         * posix/regcomp.c (peek_token): Likewise.
984         (peek_token_bracket): Likewise.
985         (parse_expression): Likewise.
986         * posix/regexec.c (sift_states_iter_mb): Likewise.
987         (check_node_accept_bytes): Likewise.
988         * posix/tst-spawn3.c (do_test): Likewise.
989         * posix/wordexp-test.c (testit): Likewise.
990         * posix/wordexp.c (parse_tilde): Likewise.
991         (exec_comm): Likewise.
992         * posix/wordexp.h (__WRDE_FLAGS): Likewise.
993         * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
994         * setjmp/sigjmp.c (__sigjmp_save): Likewise.
995         * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
996         * stdio-common/tst-fileno.c (do_test): Likewise.
997         * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
998         * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
999         * stdlib/strtod_l.c (round_and_return): Likewise.
1000         (____STRTOF_INTERNAL): Likewise.
1001         * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
1002         * string/strcspn.c (STRCSPN): Likewise.
1003         * string/test-memmem.c (simple_memmem): Likewise.
1004         * termios/tcsetattr.c (tcsetattr): Likewise.
1005         * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
1006         * time/asctime.c (asctime_internal): Likewise.
1007         * time/strptime_l.c (__strptime_internal): Likewise.
1008         * time/sys/time.h (timercmp): Likewise.
1009         * time/tzfile.c (__tzfile_compute): Likewise.
1010
1011 2019-02-21  Patsy Griffin Franklin  <pfrankli@redhat.com>
1012
1013         [BZ #21915]
1014         * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
1015
1016 2019-02-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1017
1018         * argp/argp-help.c (__argp_error_internal): New function,
1019         renamed from __argp_error, but that takes a 'mode_flags'
1020         parameter to control the format of long double parameters.
1021         (__argp_error): Converted into a call __argp_error_internal.
1022         (__argp_failure_internal): New function, renamed from
1023         __argp_failure, but that takes a 'mode_flags' parameter.
1024         (__argp_failure): Converted into a call __argp_failure_internal.
1025         * misc/err.c (__vwarnx_internal): New function, renamed from
1026         vwarnx, but that takes a 'mode_flags' parameter.
1027         (vwarnx): Converted into a call to __vwarnx_internal.
1028         (__vwarn_internal): New function, renamed from vwarn, but that
1029         takes a 'mode_flags' parameter.
1030         (vwarn): Converted into a call to __vwarn_internal.
1031         * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
1032         call to __vfxprintf with 'mode_flags'.
1033         (__error_internal): New function, renamed from error, but that
1034         takes a 'mode_flags' parameter.
1035         (error): Converted into a call to __error_internal.
1036         (__error_at_line_internal): New function, renamed from
1037         error_at_line, but that takes a 'mode_flags' parameter.
1038         (error_at_line): Converted into a call to
1039         __error_at_line_internal.
1040         * include/stdio.h (__vfxprintf): Add mode_flags parameter.
1041         * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
1042         Likewise.
1043
1044 2019-02-20  Martin Liska  <mliska@suse.cz>
1045
1046         * math/Makefile: Install math-vector-fortran.h.
1047         * bits/math-vector-fortran.h: New file.
1048         * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
1049
1050 2019-02-20  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
1051
1052         * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
1053         * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
1054
1055 2019-02-19  Wolfram Sang  <wsa@the-dreams.de>
1056
1057         * nptl/pthread_mutex_trylock.c: Fix comment.
1058
1059 2019-02-19  Carlos O'Donell  <carlos@redhat.com>
1060
1061         * nptl/pthread_tryjoin.c: Fix comment.
1062
1063 2019-02-18  Joseph Myers  <joseph@codesourcery.com>
1064
1065         [BZ #24231]
1066         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
1067         after R_SPARC_H34 case.
1068
1069 2019-02-18  Florian Weimer  <fweimer@redhat.com>
1070
1071         * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
1072         (getanswer): Do not call Dprintf.
1073         (res_gethostbyname2_context): Likewise.
1074         (res_gethostbyaddr_context): Likewise.
1075
1076 2019-02-18  Florian Weimer  <fweimer@redhat.com>
1077
1078         * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
1079         declaration.
1080         * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
1081         Remove definitions.
1082         * libio/stdfiles.c: Update comment.
1083         * libio/oldstdfiles.c (_IO_check_libio): Update comment.  Do not
1084         set _IO_stdin, _IO_stdout, _IO_stderr.
1085         * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
1086         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
1087         inline function.
1088         (_IO_deallocate_file): New inline function.
1089         * libio/iolibio.h (_IO_vprintf): Remove definition.
1090         * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
1091         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
1092         * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
1093         _IO_legacy_file.
1094         * libio/oldfileops.c (_IO_old_file_init_internal): Remove
1095         __builtin_expect.  Use _IO_legacy_file.
1096
1097 2019-02-18  Stefan Liebler  <stli@linux.ibm.com>
1098
1099         * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
1100         Initialize ctid with a known value and remove update of ctid
1101         after clone.
1102         (wait_tid): Adjust arguments and call futex_wait with ctid_val
1103         as assumed current value of ctid_ptr.
1104
1105 2019-02-16  Florian Weimer  <fweimer@redhat.com>
1106
1107         Check that non-sysdeps headers have wrapper headers.
1108         * scripts/check-wrapper-headers.py: New file.
1109         * Makefile (tests-special): Add check-wrapper-headers.out.
1110         (check-wrapper-headers.out): New target.
1111         * Rules (tests-special): Add check-wrapper-headers.out.
1112         (check-wrapper-headers.out): New target.
1113
1114 2019-02-16  Florian Weimer  <fweimer@redhat.com>
1115
1116         Add missing header wrappers under include/.
1117         * include/ar.h: New file.
1118         * include/bits/mqueue2.h: Likewise.
1119         * include/bits/stdio.h: Likewise.
1120         * include/bits/stdio2.h: Likewise.
1121         * include/fstab.h: Likewise.
1122         * include/fts.h: Likewise.
1123         * include/lastlog.h: Likewise.
1124         * include/netinet/icmp6.h: Likewise.
1125         * include/netinet/igmp.h: Likewise.
1126         * include/netinet/ip6.h: Likewise.
1127         * include/re_comp.h: Likewise.
1128         * include/regexp.h: Likewise.
1129         * include/rpcsvc/bootparam.h: Likewise.
1130         * include/rpcsvc/yp_prot.h: Likewise.
1131         * include/sys/random.h: Likewise.
1132         * include/sys/stropts.h: Likewise.
1133         * include/sys/ttychars.h: Likewise.
1134         * include/sys/vfs.h: Likewise.
1135         * include/wait.h: Likewise.
1136
1137 2019-02-16  Florian Weimer  <fweimer@redhat.com>
1138
1139         * nptl_db/proc_service.h: Move to ...
1140         * sysdeps/nptl/proc_service.h: ... here.
1141         * nptl_db/thread_db.h: Move to ...
1142         * sysdeps/nptl/thread_db.h: ... here.
1143         * nptl/descr.h: Include <thread_db.h>.
1144
1145 2019-02-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1146
1147         * io/Makefile (tests): Add tst-lockf.
1148         * io/lockf.c (lockf): Use __fcntl and only define for
1149         !__OFF_T_MATCHES_OFF64_T.
1150         * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
1151         __OFF_T_MATCHES_OFF64_T case.
1152         * io/tst-lockf.c: New file.
1153         * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
1154         * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
1155         * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
1156         * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
1157         * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
1158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
1159         * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
1160         * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
1161         * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
1162
1163 2019-02-15  Florian Weimer  <fweimer@redhat.com>
1164
1165         [BZ #24211]
1166         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
1167         pd->result after the thread descriptor has been freed.
1168
1169 2019-02-15  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
1172         from function return type.
1173
1174         * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
1175
1176 2019-02-14  Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178         * scripts/test_printers_common.py: Set TERM to a known harmless
1179         value.
1180
1181 2019-02-14  Joseph Myers  <joseph@codesourcery.com>
1182
1183         * sunrpc/xdr.c (xdr_int): Add fall-through comment.
1184         (xdr_u_int): Likewise.
1185         (xdr_enum): Likewise.
1186         (xdr_bytes): Reword fall-through comment.
1187         (xdr_string): Likewise.
1188
1189 2019-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1190
1191         [BZ #2421]
1192         * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
1193         (tests): Add tst-join8 tst-join9.
1194         * nptl/lll_timedwait_tid.c: Remove file.
1195         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
1196         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
1197         * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
1198         * nptl/pthread_join_common.c (timedwait_tid): New function.
1199         (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
1200         is set.
1201         * nptl/tst-join5.c (thread_join): New function.
1202         (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
1203         check.
1204         * nptl/tst-join8.c: New file.
1205         * nptl/tst-join9.c: Likewise.
1206         * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
1207         lll_futex_timed_wait_cancel): Add generic macros.
1208         * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
1209         Remove definitions.
1210         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1211         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1212         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1213         * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
1214         Remove function.
1215         * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
1216         Likewise.
1217         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1218         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1219         (lll_futex_timed_wait_cancel): New macro.
1220
1221 2019-02-14  Wilco Dijkstra  <wdijkstr@arm.com>
1222
1223         * benchtests/Makefile: Add malloc-simple benchmark.
1224         * benchtests/bench-malloc-simple.c: New benchmark.
1225
1226 2019-02-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1227
1228         * benchtests/bench-memmove.c (do_one_test): Remove unused
1229         ORIG_SRC.
1230         (do_test): Adjust.
1231         * benchtests/bench-memmove-large.c (do_one_test): Remove unused
1232         ORIG_SRC.
1233         (do_test): Adjust.
1234
1235 2019-01-13  Jim Wilson  <jimw@sifive.com>
1236
1237         [BZ #24040]
1238         * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
1239         * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
1240         (func): New.
1241         (main): If USE_PTHREADS, call pthread_create to run func.  Otherwise
1242         call func directly.
1243         * nptl/Makefile (tests): Add tst-unwind-thread.
1244         (CFLAGS-tst-unwind-thread.c): Define.
1245         * nptl/tst-unwind-thread.c: New file.
1246         * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
1247         as undefined.
1248
1249 2019-02-13  Joseph Myers  <joseph@codesourcery.com>
1250
1251         * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
1252         comment wording.
1253         * nis/nis_call.c (__do_niscall3): Likewise.
1254
1255         * catgets/gencat.c (normalize_line): Use braces around empty
1256         'else' body.
1257         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
1258         (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
1259         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
1260         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
1261         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
1262         [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
1263         * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
1264         definition.
1265
1266         * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
1267         execlp returns.
1268
1269 2019-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
1270
1271         * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
1272         * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
1273         * benchtests/bench-strchr.c (stupid_strchr): Remove.
1274         * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
1275         * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
1276         * benchtests/bench-strlen.c (builtin_strlen): Remove.
1277         * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
1278         * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
1279         * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
1280         * benchtests/bench-strspn.c (stupid_strspn): Remove.
1281         * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
1282         * benchtests/bench-bcopy.c: Delete file.
1283         * benchtests/bench-bzero.c: Likewise.
1284         * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
1285         (simple_memccpy): Remove.
1286         (generic_memccpy): Add function.
1287         * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
1288         * benchtests/bench-memmove.c (simple_bcopy): Remove.
1289         * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
1290         (generic_mempcpy): Add new function.
1291         * benchtests/bench-memset.c (simple_bzero): Remove.
1292         (builtin_bzero): Remove.
1293         (builtin_memset): Remove.
1294         * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
1295         (generic_rawmemchr): Add new function.
1296
1297 2019-02-12  Florian Weimer  <fweimer@redhat.com>
1298
1299         * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1300
1301 2019-02-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1302
1303         [BZ #24122]
1304         * elf/Makefile (tests): Add tst-audit13.
1305         (modules-names): Add tst-audit13mod1.
1306         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1307         rule.
1308         * elf/tst-audit13.c: New file.
1309         * elf/tst-audit13mod1.c: Likewise.
1310
1311 2019-02-12  Florian Weimer  <fweimer@redhat.com>
1312
1313         [BZ #24122]
1314         * elf/rtld.c (unload_audit_module): New function.
1315         (report_audit_module_load_error): Likewise.
1316         (load_audit_module): Likewise.  Extracted from dl_main.  Call
1317         _dl_close if the laversion symbol cannot be found.  Use early
1318         returns for error handling.  Add malloc error check.  Check for a
1319         zero return value from la_version.  Remove spurious comment about
1320         static TLS initialization.  Remove useless casts.
1321         (notify_audit_modules_of_loaded_object): New function.  Extracted
1322         from dl_main.
1323         (load_audit_module): Likewise.
1324         (dl_main): Call load_audit_modules.
1325
1326 2019-02-12  Joseph Myers  <joseph@codesourcery.com>
1327
1328         * elf/dl-exception.c (_dl_exception_create_format): Add
1329         fall-through comments.
1330         * elf/ldconfig.c (parse_conf_include): Likewise.
1331         * elf/rtld.c (print_statistics): Likewise.
1332         * locale/programs/charmap.c (parse_charmap): Likewise.
1333         * misc/mntent_r.c (__getmntent_r): Likewise.
1334         * posix/wordexp.c (parse_arith): Likewise.
1335         (parse_backtick): Likewise.
1336         * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1337         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1338         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1339
1340 2019-02-11  Paul A. Clarke  <pc@us.ibm.com>
1341
1342         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1343         Use float instead of double.
1344
1345 2019-02-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1346
1347         * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1348
1349 2019-02-08  Joseph Myers  <joseph@codesourcery.com>
1350
1351         * sysdeps/powerpc/bits/mathinline.h: Remove.
1352
1353 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1354
1355         math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1356         * math/bits/math-finite.h: Move to ...
1357         * bits/math-finite.h: ... here.
1358
1359 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1360
1361         * sysdeps/generic/bits/unistd_ext.h: Move to ...
1362         * bits/unistd_ext.h: here.
1363
1364 2019-02-08  Patsy Griffin Franklin  <pfrankli@redhat.com>
1365
1366         [BZ #21915]
1367         * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1368         * nss/tst-nss-files-hosts-long.c: New file.
1369         * nss/tst-nss-files-hosts-long.root: New directory.
1370         * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1371         * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1372
1373 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1374
1375         * include/bits/unistd_ext.h: Remove file.
1376         * posix/bits/unistd_ext.h: Move to ...
1377         * sysdeps/generic/bits/unistd_ext.h: ... here.
1378
1379 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1380
1381         * include/bits/unistd_ext.h: New file.
1382
1383 2019-02-08  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1384
1385         * time/tst-strftime2.c: Use array_length macros instead of magic
1386         numbers.
1387
1388 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1389
1390         [BZ #24161]
1391         * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1392         argument.
1393         * nptl/register-atfork.c (__run_fork_handlers): Only perform
1394         locking if the new do_locking argument is true.
1395         * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1396         __run_fork_handlers.
1397
1398 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1399
1400         [BZ #6399]
1401         Linux: Add gettid system call wrapper.
1402         * posix/Makefile (headers): Add bits/unistd_ext.h.
1403         * posix/bits/unistd_ext.h: New file.
1404         * posix/unistd.h: Include it.
1405         * manual/process.texi (Process Identification): Document gettid.
1406         * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1407         tst-gettid, tst-gettid-kill.
1408         (tst-gettid): Link with $(shared-thread-library).
1409         * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1410         * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1411         * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1412         * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1413         * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1414         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1415         Add gettid.
1416         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1417         Likewise.
1418         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1419         * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1420         Likewise.
1421         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1422         Likewise.
1423         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1424         Likewise.
1425         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1426         Likewise.
1427         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1428         Likewise.
1429         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1430         Likewise.
1431         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1432         Likewise.
1433         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1434         (GLIBC_2.30): Likewise.
1435         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1436         (GLIBC_2.30): Likewise.
1437         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1438         (GLIBC_2.30): Likewise.
1439         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1440         (GLIBC_2.30): Likewise.
1441         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1442         Likewise.
1443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1444         (GLIBC_2.30): Likewise.
1445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1446         (GLIBC_2.30): Likewise.
1447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1448         (GLIBC_2.30): Likewise.
1449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1450         (GLIBC_2.30): Likewise.
1451         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1452         Likewise.
1453         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1454         Likewise.
1455         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1456         Likewise.
1457         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1458         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1459         Likewise.
1460         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1461         Likewise.
1462         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1463         Likewise.
1464         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1465         Likewise.
1466         * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1467
1468 2019-02-08  Florian Weimer  <fweimer@redhat.com>
1469
1470         * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1471         compatibility symbols.
1472
1473 2019-02-07  Stefan Liebler  <stli@linux.ibm.com>
1474
1475         [BZ #24180]
1476         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1477         Add compiler barriers and comments.
1478
1479 2019-02-07  Florian Weimer  <fweimer@redhat.com>
1480
1481         * include/array_length.h (array_length): Do not use a statement
1482         expression and _Static_assert, so that array_length can be used at
1483         file scope and as a constant expression.
1484
1485 2019-02-07  Florian Weimer  <fweimer@redhat.com>
1486
1487         * support/xdlfcn.h (xdlmopen): Declare.
1488         * support/xdlmopen.c: New file.
1489         * support/Makefile (libsupport-routines): Add xdlmopen.
1490
1491 2019-02-06  Joseph Myers  <joseph@codesourcery.com>
1492
1493         * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1494         before return type, without separate inline.
1495         * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1496         * elf/dl-tunables.h (tunable_is_name): Likewise.
1497         * malloc/malloc.c (do_set_trim_threshold): Likewise.
1498         (do_set_top_pad): Likewise.
1499         (do_set_mmap_threshold): Likewise.
1500         (do_set_mmaps_max): Likewise.
1501         (do_set_mallopt_check): Likewise.
1502         (do_set_perturb_byte): Likewise.
1503         (do_set_arena_test): Likewise.
1504         (do_set_arena_max): Likewise.
1505         (do_set_tcache_max): Likewise.
1506         (do_set_tcache_count): Likewise.
1507         (do_set_tcache_unsorted_limit): Likewise.
1508         * nis/nis_subr.c (count_dots): Likewise.
1509         * nptl/allocatestack.c (advise_stack_range): Likewise.
1510         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1511         (do_sin): Likewise.
1512         (reduce_sincos): Likewise.
1513         (do_sincos): Likewise.
1514         * sysdeps/unix/sysv/linux/x86/elision-conf.c
1515         (do_set_elision_enable): Likewise.
1516         (TUNABLE_CALLBACK_FNDECL): Likewise.
1517
1518 2019-02-06  Florian Weimer  <fweimer@redhat.com>
1519
1520         * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1521         (xdlsym): Use dlerror to detect a NULL symbol.
1522
1523 2019-02-06  Florian Weimer  <fweimer@redhat.com>
1524
1525         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1526         <stap-probe.h>.
1527         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1528
1529 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1530
1531         * libio/tst-bz24153.c (wide): Use wide char format specifier.
1532
1533 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1534
1535         * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1536         __wmemcmp and weak alias to wmemcmp.
1537
1538 2019-02-06  Stefan Liebler  <stli@linux.ibm.com>
1539
1540         [BZ #23403]
1541         * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1542         TLS_TCB_AT_TP tls variant.
1543         * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1544         Add alignment checks.
1545         * support/Makefile (libsupport-routines): Add xposix_memalign and
1546         xpthread_setstack.
1547         * support/support.h: Add xposix_memalign.
1548         * support/xthread.h: Add xpthread_attr_setstack.
1549         * support/xposix_memalign.c: New File.
1550         * support/xpthread_attr_setstack.c: Likewise.
1551
1552 2019-02-05  Florian Weimer  <fweimer@redhat.com>
1553
1554         [BZ #24164]
1555         arm: Use "nr" constraint for Systemtap probes, to avoid the
1556         compiler using memory operands for constants, due to the "o"
1557         alternative in the default "nor" constraint.
1558         * include/stap-probe.h [USE_STAP_PROBE]: Include
1559         <stap-probe-machine.h>
1560         * sysdeps/generic/stap-probe-machine.h: New file.
1561         * sysdeps/arm/stap-probe-machine.h: Likewise.
1562
1563 2019-02-04  Joseph Myers  <joseph@codesourcery.com>
1564
1565         * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1566         with 0, not tcache->entries[tc_idx].
1567
1568         * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1569         once.
1570
1571 2019-02-04  Andreas Schwab  <schwab@suse.de>
1572
1573         [BZ #16976]
1574         [BZ #17396]
1575         * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1576         looking up collating elements match against (wide) character
1577         sequence instead of name.  Correct alignment adjustment.
1578         * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1579         (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1580         * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1581         (LOCALES): Add cs_CZ.ISO-8859-2.
1582         * posix/tst-fnmatch4.c: New file.
1583         * posix/tst-fnmatch5.c: New file.
1584         * include/wchar.h (__wmemcmp): Declare.
1585         * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1586         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1587         * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1588         * sysdeps/s390/wmemcmp.c: Likewise.
1589
1590 2019-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1591
1592         [BZ #24155]
1593         CVE-2019-7309
1594         * NEWS: Updated for CVE-2019-7309.
1595         * sysdeps/x86_64/memcmp.S: Use RDX_LP for size.  Clear the
1596         upper 32 bits of RDX register for x32.  Use unsigned Jcc
1597         instructions, instead of signed.
1598         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1599         * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1600
1601 2019-02-04  Florian Weimer  <fweimer@redhat.com>
1602
1603         * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1604         (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1605         (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1606         Likewise.
1607         (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1608         (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1609         (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1610         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1611         Likewise.
1612         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1613         Likewise.
1614         (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1615         Likewise.
1616         (posix_spawn_file_actions_addopen): Likewise.
1617         (posix_spawn_file_actions_addclose): Likewise.
1618         (posix_spawn_file_actions_adddup2): Likewise.
1619         (posix_spawn_file_actions_addchdir_np): Likewise.  Add __restrict
1620         qualifiers.
1621         (posix_spawn_file_actions_addfchdir_np): Likewise.
1622
1623 2019-02-04  David Newall  <glibc@davidnewall.com>
1624
1625         elf: Implement --preload option for the dynamic linker.
1626         * elf/rtld.c (preloadarg): New variable.
1627         (handle_preload_list): Pass through “where” argument to
1628         do_preload.
1629         (dl_main): Handle "--preload" and add second call to
1630         handle_preload_list.
1631         * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1632         (tst-rtld-preload-OBJS): Set variable.
1633         (tst-rtld-preload.out): New target.
1634         * elf/tst-rtld-preload.sh: New file.
1635
1636 2019-02-04  Matthew Malcomson  <matthew.malcomson@arm.com>
1637
1638         * Makefile (testrun.sh): Exit in case of incorrect argument.
1639
1640 2019-02-04  Florian Weimer  <fweimer@redhat.com>
1641
1642         * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1643         alignment gaps.
1644
1645 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1646
1647         * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1648         implicit overflow checks.
1649
1650 2019-02-03  Aurelien Jarno  <aurelien@aurel32.net>
1651
1652         * stdlib/isomac.c: Include <unistd.h>.
1653
1654 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1655
1656         * include/time.h (__tzfile_default): Use int, not long int, for
1657         the GMT offsets.
1658         * time/tzfile.c (struct ttinfo): Change type of the offset member
1659         to int.
1660         (__tzfile_read): Remove useless cast.
1661         (__tzfile_default): Adjust prototype.
1662         * time/tzset.c (tz_rule): Change type of the offset member to int.
1663         (parse_offset): Change the type of the sign variable to int.
1664
1665 2019-02-03  Florian Weimer  <fweimer@redhat.com>
1666
1667         [BZ #24153]
1668         * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1669         * libio/getchar.c (getchar): Likewise.
1670         * libio/getchar_u.c (getchar_unlocked): Likewise.
1671         * libio/getwchar.c (getwchar): Likewise.
1672         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1673         * libio/iogets.c (_IO_gets): Likewise.
1674         * libio/vscanf.c (_IO_vscanf): Likewise.
1675         * libio/vwscanf.c (__vwscanf): Likewise.
1676         * libio/tst-bz24153.c: New file.
1677         * libio/Makefile (tests): Add it.
1678
1679 2019-02-02  Florian Weimer  <fweimer@redhat.com>
1680
1681         [BZ #14829]
1682         * manual/resource.texi (Basic Scheduling Functions): Add
1683         portability note.  Change process to task throughout the section.
1684         Remove incorrect comment about sched_yield as it affects
1685         tasks/threads, not entire processes.
1686         * sysdeps/unix/sysv/linux/bits/posix_opt.h
1687         (_POSIX_PRIORITY_SCHEDULING): Update comment.
1688
1689 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
1690
1691         * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1692         * configure: Regenerated.
1693         * manual/install.texi (Tools for Compilation): Update minimum GCC
1694         version.
1695         * INSTALL: Regenerated.
1696
1697 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1698
1699         * support/support_test_compare_string.c
1700         (support_test_compare_string): Use "string" in error message.
1701         * support/tst-test_compare_string.c (do_test): Adjust.
1702
1703 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1704
1705         * support/support_format_address_family.c
1706         (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1707
1708 2019-02-01  Florian Weimer  <fweimer@redhat.com>
1709
1710         * manual/socket.texi (Internet Address Formats): Clarify the byte
1711         order of struct sockaddr_in, struct sockaddr_in6.  Document
1712         sin6_flowinfo and sin6_scope_id.
1713
1714 2019-02-01  Wilco Dijkstra  <wdijkstr@arm.com>
1715
1716         * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1717         * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1718         * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1719         * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1720         * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1721         * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1722
1723 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1724
1725         * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1726         [!MEMCHR](MEMCHR): Set to __memchr.
1727         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1728         Add memchr_generic and memchr_nosimd.
1729         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1730         (__libc_ifunc_impl_list): Add memchr ifuncs.
1731         * sysdeps/aarch64/multiarch/memchr.c: New file.
1732         * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1733         * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1734
1735 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1736
1737         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1738         Add memset_emag.
1739         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1740         (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1741         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1742         Add IS_EMAG check for ifunc dispatch.
1743         * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1744         * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1745
1746 2019-02-01  Feng Xue  <fxue@os.amperecomputing.com>
1747
1748         * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1749         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1750         Add emag.
1751         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1752         New macro.
1753
1754 2019-02-01  Stefan Liebler  <stli@linux.ibm.com>
1755
1756         * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1757
1758 2019-01-31  Vineet Gupta  <vgupta@synopsys.com>
1759
1760         * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1761         syscall-template file.
1762
1763 2019-01-31  Carlos O'Donell  <carlos@redhat.com>
1764             Torvald Riegel  <triegel@redhat.com>
1765             Rik Prohaska  <prohaska7@gmail.com>
1766
1767         [BZ# 23844]
1768         * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1769         tst-rwlock-trywrlock-stall.
1770         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1771         Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1772         * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1773         Set __wrphase_fute to 1 only if we started the write phase.
1774         * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1775         * nptl/tst-rwlock-trywrlock-stall.c: New file.
1776         * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1777         * support/xpthread_rwlock_destroy.c: New file.
1778         * support/xthread.h: Declare xpthread_rwlock_destroy.
1779
1780 2019-02-01  Joseph Myers  <joseph@codesourcery.com>
1781
1782         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1783         version to 4.0.2.
1784
1785 2019-01-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
1786
1787         [BZ #24051]
1788         * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1789         * libio/fileops.c (_IO_new_file_underflow): Likewise
1790         * libio/wfileops.c (_IO_wfile_underflow): Likewise
1791         * libio/putchar.c (putchar): Likewise.
1792         * libio/putchar_u.c (putchar_unlocked): Likewise.
1793         * libio/putwchar.c (putchar): Likewise.
1794         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1795         * libio/tst-bz24051.c: New test.
1796         * libio/Makefile (tests): Add tst-bz24051
1797
1798 2019-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1799
1800         CVE-2019-9169
1801         regex: fix read overrun [BZ #24114]
1802         Problem found by AddressSanitizer, reported by Hongxu Chen in:
1803         https://debbugs.gnu.org/34140
1804         * posix/regexec.c (proceed_next_node):
1805         Do not read past end of input buffer.
1806
1807 2019-01-31  Florian Weimer  <fweimer@redhat.com>
1808
1809         [BZ #24059]
1810         * nss/nss_files/files-alias.c (get_next_alias): Handle
1811         continuation line without newline at the end.
1812         * nss/tst-nss-files-alias-truncated.c: New file.
1813         * nss/Makefile [$(build-shared)] (tests): Add
1814         tst-nss-files-alias-truncated.
1815         (tst-nss-files-alias-truncated): Link with libnss_files.so.
1816         * support/namespace.h (struct support_chroot_configuration): Add
1817         aliases member.
1818         (struct support_chroot): Add path_aliases member.
1819         * support/support_chroot.c (support_chroot_create): Handle
1820         aliases.
1821         (support_chroot_free): Free path_aliases.
1822
1823 2019-01-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1824
1825         * version.h (RELEASE): Set to "development".
1826         (VERSION): Set to "2.29.9000".
1827         * NEWS: Add section for 2.30.
1828
1829         * version.h (RELEASE): Set to "stable".
1830         (VERSION): Set to "2.29".
1831         * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1832
1833         * NEWS: Add the list of bugs fixed in 2.29.
1834         * manual/contrib.texi: Update contributors list with some more
1835         names.
1836         * manual/install.texi: Update latest versions of packages
1837         tested.
1838         * INSTALL: Regenerated.
1839
1840 2019-01-25  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1841
1842         * po/be.po: Update translations.
1843         * po/bg.po: Likewise.
1844         * po/ca.po: Likewise.
1845         * po/cs.po: Likewise.
1846         * po/da.po: Likewise.
1847         * po/de.po: Likewise.
1848         * po/el.po: Likewise.
1849         * po/eo.po: Likewise.
1850         * po/es.po: Likewise.
1851         * po/fi.po: Likewise.
1852         * po/fr.po: Likewise.
1853         * po/gl.po: Likewise.
1854         * po/hr.po: Likewise.
1855         * po/hu.po: Likewise.
1856         * po/ia.po: Likewise.
1857         * po/id.po: Likewise.
1858         * po/it.po: Likewise.
1859         * po/ja.po: Likewise.
1860         * po/ko.po: Likewise.
1861         * po/lt.po: Likewise.
1862         * po/nb.po: Likewise.
1863         * po/nl.po: Likewise.
1864         * po/pl.po: Likewise.
1865         * po/pt_BR.po: Likewise.
1866         * po/ru.po: Likewise.
1867         * po/rw.po: Likewise.
1868         * po/sk.po: Likewise.
1869         * po/sl.po: Likewise.
1870         * po/sv.po: Likewise.
1871         * po/tr.po: Likewise.
1872         * po/uk.po: Likewise.
1873         * po/vi.po: Likewise.
1874         * po/zh_CN.po: Likewise.
1875         * po/zh_TW.po: Likewise.
1876
1877 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
1878
1879         [BZ #24130]
1880         * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1881         of $f3 register on $y_is_neg path.
1882
1883 2019-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1884
1885         [BZ #24110]
1886         * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1887         sigaltstack.ss_flags.
1888
1889 2019-01-24  TAMUKI Shoichi  <tamuki@linet.gr.jp>
1890
1891         [BZ #23758]
1892         * manual/time.texi (strftime): Document "%Ey".
1893         * time/strftime_l.c (__strftime_internal): Set the default width
1894         padding with zero of "%Ey" to 2.
1895
1896         [BZ #24096]
1897         * manual/time.texi (strftime): Document "%EC" and "%EY".
1898         * time/Makefile (tests): Add tst-strftime2.
1899         (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1900         * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1901         override padding for "%Ey".
1902         If an optional flag ('_' or '-') is specified to "%EY", interpret the
1903         "%Ey" in the subformat as if decorated with that flag.
1904         * time/tst-strftime2.c: New file.
1905
1906 2019-01-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1907
1908         * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1909         are not defined.
1910
1911         [BZ #24122]
1912         * elf/Makefile (tests): Add tst-audit13.
1913         (modules-names): Add tst-audit13mod1.
1914         (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1915         rule.
1916         * elf/rtld.c (dl_main): Handle invalid audit module version.
1917         * elf/tst-audit13.c: New file.
1918         * elf/tst-audit13mod1.c: Likewise.
1919
1920 2019-01-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1921
1922         * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1923         returned by __hurd_at_flags.
1924         * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1925         AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1926         directly instead of __hurd_file_name_lookup.
1927
1928 2019-01-21  Joseph Myers  <joseph@codesourcery.com>
1929
1930         * scripts/build-many-glibcs.py (Context.checkout): Default
1931         binutils version to 2.32 branch.
1932
1933 2019-01-21  Florian Weimer  <fweimer@redhat.com>
1934
1935         [BZ #20018]
1936         CVE-2016-10739
1937         resolv: Reject trailing characters in host names
1938         * include/arpa/inet.h (__inet_aton_exact): Declare.
1939         (inet_aton): Remove hidden prototype.  No longer used internally.
1940         * nscd/gai.c (__inet_aton): Do not define.
1941         * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1942         * nss/digits_dots.c (__inet_aton): Likewise.
1943         (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1944         * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1945         (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1946         (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1947         (tst-resolv-trailing): Likewise.
1948         * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1949         libc.
1950         * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1951         Make static.  Add endp parameter.
1952         (__inet_aton_exact): New function.
1953         (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1954         (__inet_addr): Call inet_aton_end.
1955         * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1956         not just IPv6.  Call __inet_aton_exact.
1957         * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1958         (tests): Make const.  Add additional test cases with trailing
1959         characters.
1960         (do_test): Use array_length.
1961         * resolv/tst-inet_aton_exact.c: New file.
1962         * resolv/tst-resolv-trailing.c: Likewise.
1963         * resolv/tst-resolv-nondecimal.c: Likewise.
1964         * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1965
1966 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1967
1968         [BZ# 24097]
1969         CVE-2019-6488
1970         * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1971         Clear the upper 32 bits of RSI register.
1972         * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1973         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1974         and tst-size_t-wcsnlen.
1975         * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1976         * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1977
1978 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1979
1980         [BZ# 24097]
1981         CVE-2019-6488
1982         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1983         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1984         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1985         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1986         * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1987
1988 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
1989
1990         [BZ# 24097]
1991         CVE-2019-6488
1992         * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1993         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1994         * sysdeps/x86_64/strcmp.S: Likewise.
1995         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1996         tst-size_t-strncmp and tst-size_t-wcsncmp.
1997         * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1998         * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1999         * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
2000
2001 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
2002
2003         [BZ# 24097]
2004         CVE-2019-6488
2005         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
2006         RDX_LP for length.  Clear the upper 32 bits of RDX register.
2007         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
2008         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
2009         * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
2010         * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
2011
2012 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
2013
2014         [BZ# 24097]
2015         CVE-2019-6488
2016         * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
2017         * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
2018         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
2019         * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
2020
2021 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
2022
2023         [BZ# 24097]
2024         CVE-2019-6488
2025         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
2026         length.  Clear the upper 32 bits of RDX register.
2027         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
2028         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
2029         Likewise.
2030         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
2031         Likewise.
2032         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
2033         tst-size_t-wmemchr.
2034         * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
2035
2036 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
2037
2038         [BZ# 24097]
2039         CVE-2019-6488
2040         * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
2041         length.  Clear the upper 32 bits of RDX register.
2042         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
2043         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
2044         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
2045         tst-size_t-wmemcmp.
2046         * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
2047         * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
2048
2049 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
2050
2051         [BZ# 24097]
2052         CVE-2019-6488
2053         * sysdeps/x86_64/memchr.S: Use RDX_LP for length.  Clear the
2054         upper 32 bits of RDX register.
2055         * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
2056         * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
2057         tst-size_t-wmemchr.
2058         * sysdeps/x86_64/x32/test-size_t.h: New file.
2059         * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
2060         * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
2061
2062 2019-01-18  Florian Weimer  <fweimer@redhat.com>
2063
2064         [BZ #24112]
2065         resolv: Do not send queries for non-host-names in nss_dns.
2066         * resolv/nss_dns/dns-host.c (check_name): New function.
2067         (_nss_dns_gethostbyname2_r): Use it.
2068         (_nss_dns_gethostbyname_r): Likewise.
2069         (_nss_dns_gethostbyname4_r): Likewise.
2070
2071 2019-01-21  Florian Weimer  <fweimer@redhat.com>
2072
2073         * resolv/inet_addr.c: Reformat to GNU style.
2074         (__inet_addr, __inet_aton): Update comment.
2075
2076 2019-01-18  Florian Weimer  <fweimer@redhat.com>
2077
2078         malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
2079         ("malloc: Use current (C11-style) atomics for fastbin access").
2080         This commit introduces a substantial performance regression on
2081         POWER and Aarch64.
2082         * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
2083         (REMOVE_FB): Define.
2084         (_int_malloc): Use it and reindent.
2085         (_int_free): Use CAS loop with
2086         catomic_compare_and_exchange_val_rel.
2087         (malloc_consolidate): Use atomic_exchange_acq.
2088
2089
2090 2019-01-18  H.J. Lu  <hongjiu.lu@intel.com>
2091
2092         * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New.  Set to
2093         -Wl,-z,now.
2094         (LDFLAGS-tst-minsigstksz-2): Likewise.
2095         (LDFLAGS-tst-minsigstksz-3): Likewise.
2096         (LDFLAGS-tst-minsigstksz-3a): Likewise.
2097         (LDFLAGS-tst-minsigstksz-4): Likewise.
2098
2099 2019-01-18  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2100
2101         * manual/time.texi (strftime): Fix the wording to "alternative" rather
2102         than "alternate".
2103
2104 2019-01-16  Paul A. Clarke  <pc@us.ibm.com>
2105
2106         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
2107
2108 2019-01-16  Zack Weinberg  <zackw@panix.com>
2109
2110          * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
2111          (xget_sigstack_location): New test support functions.
2112          * support/xsigstack.c: New file, implementing them.
2113          * support/tst-xsigstack.c: New test for them.
2114          * support/Makefile: Update.
2115
2116          * signal/tst-minsigstksz-1.c
2117          * signal/tst-minsigstksz-2.c
2118          * signal/tst-minsigstksz-3.c
2119          * signal/tst-minsigstksz-3a.c
2120          * signal/tst-minsigstksz-4.c: New tests.
2121          * signal/Makefile: Run them.
2122
2123 2019-01-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2124
2125         * po/libc.pot: Regenerate.
2126
2127 2019-01-15  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
2128
2129         * math/libm-test-fma.inc (fma_test_data): Set
2130         XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
2131
2132 2019-01-15  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
2133
2134         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
2135         (do_test): Changed __vector __int128_t to __vector unsigned int.
2136
2137 2019-01-14  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
2138
2139         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
2140         strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
2141         stpcpy-avx2 and stpncpy-avx2.
2142         * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
2143         (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
2144         __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
2145         and __stpncpy_avx2.
2146         * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
2147         ifunc-strcpy.h}: rename header for a more generic name.
2148         * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
2149         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
2150         AVX unaligned load is fast and vzeroupper is preferred.
2151         * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
2152         * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
2153         * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
2154         * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
2155         * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
2156         * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
2157
2158 2019-01-12  Dmitry V. Levin  <ldv@altlinux.org>
2159
2160         * argp/argp-help.c: Fix typo in comment.
2161         * misc/sys/cdefs.h: Likewise.
2162         * posix/regexec.c (sift_states_iter_mb): Likewise.
2163         * socket/sockatmark.c: Likewise.
2164         * socket/sys/socket.h: Likewise.
2165         * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
2166         * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
2167         * sysdeps/ia64/fpu/s_cosl.S: Likewise.
2168         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2169         * sysdeps/unix/sockatmark.c: Likewise.
2170         * time/strptime_l.c: Likewise.
2171
2172 2019-01-11  TAMUKI Shoichi  <tamuki@linet.gr.jp>
2173
2174         * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
2175         missing space after the cast of "_NL_CURRENT".
2176
2177 2019-01-11  Rogerio A. Cardoso  <rcardoso@linux.ibm.com>
2178
2179         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
2180         ifdef to fix read of VSCR.
2181         * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
2182         tst-ucontext-ppc64-vscr.c to test list.
2183         * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
2184
2185 2019-01-10  Andreas K. Hüttel  <dilfridge@gentoo.org>
2186
2187         * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
2188         fall-through.
2189
2190 2019-01-09  Jim Wilson  <jimw@sifive.com>
2191
2192         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
2193
2194 2019-01-09  Wilco Dijkstra  <wdijkstr@arm.com>
2195
2196         * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
2197         * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
2198         __memcpy_falkor for ares.
2199         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
2200         Add new define.
2201         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
2202         Add ares cpu.
2203
2204 2019-01-07  H.J. Lu  <hongjiu.lu@intel.com>
2205
2206         [BZ #24066]
2207         * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
2208         4_FP_W_TYPEs are used for IEEE quad precision.
2209         * soft-fp/extendhftf2.c: Likewise.
2210         * soft-fp/extendsftf2.c: Likewise.
2211         * soft-fp/extendxftf2.c: Likewise.
2212         * soft-fp/trunctfdf2.c: Likewise.
2213         * soft-fp/trunctfhf2.c: Likewise.
2214         * soft-fp/trunctfsf2.c: Likewise.
2215         * soft-fp/trunctfxf2.c: Likewise.
2216         * sysdeps/alpha/ots_cvttx.c: Likewise.
2217         * sysdeps/alpha/ots_cvtxt.c: Likewise.
2218         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2219         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
2220         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
2221         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
2222         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2223         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
2224         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
2225         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
2226         * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
2227         * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
2228         * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
2229         * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
2230         * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
2231         * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
2232         * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
2233         * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
2234
2235 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
2236
2237         [BZ #24024]
2238         * Makeconfig: Build libm with -fno-math-errno but build the remaining
2239         code with -fmath-errno.
2240         * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
2241         [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
2242         * string/test-strerror-errno.c: New file.
2243
2244 2019-01-07  Aurelien Jarno  <aurelien@aurel32.net>
2245
2246         [BZ #24046]
2247         * localedata/locales/en_US (date_fmt): Add, set to
2248         "%a %d %b %Y %r %Z".
2249
2250 2019-01-07  Florian Weimer  <fweimer@redhat.com>
2251
2252         [BZ #24063]
2253         * manual/arith.texi (Math Error Reporting): Use @code{errno}
2254         instead of @var{errno}.
2255         (Parsing of Integers): Likewise.
2256         (Parsing of Floats): Likewise.
2257         * manual/filesys.texi (Working with Directory Trees): Likewise.
2258         (Temporary Files): Likewise.
2259         * manual/job.texi (Terminal Access Functions): Likewise.
2260         * manual/llio.texi (Synchronizing I/O): Likewise.
2261         * manual/math.texi (SVID Random): Likewise.
2262         * manual/message.texi (The catgets Functions): Likewise.
2263         (Translation with gettext): Likewise.
2264         (Locating gettext catalog): Likewise.
2265         (Charset conversion in gettext): Likewise.
2266         * manual/nss.texi (NSS Module Function Internals): Likewise.
2267         * manual/search.texi (Hash Search Function): Likewise.
2268         * manual/setjmp.texi (System V contexts): Likewise.
2269         * manual/time.texi (Sleeping): Likewise.
2270         * manual/users.texi (Lookup User): Likewise.
2271         (Lookup Group): Likewise.
2272
2273 2019-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2274
2275         * posix/tst-spawn.c (do_test): Extend spargv to new required size and
2276         fix typo.
2277
2278 2019-01-04  Martin Jansa  <Martin.Jansa@gmail.com>
2279
2280         [BZ #19444]
2281         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
2282         __builtin_unreachable for default case in switch.
2283         (__ieee754_yn): Likewise.
2284         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
2285         (__ieee754_ynl): Likewise.
2286         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
2287         (__ieee754_ynl): Likewise.
2288         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2289         (__ieee754_ynl): Likewise.
2290
2291 2019-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2292
2293         * manual/maint.texi: Use @{ and @}.
2294
2295 2019-01-04  Florian Weimer  <fweimer@redhat.com>
2296
2297         * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
2298         function.
2299         (do_in_chroot_1): Call it.
2300         (run_chroot_tests):
2301         Improve error reporting in case it is not possible to create a
2302         collision for the PTY name required by the test.
2303
2304 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2305
2306         * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2307         lll_wait_tid with timeout.
2308         * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2309         * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2310         futex_reltimed_wait_cancelable for cancelabla mode.
2311         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2312         * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2313         macros.
2314         * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2315         * sysdeps/posix/waitid.c (__sigwait): Likewise.
2316         * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2317         SYSCALL_CANCEL_NCS): New macro.
2318         * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2319         (lll_timedwait_tid): Remove macro.
2320         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2321         Likewise.
2322         (lll_timedwait_tid): Likewise.
2323         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2324         Likewise.
2325         (lll_timedwait_tid): Likewise.
2326         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2327         Likewise.
2328         (lll_timedwait_tid): Likewise.
2329         * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2330         Use INTERNAL_SYSCALL_CANCEL.
2331         * sysdeps/unix/sysv/linux/futex-internal.h
2332         (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2333         instead of __pthread_{enable,disable}_asynccancel.
2334         * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2335         (lll_futex_wait_cancel): New macro.
2336
2337         * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2338         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2339
2340         * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2341         THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2342
2343         * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2344         in backtrace analysis.
2345         * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2346         side-effects.
2347         (tf_send): Likewise.
2348
2349         * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2350         * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2351         * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2352         * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2353         * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2354         * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2355         * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2356         * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2357         * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2358         * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2359         * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2360         * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2361         Likewise.
2362         * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2363         tst-cancel-wrappers.sh.
2364         (generated): Remove tst-cancel-wrappers.out.
2365         (tst-cancel-wrappers.out): Remove rule.
2366         * nptl/tst-cancel-wrappers.sh: Remove file.
2367
2368 2019-01-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2369
2370         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2371         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2372         Update.
2373
2374 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2375
2376         [BZ #23640]
2377         * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2378         posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2379         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2380         close-on-exec reset for adddup2 file action.
2381         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2382
2383 2019-01-03  Zack Weinberg  <zackw@panix.com>
2384
2385         * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2386         parameter.  Only use deprecated scanf when __USE_GNU is defined
2387         and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2388         than 201103L, whichever is relevant for the language being compiled.
2389
2390         * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2391         scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2392         __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2393         * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2394         wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2395
2396         * libio/iovsscanf.c
2397         * libio/fwscanf.c
2398         * libio/iovswscanf.c
2399         * libio/swscanf.c
2400         * libio/vscanf.c
2401         * libio/vwscanf.c
2402         * libio/wscanf.c
2403         * stdio-common/fscanf.c
2404         * stdio-common/scanf.c
2405         * stdio-common/vfscanf.c
2406         * stdio-common/vfwscanf.c
2407         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2408         * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2409         * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2410         * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2411         * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2412         * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2413         * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2414         * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2415         * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2416         * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2417         * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2418         * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2419         * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2420         * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2421         Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2422
2423         * stdio-common/sscanf.c: Likewise.  Remove ldbl_hidden_def for __sscanf.
2424         * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2425         * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2426         not sscanf.
2427         [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2428         with a preprocessor macro.
2429
2430         * stdio-common/bug21.c, stdio-common/scanf14.c:
2431         Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2432         remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2433         * stdio-common/scanf16.c: Likewise.  Add __attribute__ ((format (scanf)))
2434         to xscanf, xfscanf, xsscanf.
2435
2436         * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2437         %as, %aS, %a[].  Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2438         * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2439         %as, %aS, %a[].  Add __attribute__ ((format (scanf))) to xscanf,
2440         xfscanf, xsscanf.
2441         * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2442         override feature selection macros or provide definitions of u_char etc.
2443         * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2444         (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2445         (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New.  Compile these files
2446         with -std=gnu89.
2447
2448 2019-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2449
2450         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2451         bits/termios-misc.h.
2452         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2453         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2454         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2455         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2456         * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2457         * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2458
2459         * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2460         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2461         (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2462         TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2463         TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2464         _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2465         termios-misc.h.
2466         * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2467         (sysdep_headers): Add termios-misc.h.
2468
2469         * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2470         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2471         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2472
2473         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2474         termios-tcflow.h.
2475         * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2476         * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2477         * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2478         TCSAFLUSH): Move to termios-tcflow.h.
2479         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2480         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2481         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2482         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2483
2484         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2485         termios-c_lflag.h.
2486         * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2487         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2488         * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2489         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2490         * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2491         ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2492         [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2493         [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2494         Likewise.
2495         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2496         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2497         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2498         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2499
2500         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2501         termios-c_cflag.h.
2502         * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2503         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2504         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2505         * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2506         CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2507         termios-c_cflag.h.
2508         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2509         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2510         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2511         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2512
2513         [BZ #23783]
2514         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2515         termios-baud.h.
2516         * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2517         * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2518         * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2519         * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2520         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2521         B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2522         B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2523         __MAX_BAUD): Move to termios-baud.h.
2524         [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2525         * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2526         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2527         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2528         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2529
2530         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2531         termios-c_oflag.h.
2532         * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2533         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2534         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2535         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2536         * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2537         ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1):  Move to
2538         termios-c_oflag.h.
2539         [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2540         CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2541         FFR1): Likewise.
2542         [USE_MISC] (XTABS): Likewise.
2543         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2544         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2545         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2546         * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2547
2548         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2549         termios-c_iflag.h.
2550         * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2551         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2552         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2553         * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2554         INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2555         IUTF8): Move to termios-c_iflag.h.
2556         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2557         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2558         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2559         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2560
2561         * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2562         termios-cc.h.
2563         * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2564         * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2565         * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2566         * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2567         * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2568         * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2569         VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2570         VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2571         * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2572         * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2573         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2574         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2575
2576         * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2577         * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2578         * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2579         * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2580         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2581         termios-struct.h.
2582         * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2583         termios-struct.h.
2584         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2585         Likewise.
2586         * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2587         Likewise.
2588         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2589         Likewise.
2590         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2591         Likewise.
2592         * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2593         _HAVE_C_OSPEED): Define.
2594         * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2595         _HAVE_C_OSPEED): Likewise.
2596         * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2597         _HAVE_C_OSPEED): Likewise.
2598         * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2599         (cfsetospeed): Check for define value instead of existence.
2600         [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2601         * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2602         && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2603         * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2604         && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2605
2606         [BZ #17783]
2607         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2608         Define.
2609         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2610         (TIOCSER_TEMT): Likewise.
2611         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2612         (TEOCSER_TEMT): Likewise.
2613
2614 2019-01-02  PanderMusubi  <pander@users.sourceforge.net>
2615
2616         [BZ #24011]
2617         * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2618
2619 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
2620
2621         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2622
2623 2019-01-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2624
2625         * sysdeps/htl/pt-barrierattr-setpshared.c
2626         (pthread_barrierattr_setpshared): Add stub warning.
2627         * sysdeps/htl/pt-condattr-setpshared.c
2628         (pthread_condattr_setpshared): Likewise.
2629         * sysdeps/htl/pt-mutexattr-setpshared.c
2630         (pthread_mutexattr_setpshared): Likewise.
2631         * sysdeps/htl/pt-rwlockattr-setpshared.c
2632         (pthread_rwlockattr_setpshared): Likewise.
2633         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2634         (pthread_mutexattr_setpshared): Likewise.
2635
2636 2019-01-02  Joseph Myers  <joseph@codesourcery.com>
2637
2638         * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2639         constants to match with Linux 4.20.
2640
2641         * sysdeps/mips/mips32/libm-test-ulps: Update.
2642         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2643
2644 2019-01-02  Aurelien Jarno  <aurelien@aurel32.net>
2645
2646         [BZ #24034]
2647         * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2648         (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2649         than __typeof (...) for the a_ptr variable.
2650
2651 2019-01-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2652
2653         * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2654         * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2655         * libio/Makefile (tests): Add tst-sprintf-ub and
2656         tst-sprintf-chk-ub.
2657         (CFLAGS-tst-sprintf-ub.c): New variable.
2658         (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2659         * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2660         destination buffer and check for overflows in fortified mode.
2661         * libio/libioP.h (PRINTF_CHK): New macro.
2662         * libio/tst-sprintf-chk-ub.c: New file.
2663         * libio/tst-sprintf-ub.c: Likewise.
2664
2665 2019-01-02  Florian Weimer  <fweimer@redhat.com>
2666
2667         [BZ #24018]
2668         * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2669         failure.
2670
2671 2019-01-02  Florian Weimer  <fweimer@redhat.com>
2672
2673         * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2674
2675 2019-01-01  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2678         macro.
2679
2680         * sysdeps/unix/sysv/linux/netpacket/packet.h
2681         (PACKET_IGNORE_OUTGOING): New macro.
2682
2683         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2684         macro.
2685
2686         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2687         version to 4.20.
2688         (riscv_flush_icache): New syscall.
2689
2690         * manual/texinfo.tex: Update to version 2018-12-28.17 with
2691         trailing whitespace removed.
2692         * scripts/config.guess: Update to version 2019-01-01.
2693         * scripts/config.sub: Update to version 2019-01-01.
2694         * scripts/move-if-change: Update from gnulib.
2695
2696         * NEWS: Update copyright dates.
2697         * catgets/gencat.c (print_version): Likewise.
2698         * csu/version.c (banner): Likewise.
2699         * debug/catchsegv.sh: Likewise.
2700         * debug/pcprofiledump.c (print_version): Likewise.
2701         * debug/xtrace.sh (do_version): Likewise.
2702         * elf/ldconfig.c (print_version): Likewise.
2703         * elf/ldd.bash.in: Likewise.
2704         * elf/pldd.c (print_version): Likewise.
2705         * elf/sotruss.sh: Likewise.
2706         * elf/sprof.c (print_version): Likewise.
2707         * iconv/iconv_prog.c (print_version): Likewise.
2708         * iconv/iconvconfig.c (print_version): Likewise.
2709         * locale/programs/locale.c (print_version): Likewise.
2710         * locale/programs/localedef.c (print_version): Likewise.
2711         * login/programs/pt_chown.c (print_version): Likewise.
2712         * malloc/memusage.sh (do_version): Likewise.
2713         * malloc/memusagestat.c (print_version): Likewise.
2714         * malloc/mtrace.pl: Likewise.
2715         * manual/libc.texinfo: Likewise.
2716         * nptl/version.c (banner): Likewise.
2717         * nscd/nscd.c (print_version): Likewise.
2718         * nss/getent.c (print_version): Likewise.
2719         * nss/makedb.c (print_version): Likewise.
2720         * posix/getconf.c (main): Likewise.
2721         * scripts/test-installation.pl: Likewise.
2722         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2723
2724         * All files with FSF copyright notices: Update copyright dates
2725         using scripts/update-copyrights.
2726         * locale/programs/charmap-kw.h: Regenerated.
2727         * locale/programs/locfile-kw.h: Likewise.
2728
2729 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
2730
2731         * timezone/zdump.c: Update from tzcode 2018i.
2732         * timezone/zic.c: Likewise.
2733
2734 2018-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2735
2736         regex: improve Gnulib port to AIX
2737         From the glibc point of view, this removes duplicate macro
2738         definitions and is obviously safe.
2739         From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2740         * posix/regex_internal.h:
2741         (__attribute__, __attribute_warn_unused_result__):
2742         Remove; already defined elsewhere.
2743
2744 2018-12-31  Florian Weimer  <fw@deneb.enyo.de>
2745
2746         [BZ #24027]
2747         * malloc/malloc.c (_int_realloc): Always call memcpy for the
2748         copying operation.  (ncopies had the wrong type, resulting in an
2749         integer wraparound and too few elements being copied.)
2750
2751 2018-12-31  H.J. Lu  <hongjiu.lu@intel.com>
2752
2753         [BZ #24022]
2754         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2755         <asm/syscalls.h> exists with __has_include__ before including it.
2756
2757 2018-12-31  Joseph Myers  <joseph@codesourcery.com>
2758
2759         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2760         version to 4.20.
2761
2762 2018-12-28  Justus Winter <4winter@informatik.uni-hamburg.de>
2763
2764         * hurd/lookup-retry: Include <unistd.h>.
2765         (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2766         Release it on return.  Handle "pid" magical lookup retry.
2767
2768 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
2769
2770         [BZ #10496]
2771         * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2772         (t_fmt_ampm): Likewise.
2773         * localedata/locales/aa_ER (t_fmt): Likewise.
2774         (t_fmt_ampm): Likewise.
2775         * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2776         (t_fmt_ampm): Likewise.
2777         * localedata/locales/aa_ET (t_fmt): Likewise.
2778         (t_fmt_ampm): Likewise.
2779         * localedata/locales/am_ET (t_fmt): Likewise.
2780         (t_fmt_ampm): Likewise.
2781         * localedata/locales/byn_ER (t_fmt): Likewise.
2782         (t_fmt_ampm): Likewise.
2783         * localedata/locales/om_ET (t_fmt): Likewise.
2784         (t_fmt_ampm): Likewise.
2785         * localedata/locales/sid_ET (t_fmt): Likewise.
2786         (t_fmt_ampm): Likewise.
2787         * localedata/locales/so_DJ (t_fmt): Likewise.
2788         (t_fmt_ampm): Likewise.
2789         * localedata/locales/so_ET (t_fmt): Likewise.
2790         (t_fmt_ampm): Likewise.
2791         * localedata/locales/so_SO (t_fmt): Likewise.
2792         (t_fmt_ampm): Likewise.
2793         * localedata/locales/ti_ER (t_fmt): Likewise.
2794         (t_fmt_ampm): Likewise.
2795         * localedata/locales/ti_ET (t_fmt): Likewise.
2796         (t_fmt_ampm): Likewise.
2797         * localedata/locales/tig_ER (t_fmt): Likewise.
2798         (t_fmt_ampm): Likewise.
2799         * localedata/locales/wal_ET (t_fmt): Likewise.
2800         (t_fmt_ampm): Likewise.
2801
2802         * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2803         * localedata/locales/ar_IN (t_fmt): Likewise.
2804         * localedata/locales/bhb_IN (t_fmt): Likewise.
2805         * localedata/locales/bho_IN (t_fmt): Likewise.
2806         * localedata/locales/bi_VU (t_fmt): Likewise.
2807         * localedata/locales/bn_BD (t_fmt): Likewise.
2808         * localedata/locales/bn_IN (t_fmt): Likewise.
2809         * localedata/locales/brx_IN (t_fmt): Likewise.
2810         * localedata/locales/doi_IN (t_fmt): Likewise.
2811         * localedata/locales/en_HK (t_fmt): Likewise.
2812         (t_fmt_ampm): Likewise.
2813         * localedata/locales/en_IN (t_fmt): Likewise.
2814         * localedata/locales/en_PH (t_fmt): Likewise.
2815         * localedata/locales/gu_IN (t_fmt): Likewise.
2816         * localedata/locales/hi_IN (t_fmt): Likewise.
2817         * localedata/locales/hif_FJ (t_fmt): Likewise.
2818         * localedata/locales/hne_IN (t_fmt): Likewise.
2819         * localedata/locales/kn_IN (t_fmt): Likewise.
2820         * localedata/locales/kok_IN (t_fmt): Likewise.
2821         * localedata/locales/ks_IN (t_fmt): Likewise.
2822         * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2823         * localedata/locales/mag_IN (t_fmt): Likewise.
2824         * localedata/locales/mai_IN (t_fmt): Likewise.
2825         * localedata/locales/mjw_IN (t_fmt): Likewise.
2826         * localedata/locales/ml_IN (t_fmt): Likewise.
2827         * localedata/locales/mni_IN (t_fmt): Likewise.
2828         * localedata/locales/mr_IN (t_fmt): Likewise.
2829         * localedata/locales/ms_MY (t_fmt): Likewise.
2830         * localedata/locales/pa_IN (t_fmt): Likewise.
2831         * localedata/locales/raj_IN (t_fmt): Likewise.
2832         * localedata/locales/sa_IN (t_fmt): Likewise.
2833         * localedata/locales/sat_IN (t_fmt): Likewise.
2834         * localedata/locales/sd_IN (t_fmt): Likewise.
2835         * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2836         * localedata/locales/tcy_IN (t_fmt): Likewise.
2837         * localedata/locales/the_NP (t_fmt): Likewise.
2838         * localedata/locales/to_TO (t_fmt): Likewise.
2839         * localedata/locales/ur_IN (t_fmt): Likewise.
2840
2841         * localedata/locales/hif_FJ (d_t_fmt): Set to
2842         "%A %d %b %Y %I:%M:%S %p".
2843         (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2844
2845         * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2846         * localedata/locales/ar_BH (t_fmt): Likewise.
2847         * localedata/locales/ar_DZ (t_fmt): Likewise.
2848         * localedata/locales/ar_EG (t_fmt): Likewise.
2849         * localedata/locales/ar_IQ (t_fmt): Likewise.
2850         * localedata/locales/ar_JO (t_fmt): Likewise.
2851         * localedata/locales/ar_KW (t_fmt): Likewise.
2852         * localedata/locales/ar_LB (t_fmt): Likewise.
2853         * localedata/locales/ar_LY (t_fmt): Likewise.
2854         * localedata/locales/ar_OM (t_fmt): Likewise.
2855         * localedata/locales/ar_QA (t_fmt): Likewise.
2856         * localedata/locales/ar_SD (t_fmt): Likewise.
2857         * localedata/locales/ar_SS (t_fmt): Likewise.
2858         * localedata/locales/ar_SY (t_fmt): Likewise.
2859         * localedata/locales/ar_TN (t_fmt): Likewise.
2860         * localedata/locales/ar_YE (t_fmt): Likewise.
2861
2862         * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2863         (t_fmt_ampm): Likewise.
2864         * localedata/locales/gez_ET (t_fmt): Likewise.
2865         (t_fmt_ampm): Likewise.
2866
2867         * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2868         (t_fmt_ampm): Likewise.
2869         (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2870
2871         * localedata/locales/zh_HK (t_fmt):
2872         Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2873
2874         * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2875         because this locale does not use the 12-hour clock.
2876         (t_fmt): Set to "%Z %H:%M:%S".
2877         (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2878
2879         * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2880         because this locale does not use the 12-hour clock.
2881         (t_fmt): Set to "%H:%M:%S %Z".
2882         (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2883
2884         * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2885         because this locale does not use the 12-hour clock.
2886         (t_fmt): Set to "%T".
2887         (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2888         (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2889
2890         * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2891         because this locale does not use the 12-hour clock.
2892         (t_fmt): Set to "%H:%M:%S %Z".
2893         (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2894
2895         * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2896         because this locale does not use the 12-hour clock.
2897         * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2898         * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2899
2900 2018-12-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
2901
2902         [BZ #10496]
2903         [BZ #23724]
2904         * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2905         (t_fmt_ampm): Likewise.
2906         (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2907         (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2908         (d_fmt): Set to "%-d.%-m.%y".
2909
2910 2018-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2911
2912         * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2913         Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2914         * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2915         Likewise.
2916         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2917         * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2918         * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2919         function.
2920         * support/blob_repeat.c (check_mul_overflow_size_t,
2921         (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2922
2923 2018-12-28  Aurelien Jarno  <aurelien@aurel32.net>
2924
2925         * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2926
2927 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2928
2929         regex: simplify Gnulib port
2930         This simplifies the code, by removing stuff intended for porting
2931         to Gnulib but no longer needed there.
2932         * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2933         uses of libc_hidden_def, weak_alias.
2934         * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2935         _Restrict_ except for public-facing headers.
2936         * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2937         Remove; already defined elsewhere.
2938         * posix/regex.c, posix/regex_internal.h:
2939         Use __GNUC_PREREQ instead of rolling our own.
2940         * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2941
2942 2018-12-27  Wilco Dijkstra  <wdijkstr@arm.com>
2943
2944         * benchtests/bench-strlen.c (generic_strlen): New function.
2945          (memchr_strlen): New function.
2946
2947 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2948
2949         * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2950         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2951         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2952
2953 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2954
2955         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2956
2957 2018-12-26  H.J. Lu  <hongjiu.lu@intel.com>
2958
2959         * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2960         (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2961         * sysdeps/ieee754/flt-32/sincosf_poly.h: Here.  New file.
2962         * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2963         * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2964         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2965         <sysdeps/ieee754/flt-32/s_sincosf.c>.
2966
2967 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
2968
2969         [BZ #24023]
2970         * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2971         PLT reference in libc.so.
2972         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2973         _Q_lltoq and _Q_qtod PLT references in libc.so.
2974
2975 2018-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
2976
2977         * benchtests/bench-memchr.c: Cleanup defines.
2978         * benchtests/bench-memcmp.c: Likewise.
2979         * benchtests/bench-memset.c: Likewise.
2980         * benchtests/bench-memset-large.c: Likewise.
2981         * benchtests/bench-memset-walk.c: Likewise.
2982         * benchtests/bench-stpcpy.c: Likewise.
2983         * benchtests/bench-stpncpy.c: Likewise.
2984         * benchtests/bench-strcat.c: Likewise.
2985         * benchtests/bench-strchr.c: Likewise.
2986         * benchtests/bench-strcmp.c: Likewise.
2987         * benchtests/bench-strcpy.c: Likewise.
2988         * benchtests/bench-strcspn.c: Likewise.
2989         * benchtests/bench-string.h: Likewise.
2990         * benchtests/bench-strlen.c: Likewise.
2991         * benchtests/bench-strncat.c: Likewise.
2992         * benchtests/bench-strncmp.c: Likewise.
2993         * benchtests/bench-strncpy.c: Likewise.
2994         * benchtests/bench-strnlen.c: Likewise.
2995         * benchtests/bench-strpbrk.c: Likewise.
2996         * benchtests/bench-strrchr.c: Likewise.
2997         * benchtests/bench-strspn.c: Likewise.
2998
2999 2018-12-21  Joseph Myers  <joseph@codesourcery.com>
3000
3001         * stdlib/longlong.h: Update from GCC.
3002
3003         [BZ #23993]
3004         * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
3005         * configure: Regenerated.
3006         * manual/install.texi (Tools for Compilation): Update minimum GCC
3007         version.
3008         * INSTALL: Regenerated.
3009
3010 2018-12-21  Istvan Kurucsai <pistukem@gmail.com>
3011
3012         * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
3013
3014 2018-12-20  Istvan Kurucsai <pistukem@gmail.com>
3015
3016         * malloc/malloc.c (mremap_chunk): Additional checks.
3017
3018 2018-12-21  Mao Han  <han_mao@c-sky.com>
3019
3020         * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
3021         * scripts/build-many-glibcs.py: Add C-SKY targets.
3022         * sysdeps/csky/Implies: New file.
3023         * sysdeps/csky/Makefile: Likewise.
3024         * sysdeps/csky/abiv2/__longjmp.S: Likewise.
3025         * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
3026         * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
3027         * sysdeps/csky/abiv2/memcmp.S: Likewise.
3028         * sysdeps/csky/abiv2/memcpy.S: Likewise.
3029         * sysdeps/csky/abiv2/memmove.S: Likewise.
3030         * sysdeps/csky/abiv2/memset.S: Likewise.
3031         * sysdeps/csky/abiv2/setjmp.S: Likewise.
3032         * sysdeps/csky/abiv2/start.S: Likewise.
3033         * sysdeps/csky/abiv2/strcmp.S: Likewise.
3034         * sysdeps/csky/abiv2/strcpy.S: Likewise.
3035         * sysdeps/csky/abiv2/strlen.S: Likewise.
3036         * sysdeps/csky/abiv2/tls-macros.h: Likewise.
3037         * sysdeps/csky/abort-instr.h: Likewise.
3038         * sysdeps/csky/atomic-machine.h: Likewise.
3039         * sysdeps/csky/bits/endian.h: Likewise.
3040         * sysdeps/csky/bits/fenv.h: Likewise.
3041         * sysdeps/csky/bits/link.h: Likewise.
3042         * sysdeps/csky/bits/setjmp.h: Likewise.
3043         * sysdeps/csky/bsd-_setjmp.S: Likewise.
3044         * sysdeps/csky/bsd-setjmp.S: Likewise.
3045         * sysdeps/csky/configure: Likewise.
3046         * sysdeps/csky/configure.ac: Likewise.
3047         * sysdeps/csky/dl-machine.h: Likewise.
3048         * sysdeps/csky/dl-procinfo.c: Likewise.
3049         * sysdeps/csky/dl-procinfo.h: Likewise.
3050         * sysdeps/csky/dl-sysdep.h: Likewise.
3051         * sysdeps/csky/dl-tls.h: Likewise.
3052         * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
3053         * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
3054         * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
3055         * sysdeps/csky/fpu/fegetenv.c: Likewise.
3056         * sysdeps/csky/fpu/fegetexcept.c: Likewise.
3057         * sysdeps/csky/fpu/fegetmode.c: Likewise.
3058         * sysdeps/csky/fpu/fegetround.c: Likewise.
3059         * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
3060         * sysdeps/csky/fpu/fenv_libc.h: Likewise.
3061         * sysdeps/csky/fpu/fenv_private.h: Likewise.
3062         * sysdeps/csky/fpu/fesetenv.c: Likewise.
3063         * sysdeps/csky/fpu/fesetexcept.c: Likewise.
3064         * sysdeps/csky/fpu/fesetmode.c: Likewise.
3065         * sysdeps/csky/fpu/fesetround.c: Likewise.
3066         * sysdeps/csky/fpu/feupdateenv.c: Likewise.
3067         * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
3068         * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
3069         * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
3070         * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
3071         * sysdeps/csky/fpu/ftestexcept.c: Likewise.
3072         * sysdeps/csky/fpu/libm-test-ulps: Likewise.
3073         * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
3074         * sysdeps/csky/fpu_control.h: Likewise.
3075         * sysdeps/csky/gccframe.h: Likewise.
3076         * sysdeps/csky/jmpbuf-unwind.h: Likewise.
3077         * sysdeps/csky/ldsodefs.h: Likewise.
3078         * sysdeps/csky/libc-tls.c: Likewise.
3079         * sysdeps/csky/linkmap.h: Likewise.
3080         * sysdeps/csky/machine-gmon.h: Likewise.
3081         * sysdeps/csky/memusage.h: Likewise.
3082         * sysdeps/csky/nofpu/Implies: Likewise.
3083         * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
3084         * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
3085         * sysdeps/csky/nptl/Makefile: Likewise.
3086         * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
3087         * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
3088         * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
3089         * sysdeps/csky/nptl/pthreaddef.h: Likewise.
3090         * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
3091         * sysdeps/csky/nptl/tls.h: Likewise.
3092         * sysdeps/csky/preconfigure: Likewise.
3093         * sysdeps/csky/sfp-machine.h: Likewise.
3094         * sysdeps/csky/sotruss-lib.c: Likewise.
3095         * sysdeps/csky/stackinfo.h: Likewise.
3096         * sysdeps/csky/sysdep.h: Likewise.
3097         * sysdeps/csky/tininess.h: Likewise.
3098         * sysdeps/csky/tst-audit.h: Likewise.
3099         * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
3100         * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
3101         * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
3102         * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
3103         * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
3104         * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
3105         * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
3106         * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
3107         * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
3108         * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
3109         * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
3110         * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
3111         * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
3112         * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
3113         * sysdeps/unix/sysv/linux/csky/configure: Likewise.
3114         * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
3115         * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
3116         * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
3117         * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
3118         * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
3119         * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
3120         * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
3121         * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
3122         * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
3123         * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
3124         * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
3125         * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
3126         * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
3127         * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
3128         * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
3129         * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
3130         * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
3131         * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
3132         * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
3133         * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
3134         * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
3135         * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
3136         * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
3137         * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
3138         * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
3139         * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
3140         * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
3141         * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
3142         * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
3143
3144 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
3145
3146         * include/time.h (__difftime64): Add.
3147         * time/difftime.c (subtract): convert to 64-bit time.
3148         * time/difftime.c (__difftime64): Add.
3149         * time/difftime.c (__difftime): Wrap around __difftime64.
3150
3151 2018-12-20  H.J. Lu  <hongjiu.lu@intel.com>
3152
3153         * manual/examples/add.c: Remove redundant "if not".
3154         * manual/examples/argp-ex1.c: Likewise.
3155         * manual/examples/argp-ex2.c: Likewise.
3156         * manual/examples/argp-ex3.c: Likewise.
3157         * manual/examples/argp-ex4.c: Likewise.
3158         * manual/examples/atexit.c: Likewise.
3159         * manual/examples/db.c: Likewise.
3160         * manual/examples/dir.c: Likewise.
3161         * manual/examples/dir2.c: Likewise.
3162         * manual/examples/execinfo.c: Likewise.
3163         * manual/examples/filecli.c: Likewise.
3164         * manual/examples/filesrv.c: Likewise.
3165         * manual/examples/fmtmsgexpl.c: Likewise.
3166         * manual/examples/genpass.c: Likewise.
3167         * manual/examples/inetcli.c: Likewise.
3168         * manual/examples/inetsrv.c: Likewise.
3169         * manual/examples/isockad.c: Likewise.
3170         * manual/examples/longopt.c: Likewise.
3171         * manual/examples/memopen.c: Likewise.
3172         * manual/examples/memstrm.c: Likewise.
3173         * manual/examples/mkdirent.c: Likewise.
3174         * manual/examples/mkfsock.c: Likewise.
3175         * manual/examples/mkisock.c: Likewise.
3176         * manual/examples/mygetpass.c: Likewise.
3177         * manual/examples/pipe.c: Likewise.
3178         * manual/examples/popen.c: Likewise.
3179         * manual/examples/rprintf.c: Likewise.
3180         * manual/examples/search.c: Likewise.
3181         * manual/examples/select.c: Likewise.
3182         * manual/examples/setjmp.c: Likewise.
3183         * manual/examples/sigh1.c: Likewise.
3184         * manual/examples/sigusr.c: Likewise.
3185         * manual/examples/stpcpy.c: Likewise.
3186         * manual/examples/strdupa.c: Likewise.
3187         * manual/examples/strftim.c: Likewise.
3188         * manual/examples/subopt.c: Likewise.
3189         * manual/examples/swapcontext.c: Likewise.
3190         * manual/examples/termios.c: Likewise.
3191         * manual/examples/testopt.c: Likewise.
3192         * manual/examples/testpass.c: Likewise.
3193         * manual/examples/timeval_subtract.c: Likewise.
3194
3195 2018-12-19  Joseph Myers  <joseph@codesourcery.com>
3196
3197         * sysdeps/x86/fpu/math_private.h: New file.
3198         * sysdeps/x86/fpu/bits/mathinline.h: Remove.
3199
3200         * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
3201         definition.
3202         (cosh): Likewise.
3203         (tanh): Likewise.
3204
3205 2018-12-19  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
3206
3207         * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
3208         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
3209         AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
3210         AT_L3_CACHEGEOMETRY.  Fix indentation when printing the other
3211         fields.
3212         (_dl_show_auxv): Give a special treatment to
3213         AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
3214         and AT_L3_CACHEGEOMETRY.
3215         * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
3216         (_dl_procinfo): Fix indentation when printing AT_HWCAP and
3217         AT_HWCAP2.  Add support for AT_L1I_CACHEGEOMETRY,
3218         AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
3219
3220 2018-12-19  Andreas Schwab  <schwab@suse.de>
3221
3222         * nscd/connections.c (check_use): Don't abort on invalid len.
3223
3224 2018-12-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3225
3226         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
3227         values in the 64bit value cases.
3228
3229 2018-12-18  Albert ARIBAUD <albert.aribaud@3adev.fr>
3230
3231         * include/time.h
3232         (__ctime64_r): Add.
3233         * time/ctime_r.c
3234         (__ctime64_r): Add.
3235         [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
3236
3237         * include/time.h
3238         (__ctime64): Add.
3239         * time/gmtime.c
3240         (__ctime64): Add.
3241         [__TIMESIZE != 64] (ctime): Turn into a wrapper.
3242
3243         * include/time.h
3244         (__gmtime64_r): Add.
3245         * time/gmtime.c
3246         (__gmtime64_r): Add.
3247         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3248
3249         * include/time.h
3250         (__gmtime64): Add.
3251         * time/gmtime.c
3252         (__gmtime64): Add.
3253         [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
3254
3255         * include/time.h
3256         (__localtime64_r): Add.
3257         * time/localtime.c
3258         (__localtime64_r): Add.
3259         [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
3260
3261 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3262
3263         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
3264         kernel_sigction definition.
3265
3266         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
3267
3268         * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
3269
3270         * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
3271         __syscall_rt_sigaction.
3272         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
3273         (kernel_sigaction): Use Linux generic defintion.
3274         (STUB): Define.
3275         (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
3276         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
3277         (__syscall_rt_sigaction): Remove implementation.
3278         (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
3279         hidden.
3280         * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
3281         * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
3282         INTERNAL_SYSCALL): Remove definitions.
3283         * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
3284         action and signal set size.
3285         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
3286         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
3287
3288 2018-12-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3289             James Clarke  <jrtc27@jrtc27.com>
3290
3291         [BZ #23967]
3292         * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
3293         Define if SA_RESTORER is defined.
3294         (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
3295         (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
3296         already defined.
3297         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
3298         kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
3299         definitions.
3300         (HAS_SA_RESTORER): Define.
3301         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3302         SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3303         (HAS_SA_RESTORER): Define.
3304         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3305         kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3306         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3307         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3308         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3309
3310 2018-12-18  Joseph Myers  <joseph@codesourcery.com>
3311
3312         * sysdeps/unix/sysv/linux/kernel-features.h
3313         (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3314         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3315         (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3316         * sysdeps/unix/sysv/linux/sh/kernel-features.h
3317         (__ASSUME_ST_INO_64_BIT): Likewise.
3318         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3319         <kernel-features.h>.
3320         (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3321         Remove conditional code.
3322         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3323         <kernel-features.h>.
3324         (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3325         Remove conditional code.
3326         * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3327         <kernel-features.h>.
3328         (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3329         Remove conditional code.
3330         * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3331         <kernel-features.h>.
3332         (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3333         [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3334
3335 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3336
3337         * sysdeps/s390/multiarch/ifunc-resolve.h
3338         (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3339         s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3340         s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3341         Delete macro definition.
3342         (s390_libc_ifunc_init): Rename to
3343         s390_libc_ifunc_expr_stfle_init.
3344         * sysdeps/s390/bzero: Use
3345         s390_libc_ifunc_expr_stfle_init instead of
3346         s390_libc_ifunc_init.
3347         * sysdeps/s390/memcmp.c: Likewise.
3348         * sysdeps/s390/memcpy.c: Likewise.
3349         * sysdeps/s390/mempcpy.c: Likewise.
3350         * sysdeps/s390/memset.c: Likewise.
3351
3352 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3353
3354         * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3355         Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3356
3357 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3358
3359         * sysdeps/s390/multiarch/Makefile
3360         (sysdep_routines): Remove wmemcmp variants.
3361         * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3362         * sysdeps/s390/multiarch/ifunc-impl-list.c
3363         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3364         * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3365         * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3366         * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3367         * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3368         * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3369         * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3370         * sysdeps/s390/ifunc-wmemcmp.h: New file.
3371
3372 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3373
3374         * sysdeps/s390/multiarch/Makefile
3375         (sysdep_routines): Remove wmemset variants.
3376         * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3377         * sysdeps/s390/multiarch/ifunc-impl-list.c
3378         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3379         * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3380         * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3381         * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3382         * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3383         * sysdeps/s390/multiarch/wmemset.c: Move to ...
3384         * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3385         * sysdeps/s390/ifunc-wmemset.h: New file.
3386
3387 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3388
3389         * sysdeps/s390/multiarch/Makefile
3390         (sysdep_routines): Remove wmemchr variants.
3391         * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3392         * sysdeps/s390/multiarch/ifunc-impl-list.c
3393         (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3394         * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3395         * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3396         * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3397         * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3398         * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3399         * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3400         * sysdeps/s390/ifunc-wmemchr.h: New file.
3401
3402 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3403
3404         * sysdeps/s390/multiarch/Makefile
3405         (sysdep_routines): Remove wcscspn variants.
3406         * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3407         * sysdeps/s390/multiarch/ifunc-impl-list.c
3408         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3409         * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3410         * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3411         * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3412         * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3413         * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3414         * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3415         * sysdeps/s390/ifunc-wcscspn.h: New file.
3416
3417 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3418
3419         * sysdeps/s390/multiarch/Makefile
3420         (sysdep_routines): Remove wcspbrk variants.
3421         * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3422         * sysdeps/s390/multiarch/ifunc-impl-list.c
3423         (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3424         * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3425         * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3426         * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3427         * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3428         * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3429         * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3430         * sysdeps/s390/ifunc-wcspbrk.h: New file.
3431
3432 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3433
3434         * sysdeps/s390/multiarch/Makefile
3435         (sysdep_routines): Remove wcsspn variants.
3436         * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3437         * sysdeps/s390/multiarch/ifunc-impl-list.c
3438         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3439         * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3440         * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3441         * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3442         * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3443         * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3444         * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3445         * sysdeps/s390/ifunc-wcsspn.h: New file.
3446
3447 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3448
3449         * sysdeps/s390/multiarch/Makefile
3450         (sysdep_routines): Remove wcsrchr variants.
3451         * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3452         * sysdeps/s390/multiarch/ifunc-impl-list.c
3453         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3454         * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3455         * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3456         * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3457         * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3458         * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3459         * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3460         * sysdeps/s390/ifunc-wcsrchr.h: New file.
3461
3462 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3463
3464         * sysdeps/s390/multiarch/Makefile
3465         (sysdep_routines): Remove wcschrnul variants.
3466         * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3467         * sysdeps/s390/multiarch/ifunc-impl-list.c
3468         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3469         * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3470         * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3471         * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3472         * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3473         * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3474         * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3475         * sysdeps/s390/ifunc-wcschrnul.h: New file.
3476
3477 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3478
3479         * sysdeps/s390/multiarch/Makefile
3480         (sysdep_routines): Remove wcschr variants.
3481         * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3482         * sysdeps/s390/multiarch/ifunc-impl-list.c
3483         (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3484         * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3485         * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3486         * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3487         * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3488         * sysdeps/s390/multiarch/wcschr.c: Move to ...
3489         * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3490         * sysdeps/s390/ifunc-wcschr.h: New file.
3491
3492 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3493
3494         * sysdeps/s390/multiarch/Makefile
3495         (sysdep_routines): Remove wcsncmp variants.
3496         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3497         * sysdeps/s390/multiarch/ifunc-impl-list.c
3498         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3499         * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3500         * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3501         * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3502         * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3503         * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3504         * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3505         * sysdeps/s390/ifunc-wcsncmp.h: New file.
3506
3507 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3508
3509         * sysdeps/s390/multiarch/Makefile
3510         (sysdep_routines): Remove wcscmp variants.
3511         * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3512         * sysdeps/s390/multiarch/ifunc-impl-list.c
3513         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3514         * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3515         * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3516         * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3517         * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3518         * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3519         * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3520         * sysdeps/s390/ifunc-wcscmp.h: New file.
3521
3522 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3523
3524         * sysdeps/s390/multiarch/Makefile
3525         (sysdep_routines): Remove wcsncat variants.
3526         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3527         * sysdeps/s390/multiarch/ifunc-impl-list.c
3528         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3529         * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3530         * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3531         * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3532         * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3533         * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3534         * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3535         * sysdeps/s390/ifunc-wcsncat.h: New file.
3536
3537 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3538
3539         * sysdeps/s390/multiarch/Makefile
3540         (sysdep_routines): Remove wcscat variants.
3541         * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3542         * sysdeps/s390/multiarch/ifunc-impl-list.c
3543         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3544         * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3545         * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3546         * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3547         * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3548         * sysdeps/s390/multiarch/wcscat.c: Move to ...
3549         * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3550         * sysdeps/s390/ifunc-wcscat.h: New file.
3551
3552 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3553
3554         * sysdeps/s390/multiarch/Makefile
3555         (sysdep_routines): Remove wcpncpy variants.
3556         * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3557         * sysdeps/s390/multiarch/ifunc-impl-list.c
3558         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3559         * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3560         * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3561         * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3562         * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3563         * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3564         * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3565         * sysdeps/s390/ifunc-wcpncpy.h: New file.
3566
3567 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3568
3569         * sysdeps/s390/multiarch/Makefile
3570         (sysdep_routines): Remove wcsncpy variants.
3571         * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3572         * sysdeps/s390/multiarch/ifunc-impl-list.c
3573         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3574         * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3575         * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3576         * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3577         * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3578         * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3579         * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3580         * sysdeps/s390/ifunc-wcsncpy.h: New file.
3581
3582 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3583
3584         * sysdeps/s390/multiarch/Makefile
3585         (sysdep_routines): Remove wcpcpy variants.
3586         * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3587         * sysdeps/s390/multiarch/ifunc-impl-list.c
3588         (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3589         * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3590         * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3591         * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3592         * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3593         * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3594         * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3595         * sysdeps/s390/ifunc-wcpcpy.h: New file.
3596
3597 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3598
3599         * sysdeps/s390/multiarch/Makefile
3600         (sysdep_routines): Remove wcscpy variants.
3601         * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3602         * sysdeps/s390/multiarch/ifunc-impl-list.c
3603         (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3604         * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3605         * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3606         * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3607         * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3608         * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3609         * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3610         * sysdeps/s390/ifunc-wcscpy.h: New file.
3611
3612 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3613
3614         * sysdeps/s390/multiarch/Makefile
3615         (sysdep_routines): Remove wcsnlen variants.
3616         * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3617         * sysdeps/s390/multiarch/ifunc-impl-list.c
3618         (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3619         * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3620         * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3621         * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3622         * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3623         * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3624         * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3625         * sysdeps/s390/ifunc-wcsnlen.h: New file.
3626
3627 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3628
3629         * sysdeps/s390/multiarch/Makefile
3630         (sysdep_routines): Remove wcslen variants.
3631         * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3632         * sysdeps/s390/multiarch/ifunc-impl-list.c
3633         (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3634         * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3635         * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3636         * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3637         * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3638         * sysdeps/s390/multiarch/wcslen.c: Move to ...
3639         * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3640         * sysdeps/s390/ifunc-wcslen.h: New file.
3641
3642 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3643
3644         * sysdeps/s390/multiarch/Makefile
3645         (sysdep_routines): Remove memrchr variants.
3646         * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3647         * sysdeps/s390/multiarch/ifunc-impl-list.c
3648         (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3649         * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3650         * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3651         * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3652         * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3653         * sysdeps/s390/multiarch/memrchr.c: Move to ...
3654         * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3655         * sysdeps/s390/ifunc-memrchr.h: New file.
3656
3657 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3658
3659         * sysdeps/s390/multiarch/Makefile
3660         (sysdep_routines): Remove memccpy variants.
3661         * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3662         * sysdeps/s390/multiarch/ifunc-impl-list.c
3663         (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3664         * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3665         * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3666         * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3667         * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3668         * sysdeps/s390/multiarch/memccpy.c: Move to ...
3669         * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3670         * sysdeps/s390/ifunc-memccpy.h: New file.
3671
3672 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3673
3674         * sysdeps/s390/multiarch/Makefile
3675         (sysdep_routines): Remove rawmemchr variants.
3676         * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3677         * sysdeps/s390/multiarch/ifunc-impl-list.c
3678         (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3679         * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3680         * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3681         * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3682         * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3683         * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3684         * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3685         * sysdeps/s390/ifunc-rawmemchr.h: New file.
3686
3687 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3688
3689         * sysdeps/s390/multiarch/Makefile
3690         (sysdep_routines): Remove memchr variants.
3691         * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3692         * sysdeps/s390/multiarch/ifunc-impl-list.c
3693         (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3694         * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3695         * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3696         * sysdeps/s390/multiarch/memchr.c: Move to ...
3697         * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3698         * sysdeps/s390/ifunc-memchr.h: New file.
3699         * sysdeps/s390/s390-64/memchr.S: Move to ...
3700         * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3701         for 31/64bit and ifunc handling.
3702         * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3703         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3704         * sysdeps/s390/s390-32/memchr.S: Likewise.
3705
3706 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3707
3708         * sysdeps/s390/multiarch/Makefile
3709         (sysdep_routines): Remove strcspn variants.
3710         * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3711         * sysdeps/s390/multiarch/ifunc-impl-list.c
3712         (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3713         * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3714         * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3715         * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3716         * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3717         * sysdeps/s390/multiarch/strcspn.c: Move to ...
3718         * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3719         * sysdeps/s390/ifunc-strcspn.h: New file.
3720
3721 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3722
3723         * sysdeps/s390/multiarch/Makefile
3724         (sysdep_routines): Remove strpbrk variants.
3725         * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3726         * sysdeps/s390/multiarch/ifunc-impl-list.c
3727         (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3728         * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3729         * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3730         * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3731         * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3732         * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3733         * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3734         * sysdeps/s390/ifunc-strpbrk.h: New file.
3735
3736 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3737
3738         * sysdeps/s390/multiarch/Makefile
3739         (sysdep_routines): Remove strspn variants.
3740         * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3741         * sysdeps/s390/multiarch/ifunc-impl-list.c
3742         (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3743         * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3744         * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3745         * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3746         * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3747         * sysdeps/s390/multiarch/strspn.c: Move to ...
3748         * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3749         * sysdeps/s390/ifunc-strspn.h: New file.
3750
3751 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3752
3753         * sysdeps/s390/multiarch/Makefile
3754         (sysdep_routines): Remove strrchr variants.
3755         * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3756         * sysdeps/s390/multiarch/ifunc-impl-list.c
3757         (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3758         * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3759         * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3760         * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3761         * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3762         * sysdeps/s390/multiarch/strrchr.c: Move to ...
3763         * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3764         * sysdeps/s390/ifunc-strrchr.h: New file.
3765
3766 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3767
3768         * sysdeps/s390/multiarch/Makefile
3769         (sysdep_routines): Remove strchrnul variants.
3770         * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3771         * sysdeps/s390/multiarch/ifunc-impl-list.c
3772         (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3773         * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3774         * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3775         * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3776         * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3777         * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3778         * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3779         * sysdeps/s390/ifunc-strchrnul.h: New file.
3780
3781 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3782
3783         * sysdeps/s390/multiarch/Makefile
3784         (sysdep_routines): Remove strchr variants.
3785         * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3786         * sysdeps/s390/multiarch/ifunc-impl-list.c
3787         (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3788         * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3789         * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3790         * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3791         * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3792         * sysdeps/s390/multiarch/strchr.c: Move to ...
3793         * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3794         * sysdeps/s390/ifunc-strchr.h: New file.
3795
3796 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3797
3798         * sysdeps/s390/multiarch/Makefile
3799         (sysdep_routines): Remove strncmp variants.
3800         * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3801         * sysdeps/s390/multiarch/ifunc-impl-list.c
3802         (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3803         * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3804         * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3805         * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3806         * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3807         * sysdeps/s390/multiarch/strncmp.c: Move to ...
3808         * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3809         * sysdeps/s390/ifunc-strncmp.h: New file.
3810
3811 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3812
3813         * sysdeps/s390/multiarch/Makefile
3814         (sysdep_routines): Remove strcmp variants.
3815         * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3816         * sysdeps/s390/multiarch/ifunc-impl-list.c
3817         (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3818         * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3819         * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3820         * sysdeps/s390/multiarch/strcmp.c: Move to ...
3821         * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3822         * sysdeps/s390/ifunc-strcmp.h: New file.
3823         * sysdeps/s390/s390-64/strcmp.S: Move to ...
3824         * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3825         for 31/64bit and ifunc handling.
3826         * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3827         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3828         * sysdeps/s390/s390-32/strcmp.S: Likewise.
3829
3830 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3831
3832         * sysdeps/s390/multiarch/Makefile
3833         (sysdep_routines): Remove strncat variants.
3834         * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3835         * sysdeps/s390/multiarch/ifunc-impl-list.c
3836         (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3837         * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3838         * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3839         * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3840         * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3841         * sysdeps/s390/multiarch/strncat.c: Move to ...
3842         * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3843         * sysdeps/s390/ifunc-strncat.h: New file.
3844
3845 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3846
3847         * sysdeps/s390/multiarch/Makefile
3848         (sysdep_routines): Remove strcat variants.
3849         * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3850         * sysdeps/s390/multiarch/ifunc-impl-list.c
3851         (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3852         * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3853         * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3854         * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3855         * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3856         * sysdeps/s390/multiarch/strcat.c: Move to ...
3857         * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3858         * sysdeps/s390/ifunc-strcat.h: New file.
3859
3860 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3861
3862         * sysdeps/s390/multiarch/Makefile
3863         (sysdep_routines): Remove stpncpy variants.
3864         * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3865         * sysdeps/s390/multiarch/ifunc-impl-list.c
3866         (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3867         * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3868         * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3869         * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3870         * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3871         * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3872         * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3873         * sysdeps/s390/ifunc-stpncpy.h: New file.
3874
3875 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3876
3877         * sysdeps/s390/multiarch/Makefile
3878         (sysdep_routines): Remove strncpy variants.
3879         * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3880         * sysdeps/s390/multiarch/ifunc-impl-list.c
3881         (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3882         * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3883         * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3884         * sysdeps/s390/multiarch/strncpy.c: Move to ...
3885         * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3886         * sysdeps/s390/ifunc-strncpy.h: New file.
3887         * sysdeps/s390/s390-64/strncpy.S: Move to ...
3888         * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3889         and adjust ifunc handling.
3890         * sysdeps/s390/s390-32/strncpy.S: Move to ...
3891         * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3892         and adjust ifunc handling.
3893         * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3894         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3895
3896 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3897
3898         * sysdeps/s390/multiarch/Makefile
3899         (sysdep_routines): Remove stpcpy variants.
3900         * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3901         * sysdeps/s390/multiarch/ifunc-impl-list.c
3902         (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3903         * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3904         * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3905         * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3906         * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3907         * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3908         * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3909         * sysdeps/s390/ifunc-stpcpy.h: New file.
3910
3911 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3912
3913         * sysdeps/s390/multiarch/Makefile
3914         (sysdep_routines): Remove strcpy variants.
3915         * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3916         * sysdeps/s390/multiarch/ifunc-impl-list.c
3917         (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3918         * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3919         * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3920         * sysdeps/s390/multiarch/strcpy.c: Move to ...
3921         * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3922         * sysdeps/s390/ifunc-strcpy.h: New file.
3923         * sysdeps/s390/s390-64/strcpy.S: Move to ...
3924         * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3925         for 31/64bit and ifunc handling.
3926         * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3927         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3928         * sysdeps/s390/s390-32/strcpy.S: Likewise.
3929
3930 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3931
3932         * sysdeps/s390/multiarch/Makefile
3933         (sysdep_routines): Remove strnlen variants.
3934         * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3935         * sysdeps/s390/multiarch/ifunc-impl-list.c
3936         (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3937         * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3938         * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3939         * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3940         * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3941         * sysdeps/s390/multiarch/strnlen.c: Move to ...
3942         * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3943         * sysdeps/s390/ifunc-strnlen.h: New file.
3944
3945 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3946
3947         * sysdeps/s390/multiarch/Makefile
3948         (sysdep_routines): Remove strlen variants.
3949         * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3950         * sysdeps/s390/multiarch/ifunc-impl-list.c
3951         (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3952         * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3953         * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3954         * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3955         * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3956         * sysdeps/s390/multiarch/strlen.c: Move to ...
3957         * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3958         * sysdeps/s390/ifunc-strlen.h: New file.
3959
3960 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3961
3962         * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3963         * sysdeps/s390/multiarch/ifunc-impl-list.c
3964         (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3965         * sysdeps/s390/ifunc-memmem.h: New file.
3966         * sysdeps/s390/memmem.c: Likewise.
3967         * sysdeps/s390/memmem-c.c: Likewise.
3968         * sysdeps/s390/memmem-vx.c: Likewise.
3969
3970 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3971
3972         * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3973         * sysdeps/s390/multiarch/ifunc-impl-list.c
3974         (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3975         * sysdeps/s390/ifunc-strstr.h: New file.
3976         * sysdeps/s390/strstr.c: Likewise.
3977         * sysdeps/s390/strstr-c.c: Likewise.
3978         * sysdeps/s390/strstr-vx.c: Likewise.
3979
3980 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3981
3982         * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3983         * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3984         HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3985         HAVE_MEMMOVE_C, MEMMOVE_C,  HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3986         New defines.
3987         * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3988         * sysdeps/s390/memmove-c.c: New file.
3989         * sysdeps/s390/memmove.c: Likewise.
3990         * sysdeps/s390/multiarch/ifunc-impl-list.c
3991         (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3992
3993 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
3994
3995         * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3996         * sysdeps/s390/configure.ac: Add check for z13 support.
3997         * sysdeps/s390/configure: Regenerated.
3998
3999 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4000
4001         * sysdeps/s390/memcopy.h: New file.
4002
4003 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4004
4005         * sysdeps/s390/s390-32/bcopy.S: Remove.
4006         * sysdeps/s390/s390-64/bcopy.S: Likewise.
4007
4008 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4009
4010         * sysdeps/s390/ifunc-memcpy.h: New File.
4011         * sysdeps/s390/memcpy.S: Move to ...
4012         * sysdeps/s390/memcpy-z900.S ... here.
4013         Move implementations from memcpy-s390x.s to here.
4014         * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
4015         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4016         Remove memcpy/mempcpy variants.
4017         * sysdeps/s390/Makefile (sysdep_routines):
4018         Add memcpy/mempcpy variants.
4019         * sysdeps/s390/multiarch/ifunc-impl-list.c
4020         (__libc_ifunc_impl_list): Adjust ifunc variants for
4021         memcpy and mempcpy.
4022         * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
4023         to ...
4024         * sysdeps/s390/memcpy.c: ... here.
4025         Adjust ifunc variants for memcpy.
4026         * sysdeps/s390/multiarch/mempcpy.c: Move to ...
4027         * sysdeps/s390/mempcpy.c: ... here.
4028         Adjust ifunc variants for mempcpy.
4029         * sysdeps/s390/mempcpy.S: Delete file.
4030
4031 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4032
4033         * sysdeps/s390/s390-64/memcpy.S: Move to ...
4034         * sysdeps/s390/memcpy.S: ... here.
4035         Adjust to be usable for 31/64bit.
4036         * sysdeps/s390/s390-32/memcpy.S: Delete File.
4037         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
4038         * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
4039         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4040         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
4041         * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
4042         Adjust to be usable for 31/64bit.
4043         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
4044         * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
4045         * sysdeps/s390/multiarch/memcpy.c: ... here.
4046         * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
4047
4048 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4049
4050         * sysdeps/s390/ifunc-memcmp.h: New File.
4051         * sysdeps/s390/memcmp.S: Move to ...
4052         * sysdeps/s390/memcmp-z900.S ... here.
4053         Move implementations from memcmp-s390x.s to here.
4054         * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
4055         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4056         Remove memcmp variants.
4057         * sysdeps/s390/Makefile (sysdep_routines):
4058         Add memcmp variants.
4059         * sysdeps/s390/multiarch/ifunc-impl-list.c
4060         (__libc_ifunc_impl_list): Adjust ifunc variants for
4061         memcmp.
4062         * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
4063         to ...
4064         * sysdeps/s390/memcmp.c: ... here.
4065         Adjust ifunc variants for memcmp.
4066
4067 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4068
4069         * sysdeps/s390/s390-64/memcmp.S: Move to ...
4070         * sysdeps/s390/memcmp.S: ... here.
4071         Adjust to be usable for 31/64bit.
4072         * sysdeps/s390/s390-32/memcmp.S: Delete File.
4073         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
4074         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4075         Remove memcmp.
4076         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4077         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
4078         * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
4079         Adjust to be usable for 31/64bit.
4080         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
4081         * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
4082         * sysdeps/s390/multiarch/memcmp.c: ... here.
4083         * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
4084
4085 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4086
4087         * sysdeps/s390/s390-32/bzero.S: Delete file.
4088         * sysdeps/s390/s390-64/bzero.S: Likewise.
4089         * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
4090         * sysdeps/s390/bzero.c: New file.
4091         * sysdeps/s390/memset-z900.S: Add bzero entry points.
4092         * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
4093         * sysdeps/s390/multiarch/ifunc-impl-list.c
4094         (__libc_ifunc_impl_list): Add bzero ifunc variants.
4095
4096 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4097
4098         * sysdeps/s390/ifunc-memset.h: New File.
4099         * sysdeps/s390/memset.S: Move to ...
4100         * sysdeps/s390/memset-z900.S ... here.
4101         Move implementations from memset-s390x.s to here.
4102         * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
4103         * sysdeps/s390/multiarch/Makefile (sysdep_routines):
4104         Remove memset variants.
4105         * sysdeps/s390/Makefile (sysdep_routines):
4106         Add memset variants.
4107         * sysdeps/s390/multiarch/ifunc-impl-list.c
4108         (__libc_ifunc_impl_list): Adjust ifunc variants for
4109         memset.
4110         * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
4111         to ...
4112         * sysdeps/s390/memset.c: ... here.
4113         Adjust ifunc variants for memset.
4114
4115 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4116
4117         * sysdeps/s390/s390-64/memset.S: Move to ...
4118         * sysdeps/s390/memset.S: ... here.
4119         Adjust to be usable for 31/64bit.
4120         * sysdeps/s390/s390-32/memset.S: Delete File.
4121         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
4122         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
4123         Remove memset.
4124         * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
4125         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
4126         * sysdeps/s390/multiarch/memset-s390x.S: ... here.
4127         Adjust to be usable for 31/64bit.
4128         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
4129         * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
4130         * sysdeps/s390/multiarch/memset.c: ... here.
4131         * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
4132
4133 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4134
4135         * sysdeps/s390/multiarch/ifunc-resolve.h
4136         (s390_libc_ifunc_init, s390_libc_ifunc,
4137         s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
4138
4139 2018-12-18  Stefan Liebler  <stli@linux.ibm.com>
4140
4141         * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
4142         * sysdeps/s390/configure.ac: Add check for z10 support.
4143         * sysdeps/s390/configure: Regenerated.
4144
4145 2018-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4146
4147         * sysdeps/i386/atomic-machine.h: Merged with ...
4148         * sysdeps/x86_64/atomic-machine.h: To ...
4149         * sysdeps/x86/atomic-machine.h: This.  New file.
4150
4151 2018-12-18  Florian Weimer  <fweimer@redhat.com>
4152
4153         Rewrite locale/gen-translit.pl in Python.
4154         * locale/Makefile (generated): Add C-translit.h.
4155         (before-compile): Add $(objpfx)C-translit.h.
4156         (C-translit.h): Move to $(objpfx).  Create target directory.
4157         Build using Python script.
4158         * locale/gen-translit.py: New file.
4159         * locale/gen-translit.pl: Remove file.
4160         * locale/C-translit.h.in: Change comment character to '#' for
4161         easier parsing without a C preprocessor.
4162         * locale/C-translit.h: Remove generated file.
4163         * manual/install.texi (Tools for Compilation): Do not mention
4164         C-translit.h.
4165         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4166         Remove locale/C-translit.h.
4167         * scripts/update-copyrights: Likewise.
4168         * INSTALL: Regenerate.
4169
4170 2018-12-18  Florian Weimer  <fweimer@redhat.com>
4171
4172         [BZ #23995]
4173         * localedata/locales/bi_VU: Remove executable bit from file.
4174
4175 2018-12-17  Albert ARIBAUD <albert.aribaud@3adev.fr>
4176
4177         * include/time.h
4178         (__localtime64): Add.
4179         * manual/maint.texi: Document Y2038 symbol handling.
4180         * time/localtime.c
4181         (__localtime64): Add.
4182         [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
4183
4184 2018-12-17  Joseph Myers  <joseph@codesourcery.com>
4185
4186         * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
4187         Do not clobber r12.
4188
4189         * scripts/glibcextract.py (compare_macro_consts): Take parameters
4190         to allow extra macros from first or second sources.
4191         * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
4192         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
4193         (tests-special): Add $(objpfx)tst-mman-consts.out.
4194         ($(objpfx)tst-mman-consts.out): New makefile target.
4195
4196 2018-12-17  Mao Han  <han_mao@c-sky.com>
4197
4198         * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
4199         * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
4200         without stat64 system call support.
4201         * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
4202         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
4203         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
4204         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
4205         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
4206         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
4207         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
4208         * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
4209         * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
4210         * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
4211         * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
4212
4213 2018-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4214
4215         regex: fix storage-exhaustion error
4216         [BZ #18040]
4217         * posix/regexec.c (get_subexp):
4218         Do not continue if storage is exhausted.
4219
4220 2018-12-15  Assaf Gordon  <assafgordon@gmail.com>
4221
4222         regex: fix heap-use-after-free error
4223         [BZ #18040]
4224         Problem reported by Saito Takaaki <tails.saito@gmail.com> in
4225         https://debbugs.gnu.org/32592
4226         Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
4227         call extend_buffers which reallocates the re_string_t internal buffer.
4228         Local variable 'buf' was not updated in such case, resulting in
4229         use-after-free.
4230         * posix/regexec.c (get_subexp): Update 'buf' after call to
4231         get_subexp_sub.
4232
4233 2018-12-15  Florian Weimer  <fweimer@redhat.com>
4234
4235         * support/blob_repeat.c (check_mul_overflow_size_t): New function.
4236         (minimum_stride_size): Use it.
4237         (support_blob_repeat_allocate): Likewise.
4238
4239 2018-12-14  Joseph Myers  <joseph@codesourcery.com>
4240
4241         * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
4242         definition.
4243         (acosh): Likewise.
4244         (atanh): Likewise.
4245
4246 2018-12-14  Florian Weimer  <fweimer@redhat.com>
4247
4248         * manual/process.texi (Process Creation Concepts): Remove
4249         documentation of process (ID) lifetime.  List more process
4250         creation functions.  Reference Process Identification section.
4251         (Process Identification): Add information about process ID
4252         lifetime.  Describe Linux thread/task IDs.
4253         * manual/signal.texi (Signaling Another Process): Mention that the
4254         signal is always sent to the process.
4255
4256 2018-12-14  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4257
4258         * misc/Makefile (tests): Remove tst-efgcvt.  Add tst-dbl-efgcvt
4259         and tst-ldbl-efgcvt.
4260         * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
4261         * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
4262         (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
4263         (fcvt_tests, output_error, output_r_error, do_test): Use the
4264         macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
4265         select the type of floating-point variables and arguments; to
4266         produce extra tests for double and conversion specifiers for
4267         printf; and to set the names of called functions.
4268         * misc/tst-dbl-efgcvt.c: New file that defines the macros used
4269         in tst-efgcvt-template.c.
4270         * misc/tst-ldbl-efgcvt.c: Likewise.
4271
4272 2018-12-14  Stefan Liebler  <stli@linux.ibm.com>
4273
4274         * nss/Makefile (tst-nss-test3.out): New rule.
4275
4276 2018-12-13  Joseph Myers  <joseph@codesourcery.com>
4277
4278         * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
4279         clobber sp.
4280
4281 2018-12-13  fanjinke  <fanjinke@hygon.cn>
4282
4283         * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
4284         "HygonGenuine".
4285
4286 2018-12-13  Andreas Schwab  <schwab@suse.de>
4287
4288         [BZ #23861]
4289         * nptl/pthread_rwlock_common.c: Reindent.  Fix typos.
4290         (__pthread_rwlock_rdlock_full): Update expected value for
4291         __readers while waiting on PTHREAD_RWLOCK_RWAITING.
4292         * nptl/tst-rwlock-pwn.c: New file.
4293         * nptl/Makefile (tests): Add tst-rwlock-pwn.
4294
4295 2018-12-12  Joseph Myers  <joseph@codesourcery.com>
4296
4297         * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
4298         definition.
4299
4300 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4301
4302         * benchtests/scripts/compare_bench.py (do_compare): write to
4303         stderr in casestat is not present.
4304         * benchtests/scripts/compare_bench.py (plot_graphs): write to
4305         stderr in case timings field is not present. Also string showing
4306         the output filename goes into the stderr.
4307
4308 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4309
4310         * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4311         and ZeroDivisorError exceptions.
4312         * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4313         argument to loop through user provided statistics.
4314         * benchtests/scripts/compare_bench.py (main): Include the --stats
4315         argument.
4316
4317 2018-12-12  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
4318
4319         * benchtests/scripts/compare_bench.py (compare_runs): Continue
4320         instead of return.
4321
4322 2018-12-12  Florian Weimer  <fweimer@redhat.com>
4323
4324         * sysdeps/posix/timespec_get.c: Add missing “any later version”
4325         clause to copyright header.
4326
4327 2018-12-12  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
4328
4329         [BZ #23614]
4330         * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4331         registers saved in the stack frame.
4332         * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4333         * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4334
4335 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4336
4337         * include/bits/monetary-ldbl.h: New file.
4338         * include/bits/printf-ldbl.h: Likewise.
4339         * include/bits/stdio-ldbl.h: Likewise.
4340         * include/bits/stdlib-ldbl.h: Likewise.
4341         * include/bits/syslog-ldbl.h: Likewise.
4342         * include/bits/wchar-ldbl.h: Likewise.
4343
4344 2018-12-11  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4345
4346         * libio/libio.h: Remove redirection for _IO_vfprintf.
4347
4348 2018-12-11  Andreas Schwab  <schwab@suse.de>
4349
4350         * Makerules: Remove all references to abilist-pattern.
4351         (update-all-abi): Simplify find expression.
4352
4353 2018-12-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4354
4355         [BZ #23961]
4356         * math/auto-libm-test-in: Add new test case.
4357         * math/auto-libm-test-out-pow: Regenerated.
4358         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4359
4360 2018-12-10  DJ Delorie  <dj@redhat.com>
4361
4362         [BZ #23948]
4363         * support/test-container.c: Move postclean step to before we
4364         change namespaces.
4365
4366 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
4367
4368         * scripts/gen-as-const.py (main): Handle --python option.
4369         * scripts/gen-py-const.awk: Remove.
4370         * Makerules (py-const-script): Use gen-as-const.py.
4371         ($(py-const)): Likewise.
4372         * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4373         with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4374         (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4375         together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4376         ~PTHREAD_MUTEX_NO_ELISION_NP.
4377         * manual/README.pretty-printers: Update reference to
4378         gen-py-const.awk.
4379
4380         * scripts/glibcextract.py: New file.
4381         * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4382         or tempfile.  Import glibcexctract.
4383         (compute_c_consts): Remove.  Moved to glibcextract.py.
4384         (gen_test): Update reference to compute_c_consts.
4385         (main): Likewise.
4386         * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4387         * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4388         * sysdeps/unix/sysv/linux/Makefile
4389         ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4390         Redirect stderr as well as stdout.
4391
4392 2018-12-10  Rafael Ávila de Espíndola  <rafael@espindo.la>
4393
4394         [BZ #19767]
4395         * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4396         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4397         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4398         ALWAYS_USE_VSYSCALL.
4399         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4400         ALWAYS_USE_VSYSCALL.
4401         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4402         ALWAYS_USE_VSYSCALL.
4403
4404 2018-12-10  Florian Weimer  <fweimer@redhat.com>
4405
4406         [BZ #23972]
4407         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4408         offset instead of count for clarity.  Fix typo in comment.
4409         (__old_getdents64): Keep track of previous offset.  Use it to call
4410         handle_overflow.
4411         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4412         that d_off is never zero.
4413
4414 2018-12-10  Andreas Schwab  <schwab@suse.de>
4415
4416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4417         sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4419         sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4420         * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4421
4422 2018-12-10  Joseph Myers  <joseph@codesourcery.com>
4423
4424         * timezone/private.h: Update from tzcode 2018g.
4425         * timezone/tzfile.h: Likewise.
4426         * timezone/tzselect.ksh: Likewise.
4427         * timezone/zdump.c: Likewise.
4428         * timezone/zic.c: Likewise.
4429
4430 2018-12-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
4431
4432         [BZ #23490]
4433         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4434         (do_test): Adjust buffer size and fix format.
4435
4436 2018-12-07  DJ Delorie  <dj@redhat.com>
4437
4438         [BZ #23907]
4439         * malloc/tst-tcfree3.c: New.
4440         * malloc/Makefile: Add it.
4441
4442 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
4443
4444         * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4445
4446 2018-12-07  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4447
4448         * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4449         used as a mask for the mode argument of __vfscanf_internal and
4450         __vfwscanf_internal.
4451         * stdio-common/vfscanf-internal.c
4452         [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4453         (__strtof128_internal): Define to __wcstof128_internal.
4454         [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4455         __strtof128_internal or __wcstof128_internal when the format of
4456         long double is the same as _Float128.
4457
4458 2018-12-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4459
4460         * include/unistd.h (__confstr): Add prototype and hidden prototype.
4461         * posix/confstr.c (confstr): Rename to __confstr.
4462         (__confstr): Add hidden def.
4463         (confstr): Add weak alias for __confstr.
4464         * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4465         confstr.
4466
4467 2018-12-07  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         * NEWS: Mention getcpu.
4470         * include/sched.h (__getcpu): New libc_hidden_proto.
4471         * manual/resource.texi: Document getcpu.
4472         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4473         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4474         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4475         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4476         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4477         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4478         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4479         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4480         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4481         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4482         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4483         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4484         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4485         Likewise.
4486         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4487         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4488         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4490         Likewise.
4491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4492         Likewise.
4493         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4494         Likewise.
4495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4496         Likewise.
4497         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4498         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4499         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4500         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4501         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4502         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4503         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4504         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4505         * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4506         * sysdeps/unix/sysv/linux/getcpu.c: New file.
4507         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4508         Also check getcpu.
4509
4510 2018-12-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4511
4512         * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4513         functions.
4514         (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4515
4516 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4517
4518         [BZ #17405]
4519         * posix/Makefile (routines): Add spawn_faction_addfchdir.
4520         * posix/Versions (GLIBC_2.29): Export
4521         posix_spawn_file_actions_addfchdir_np.
4522         * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4523         * posix/spawn_faction_destroy.c
4524         (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4525         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4526         and the field action.fchdir_action.
4527         * posix/tst-spawn-chdir.c (add_chdir): New function.
4528         (do_test): Add do_fchdir loop.  Call add_chdir.
4529         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4530         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4531         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4532         posix_spawn_file_actions_addfchdir_np.
4533         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4534         Likewise.
4535         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4536         Likewise.
4537         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4538         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4539         Likewise.
4540         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4541         Likewise.
4542         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4543         Likewise.
4544         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4545         Likewise.
4546         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4547         Likewise.
4548         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4549         Likewise.
4550         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4551         (GLIBC_2.29): Likewise.
4552         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4553         (GLIBC_2.29): Likewise.
4554         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4555         (GLIBC_2.29): Likewise.
4556         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4557         (GLIBC_2.29): Likewise.
4558         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4559         Likewise.
4560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4561         (GLIBC_2.29): Likewise.
4562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4563         (GLIBC_2.29): Likewise.
4564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4565         (GLIBC_2.29): Likewise.
4566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4567         (GLIBC_2.29): Likewise.
4568         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4569         Likewise.
4570         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4571         Likewise.
4572         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4573         Likewise.
4574         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4575         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4576         Likewise.
4577         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4578         Likewise.
4579         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4580         Likewise.
4581         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4582         Likewise.
4583
4584 2018-12-06  Joseph Myers  <joseph@codesourcery.com>
4585
4586         * manual/texinfo.tex: Update to version 2018-09-21.20 with
4587         trailing whitespace removed.
4588         * scripts/config.guess: Update to version 2018-11-28.
4589         * scripts/config.sub: Update to version 2018-11-28.
4590         * scripts/install-sh: Update to version 2018-03-11.20.
4591         * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4592         * scripts/move-if-change: Update to version 2018-03-07 03:47.
4593
4594 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4595
4596         [BZ #23927]
4597         CVE-2018-19591
4598         * inet/tst-if_index-long.c: New file.
4599         * inet/Makefile (tests): Add tst-if_index-long.
4600
4601 2018-12-07  Florian Weimer  <fweimer@redhat.com>
4602
4603         * support/check.h (support_record_failure_is_failed): Declare.
4604         * support/descriptors.h: New file.
4605         * support/support_descriptors.c: Likewise.
4606         * support/tst-support_descriptors.c: Likewise.
4607         * support/support_record_failure.c
4608         (support_record_failure_is_failed): New function.
4609         * support/Makefile (libsupport-routines): Add support_descriptors.
4610         (tests): Add tst-support_descriptors.
4611
4612 2018-12-05  Zack Weinberg  <zackw@panix.com>
4613             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4614
4615         * stdio-common/vfprintf-internal.c
4616         (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4617         * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4618         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4619         and __no_long_double.
4620         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4621         * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4622         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4623         libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4624         and __nldbl_*syslog* functions.
4625         (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4626         (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4627         (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4628         (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4629         (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4630         (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4631         (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4632         (__nldbl_vwprintf, __nldbl_wprintf):
4633         Directly call the appropriate __v*printf_internal routine, passing
4634         PRINTF_LDBL_IS_DBL.  Do not mess with __no_long_double. Normalize
4635         variable names.
4636         (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4637         (__nldbl___printf_chk, __nldbl___snprintf_chk)
4638         (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4639         (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4640         (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4641         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4642         (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4643         (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4644         (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4645         (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4646         Likewise, and also pass PRINTF_FORTIFY when appropriate.
4647         (__nldbl_syslog, __nldbl_vsyslog):
4648         Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4649         (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4650         appropriate.
4651         (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4652         appropriate.
4653
4654 2018-12-05  Zack Weinberg  <zackw@panix.com>
4655             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4656
4657         [BZ #11319]
4658         * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4659         Moved here from debug/vsprintf_chk.c.
4660         (__vsprintf_internal): Add 'maxlen' argument.  Change the setup
4661         and completion logic for the strfile to match exactly what
4662         __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4663         _IO_str_init_static_internal instead of maxlen-1.
4664         (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4665         * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4666         __vsprintf_internal.
4667
4668         * debug/vsprintf_chk.c (__vsprintf_chk)
4669         * debug/sprintf_chk.c (__sprintf_chk):
4670         Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4671         'flags' argument is positive, and slen as maxlen.  No need to lock
4672         the FILE and/or construct a temporary FILE.  Minimize and normalize
4673         header inclusions and variable names.  Do not libc_hidden_def anything.
4674
4675         * debug/asprintf_chk.c (__asprintf_chk)
4676         * debug/dprintf_chk.c (__dprintf_chk)
4677         * debug/fprintf_chk.c (__fprintf_chk)
4678         * debug/fwprintf_chk.c (__fwprintf_chk)
4679         * debug/printf_chk.c (__printf_chk)
4680         * debug/snprintf_chk.c (__snprintf_chk)
4681         * debug/swprintf_chk.c (__swprintf_chk)
4682         * debug/vasprintf_chk.c (__vasprintf_chk)
4683         * debug/vdprintf_chk.c (__vdprintf_chk)
4684         * debug/vfprintf_chk.c (__vfprintf_chk)
4685         * debug/vfwprintf_chk.c (__vfwprintf_chk)
4686         * debug/vprintf_chk.c (__vprintf_chk)
4687         * debug/vsnprintf_chk.c (__vsnprintf_chk)
4688         * debug/vswprintf_chk.c (__vswprintf_chk)
4689         * debug/vwprintf_chk.c (__vwprintf_chk)
4690         * debug/wprintf_chk.c (__wprintf_chk):
4691         Directly call the corresponding vxxprintf_internal function, passing
4692         PRINTF_FORTIFY if 'flag' argument is positive.  No need to lock
4693         the FILE and/or construct a temporary FILE.  Minimize and normalize
4694         header inclusions and variable names.  Do not libc_hidden_def anything.
4695
4696         * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4697         __obstack_vprintf_internal.
4698         (__obstack_vprintf_chk): Convert into a wrapper that calls
4699         __obstack_vprintf_internal (these two functions already had the
4700         same code) and move to new file...
4701         * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here.  New
4702         file.
4703         * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4704         the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4705         * debug/Makefile (routines): Add vobprintf_chk.
4706
4707         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4708         (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4709         (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4710         (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4711         (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4712         (__nldbl___obstack_vfprintf_chk):
4713         Directly call the corresponding vxxprintf_internal function,
4714         passing PRINTF_FORTIFY if 'flag' argument is positive.  If necessary,
4715         duplicate comparison of slen with 0 or maxlen from the corresponding
4716         non-__nldbl function.
4717
4718         * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4719         (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4720         * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4721         Remove libc_hidden_proto.
4722
4723         * stdio-common/vfprintf-internal.c
4724         (__vfprintf_internal, __vfwprintf_internal):
4725         Do not check _IO_FLAGS2_FORTIFY.
4726         * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4727         * libio/libioP.h: Update prototype of __vsprintf_internal and add
4728         a comment explaining why it has the maxlen argument.
4729         (_IO_acquire_lock_clear_flags2_fct): Remove.
4730         (_IO_acquire_lock_clear_flags2): Remove.
4731         (_IO_release_lock): Remove conditional statement which will
4732         now never execute.
4733         (_IO_acquire_lock): Remove variable which is now unused.
4734         * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4735         * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4736
4737         * stdio-common/Makefile (tests): Add tst-bz11319 and
4738         tst-bz11319-fortify2.
4739         (CFLAGS-tst-bz11319-fortify2.c): New macro.
4740         * stdio-common/tst-bz11319-fortify2.c: New file.
4741         * stdio-common/tst-bz11319.c: Likewise.
4742
4743 2018-12-05  Zack Weinberg  <zackw@panix.com>
4744             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4745
4746         * misc/syslog.c: Include libioP.h, not iolibio.h.
4747         (__vsyslog_internal): New function with the former body of
4748         __vsyslog_chk; takes mode_flags argument same as
4749         __v*printf_internal.  Call __vfprintf_internal directly.
4750
4751         (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4752         Remove libc_hidden_def.
4753         (__syslog, __syslog_chk): Use __vsyslog_internal.
4754         (__vsyslog): Move to just below __syslog.  Use __vsyslog_internal.
4755
4756         * include/sys/syslog.h: Add multiple inclusion guard.
4757         Add prototype for __vsyslog_internal.
4758         Remove declaration and libc_hidden_proto for __vsyslog_chk.
4759
4760         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4761         Use __vsyslog_internal.
4762
4763 2018-12-05  Zack Weinberg  <zackw@panix.com>
4764             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4765
4766         * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4767         (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4768         (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4769         New functions.
4770         (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4771         (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4772
4773         * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4774         Include wctype.h here if COMPILE_WPRINTF is defined.
4775         Define __vfprintf_internal or __vfwprintf_internal, depending
4776         on COMPILE_WPRINTF.
4777         Temporarily, on entry to this function, update mode_flags
4778         according to the environmental settings corresponding to
4779         PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4780         Throughout, check mode_flags instead of __ldbl_is_dbl and
4781         _IO_FLAGS2_FORTIFY on the destination FILE.
4782         * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4783         Include vfprintf-internal.c.  Don't include wctype.h.
4784         * stdio-common/vfprintf.c: New file.  Just define __vfprintf
4785         as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4786         and vfprintf.
4787         * stdio-common/vfwprintf.c: New file.  Just define __vfwprintf
4788         as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4789         and vfwprintf.
4790         * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4791
4792         * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4793         and add mode_flags argument; use __vfprintf_internal.
4794         (__vdprintf): New function.  Alias vdprintf to this.
4795         * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4796         * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4797         * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4798         (__obstack_printf): Use __obstack_printf_internal.
4799         * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4800         public aliases __vsnprintf and vsnprintf.
4801         Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4802         called internally.
4803         * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4804         public aliases _IO_vsprintf and vsprintf.
4805         * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4806         * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4807         * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4808         * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4809         * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4810
4811         * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4812         * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4813         * stdio-common/fprintf.c, stdio-common/fxprintf.c
4814         * stdio-common/printf.c: Use __vfprintf_internal.
4815
4816         * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4817         * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4818         * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4819
4820         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4821         __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4822         __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4823         __vfwprintf_internal.
4824
4825         * libio/libio.h: Remove libc_hidden_proto and declaration for
4826         _IO_vfprintf.
4827         Remove declaration of _IO_vfwprintf.
4828         * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4829         _IO_vsprintf.
4830         Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4831         _IO_obstack_printf.
4832         * include/stdio.h: Add prototype for __vasprintf.
4833         (__vsnprintf): Remove declaration, because there are no more
4834         internal calls.
4835         * include/wchar.h (__vfwprintf, __vswprintf): Remove
4836         declaration, because there are no more internal calls.
4837
4838         * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4839         __vsnprintf_internal, instead of _IO_vsnprintf.
4840         * argp/argp-help.c (__argp_error, __argp_failure): Use
4841         __vasprintf_internal, instead of _IO_vasprintf.
4842         * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4843         redefine, because there are no more internal calls.
4844
4845 2018-12-05  Zack Weinberg  <zackw@panix.com>
4846             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4847
4848         * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4849         * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4850         Include libio/strfile.h instead of libioP.h.
4851         (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4852         (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4853         (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4854         (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4855         (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4856         directly, passing SCANF_LDBL_IS_DBL.  Set up a strfile if
4857         necessary.  Do not set __no_long_double.  Normalize variable names.
4858         (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4859         (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4860         (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4861         (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4862         (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4863         (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4864         Call __vfscanf_internal / __vfwscanf_internal directly, passing
4865         SCANF_LDBL_IS_DBL | SCANF_ISOC99_A.  Set up a strfile if necessary.
4866         Do not set __no_long_double.  Normalize variable names.
4867
4868 2018-12-05  Zack Weinberg  <zackw@panix.com>
4869             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4870
4871         * stdio-common/isoc99_scanf.c
4872         * stdio-common/isoc99_fscanf.c
4873         * stdio-common/isoc99_sscanf.c
4874         * stdio-common/isoc99_vscanf.c
4875         * stdio-common/isoc99_vfscanf.c
4876         * stdio-common/isoc99_vsscanf.c
4877         * wcsmbs/isoc99_wscanf.c
4878         * wcsmbs/isoc99_fwscanf.c
4879         * wcsmbs/isoc99_swscanf.c
4880         * wcsmbs/isoc99_vwscanf.c
4881         * wcsmbs/isoc99_vfwscanf.c
4882         * wcsmbs/isoc99_vswscanf.c:
4883         Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4884         Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4885         No need to lock and unlock the FILE passed to that function.
4886
4887         * stdio-common/vfscanf-internal.c
4888         (__vfscanf_internal, __vfwscanf_internal):
4889         Don't look at _IO_FLAGS2_SCANF_STD.
4890         * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4891         (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4892         * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4893
4894 2018-12-05  Zack Weinberg  <zackw@panix.com>
4895             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4896
4897         * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4898         (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4899         * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4900         * libio/strfile.h: Add multiple inclusion guard.
4901         (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4902
4903         * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4904         consistency with the other version of this file.
4905         (ldbl_compat_symbol): New macro.
4906         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4907         New macro.
4908
4909         * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4910         Define __vfscanf_internal or __vfwscanf_internal, depending on
4911         COMPILE_WSCANF; don't define any other public symbols.
4912         Remove errval and code to set errp.
4913         Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4914         as the mode_flags argument.
4915         (encode_error, conv_error, input_error): Don't set errval.
4916         * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4917         Include vfscanf-internal.c.
4918         * stdio-common/vfscanf.c: New file defining the public entry
4919         point vfscanf, which calls __vfscanf_internal.
4920         * stdio-common/vfwscanf.c: New file defining the public entry
4921         point vfwscanf, which calls __vfwscanf_internal.
4922
4923         * stdio-common/iovfscanf.c: New file.
4924         * stdio-common/iovfwscanf.c: Likewise.
4925
4926         * stdio-common/Makefile (routines): Add vfscanf-internal,
4927         vfwscanf-internal, iovfscanf, iovfwscanf.
4928         * stdio-common/Versions: Mention GLIBC_2.29, so that
4929         it can be used in SHLIB_COMPAT expressions.
4930         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4931         Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4932         Call __vfscanf_internal, instead of _IO_vfscanf.
4933         (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4934         _IO_vfscanf.
4935         (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4936         _IO_vfwscanf.
4937
4938         * libio/iovsscanf.c: Clean up includes, when possible.  Use
4939         _IO_strfile_read or _IO_strfile_readw, when needed.  Call
4940         __vfscanf_internal or __vfwscanf_internal directly.
4941         * libio/iovswscanf.c: Likewise.
4942         * libio/swscanf.c: Likewise.
4943         * libio/vscanf.c: Likewise.
4944         * libio/vwscanf.c: Likewise.
4945         * libio/wscanf.c: Likewise.
4946         * stdio-common/isoc99_fscanf.c: Likewise.
4947         * stdio-common/isoc99_scanf.c: Likewise.
4948         * stdio-common/isoc99_sscanf.c: Likewise.
4949         * stdio-common/isoc99_vfscanf.c: Likewise.
4950         * stdio-common/isoc99_vscanf.c: Likewise.
4951         * stdio-common/isoc99_vsscanf.c: Likewise.
4952         * stdio-common/scanf.c: Likewise.
4953         * stdio-common/sscanf.c: Likewise.
4954         * wcsmbs/isoc99_fwscanf.c: Likewise.
4955         * wcsmbs/isoc99_swscanf.c: Likewise.
4956         * wcsmbs/isoc99_vfwscanf.c: Likewise.
4957         * wcsmbs/isoc99_vswscanf.c: Likewise.
4958         * wcsmbs/isoc99_vwscanf.c: Likewise.
4959         * wcsmbs/isoc99_wscanf.c: Likewise.
4960
4961 2018-12-05  Albert ARIBAUD <albert.aribaud@3adev.fr>
4962
4963         * include/time.h
4964         (__tz_compute): Replace time_t with __time64_t.
4965         (__tz_convert): Replace time_t* with __time64_t.
4966         (__offtime): Replace time_t* with __time64_t.
4967         * time/gmtime.c
4968         (__gmtime_r): Adjust call to __tz_convert.
4969         (gmtime): Likewise.
4970         * time/localtime.c
4971         (__localtime_r): Likewise.
4972         (localtime): Likewise.
4973         * time/offtime.c: Replace time_t with __time64_t.
4974         * time/tzset.c: Likewise.
4975
4976 2018-12-04  Joseph Myers  <joseph@codesourcery.com>
4977
4978         * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4979         dynamic linker unless [$(run-built-tests) = yes].
4980
4981 2018-12-03  DJ Delorie  <dj@delorie.com>
4982
4983         * support/test-container.c (check_for_unshare_hints): New.
4984         (main): Call it if unshare fails.  Add support for "su" scriptlet
4985         command.
4986
4987 2018-12-03  Joseph Myers  <joseph@codesourcery.com>
4988
4989         * scripts/gen-as-const.py (compute_c_consts): Take an argument
4990         'START' to indicate that start text should be output.
4991         (gen_test): Likewise.
4992         (main): Generate 'START' for first symbol or '--' line, or at end
4993         of input if not previously generated.
4994
4995 2018-12-03  Rafael Ávila de Espíndola  <rafael@espindo.la>
4996
4997         [BZ #19767]
4998         * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4999         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
5000         * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
5001         ALWAYS_USE_VSYSCALL.
5002
5003 2018-12-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5004
5005         [BZ #23913]
5006         * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
5007         new_argv by one.
5008
5009 2018-12-03  Carlos O'Donell  <carlos@redhat.com>
5010
5011         [BZ #23923]
5012         * locale/programs/localedef.c: Declare boolean hard_links default true.
5013         (options): Add --no-hard-links option.
5014         (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
5015         * locale/programs/localedef.h: Declare prototype for hard_links.
5016         * locale/programs/locfile.c (write_locale_data): Don't use hard
5017         links if hard_links is false.
5018
5019 2018-12-03  H.J. Lu  <hongjiu.lu@intel.com>
5020
5021         * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
5022         cpu_features_basic.
5023         (__cache_sysconf): Likewise.
5024         (init_cacheinfo): Likewise.
5025         * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
5026         populate COMMON_CPUID_INDEX_80000007 and
5027         COMMON_CPUID_INDEX_80000008.
5028         (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
5029         Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
5030         XSAVEC is available.  Set the bit_arch_XXX_Usable bits.
5031         (init_cpu_features): Use _Static_assert on
5032         index_arch_Fast_Unaligned_Load.
5033         __get_cpuid_registers and __get_arch_feature.  Updated for
5034         cpu_features_basic.  Set stepping in cpu_features.
5035         * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
5036         (FEATURE_INDEX_2): New.
5037         (FEATURE_INDEX_MAX): Changed to enum.
5038         (COMMON_CPUID_INDEX_D_ECX_1): New.
5039         (COMMON_CPUID_INDEX_80000007): Likewise.
5040         (COMMON_CPUID_INDEX_80000008): Likewise.
5041         (cpuid_registers): Likewise.
5042         (cpu_features_basic): Likewise.
5043         (CPU_FEATURE_USABLE): Likewise.
5044         (bit_arch_XXX_Usable): Likewise.
5045         (cpu_features): Use cpuid_registers and cpu_features_basic.
5046         (bit_arch_XXX): Reweritten.
5047         (bit_cpu_XXX): Likewise.
5048         (index_cpu_XXX): Likewise.
5049         (reg_XXX): Likewise.
5050         * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
5051         <support/check.h>.
5052         (CHECK_CPU_FEATURE): New.
5053         (CHECK_CPU_FEATURE_USABLE): Likewise.
5054         (cpu_kinds): Likewise.
5055         (do_test): Print vendor, family, model and stepping.  Check
5056         HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
5057         (TEST_FUNCTION): Removed.
5058         Include <support/test-driver.c> instead of
5059         "../../test-skeleton.c".
5060         * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
5061         Check POPCNT instead of POPCOUNT.
5062         * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
5063
5064 2018-12-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5065
5066         * scripts/gen-as-const.py (main): Avoid emitting empty line when
5067         there is no element in `consts'.
5068
5069 2018-12-01  Florian Weimer  <fweimer@redhat.com>
5070
5071         * support/support_capture_subprocess.c
5072         (support_capture_subprocess): Check that pipe descriptors have
5073         expected values.  Close original pipe descriptors in subprocess.
5074
5075 2018-12-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5076
5077         [BZ #23032]
5078         * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
5079         attr with __pthread_default_barrierattr.
5080         * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
5081         attr with __pthread_default_condattr.
5082         * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
5083         attr with __pthread_default_mutexattr.
5084         * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
5085         attr with __pthread_default_rwlockattr.
5086
5087 2018-12-01  Kemi Wang  <kemi.wang@intel.com>
5088
5089         * manual/tunables.texi (POSIX Thread Tunables): New node.
5090         * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
5091         * nptl/nptl-init.c: Include pthread_mutex_conf.h
5092         (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
5093         __pthread_tunables_init.
5094         * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
5095         (max_adaptive_count): Define.
5096         * nptl/pthread_mutex_conf.c: New file.
5097         * nptl/pthread_mutex_conf.h: New file.
5098         * sysdeps/generic/adaptive_spin_count.h: New file.
5099         * sysdeps/nptl/dl-tunables.list: New file.
5100         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
5101         max_adaptive_count () not MAX_ADAPTIVE_COUNT.
5102         * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
5103         Likewise.
5104
5105 2018-12-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5106
5107         [BZ #20544]
5108         * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
5109         * stdlib/on_exit.c (__on_exit): Likewise.
5110         * stdlib/Makefile (tests): Add tst-bz20544.
5111         * stdlib/tst-bz20544.c: New test.
5112
5113 2018-11-30  Rafael Ávila de Espíndola  <rafael@espindo.la>
5114
5115         [BZ #19767]
5116         * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
5117         * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
5118         New.
5119
5120 2018-11-30  Florian Weimer  <fweimer@redhat.com>
5121
5122         * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
5123         Extend error logging.
5124         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
5125         symbol.
5126
5127 2018-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5128
5129         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
5130         __sigismember instead of sigismember.
5131         * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
5132         cancel_handler): New definitions.
5133         (do_system): Use posix_spawn instead of fork and execl and remove
5134         reentracy code.
5135         * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
5136         * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
5137         * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
5138         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
5139         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
5140         * sysdeps/unix/sysv/linux/system.c: Likewise.
5141
5142         [BZ #22834]
5143         [BZ #17490]
5144         * NEWS: Add new semantic for atfork with popen and system.
5145         * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
5146         fork and execl.
5147
5148 2018-11-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5149
5150         [BZ #23690]
5151         * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
5152         modification order when accessing reloc_result->addr.
5153         * include/link.h (reloc_result): Add field init.
5154         * nptl/Makefile (tests): Add tst-audit-threads.
5155         (modules-names): Add tst-audit-threads-mod1 and
5156         tst-audit-threads-mod2.
5157         Add rules to build tst-audit-threads.
5158         * nptl/tst-audit-threads-mod1.c: New file.
5159         * nptl/tst-audit-threads-mod2.c: Likewise.
5160         * nptl/tst-audit-threads.c: Likewise.
5161         * nptl/tst-audit-threads.h: Likewise.
5162
5163 2018-11-30  Joseph Myers  <joseph@codesourcery.com>
5164
5165         * scripts/gen-as-const.py: New file.
5166         * scripts/gen-as-const.awk: Remove.
5167         * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
5168         gen-as-const.py.
5169         ($(objpfx)test-as-const-%.c): Likewise.
5170
5171 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
5172
5173         * elf/dl-exception.c: Include <_itoa.h>.
5174
5175 2018-11-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5176
5177         * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
5178         returned by __f_setlk.
5179
5180 2018-11-29  H.J. Lu  <hongjiu.lu@intel.com>
5181             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5182
5183         * elf/Makefile (tests-internal): Add tst-create_format1.
5184         * elf/dl-exception.c (_dl_exception_create_format): Support
5185         %x, %lx and %zx.
5186         * elf/tst-create_format1.c: New file.
5187
5188 2018-11-29  Charles-Antoine Couret  <charles-antoine.couret@essensium.com>
5189
5190         * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
5191         conditional on calls to _IO_fwide and putwc_unlocked.  (Merge from
5192         gnulib.)
5193         * argp/argp-help.c (__argp_failure): Likewise.
5194
5195 2018-11-29  Mao Han  <han_mao@c-sky.com>
5196
5197         * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
5198         (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
5199         (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
5200         (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
5201         (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
5202         (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
5203         (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
5204         (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
5205         (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
5206         (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
5207         (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
5208         (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
5209         (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
5210         (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
5211         (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
5212         (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
5213         (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
5214         (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
5215         (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
5216         (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
5217         (R_CKCORE_TLS_TPOFF32): New defines.
5218
5219 2018-11-29  Florian Weimer  <fweimer@redhat.com>
5220
5221         * posix/Makefile (before-compile): Remove testcases.h and
5222         ptestcases.h.
5223         (generated): Add testcases.h and ptestcases.h.
5224         (testcases.h, ptestcases.h): Move to $(objpfx).
5225         (runtests.o): Add dependency on testcases.h.
5226         (runptests.o): Add dependency on ptestcases.h.
5227         * posix/testcases.h, posix/ptestcases.h: Remove files.
5228         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
5229         not touch posix/testcases.h and posix/ptestcases.h.
5230
5231 2018-11-28  Florian Weimer  <fweimer@redhat.com>
5232
5233         support: Add signal support to support_capture_subprocess_check.
5234         * support/capture_subprocess.h (support_capture_subprocess_check):
5235         Adjust comment and rename parameter.
5236         * support/support_capture_subprocess_check.c
5237         (print_actual_status): New function.
5238         (support_capture_subprocess_check): Support negative
5239         status_or_signal.  Call print_actual_status.
5240         * support/tst-support_capture_subprocess.c (do_test): Call
5241         support_capture_subprocess_check.
5242         * libio/tst-vtables-common.c (termination_status)
5243         (init_termination_status): Remove.
5244         (check_for_termination): Adjust support_capture_subprocess_check
5245         call.
5246         (do_test): Remove call to init_termination_status.
5247
5248 2018-11-28  Joseph Myers  <joseph@codesourcery.com>
5249
5250         * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
5251         source directory instead of a copy.
5252         (CommandList.create_copy_dir): Remove.
5253
5254 2018-11-28  Stefan Liebler  <stli@linux.ibm.com>
5255
5256         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5257
5258 2018-11-28  Florian Weimer  <fweimer@redhat.com>
5259
5260         * support/support.h (support_quote_string): Do not use str
5261         parameter name.
5262
5263 2018-11-27  Joseph Myers  <joseph@codesourcery.com>
5264
5265         * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
5266         $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
5267
5268 2018-11-27  Florian Weimer  <fweimer@redhat.com>
5269
5270         * support/support.h (support_quote_string): Declare.
5271         * support/support_quote_string.c: New file.
5272         * support/tst-support_quote_string.c: Likewise.
5273         * support/Makefile (libsupport-routines): Add
5274         support_quote_string.
5275         (tests): Add tst-support_quote_string.
5276
5277 2018-11-27  Florian Weimer  <fweimer@redhat.com>
5278
5279         [BZ #23927]
5280         CVE-2018-19591
5281         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
5282         descriptor leak in case of ENODEV error.
5283
5284 2018-11-27  Rafael Ávila de Espíndola  <rafael@espindo.la>
5285
5286         [BZ #19767]
5287         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
5288         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
5289         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
5290
5291 2018-11-26  Carlos O'Donell  <carlos@redhat.com>
5292
5293         * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
5294         Error for unknown lines.
5295
5296 2018-11-26  Joseph Myers  <joseph@codesourcery.com>
5297
5298         * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5299         Touch additional files.
5300
5301 2018-11-26  Florian Weimer  <fweimer@redhat.com>
5302
5303         [BZ #23907]
5304         * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5305         double-frees.
5306
5307 2018-11-26  Rafael Ávila de Espíndola  <rafael@espindo.la>
5308
5309         [BZ #19767]
5310         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5311         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5312         SHARED.  Include sysdep.h.
5313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5314         ALWAYS_USE_VSYSCALL.
5315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5316         ALWAYS_USE_VSYSCALL.
5317
5318 2018-11-23  Rafael Ávila de Espíndola  <rafael@espindo.la>
5319
5320         [BZ #19767]
5321         * nptl/Makefile (tests-static): Add tst-cond11-static.
5322         (tests): Likewise.
5323         * nptl/tst-cond11-static.c: New File.
5324         * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5325         tst-affinity-static.
5326         (tests): Likewise.
5327         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5328         instead of SHARED.
5329         * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5330         (USE_VSYSCALL): Likewise.
5331         * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5332         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5333         instead of SHARED.
5334         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5335         SHARED.
5336         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5337         New.
5338
5339 2018-11-23  Joseph Myers  <joseph@codesourcery.com>
5340
5341         [BZ #23915]
5342         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5343         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5344         Undefine.
5345
5346 2018-11-23  H.J. Lu  <hongjiu.lu@intel.com>
5347
5348         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5349         (tst-cet-legacy-1a-ARGS): New.
5350         ($(objpfx)tst-cet-legacy-1a): New target.
5351         * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5352
5353 2018-11-22  Joseph Myers  <joseph@codesourcery.com>
5354
5355         * conform/conformtest.py (CompileSubTest.__init__): Set
5356         self.run_early to False.
5357         (ExecuteSubTest.__init__): Likewise.
5358         (HeaderTests.run): Try running all non-optional, non-XFAILed
5359         compilation tests in a single execution of the compiler.
5360
5361         * conform/conformtest.py (CompileSubTest): New class.
5362         (ExecuteSubTest): Likewise.
5363         (ElementTest.run): Rename to gen_subtests.  Append tests to
5364         self.subtests instead of running them.
5365         (ConstantTest.run): Likewise.
5366         (SymbolTest.run): Likewise.
5367         (TypeTest.run): Likewise.
5368         (TagTest.run): Likewise.
5369         (FunctionTest.run): Likewise.
5370         (VariableTest.run): Likewise.
5371         (MacroFunctionTest.run): Likewise.
5372         (MacroStrTest.run): Likewise.
5373         (HeaderTests.handle_test_line): Generate subtests for tests.
5374         (HeaderTests.run): Run subtests for tests.
5375
5376 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5377
5378         * math/Versions (GLIBC_2.29): Add pow.
5379         * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5380         symbol.
5381         * math/w_pow.c: New file.
5382         * sysdeps/i386/fpu/w_pow.c: New file.
5383         * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5384         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5385         and add necessary aliases.
5386         * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5387         * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5388         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5389         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5390         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5391         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5392         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5393         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5394         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5395         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5396         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5397         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5398         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5399         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5400         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5405         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5406         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5407         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5408         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5409         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5410         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5411         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5412         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5413         __pow.
5414         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5415         * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5416         * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5417
5418 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5419
5420         * math/Versions (GLIBC_2.29): Add log2.
5421         * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5422         symbol.
5423         * math/w_log2.c: New file.
5424         * sysdeps/i386/fpu/w_log2.c: New file.
5425         * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5426         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5427         and add necessary aliases.
5428         * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5429         * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5430         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5431         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5432         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5433         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5434         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5435         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5436         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5437         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5438         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5439         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5440         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5441         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5442         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5447         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5448         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5449         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5450         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5451         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5452         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5453         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5454
5455 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5456
5457         * math/Versions (GLIBC_2.29): Add log.
5458         * math/w_log_compat.c (__log_compat): Change to versioned compat
5459         symbol.
5460         * math/w_log.c: New file.
5461         * sysdeps/i386/fpu/w_log.c: New file.
5462         * sysdeps/ia64/fpu/e_log.S: Update.
5463         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5464         and add necessary aliases.
5465         * sysdeps/ieee754/dbl-64/w_log.c: New file.
5466         * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5467         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5468         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5469         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5470         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5471         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5472         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5473         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5474         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5475         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5476         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5477         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5478         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5479         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5484         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5485         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5486         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5487         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5488         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5489         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5490         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5491         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5492         __log.
5493         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5494         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5495         * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5496         * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5497
5498 2018-11-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5499
5500         * math/Versions (GLIBC_2.29): Add exp and exp2.
5501         * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5502         symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5503         * math/w_exp_compat.c (__exp_compat): Likewise.
5504         * math/w_exp.c: New file.
5505         * math/w_exp2.c: New file.
5506         * sysdeps/i386/fpu/w_exp.c: New file.
5507         * sysdeps/i386/fpu/w_exp2.c: New file.
5508         * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5509         * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5510         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5511         and add necessary aliases.
5512         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5513         and add necessary aliases.
5514         * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5515         * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5516         * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5517         * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5518         * sysdeps/mach/hurd/i386/libm.abilist: Update.
5519         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5520         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5521         * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5522         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5523         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5524         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5525         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5526         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5527         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5528         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5529         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5530         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5535         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5536         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5537         * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5538         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5539         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5540         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5541         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5542         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5543         (__ieee754_exp): Rename to __exp.
5544         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5545         (__ieee754_exp): Rename to __exp.
5546         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5547         (__ieee754_exp): Rename to __exp.
5548         * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5549         __exp.
5550         * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5551
5552 2018-11-20  DJ Delorie  <dj@redhat.com>
5553
5554         * malloc/malloc.c (tcache_entry): Add key field.
5555         (tcache_put): Set it.
5556         (tcache_get): Likewise.
5557         (_int_free): Check for double free in tcache.
5558         * malloc/tst-tcfree1.c: New.
5559         * malloc/tst-tcfree2.c: New.
5560         * malloc/Makefile: Run the new tests.
5561         * manual/probes.texi: Document memory_tcache_double_free probe.
5562
5563         * dlfcn/dlerror.c (check_free): Prevent double frees.
5564
5565 2018-11-20  Wilco Dijkstra  <wdijkstr@arm.com>
5566
5567         * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5568
5569 2018-11-20  Joseph Myers  <joseph@codesourcery.com>
5570
5571         * conform/conformtest.py (ElementTest.run): Use unique identifiers
5572         in tests.  Use names for format arguments.
5573         (ConstantTest.run): Likewise.
5574         (SymbolTest.run): Likewise.
5575         (TypeTest.run): Likewise.
5576         (TagTest.run): Likewise.
5577         (FunctionTest.run): Likewise.
5578         (VariableTest.run): Likewise.
5579         (MacroFunctionTest.run): Likewise.
5580         (MacroStrTest.run): Likewise.
5581         (HeaderTests.__init__): Set self.num_tests.
5582         (HeaderTests.handle_test_line): Set test.num.  Increment
5583         self.num_tests.
5584
5585 2018-11-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5586
5587         * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5588         (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5589         SEEK_SET.
5590
5591 2018-11-19  Mao Han  <han_mao@c-sky.com>
5592
5593         * scripts/config.guess: Update to version 2018-08-29.
5594         * scripts/config.sub: Update to version 2018-08-29.
5595
5596 2018-11-19  Florian Weimer  <fweimer@redhat.com>
5597
5598         support: Print timestamps in timeout handler.
5599         * support/support_test_main.c (print_timestamp): New function.
5600         (signal_handler): Use it to print the termination time and the
5601         time of the last write to standard output.
5602
5603 2018-11-16  Zack Weinberg  <zackw@panix.com>
5604             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5605
5606         * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5607         (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5608         argument.
5609         * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5610         and add flags argument.  Check flags instead of __ldbl_is_dbl when
5611         deciding whether to set is_long_double.
5612         (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5613         passing zero for flags argument.
5614         * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5615
5616         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5617         (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5618         (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5619         directly, passing STRFMON_LDBL_IS_DBL for flags argument.  Normalize
5620         variable names.  Remove libc_hidden_def/libc_hidden_proto from
5621         __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5622         longer called from within the library.
5623         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5624         for __nldbl___vstrfmon_l, declare it explicitly.
5625
5626         * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5627
5628 2018-11-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5629
5630         * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5631         macros
5632         [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5633         F_SETLK64, F_SETLKW64, respectively.
5634         * sysdeps/mach/hurd/f_setlk.c: New file.
5635         * sysdeps/mach/hurd/f_setlk.h: New file.
5636         * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5637         f_setlk.
5638         * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5639         (__libc_fcntl): Move non-flock operations to...
5640         * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5641         * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5642
5643 2018-11-15  Paul Eggert  <eggert@cs.ucla.edu>
5644
5645         mktime: DEBUG_MKTIME cleanup
5646         The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5647         And it’s no longer needed now that glibc and Gnulib both have
5648         their own testing mechanisms for mktime.
5649         * time/mktime.c (DEBUG_MKTIME): Remove.  All uses removed.
5650
5651         mktime: fix non-EOVERFLOW errno handling
5652         [BZ#23789]
5653         mktime was not properly reporting failures when the underlying
5654         localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5655         them like EOVERFLOW failures, and set errno to EOVERFLOW.
5656         The problem could happen on non-glibc platforms, with Gnulib.
5657         * time/mktime.c (guess_time_tm): Remove, replacing with ...
5658         (tm_diff): ... this simpler function, which does not change errno.
5659         All callers changed to deal with errno themselves.
5660         (ranged_convert, __mktime_internal): Return failure immediately if
5661         the underlying function reports any failure other than EOVERFLOW.
5662         (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5663         gap code fails.
5664
5665         mktime: fix bug with Y2038 DST transition
5666         [BZ#23789]
5667         * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5668         mishandle a DST transition that jumps over the Y2038 boundary.
5669         No such DST transitions are known so this is only a theoretical
5670         bug, but we might as well do things right.
5671
5672         mktime: make more room for overflow
5673         [BZ#23789]
5674         * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5675         This is so that we can add tm_diff results to a previous guess,
5676         which will be useful in a later patch.
5677
5678         mktime: simplify offset guess
5679         [BZ#23789]
5680         * time/mktime.c (__mktime_internal): Omit excess precision.
5681
5682         mktime: new test for mktime failure
5683         [BZ#23789]
5684         Based on a test suggested by Albert Aribaud in:
5685         https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5686         * time/Makefile (tests): Add bug-mktime4.
5687         * time/bug-mktime4.c: New file.
5688
5689         mktime: fix EOVERFLOW bug
5690         [BZ#23789]
5691         * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5692         Include libc-config.h, not config.h, for __set_errno.
5693         (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5694
5695 2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5696
5697         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5698         __attribute_copy__ to copy attributes from name. Drop static qualifier
5699         to avoid warnings about leaf attribute not having effect on static
5700         functions.
5701
5702 2018-11-13  Florian Weimer  <fweimer@redhat.com>
5703
5704         * malloc/malloc.c (fastbin_push_entry): New function.
5705         (fastbin_pop_entry): Likewise.  Replaces REMOVE_FB.
5706         (REMOVE_FB): Remove macro.
5707         (_int_malloc): Use fastbin_pop_entry and reindent.
5708         (_int_free): Use fastbin_push_entry.
5709         (malloc_consolidate): Use atomic_exchange_acquire.
5710
5711 2018-11-13  Joseph Myers  <joseph@codesourcery.com>
5712
5713         * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5714         alias attribute, not with strong_alias.
5715
5716         * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5717         (__hidden_ver2): New macro.  Use old definition of __hidden_ver1
5718         with additional parameter thread.
5719         [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5720         in terms of __hidden_ver2.
5721         (hidden_tls_def): New macro.
5722         (libc_hidden_tls_def): Likewise.
5723         (rtld_hidden_tls_def): Likewise.
5724         (libm_hidden_tls_def): Likewise.
5725         (libmvec_hidden_tls_def): Likewise.
5726         (libresolv_hidden_tls_def): Likewise.
5727         (librt_hidden_tls_def): Likewise.
5728         (libdl_hidden_tls_def): Likewise.
5729         (libnss_files_hidden_tls_def): Likewise.
5730         (libnsl_hidden_tls_def): Likewise.
5731         (libnss_nisplus_hidden_tls_def): Likewise.
5732         (libutil_hidden_tls_def): Likewise.
5733         (libutil_hidden_tls_def): Likweise.
5734         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5735         libc_hidden_tls_def.
5736         (__sim_disabled_exceptions_thread): Likewise.
5737         (__sim_round_mode_thread): Likewise.
5738
5739         * sysdeps/sparc/sparc-ifunc.h [SHARED]
5740         (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5741         copy attributes from name.
5742
5743 2018-11-12  Joseph Myers  <joseph@codesourcery.com>
5744
5745         * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5746         Use __attribute_copy__ to copy attributes from name.
5747
5748         * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5749         with __hidden_ver1 call.
5750         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5751         * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5752         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5753         (__cosf): Do not declare here.
5754         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5755         (__sincosf): Do not declare here.
5756         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5757         (__sinf): Do not declare here.
5758
5759         * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5760         (__BIG_ENDIAN): Likewise.
5761         (__BYTE_ORDER): Likewise.
5762         (strong_alias): Likewise.
5763         (_strong_alias): Likewise.
5764
5765 2018-11-12  Florian Weimer  <fweimer@redhat.com>
5766
5767         * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5768         function.  Move after the definition of in_smallbin_range.  Do not
5769         use __builtin_expect for paths that lead to a noreturn function.
5770         Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5771         because it is unclear whether this is in fact an unlikely
5772         condition.
5773         (_int_malloc, _int_free): Adjust.
5774         (malloc_consolidate, _int_realloc): Adjust.  Remove bck, fwd
5775         variables.
5776         * malloc/arena.c (heap_trim): Likewise.
5777
5778 2018-11-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5779
5780         * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5781         it, free it if needed.
5782         (reauthenticate): Test and use ccwdir.
5783         (child_init_port): In non-resetids case, test and use ccwdir.
5784         (child_chdir): New nested function to set ccwdir.
5785         * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5786         * hurd/hurd/port.h (_hurd_port_move): New function.
5787         * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5788         (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5789         * hurd/Versions (_hurd_port_move): Export function.
5790         * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5791         symbol.
5792         * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5793         of dtablesize for allocating dtable_cloexec.
5794
5795 2018-11-09  Martin Sebor  <msebor@redhat.com>
5796
5797         * include/libc-symbols.h (__attribute_copy__): Define macro unless
5798         it's already defined.
5799         (_strong_alias): Use __attribute_copy__.
5800         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
5801         * misc/sys/cdefs.h (__attribute_copy__): New macro.
5802         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5803         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5804         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5805         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5806         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5807         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5808         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5809         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5810         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5811         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5812         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5813         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5814         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5815         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5816         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5817         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5818         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5819
5820 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5821
5822         * misc/tst-efgcvt.c: Include support/check.h and
5823         support/test-driver.c.  Do not include test-skeleton.c.
5824         (error_count): Remove.
5825         (output_error): Replace increments to error_count with calls to
5826         support_record_failure.
5827         (output_r_error): Likewise.
5828         (special): Likewise.
5829         (do_test): Unconditionally return zero.
5830         (TEST_FUNCTION): Remove.
5831
5832 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
5833
5834         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5835         not $(@D)/scratch.
5836         ($(linknamespace-header-tests)): Likewise.
5837
5838         * conform/conformtest.py: New file.
5839         * conform/conformtest.pl: Remove.
5840         * conform/GlibcConform.pm: Likewise.
5841         * conform/glibcconform.py (KEYWORDS_C90): New constant.
5842         (KEYWORDS_C99): Likewise.
5843         (KEYWORDS): Likewise.
5844         * conform/Makefile ($(conformtest-header-tests)): Use
5845         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
5846         option.  Use --header instead of --headers.
5847         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5848         function entries.
5849         * conform/data/spawn.h-data: Likewise.
5850         * conform/data/fcntl.h-data (openat): Add space after function
5851         name.
5852         * conform/data/wchar.h-data (wcscasecmp): Likewise.
5853         (wcscasecmp_l): Likewise.
5854         * conform/data/termios.h-data (c_cc): Add space after element
5855         name.
5856
5857 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5858
5859         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5860         instead of manually comparing and reporting mismatching strings.
5861         * misc/tst-ldbl-error.c (do_one_test): Likewise.
5862         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5863
5864 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
5865
5866         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5867         __ASSUME_SOCKETCALL.
5868         * sysdeps/unix/sysv/linux/i386/kernel-features.h
5869         (__ASSUME_SOCKETCALL): Remove.
5870         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5871         (__ASSUME_SOCKETCALL): Likewise.
5872         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5873         (__ASSUME_SOCKETCALL): Likewise.
5874         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5875         (__ASSUME_SOCKETCALL): Likewise.
5876         * sysdeps/unix/sysv/linux/s390/kernel-features.h
5877         (__ASSUME_SOCKETCALL): Likewise.
5878         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5879         (__ASSUME_SOCKETCALL): Likewise.
5880         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5881         (__ASSUME_SOCKETCALL): Likewise.
5882
5883 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5884
5885         [BZ #23509]
5886         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5887         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5888         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5889         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5890         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
5891         lc_unknown.
5892
5893 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
5894
5895         [BZ #17630]
5896         * resolv/tst-resolv-network.c: Add test for getnetbyname.
5897
5898 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
5899
5900         [BZ #23867]
5901         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5902         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5903         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5904         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5905
5906 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5907
5908         * support/support_test_compare_string.c
5909         (support_test_compare_string): Fix printf format.
5910
5911 2018-11-07  Florian Weimer  <fweimer@redhat.com>
5912
5913         Implement TEST_COMPARE_STRING.
5914         * support/check.h (TEST_COMPARE_STRING): Define.
5915         (support_test_compare_string): Declare.
5916         * support/Makefile (libsupport-routines): Add
5917         support_test_compare_string.
5918         (tests): Add tst-test_compare_string.
5919         * support/support_test_compare_string.c: New file.
5920         * support/tst-test_compare_string.c: Likewise.
5921
5922 2018-11-07  Andreas Schwab  <schwab@suse.de>
5923
5924         [BZ #23864]
5925         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5926         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5927         Undef.
5928
5929 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
5930
5931         [BZ #23862]
5932         * sysdeps/unix/sysv/linux/sh/kernel-features.h
5933         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5934         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5935         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5936         Likewise.
5937
5938 2018-11-06  Florian Weimer  <fweimer@redhat.com>
5939
5940         [BZ #17405]
5941         * posix/Makefile (routines): Add spawn_faction_addchdir.
5942         (tests): Add tst-spawn-chdir.
5943         * posix/Versions (GLIBC_2.29): Add
5944         posix_spawn_file_actions_addchdir_np.
5945         * posix/spawn_faction_addchdir.c: New file.
5946         * posix/spawn_faction_destroy.c
5947         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5948         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5949         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5950         chdir_action.
5951         * posix/tst-spawn-chdir.c: New file.
5952         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5953         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5954         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5955         posix_spawn_file_actions_addchdir_np.
5956         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5957         Likewise.
5958         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5959         Likewise.
5960         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5961         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5962         Likewise.
5963         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5964         Likewise.
5965         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5966         Likewise.
5967         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5968         Likewise.
5969         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5970         Likewise.
5971         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5972         Likewise.
5973         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5974         (GLIBC_2.29): Likewise.
5975         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5976         (GLIBC_2.29): Likewise.
5977         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5978         (GLIBC_2.29): Likewise.
5979         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5980         (GLIBC_2.29): Likewise.
5981         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5982         Likewise.
5983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5984         (GLIBC_2.29): Likewise.
5985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5986         (GLIBC_2.29): Likewise.
5987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5988         (GLIBC_2.29): Likewise.
5989         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5990         (GLIBC_2.29): Likewise.
5991         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5992         Likewise.
5993         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5994         Likewise.
5995         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5996         Likewise.
5997         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5998         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5999         Likewise.
6000         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6001         Likewise.
6002         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6003         Likewise.
6004         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6005         Likewise.
6006
6007 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6008
6009         * misc/Makefile (tests): Add tst-ldbl-error.
6010         * misc/tst-ldbl-error.c: New file.
6011
6012 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6013
6014         * misc/Makefile (tests): Add tst-ldbl-warn.
6015         * misc/tst-ldbl-warn.c: New file.
6016
6017 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
6018
6019         * argp/Makefile (tests): Add tst-ldbl-argp.
6020         * argp/tst-ldbl-argp.c: New file.
6021
6022 2018-11-05  Arjun Shankar  <arjun@redhat.com>
6023
6024         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
6025         __gconv_path_elem and call __gconv_get_path unconditionally.
6026
6027 2018-11-05  Andreas Schwab  <schwab@suse.de>
6028
6029         [BZ #22927]
6030         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
6031         creating the first helper thread failed.
6032
6033 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6034
6035         * sysdeps/mach/hurd/msync.c: New file.
6036
6037 2018-11-02  Florian Weimer  <fweimer@redhat.com>
6038
6039         * support/shell-container.c (copy_func): Call
6040         support_copy_file_range instead of copy_file_range to support
6041         cross-device copies.
6042
6043 2018-11-02  Florian Weimer  <fweimer@redhat.com>
6044
6045         * support/test-container.c: Include <libc-pointer-arith.h> for
6046         ALIGN_UP.
6047
6048 2018-11-01  Zong Li  <zong@andestech.com>
6049
6050         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
6051         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
6052         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
6053         (__FP_FRAC_SET_8): Add implementation for RV32 use.
6054
6055         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
6056         variable to avoid overlap arguments.
6057
6058 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
6059
6060         * posix/bug-regex22.c (main): Use puts with distinct error
6061         messages for unexpected success of re_compile_pattern, not printf
6062         with NULL argument to %s.
6063
6064         * stdio-common/bug22.c: Include <libc-diag.h>.
6065         (do_test): Disable -Wformat-overflow= warnings around fprintf
6066         calls outputting more than INT_MAX characters.
6067         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
6068         around printf call with NULL %s argument.
6069
6070         [BZ #23848]
6071         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
6072         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
6073         Undefine.
6074         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6075         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6076         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6077         (__ASSUME_SENDTO_SYSCALL): Likewise.
6078         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6079         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
6080         [!__arch64__].
6081         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6082         (__ASSUME_CONNECT_SYSCALL): Likewise.
6083         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
6084         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6085         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
6086         Define.
6087         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
6088         Likewise.
6089         [__LINUX_KERNEL_VERSION >= 0x040400]
6090         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6091         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
6092         Remove.
6093         (listen): Likewise.
6094         (setsockopt): Likewise.
6095
6096 2018-11-01  Fredrik Noring  <noring@nocrew.org>
6097
6098         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
6099         with the ISA override.
6100
6101 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
6102
6103         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
6104         #endif.
6105
6106 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6107
6108         * manual/errno.texi (EIEIO): Document how translators should
6109         translate the error message.
6110         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
6111         printing trailing whitespaces refused by git.
6112         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
6113         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
6114         * hurd/Makefile (user-interfaces): Add pci.
6115
6116 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
6117
6118         * conform/linknamespace.py: New file.
6119         * conform/linknamespace.pl: Remove file.
6120         * conform/Makefile ($(linknamespace-header-tests)): Use
6121         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
6122         option.
6123
6124 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6125
6126         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
6127         memory leaks.
6128
6129 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6130
6131         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
6132
6133 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6134
6135         * stdlib/tst-strtod-overflow.c (do_test): Switch to
6136         support_blob_repeat.
6137
6138 2018-10-30  Florian Weimer  <fweimer@redhat.com>
6139
6140         Avoid spurious test failures in stdlib/test-bz22786.
6141         * support/Makefile (libsupport-routines): Add blob_repeat.
6142         (tests): Add tst-support_blob_repeat.
6143         * support/blob_repeat.h: New file.
6144         * support/blob_repeat.c: Likewise.
6145         * support/tst-support_blob_repeat.c: Likewise.
6146         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
6147         support_blob_repeat_allocate.
6148
6149 2018-10-30  Andreas Schwab  <schwab@suse.de>
6150
6151         [BZ #23125]
6152         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
6153         Don't use tail call.
6154         * elf/tst-unwind-main.c: New file.
6155         * elf/Makefile (tests): Add tst-unwind-main.
6156         (CFLAGS-tst-unwind-main.c): Define.
6157
6158 2018-10-29  Sergi Almacellas Abellana <sergi@koolpi.com>
6159
6160         [BZ #23791]
6161         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
6162         n_cs_precedes to 0.
6163         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
6164
6165 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6166
6167         * conform/glibcconform.py: Do not import shutil.
6168         (list_exported_functions): Use tempfile.TemporaryDirectory instead
6169         of mkdtemp.
6170
6171         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
6172         critic_missing for versions before 3.4.
6173         * configure: Regenerated.
6174         * manual/install.texi (Tools for Compilation): Document
6175         requirement for Python to build glibc.
6176         * INSTALL: Regenerated.
6177         * Rules [PYTHON]: Make code unconditional.
6178         * benchtests/Makefile [PYTHON]: Likewise.
6179         * conform/Makefile [PYTHON]: Likewise.
6180         * manual/Makefile [PYTHON]: Likewise.
6181         * math/Makefile [PYTHON]: Likewise.
6182
6183 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6184
6185         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
6186         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
6187         answer to interrupt_operation, return EIEIO instead of EINTR.
6188         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
6189         _hurd_intr_rpc_msg_about_to global point to start of controlled
6190         assembly snippet. Make it check canceled flag.
6191         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
6192         the _hurd_intr_rpc_msg_about_to point.
6193         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
6194         issue, remove cancel flag check.
6195
6196 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
6197
6198         * scripts/build-many-glibcs.py: Remove compatibility for missing
6199         os.cpu_count and re.fullmatch.
6200
6201 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6202
6203         [BZ #23822]
6204         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
6205         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
6206         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
6207
6208 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
6209
6210         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
6211         macro.
6212
6213 2018-10-25  Florian Weimer  <fweimer@redhat.com>
6214
6215         [BZ #23562]
6216         [BZ #23821]
6217         XFAIL siginfo_t si_band conform test on sparc64.
6218         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
6219         (__SI_BAND_TYPE): Only override long int default type on sparc64.
6220         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
6221         (conformtest-xfail-conds): Add sparc64-linux.
6222         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
6223         sparc64.
6224         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
6225
6226 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
6227
6228         * elf/elf.h (NT_MIPS_DSP): New macro.
6229         (NT_MIPS_FP_MODE): Likewise.
6230
6231 2018-10-25  Zong Li  <zong@andestech.com>
6232
6233         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
6234         name by adding the file extension (.so).
6235
6236 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6237
6238         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
6239         (test-xfail-ISO11/threads.h/linknamespace,
6240         test-xfail-ISO11/threads.h/conform): Add.
6241
6242 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
6243
6244         * math/gen-libm-test.py: Import os.
6245         (ALL_FLOATS_MANUAL): New constant.
6246         (ALL_FLOATS_SUFFIX): Likewise.
6247         (Ulps.all_functions): New function.
6248         (real_all_ulps): Likewise.
6249         (generate_err_table_sub): Likewise.
6250         (generate_err_table): Likewise.
6251         (main): Handle -s and -m options.
6252         * manual/libm-err-tab.pl: Remove.
6253         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
6254         instead of libm-err-tab.pl.
6255         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
6256         != no].
6257         * manual/install.texi (Tools for Compilation): Document
6258         requirement for Python to build manual.
6259         * INSTALL: Regenerated.
6260
6261 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
6262
6263         * bits/time64.h: New file.
6264         * include/time.h: Replace internal_time_t with __time64_t.
6265         * posix/bits/types (__time64_t): Add.
6266         * stdlib/Makefile: Add bits/time64.h to includes.
6267         * time/tzfile.c: Replace internal_time_t with __time64_t.
6268
6269 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6270
6271         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
6272         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
6273         __posix_spawn_file_actions_init, __posix_spawnattr_init,
6274         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
6275         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
6276         prototype.
6277         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
6278         * posix/spawn_faction_addclose.c
6279         (__posix_spawn_file_actions_addclose): Add hidden definition.
6280         * posix/spawn_faction_adddup2.c
6281         (__posix_spawn_file_actions_adddup2): Likewise.
6282         * posix/spawn_faction_destroy.c
6283         (__posix_spawn_file_actions_destroy): Likewise.
6284         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
6285         Likewise.
6286         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
6287         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
6288         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
6289         Likewise.
6290         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
6291         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
6292         Likewise.
6293
6294 2018-10-24  Andreas Schwab  <schwab@suse.de>
6295
6296         [BZ #18093]
6297         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
6298         format cache.
6299         * elf/cache.c (print_cache): Likewise.
6300
6301 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
6302
6303         * bits/timesize.h: New file.
6304         * stdlib/Makefile (headers): Add bits/timesize.h.
6305         * sysdeps/unix/sysv/linux/bits/msq-pad.h
6306         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6307         * sysdeps/unix/sysv/linux/bits/sem-pad.h
6308         (__SEM_PAD_AFTER_TIME): Likewise.
6309         * sysdeps/unix/sysv/linux/bits/shm-pad.h
6310         (__SHM_PAD_AFTER_TIME): Likewise.
6311         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6312         (__MSQ_PAD_BEFORE_TIME): Likewise.
6313         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6314         (__SEM_PAD_BEFORE_TIME): Likewise.
6315         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6316         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6317         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6318         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6319         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6320         (__MSQ_PAD_BEFORE_TIME): Likewise.
6321         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6322         (__SEM_PAD_BEFORE_TIME): Likewise.
6323         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6324         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6325         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6326         (__MSQ_PAD_BEFORE_TIME): Likewise.
6327         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6328         (__SEM_PAD_BEFORE_TIME): Likewise.
6329         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6330         (__SHM_PAD_BEFORE_TIME): Likewise.
6331         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6332         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6333         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6334
6335 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
6336
6337         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6338         USE_RDTSCP is defined.
6339         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6340         USE_RDTSCP is defined.
6341
6342 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6343
6344         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6345         defined.
6346
6347         [BZ #23709]
6348         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6349         independently of other flags.
6350
6351 2018-10-23  Florian Weimer  <fweimer@redhat.com>
6352
6353         * time/tst-mktime2.c (N_STRINGS): Remove.
6354         (set_timezone): New function.
6355         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
6356         (mktime_test1): Report localtime failure and check errno value.
6357         Use TEST_COMPARE.
6358         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6359         (do_test): Remove alarm call. Use set_timezone and array_length.
6360
6361 2018-10-23  Andreas Schwab  <schwab@suse.de>
6362
6363         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6364         (__start_context): Use END instead of PSEUDO_END.
6365
6366 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
6367
6368         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6369         version to 4.19.
6370
6371         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6372         version to 4.19.
6373
6374         [BZ #23793]
6375         * wcsmbs/c32rtomb.c: New file.
6376         * wcsmbs/mbrtoc32.c: Likewise.
6377         * wcsmbs/tst-c32-state.c: Likewise.
6378         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6379         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6380         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6381         (tests): Add tst-c32-state.
6382         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6383         $(gen-locales).
6384
6385 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6386
6387         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6388         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6389
6390 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
6391
6392         [BZ #23794]
6393         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6394         pair and return 0 in that case, and use saved character to
6395         interpret following character.
6396         * wcsmbs/tst-c16-surrogate.c: New file.
6397         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6398         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6399         Depend on $(gen-locales)
6400
6401 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
6402
6403         [BZ #23562]
6404         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6405         (struct siginfo_t): Use correct type for si_band.
6406
6407 2018-10-19  Florian Weimer  <fweimer@redhat.com>
6408
6409         [BZ #23689]
6410         * resource/bits/types/struct_rusage.h (struct rusage): Update
6411         comment on struct.  Remove extraneous field comment.
6412
6413 2018-10-18  David S. Miller  <davem@davemloft.net>
6414
6415         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6416         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6417         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6418         sysdep_routines in subdir elf.
6419         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6420         version for __vdso_clock_gettime.
6421         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6422         Define.
6423         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6424         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6425
6426         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6427
6428 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
6429
6430         * sysdeps/i386/init-arch.h: Removed.
6431         * sysdeps/i386/i586/init-arch.h: Likewise.
6432         * sysdeps/i386/i686/init-arch.h: Likewise.
6433         * sysdeps/i386/i686/hp-timing.h: Likewise.
6434         * sysdeps/x86_64/hp-timing.h: Likewise.
6435         * sysdeps/i386/isa.h: New file.
6436         * sysdeps/i386/i586/isa.h: Likewise.
6437         * sysdeps/i386/i686/isa.h: Likewise.
6438         * sysdeps/x86_64/isa.h: Likewise.
6439         * sysdeps/x86/hp-timing.h: New file.
6440         * sysdeps/x86/init-arch.h: Include <isa.h>.
6441
6442 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
6443
6444         * math/libm-test-pow.inc (pow_test_data): Do not allow
6445         divide-by-zero exception for pow(+/- 0, -Inf).
6446
6447 2018-10-17  Zack Weinberg  <zackw@panix.com>
6448
6449         * manual/job.texi (Job Control is Optional): Remove node, as
6450         job control has not been optional in quite some time.
6451         (Job Control): Mention briefly that systems older than
6452         POSIX.1-2001 might not support job control.
6453         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6454         defined on systems conforming to POSIX.1-2001.
6455
6456 2018-10-17  Arjun Shankar  <arjun@redhat.com>
6457
6458         [BZ #22062]
6459         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6460         indentation.
6461         * (__gconv_read_conf): Mark function static.
6462         * (once): New static variable.
6463         * (__gconv_load_conf): New function.
6464         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6465         * iconv/gconv_db.c (once): Remove static variable.
6466         * (__gconv_compare_alias): Use __gconv_load_conf instead of
6467         __gconv_read_conf.
6468         * (__gconv_find_transform): Likewise.
6469         * iconv/tst-iconv-mt.c: New test.
6470         * iconv/Makefile: Add tst-iconv_mt.
6471
6472 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
6473
6474         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6475         bits/shm-pad.h.
6476         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6477         (shmatt_t): Define as __syscall_ulong_t.
6478         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6479         and [__SHM_PAD_AFTER_TIME].
6480         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6481         Define shm_segsz and associated padding based on
6482         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6483         Use __syscall_ulong_t instead of unsigned long int.
6484         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6485         unsigned long int.
6486         [__USE_MISC] (struct shm_info): Likewise.
6487         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6488         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6489         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6490         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6491         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6492         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6493         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6494         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6495         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6496         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6497         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6498
6499         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6500         bits/shmlba.h.
6501         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6502         (SHMLBA): Remove macro.
6503         (__getpagesize): Remove function declaration.
6504         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6505         <bits/shmlba.h>.
6506         (SHMLBA): Remove macro.
6507         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6508         <bits/shmlba.h>.
6509         (SHMLBA): Remove macro.
6510         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6511         <bits/shmlba.h>.
6512         (SHMLBA): Remove macro.
6513         (__getpagesize): Remove function declaration.
6514         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6515         <bits/shmlba.h>.
6516         (SHMLBA): Remove macro.
6517         (__getshmlba): Remove function declaration.
6518         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6519         (SHMLBA): Remove macro.
6520         (__getpagesize): Remove function declaration.
6521         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6522         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6523         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6524         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6525         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6526         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6527         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6528         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6529         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6530         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6531
6532 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
6533
6534         [BZ #23275]
6535         * nptl/tst-mutex10.c: New File.
6536         * nptl/Makefile (tests): Add tst-mutex10.
6537         (tst-mutex10-ENV): New variable.
6538         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6539         Ensure that elision path is used if elision is available.
6540         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6541         Likewise.
6542         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6543         Likewise.
6544         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6545         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6546         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6547         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6548         Likewise.
6549         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6550         (__pthread_mutex_cond_lock_adjust): Likewise.
6551         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6552         Likewise.
6553         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6554         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6555         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6556         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6557         Add comments.
6558         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6559         Use atomic_load_relaxed and atomic_store_relaxed.
6560         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6561         Use atomic_store_relaxed.
6562
6563 2018-10-17  Andreas Schwab  <schwab@suse.de>
6564
6565         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6566         * crypt/badsalttest.c (TIMEOUT): Likewise.
6567         * crypt/sha256c-test.c (TIMEOUT): Likewise.
6568         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6569         * io/test-lfs.c (TIMEOUT): Likewise.
6570         * libio/tst-atime.c (TIMEOUT): Likewise.
6571         * localedata/tst-leaks.c (TIMEOUT): Likewise.
6572         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6573         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6574         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6575         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6576         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6577         * nptl/tst-cond11.c (TIMEOUT): Likewise.
6578         * nptl/tst-cond14.c (TIMEOUT): Likewise.
6579         * nptl/tst-cond15.c (TIMEOUT): Likewise.
6580         * nptl/tst-cond24.c (TIMEOUT): Likewise.
6581         * nptl/tst-cond25.c (TIMEOUT): Likewise.
6582         * nptl/tst-kill2.c (TIMEOUT): Likewise.
6583         * nptl/tst-kill3.c (TIMEOUT): Likewise.
6584         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6585         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6586         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6587         * nptl/tst-once2.c (TIMEOUT): Likewise.
6588         * nptl/tst-once3.c (TIMEOUT): Likewise.
6589         * nptl/tst-once4.c (TIMEOUT): Likewise.
6590         * nptl/tst-robust8.c (TIMEOUT): Likewise.
6591         * nptl/tst-robust9.c (TIMEOUT): Likewise.
6592         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6593         * nptl/tst-sem14.c (TIMEOUT): Likewise.
6594         * nptl/tst-sem6.c (TIMEOUT): Likewise.
6595         * nptl/tst-signal3.c (TIMEOUT): Likewise.
6596         * nptl/tst-spin4.c (TIMEOUT): Likewise.
6597         * nptl/tst-tls3.c (TIMEOUT): Likewise.
6598         * nptl/tst-tls4.c (TIMEOUT): Likewise.
6599         * posix/tst-chmod.c (TIMEOUT): Likewise.
6600         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6601         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6602         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6603         * posix/tst-regex2.c (TIMEOUT): Likewise.
6604         * posix/tst-waitid.c (TIMEOUT): Likewise.
6605         * rt/tst-aio.c (TIMEOUT): Likewise.
6606         * rt/tst-aio10.c (TIMEOUT): Likewise.
6607         * rt/tst-aio4.c (TIMEOUT): Likewise.
6608         * rt/tst-aio5.c (TIMEOUT): Likewise.
6609         * rt/tst-aio6.c (TIMEOUT): Likewise.
6610         * rt/tst-aio64.c (TIMEOUT): Likewise.
6611         * rt/tst-aio7.c (TIMEOUT): Likewise.
6612         * rt/tst-aio9.c (TIMEOUT): Likewise.
6613         * rt/tst-clock.c (TIMEOUT): Likewise.
6614         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6615         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6616         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6617         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6618         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6619         * rt/tst-timer4.c (TIMEOUT): Likewise.
6620         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6621         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6622         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6623         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6624         * time/tst-ftime.c (TIMEOUT): Likewise.
6625         * timezone/tst-tzset.c (TIMEOUT): Likewise.
6626
6627 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6628
6629         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6630         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6631         for thunderX2.
6632
6633 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
6634
6635         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6636         bits/sem-pad.h.
6637         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6638         instead of <bits/wordsize.h>.
6639         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6640         and [__SEM_PAD_AFTER_TIME].
6641         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
6642         __syscall_ulong_t instead of unsigned long int.
6643         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6644         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6645         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6646         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6647         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6648         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6649         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6650         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6651         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6652         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6653         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6654
6655 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
6656
6657         regex: simplify by using intprops.h
6658         [BZ#23744]
6659         * posix/regex_internal.h [_LIBC]: Include intprops.h.
6660         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6661         intprops.h defines them.
6662
6663         regex: __builtin_expect → __glibc_unlikely
6664         [BZ#23744]
6665         This refactoring was prompted by a problem when the regex code is
6666         used as part of Gnulib and when the builder’s compiler does not grok
6667         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
6668         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6669         Although this refactoring does not fix the problem directly,
6670         we might as well have Gawk use the now-preferred glibc style for when
6671         __builtin_expect is unavailable.
6672         * posix/regex_internal.h (BE): Remove.
6673         All uses replaced by __glibc_unlikely or __glibc_likely.
6674
6675 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
6676
6677         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6678         bits/msq-pad.h.
6679         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6680         instead of <bits/wordsize.h>.
6681         (msgqnum_t): Define as __syscall_ulong_t.
6682         (msglen_t): Likewise.
6683         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6684         and [__MSQ_PAD_AFTER_TIME].
6685         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
6686         __syscall_ulong_t instead of unsigned long int.
6687         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6688         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6689         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6690         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6691         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6692         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6693         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6694         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6695         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6696         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6697         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6698
6699 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
6700
6701         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6702         (struct shmid_ds): Condition padding after time fields on
6703         [__WORDSIZE == 32].
6704         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6705         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6706         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6707
6708         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6709         (struct semid_ds): Condition padding after time fields on
6710         [__WORDSIZE == 32].
6711         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6712         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6713         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6714         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6715
6716         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6717         (struct msqid_ds): Condition padding after time fields on
6718         [__WORDSIZE == 32].
6719         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6720         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6721         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6722         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6723
6724 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6725
6726         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6727
6728 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6729
6730         * libio/tst-readline.c (TIMEOUT): Define.
6731
6732 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
6733
6734         mktime fix for Gnulib + coreutils
6735         [BZ#23745]
6736         This fix affects only Gnulib.  Problem discovered when
6737         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6738         * time/mktime.c:
6739         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6740         Do not define since it is not used.  Defining an unused static
6741         function prompts a warning from GCC when Coreutils is configured
6742         with --enable-gcc-warnings.
6743
6744 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6745
6746         * benchtests/scripts/compare_bench.py (main): set float type on
6747         threshold argument.
6748
6749 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
6750
6751         [BZ #23740]
6752         * localedata/locales/kl_GL (mon): Update, the relative case.
6753         (alt_mon): Add, fill with month names in the nominative case.
6754         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6755         (d_fmt): Set to "%b %d %Y".
6756
6757 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
6758
6759         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6760         <bits/mman-linux.h>.
6761         (PROT_READ): Don't define here.
6762         (PROT_WRITE): Likewise.
6763         (PROT_EXEC): Likewise.
6764         (PROT_NONE): Likewise.
6765         (PROT_GROWSDOWN): Likewise.
6766         (PROT_GROWSUP): Likewise.
6767         (MAP_SHARED): Likewise.
6768         (MAP_PRIVATE): Likewise.
6769         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6770         [__USE_MISC] (MAP_FILE): Likewise.
6771         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6772         [__USE_MISC] (MAP_ANON): Likewise.
6773         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6774         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6775         (MCL_CURRENT): Likewise.
6776         (MCL_FUTURE): Likewise.
6777         (MCL_ONFAULT): Likewise.
6778         [__USE_MISC] (MADV_NORMAL): Likewise.
6779         [__USE_MISC] (MADV_RANDOM): Likewise.
6780         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6781         [__USE_MISC] (MADV_WILLNEED): Likewise.
6782         [__USE_MISC] (MADV_DONTNEED): Likewise.
6783         [__USE_MISC] (MADV_FREE): Likewise.
6784         [__USE_MISC] (MADV_REMOVE): Likewise.
6785         [__USE_MISC] (MADV_DONTFORK): Likewise.
6786         [__USE_MISC] (MADV_DOFORK): Likewise.
6787         [__USE_MISC] (MADV_HWPOISON): Likewise.
6788         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6789         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6790         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6791         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6792         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6793         (__MAP_ANONYMOUS): New macro.
6794         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6795         <bits/mman-linux.h> inclusion.
6796         (MAP_FIXED): Likewise.
6797         (MS_SYNC): Likewise.
6798         (MS_ASYNC): Likewise.
6799         (MS_INVALIDATE): Likewise.
6800         [__USE_MISC] (MADV_MERGEABLE): Likewise.
6801         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6802         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6803         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6804         [__USE_MISC] (MADV_DONTDUMP): Likewise.
6805         [__USE_MISC] (MADV_DODUMP): Likewise.
6806         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6807         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6808
6809         [BZ #23735]
6810         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6811         Define.
6812         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6813         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6814         Add test-nldbl-redirect.
6815         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6816         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6817         $(objpfx)libnldbl_nonshared.a.
6818
6819 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
6820
6821         * support/support.h (support_objdir_elf_ldso): New variable.
6822         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6823         * support/Makefile (CFLAGS-support_paths.c): Add definition
6824         for OBJDIR_ELF_LDSO_PATH.
6825         * support/test-container.c (main): Search for the ld.so
6826         which is also used by the testsuite.
6827
6828 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
6829
6830         [BZ #20209]
6831         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6832         should be "sap" rather than "sab".
6833         (day): Fix spelling of Sunday, should be "sapaat" rather than
6834         "sabaat".
6835
6836 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * math/libm-test-fma.inc (fma_test_data): Add more tests.
6839
6840 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
6841
6842         [BZ #19444]
6843         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6844         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6845         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6846
6847 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6848
6849         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6850
6851 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6852
6853         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6854         Add -mrtm.
6855         (CFLAGS-elision-unlock.c): Likewise.
6856         (CFLAGS-elision-timed.c): Likewise.
6857         (CFLAGS-elision-trylock.c): Likewise.
6858         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6859
6860 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6861
6862         [BZ #21037]
6863         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6864         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6865         new fd_to_filename interface.
6866         * libio/freopen64.c (freopen64): Likewise.
6867         * libio/tst-memstream.h: New file.
6868         * libio/tst-memstream4.c: Likewise.
6869         * libio/tst-wmemstream4.c: Likewise.
6870         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6871         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6872         and remove internal dynamic allocation.
6873
6874 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
6875
6876         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6877         (MREMAP_MAYMOVE): Do not define here.
6878         [__USE_GNU] (MREMAP_FIXED): Likewise.
6879         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6880         (MREMAP_MAYMOVE): Define here instead.
6881         [__USE_GNU] (MREMAP_FIXED): Likewise.
6882         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6883         (MREMAP_MAYMOVE): Remove.
6884         [__USE_GNU] (MREMAP_FIXED): Likewise.
6885
6886 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
6887
6888         * math/fromfp.h: Do not include <math_private.h>.
6889         * math/s_cacosh_template.c: Likewise.
6890         * math/s_casin_template.c: Likewise.
6891         * math/s_casinh_template.c: Likewise.
6892         * math/s_ccos_template.c: Likewise.
6893         * math/s_cproj_template.c: Likewise.
6894         * math/s_fdim_template.c: Likewise.
6895         * math/s_fmaxmag_template.c: Likewise.
6896         * math/s_fminmag_template.c: Likewise.
6897         * math/s_iseqsig_template.c: Likewise.
6898         * math/s_ldexp_template.c: Likewise.
6899         * math/s_nextdown_template.c: Likewise.
6900         * math/w_log1p_template.c: Likewise.
6901         * math/w_scalbln_template.c: Likewise.
6902         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6903         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6904         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6905         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6906         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6907         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6908         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6909         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6910         * sysdeps/i386/fpu/s_atanl.c: Likewise.
6911         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6912         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6913         * sysdeps/i386/fpu/s_fdim.c: Likewise.
6914         * sysdeps/i386/fpu/s_logbl.c: Likewise.
6915         * sysdeps/i386/fpu/s_rintl.c: Likewise.
6916         * sysdeps/i386/fpu/s_significandl.c: Likewise.
6917         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6918         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6919         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6920         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6921         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6922         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6923         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6924         * sysdeps/ieee754/k_standardf.c: Likewise.
6925         * sysdeps/ieee754/k_standardl.c: Likewise.
6926         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6927         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6928         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6929         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6930         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6931         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6932         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6933         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6934         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6935         * sysdeps/ieee754/s_signgam.c: Likewise.
6936         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6937         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6938         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6939         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6940         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6941         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6942         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6943         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6944         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6945         * sysdeps/riscv/rvd/s_finite.c: Likewise.
6946         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6947         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6948         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6949         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6950         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6951         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6952         * sysdeps/riscv/rvf/fegetround.c: Likewise.
6953         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6954         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6955         * sysdeps/riscv/rvf/fesetround.c: Likewise.
6956         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6957         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6958         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6959         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6960         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6961         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6962         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6963         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6964         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6965         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6966         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6967         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6968         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6969         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6970         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6971         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6972         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6973         <math_private.h>.
6974         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6975
6976 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
6977
6978         [BZ #23716]
6979         * sysdeps/i386/dl-cet.c: Removed.
6980         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6981         prototype.
6982         (_dl_runtime_profile_shstk): Likewise.
6983         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6984         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6985
6986 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6987
6988         [BZ #23579]
6989         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6990         do_test_with_invalid_iov): New tests.
6991         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6992         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6993         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6994         errno is ENOSYS.
6995         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6996         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6997         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6998
6999 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
7000
7001         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7002         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
7003         (MATH_REDIRECT_BINARY_ARGS): New macro.
7004         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7005         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
7006         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
7007         header inclusion.
7008         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
7009         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
7010         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
7011         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
7012         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
7013         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7014         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
7016         Likewise.
7017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
7018         Likewise.
7019         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
7020         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
7021         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
7022         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
7023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
7024         Likewise.
7025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
7026         Likewise.
7027         * sysdeps/generic/math_private_calls.h
7028         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
7029         Do not declare and define as an inline function.
7030         * math/divtc3.c (__divtc3): Use copysign functions instead of
7031         __copysign variants.
7032         * math/multc3.c (__multc3): Likewise.
7033         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
7034         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
7035         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7036         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7037         Likewise.
7038         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7039         (__ieee754_yn): Likewise.
7040         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7041         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
7042         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7043         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7044         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
7045         (__sin): Likewise.
7046         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
7047         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
7048         Likewise.
7049         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7050         Likewise.
7051         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7052         Likewise.
7053         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7054         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7055         Likewise.
7056         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
7057         (__ieee754_ynf): Likewise.
7058         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
7059         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7060         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7061         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7062         Likewise.
7063         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7064         (__ieee754_ynl): Likewise.
7065         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7066         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7067         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7068         Likewise.
7069         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7070         (__ieee754_ynl): Likewise.
7071         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
7072         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7073         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7074         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7075         Likewise.
7076         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7077         (__ieee754_ynl)
7078         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
7079         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7080         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
7081         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7082         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7083
7084         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7085         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
7086         using MATH_REDIRECT.
7087         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
7088         header inclusion.
7089         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
7090         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
7091         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
7092         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
7093         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
7094         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
7095         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7096         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
7097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
7098         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
7099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
7100         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7101         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7102         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
7103         (round): Redirect to __round.
7104         (__roundl): Call round instead of __round.
7105         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
7106         Remove macro.
7107         [_ARCH_PWR5X] (__roundf): Likewise.
7108         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
7109         functions instead of __round variants.
7110         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7111         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7112         Likewise.
7113         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7114         Likewise.
7115         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7116         Likewise.
7117         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
7118         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
7119         __lroundl.
7120         (__ieee754_expl): Call roundl instead of __roundl.
7121
7122 2018-09-27  Andreas Schwab  <schwab@suse.de>
7123
7124         [BZ #23717]
7125         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
7126         (do_test): Make st1 static.
7127
7128 2018-09-26  Andreas Schwab  <schwab@suse.de>
7129
7130         [BZ #23707]
7131         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
7132         * elf/Makefile (tests): Add tst-unwind-ctor.
7133         (modules-names): Add tst-unwind-ctor-lib.
7134         ($(objpfx)tst-unwind-ctor): Depend on
7135         $(objpfx)tst-unwind-ctor-lib.so.
7136
7137 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
7138
7139         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
7140         file.  Most contents moved from ....
7141         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
7142         and include <bits/mman-map-flags-generic.h>.
7143         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7144         (sysdep_headers): Add bits/mman-map-flags-generic.h.
7145         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
7146         <bits/mman-map-flags-generic.h>.
7147         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
7148         macros defined in <bits/mman-map-flags-generic.h>.
7149         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
7150         <bits/mman-map-flags-generic.h>.
7151         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
7152         defined in <bits/mman-map-flags-generic.h>.
7153
7154 2018-09-26  Andreas Schwab  <schwab@suse.de>
7155
7156         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
7157         output.
7158
7159 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
7160             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7161             Fangrui Song  <maskray@google.com>
7162
7163         [BZ #20480]
7164         * config.make.in (have-textrel_ifunc): New define.
7165         * configure.ac: Add check if linker supports textrel relocation with
7166         ifunc.
7167         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
7168         tst-ifunc-textrel.
7169         (CFLAGS-tst-ifunc-textrel.c): New rule.
7170         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
7171         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
7172         * elf/tst-ifunc-textrel.c: New file.
7173
7174 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
7175
7176         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7177         <bits/procfs-prregset.h>.
7178         (prgregset_t): Define using __prgregset_t.
7179         (prfpregset_t): Define using __prfpregset_t.
7180         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7181         (sysdep_headers): Add bits/procfs-prregset.h.
7182         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
7183         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
7184         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
7185         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
7186
7187         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
7188         <bits/procfs-id.h> and <bits/procfs-extra.h>.
7189         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
7190         pr_uid and pr_gid.
7191         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7192         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
7193         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
7194         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
7195         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
7196         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
7197         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
7198         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
7199         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
7200         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
7201         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
7202         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
7203         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
7204         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
7205         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
7206         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
7207         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
7208         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
7209         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
7210         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
7211         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
7212         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
7213         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
7214         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
7215
7216         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
7217         AArch64 version.  Include <bits/procfs.h>.
7218         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
7219         (sysdep_headers): Add bits/procfs.h.
7220         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
7221         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
7222         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
7223         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
7224         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
7225         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
7226         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
7227         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
7228         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
7229         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
7230         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
7231         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
7232         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
7233         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
7234         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
7235         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
7236         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
7237
7238 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7239
7240         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
7241         Use libsupport.
7242
7243 2018-09-25  Arjun Shankar  <arjun@redhat.com>
7244
7245         * iconv/gconv_int.h (__gconv_path_elem): Remove.
7246         (__gconv_max_path_elem_len): Likewise.
7247         (__gconv_nmodules): Likewise.
7248         (__gconv_get_path): Likewise.
7249         (path_elem): Move to ...
7250         * iconv/gconv_conf.c: ... here.
7251         (__gconv_get_path): Mark function static.
7252         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
7253         * iconv/gconv_open.c: ... here.
7254
7255 2018-09-24  Andreas Schwab  <schwab@suse.de>
7256
7257         * scripts/haveversions.awk: New file.
7258         * Makerules ($(common-objpfx)Versions.def)
7259         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7260         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7261         Move rules ...
7262         * Makeconfig ($(common-objpfx)Versions.def)
7263         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
7264         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
7265         ... here.
7266         ($(common-objpfx)Versions.mk): New rule.  Include it.
7267         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
7268         Emit error if build-obsolete-nsl = yes.
7269         * manual/install.texi (Configuring and compiling): Describe
7270         --enable-obsolete-nsl as unavaiable after version 2.28.
7271         * INSTALL: Regenerate.
7272
7273 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7274
7275         * NEWS: Add note about new TLE support on powerpc64le.
7276         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
7277         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
7278         __ununsed1.
7279         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
7280         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
7281         * sysdeps/powerpc/powerpc32/sysdep.h,
7282         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
7283         ABORT_TRANSACTION): Remove macros.
7284         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
7285         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
7286         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
7287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
7288         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
7289         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
7290         usage.
7291         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
7292
7293 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
7294
7295         [BZ #10425]
7296         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
7297         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
7298         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
7299         which is the same as in it_IT.
7300         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7301         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7302
7303 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
7304
7305         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7306         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7307         using MATH_REDIRECT.
7308         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7309         header inclusion.
7310         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7311         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7312         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7313         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7314         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7315         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7318         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7319         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7320         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7321         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7322         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7323         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7324         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7325         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7326         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7327         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7328         (ceil): Redirect to __ceil.
7329         (floor): Redirect to __floor.
7330         (trunc): Redirect to __trunc.
7331         (__truncl): Call trunc instead of __trunc.
7332         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7333         Remove macro.
7334         [_ARCH_PWR5X] (__truncf): Likewise.
7335         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7336         trunc functions instead of __trunc variants.
7337         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7338         Likewise.
7339         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7340         Likewise.
7341         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7342         Likewise.
7343         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7344         Likewise.
7345
7346         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7347         [__i586__ || __pentium__].
7348         [__i486__]: Handle explicitly.
7349         (HAS_CPUID): Define to 1 if above macros are undefined.
7350         (HAS_I586): Likewise.
7351         (HAS_I686): Likewise.
7352
7353 2018-09-20  Florian Weimer  <fweimer@redhat.com>
7354
7355         * misc/tst-gethostid.c: New file.
7356         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7357         (tst-gethostid): Link with -ldl.
7358
7359 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
7360
7361         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7362         value from gethostbyname_r.
7363
7364 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
7365
7366         * stdlib/tst-setcontext9.c (f1): Rename to...
7367         (f1a): ... this.
7368         (f1b): New function implementing lower half of f1 in alternate stack.
7369
7370 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7371
7372         Fix mktime localtime offset confusion
7373         [BZ #23603]
7374         * include/time.h (__mktime_internal): The localtime offset is now
7375         of type long int instead of time_t.  This is the longstanding type
7376         in glibc, and it is more than enough to represent difference
7377         between localtime and gmtime even if it is 32 bits and time_t is
7378         64.  Changing it now will let us avoid an unnecessary change when
7379         time_t is widened to 64 bits on 32-bit platforms.
7380         * time/mktime-internal.h (mktime_offset_t): Now long int.
7381
7382         Merge mktime, timegm from upstream Gnulib
7383         [BZ #23603][BZ #16346]
7384         This fixes some obscure problems with integer overflow.
7385         Although it looks scary, it is almost all a byte-for-byte copy
7386         from Gnulib, and the Gnulib code has been tested reasonably well.
7387         * include/intprops.h: New file, copied from Gnulib.
7388         * include/verify.h, time/mktime-internal.h:
7389         New tiny files, simplified from Gnulib.
7390         * time/mktime.c: Copy from Gnulib.  This has the following changes:
7391         Do not include config.h if DEBUG_MKTIME is nonzero.
7392         Include stdbool.h, intprops.h, verify.h.
7393         Include string.h only if needed.
7394         Include stdlib.h on MS-Windows.
7395         Include mktime-internal.h.
7396         (DEBUG_MKTIME): Default to 0, and simplify later uses.
7397         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7398         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7399         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7400         simplify later conditionals; default the others to zero.  Use
7401         these conditionals to express only the code needed on the current
7402         platform.  In uses of these conditionals, explicitly spell out how
7403         _LIBC affects things, so it’s easier to review from a glibc
7404         viewpoint.
7405         (WRAPV): Remove; no longer needed now that we have
7406         systematic overflow checking.
7407         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7408         compartmentalize tzset issues.  Move system-dependent tzsettish
7409         code here from mktime.
7410         (verify): Remove; now done by verify.h.  All uses changed.
7411         (long_int): Use a more-conservative definition, to avoid
7412         integer overflow.
7413         (SHR): Remove, replacing with ...
7414         (shr): New function, which means we needn’t worry about side
7415         effects in args, and conversion analysis is simpler.
7416         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7417         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7418         (time_t_avg, time_t_add_ok): Remove.
7419         (mktime_min, mktime_max): New constants.
7420         (leapyear, isdst_differ): Use bool for booleans.
7421         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7422         Use long_int, not time_t, for mktime differences.
7423         (long_int_avg): New function, replacing time_t_avg.
7424         INT_ADD_WRAPV replaces time_t_add_ok.
7425         (guess_time_tm): 6th arg is now long_int, not time_t const *.
7426         All uses changed.
7427         (convert_time): New function.
7428         (ranged_convert): Use it.
7429         (__mktime_internal): Last arg now points to mktime_offset_t, not
7430         time_t.  All uses changed.  This is a no-op on glibc, where
7431         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
7432         offset guess.  Directly check for integer overflow instead of
7433         using a heuristic that works only 99.9...% of the time.
7434         Access *OFFSET only once, to avoid an unlikely race if the
7435         compiler delays a load and if this cascades into a signed integer
7436         overflow.
7437         (mktime): Move tzsettish code to my_tzset, and move
7438         localtime_offset to within mktime so that it doesn’t
7439         need a separate ifdef.
7440         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7441         instead of localtime.
7442         * time/timegm.c: Copy from Gnulib.  This has the following changes:
7443         Include mktime-internal.h.
7444         [!_LIBC]: Include config.h and time.h.  Do not include
7445         timegm.h or time_r.h.  Make __mktime_internal a macro,
7446         and include mktime-internal.h to get its declaration.
7447         (timegm): Temporary is now mktime_offset_t, not time_t.
7448         This affects only Gnulib.
7449
7450 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
7451
7452         [BZ #23637]
7453         * string/test-strstr.c (pr23637): New function.
7454         (test_main): Add tests with longer needles.
7455         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7456         * string/strstr.c (AVAILABLE): Likewise.
7457
7458 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7459
7460         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7461
7462 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7463
7464         * NEWS: Mention pow improvements.
7465         * math/Makefile (type-double-routines): Add e_pow_log_data.
7466         * sysdeps/generic/math_private.h (__exp1): Remove.
7467         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7468         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7469         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7470         contraction.
7471         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7472         (exp_inline): Remove.
7473         (__ieee754_exp): Only single double input is handled.
7474         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7475         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7476         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7477         (__pow_log_data): Define.
7478         * sysdeps/ieee754/dbl-64/upow.h: Remove.
7479         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7480         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7481         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7482         contraction.
7483         (CFLAGS-e_pow-fma4.c): Likewise.
7484
7485 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7486
7487         Simplify tzfile fstat failure code
7488         [BZ #21716]
7489         * time/tzfile.c (__tzfile_read): Simplify slightly.
7490
7491         Fix tzfile low-memory assertion failure
7492         [BZ #21716]
7493         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7494         when registering time zone abbreviations.
7495
7496 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
7497
7498         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7499         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7500         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7501         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7502         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7503         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7504         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7505         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7506         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7507
7508         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7509         __ceil.
7510         (__ceill): Call ceil instead of __ceil.
7511         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7512         __floor.
7513         (__floorl): Call floor instead of __floor.
7514
7515 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
7516
7517         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7518         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7519         using MATH_REDIRECT.
7520         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7521         header inclusion.
7522         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7523         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7524         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7525         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7526         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7527         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7528         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7529         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7532         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7534         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7535         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7536         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7537         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7538         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7539         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7540         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7541         Remove macro.
7542         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7543         functions instead of __ceil variants.
7544         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7545         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7546         Likewise.
7547         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7548         Likewise.
7549         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7550         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7551         Likewise.
7552         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7553         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7554
7555         [BZ #21286]
7556         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7557         constant.
7558         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7559         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7560         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7561         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7562         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7563         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7564         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7565         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7566         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7567         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7568         (ILL_BADIADDR): Remove constant.
7569         (TRAP_BRANCH): Likewise.
7570         (TRAP_HWBKPT): Likewise.
7571
7572 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
7573
7574         [BZ #23656]
7575         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7576         Remove [_MIPS_SIM = _ABIN32] conditional case.
7577         (struct elf_prpsinfo): Likewise.
7578
7579         [BZ #23649]
7580         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7581         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7582         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7583         Likewise.
7584         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7585         elf_prpsinfo): Likewise.
7586         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7587         elf_prpsinfo): Likewise.
7588         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7589         Likewise.
7590
7591         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7592         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7593         using MATH_REDIRECT.
7594         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7595         header inclusion.
7596         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7597         * sysdeps/alpha/fpu/s_rint.c: Likewise.
7598         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7599         * sysdeps/i386/fpu/s_rintl.c: Likewise.
7600         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7601         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7602         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7603         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7604         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7605         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7606         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7607         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7608         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7609         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7610         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7611         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7612         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7613         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7614         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7617         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7618         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7619         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7620         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7621         * sysdeps/x86_64/fpu/math_private.h: Remove file.
7622         * math/e_scalb.c (invalid_fn): Use rint functions instead of
7623         __rint variants.
7624         * math/e_scalbf.c (invalid_fn): Likewise.
7625         * math/e_scalbl.c (invalid_fn): Likewise.
7626         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7627         Likewise.
7628         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7629         Likewise.
7630         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7631         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7632         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7633         Likewise.
7634         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7635         Likewise.
7636         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7637         Likewise.
7638         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7639         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7640
7641         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7642         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7643         New macro.
7644         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7645         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7646         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7647         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7648         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7649         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7650         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7651         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7652         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7653         && !NO_MATH_REDIRECT] (floor): Likewise.
7654         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7655         header inclusion.
7656         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7657         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7658         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7659         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7660         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7661         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7662         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7663         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7665         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7668         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7669         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7670         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7671         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7672         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7673         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7674         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7675         Remove macro.
7676         [_ARCH_PWR5X] (__floorf): Likewise.
7677         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7678         inline function.
7679         [__SSE4_1__] (__floorf): Likewise.
7680         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7681         instead of __floor variants.
7682         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7683         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7684         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7685         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7686         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7687         * math/w_tgamma_compat.c (__tgamma): Likewise.
7688         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7689         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7690         * math/w_tgammal_compat.c (__tgammal): Likewise.
7691         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7692         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7693         Likewise.
7694         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7695         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7696         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7697         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7698         Likewise.
7699         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7700         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7701         Likewise.
7702         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7703         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7704         Likewise.
7705         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7706         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7707         Likewise.
7708         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7709         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7710         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7711         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7712         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7713         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7714
7715 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
7716
7717         * elf/Makefile (modules-names-tests): New variable.
7718
7719 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7720
7721         * NEWS: Mention log2 improvements.
7722         * math/Makefile (type-double-routines): Add e_log2_data.
7723         * sysdeps/i386/fpu/e_log2_data.c: New file.
7724         * sysdeps/ia64/fpu/e_log2_data.c: New file.
7725         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7726         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7727         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7728         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7729         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7730
7731 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7732
7733         * NEWS: Mention log improvement.
7734         * math/Makefile (type-double-routines): Add e_log_data.
7735         * sysdeps/i386/fpu/e_log_data.c: New file.
7736         * sysdeps/ia64/fpu/e_log_data.c: New file.
7737         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7738         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7739         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7740         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7741         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7742         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7743
7744 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
7745             Xuepeng Guo  <xuepeng.guo@intel.com>
7746
7747         [BZ #23606]
7748         * sysdeps/i386/start.S: Include <sysdep.h>
7749         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7750         enabled.  Add cfi_undefined (eip).
7751
7752 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
7753
7754         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7755         (MOVQ): Likewise.
7756         (EXTRACT_WORDS64): Likewise.
7757         (INSERT_WORDS64): Likewise.
7758         (GET_FLOAT_WORD): Likewise.
7759         (SET_FLOAT_WORD): Likewise.
7760
7761         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7762         argument.
7763         (Config.build_gcc): Use --disable-libsanitizer for first GCC
7764         build, but not for second build if --full-gcc.  Use
7765         --enable-languages=all for second build if --full-gcc.
7766         (get_parser): Add --full-gcc option.
7767         (main): Update call to Context.
7768
7769 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
7770
7771         [BZ #10797]
7772         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7773         Single Quotation Mark).
7774         (thousands_sep): Likewise.
7775         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7776         * localedata/locales/it_IT (thousands_sep): Use ".".
7777         (grouping): Use "3;3".
7778
7779 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
7780
7781         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7782         x86_64 and i686 configs using --enable-obsolete-rpc
7783         --enable-obsolete-nsl.
7784
7785 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
7786
7787         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7788
7789 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
7790
7791         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7792         Increment size of new_argv by one.
7793
7794 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
7795
7796         [BZ #17426]
7797         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7798         * localedata/locales/ar_IN (d_fmt): Likewise.
7799         * localedata/locales/bhb_IN (d_fmt): Likewise.
7800         * localedata/locales/bho_IN (d_fmt): Likewise.
7801         * localedata/locales/bn_BD (d_fmt): Likewise.
7802         * localedata/locales/bn_IN (d_fmt): Likewise.
7803         * localedata/locales/doi_IN (d_fmt): Likewise.
7804         * localedata/locales/gu_IN (d_fmt): Likewise.
7805         * localedata/locales/hi_IN (d_fmt): Likewise.
7806         * localedata/locales/hne_IN (d_fmt): Likewise.
7807         * localedata/locales/kn_IN (d_fmt): Likewise.
7808         * localedata/locales/mag_IN (d_fmt): Likewise.
7809         * localedata/locales/mai_IN (d_fmt): Likewise.
7810         * localedata/locales/mjw_IN (d_fmt): Likewise.
7811         * localedata/locales/ml_IN (d_fmt): Likewise.
7812         * localedata/locales/mni_IN (d_fmt): Likewise.
7813         * localedata/locales/mr_IN (d_fmt): Likewise.
7814         * localedata/locales/pa_IN (d_fmt): Likewise.
7815         * localedata/locales/raj_IN (d_fmt): Likewise.
7816         * localedata/locales/sat_IN (d_fmt): Likewise.
7817         * localedata/locales/sd_IN (d_fmt): Likewise.
7818         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7819         * localedata/locales/ta_IN (d_fmt): Likewise.
7820         * localedata/locales/ta_LK (d_fmt): Likewise.
7821         * localedata/locales/tcy_IN (d_fmt): Likewise.
7822         * localedata/locales/ur_IN (d_fmt): Likewise.
7823
7824         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7825         * localedata/locales/ks_IN (d_fmt): Likewise.
7826         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7827
7828         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7829         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7830         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7831         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7832
7833 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7834
7835         * NEWS: Mention exp and exp2 improvements.
7836         * math/Makefile (libm-support): Remove t_exp.
7837         (type-double-routines): Add math_err and e_exp_data.
7838         * sysdeps/aarch64/libm-test-ulps: Update.
7839         * sysdeps/arm/libm-test-ulps: Update.
7840         * sysdeps/i386/fpu/e_exp_data.c: New file.
7841         * sysdeps/i386/fpu/math_err.c: New file.
7842         * sysdeps/i386/fpu/t_exp.c: Remove.
7843         * sysdeps/ia64/fpu/e_exp_data.c: New file.
7844         * sysdeps/ia64/fpu/math_err.c: New file.
7845         * sysdeps/ia64/fpu/t_exp.c: Remove.
7846         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7847         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7848         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7849         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7850         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7851         * sysdeps/ieee754/dbl-64/math_config.h: New file.
7852         * sysdeps/ieee754/dbl-64/math_err.c: New file.
7853         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7854         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7855         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7856         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7857         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7858         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7859         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7860         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7861         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7862
7863 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
7864
7865         * sysdeps/alpha/fpu/math_private.h: Remove.
7866
7867         * sysdeps/generic/math_private.h
7868         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7869         Move this inline function ....
7870         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7871         * include/math.h [!_ISOMAC]: To here....
7872
7873 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
7874
7875         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7876         code ....
7877         [!FE_HAVE_ROUNDING_MODES]: And this code ....
7878         * include/fenv.h [!_ISOMAC]: ... to here.
7879         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7880         (feraiseexcept): Likewise.
7881         * math/fromfp.h: Do not include <fenv_private.h>.
7882         * math/s_cexp_template.c: Likewise.
7883         * math/s_csin_template.c: Likewise.
7884         * math/s_csinh_template.c: Likewise.
7885         * math/s_ctan_template.c: Likewise.
7886         * math/s_ctanh_template.c: Likewise.
7887         * math/s_iseqsig_template.c: Likewise.
7888         * math/w_acos_compat.c: Likewise.
7889         * math/w_acosf_compat.c: Likewise.
7890         * math/w_acosl_compat.c: Likewise.
7891         * math/w_asin_compat.c: Likewise.
7892         * math/w_asinf_compat.c: Likewise.
7893         * math/w_asinl_compat.c: Likewise.
7894         * math/w_j0_compat.c: Likewise.
7895         * math/w_j0f_compat.c: Likewise.
7896         * math/w_j0l_compat.c: Likewise.
7897         * math/w_j1_compat.c: Likewise.
7898         * math/w_j1f_compat.c: Likewise.
7899         * math/w_j1l_compat.c: Likewise.
7900         * math/w_jn_compat.c: Likewise.
7901         * math/w_jnf_compat.c: Likewise.
7902         * math/w_log10_compat.c: Likewise.
7903         * math/w_log10f_compat.c: Likewise.
7904         * math/w_log10l_compat.c: Likewise.
7905         * math/w_log2_compat.c: Likewise.
7906         * math/w_log2f_compat.c: Likewise.
7907         * math/w_log2l_compat.c: Likewise.
7908         * math/w_log_compat.c: Likewise.
7909         * math/w_logf_compat.c: Likewise.
7910         * math/w_logl_compat.c: Likewise.
7911         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7912         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7913         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7914         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7915         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7916         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7917         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7918         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7919         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7920         * sysdeps/ieee754/k_standardl.c: Likewise.
7921         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7922         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7923         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7924         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7925         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7926         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7927         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7928         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7929         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7930         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7931         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7932         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7933         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7934         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7935         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7936         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7937         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7938         * math/w_ilogb_template.c: Include <fenv.h> instead of
7939         <fenv_private.h>.
7940         * math/w_llogb_template.c: Likewise.
7941         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7942         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7943
7944 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
7945
7946         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7947         * math/fromfp.h: Include <fenv_private.h>.
7948         * math/math-narrow.h: Likewise.
7949         * math/s_cexp_template.c: Likewise.
7950         * math/s_csin_template.c: Likewise.
7951         * math/s_csinh_template.c: Likewise.
7952         * math/s_ctan_template.c: Likewise.
7953         * math/s_ctanh_template.c: Likewise.
7954         * math/s_iseqsig_template.c: Likewise.
7955         * math/w_acos_compat.c: Likewise.
7956         * math/w_acosf_compat.c: Likewise.
7957         * math/w_acosl_compat.c: Likewise.
7958         * math/w_asin_compat.c: Likewise.
7959         * math/w_asinf_compat.c: Likewise.
7960         * math/w_asinl_compat.c: Likewise.
7961         * math/w_ilogb_template.c: Likewise.
7962         * math/w_j0_compat.c: Likewise.
7963         * math/w_j0f_compat.c: Likewise.
7964         * math/w_j0l_compat.c: Likewise.
7965         * math/w_j1_compat.c: Likewise.
7966         * math/w_j1f_compat.c: Likewise.
7967         * math/w_j1l_compat.c: Likewise.
7968         * math/w_jn_compat.c: Likewise.
7969         * math/w_jnf_compat.c: Likewise.
7970         * math/w_llogb_template.c: Likewise.
7971         * math/w_log10_compat.c: Likewise.
7972         * math/w_log10f_compat.c: Likewise.
7973         * math/w_log10l_compat.c: Likewise.
7974         * math/w_log2_compat.c: Likewise.
7975         * math/w_log2f_compat.c: Likewise.
7976         * math/w_log2l_compat.c: Likewise.
7977         * math/w_log_compat.c: Likewise.
7978         * math/w_logf_compat.c: Likewise.
7979         * math/w_logl_compat.c: Likewise.
7980         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7981         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7982         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7983         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7984         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7985         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7986         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7987         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7988         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7989         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7990         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7991         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7992         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7993         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7994         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7995         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7996         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7997         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7998         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7999         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
8000         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
8001         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8002         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8003         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8004         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8005         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
8006         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8007         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
8008         * sysdeps/ieee754/float128/float128_private.h: Likewise.
8009         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8010         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8011         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8012         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
8013         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
8014         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
8015         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
8016         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
8017         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8018         * sysdeps/ieee754/k_standardl.c: Likewise.
8019         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8020         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
8021         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
8022         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
8023         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
8024         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
8025         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8026         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
8027         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
8028         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
8029         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
8030         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8031         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
8032         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
8033         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
8034         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
8035         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8036         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
8037         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8038         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8039         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8040         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8041         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8042         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8043         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
8044         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
8045         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
8046         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
8047         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
8048         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8049         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8050         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
8051         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
8052         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
8053         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
8054         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
8055         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
8056         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
8057         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8058         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8059         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8060         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8061         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8062         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8063         * sysdeps/riscv/rvd/s_finite.c: Likewise.
8064         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8065         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8066         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8067         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8068         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8069         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8070         * sysdeps/riscv/rvf/fegetround.c: Likewise.
8071         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8072         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8073         * sysdeps/riscv/rvf/fesetround.c: Likewise.
8074         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8075         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8076         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8077         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8078         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8079         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8080         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8081         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8082         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8083         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8084         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8085         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8086         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8087         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8088         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8089         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8090
8091 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
8092
8093         [BZ #20271]
8094         * include/stdio.h (__libc_fatal): Mention newline in comment.
8095         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
8096         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
8097         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8098         * nss/nsswitch.c (__nss_next2): Likewise.
8099         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
8100         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
8101         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
8102         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8103         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
8104         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
8105         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
8106         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
8107         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
8108         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
8109         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
8110         * sysdeps/unix/sysv/linux/netlink_assert_response.c
8111         (__netlink_assert_response): Likewise.
8112
8113 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
8114
8115         * conform/glibcconform.py: New file.
8116         * conform/list-header-symbols.py: Likewise.
8117         * conform/list-header-symbols.pl: Remove.
8118         * conform/Makefile (tests-special): Only add linknamespace tests
8119         if [PYTHON].
8120         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
8121
8122 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
8123
8124         [BZ #23597]
8125         * support/Makefile (libsupport-routines): Add
8126         support_copy_file_range and xcopy_file_range.
8127         * support/support.h: Include <sys/types.h>.
8128         (support_copy_file_range): New prototype.
8129         * support/support_copy_file_range.c: New file.  Copied and
8130         modified from io/copy_file_range-compat.c.
8131         * support/test-container.c (copy_one_file): Call xcopy_file_rang
8132         instead of copy_file_range.
8133         * support/xcopy_file_range.c: New file.
8134         * support/xunistd.h (xcopy_file_range): New prototype.
8135
8136 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
8137
8138         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
8139         xpthread_create and xpthread_join.
8140
8141 2018-08-30  Florian Weimer  <fweimer@redhat.com>
8142
8143         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
8144
8145 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
8146
8147         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
8148         if malloc fails.
8149
8150 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
8151
8152         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
8153         and minus_oflow as non-finite.
8154
8155 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
8156
8157         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
8158         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
8159         moved to fenv_private.h except for ...
8160         (TOINT_INTRINSICS): Kept in math_private.h.
8161         (roundtoint): Likewise.
8162         (converttoint): Likewise.
8163         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
8164         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8165         * sysdeps/arm/math_private.h: Remove.
8166         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
8167         ....
8168         * sysdeps/generic/math_private.h: ... this file.  Include
8169         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
8170         Include <fenv_private.h>.  Remove functions and macros moved to
8171         fenv_private.h.
8172         * sysdeps/i386/fpu/math_private.h: Remove.
8173         * sysdeps/mips/math_private.h: Move to ....
8174         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
8175         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
8176         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
8177         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
8178         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8179         * sysdeps/powerpc/fpu/math_private.h: Do not include
8180         <fenv_private.h>.
8181         * sysdeps/riscv/rvf/math_private.h: Move to ....
8182         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
8183         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
8184         <fenv_private.h>.
8185         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
8186         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
8187         * sysdeps/sparc/fpu/math_private.h: Remove.
8188         * sysdeps/i386/fpu/fenv_private.h: Move to ....
8189         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
8190         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
8191         <fenv_private.h>.
8192         * sysdeps/x86_64/fpu/math_private.h: Do not include
8193         <sysdeps/i386/fpu/fenv_private.h>.
8194
8195 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8196
8197         [BZ #23578]
8198         * posix/tst-regcomp-truncated.c: New file.
8199         * posix/Makefile (tests): Add it.
8200         (tst-regcomp-truncated.out): Depend on generated locales.
8201
8202 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8203
8204         * support/test-container.c (main): Treat unshare failure with
8205         EPERM as an unsupported test.
8206
8207 2018-08-28  Florian Weimer  <fweimer@redhat.com>
8208
8209         [BZ #23520]
8210         nscd: Fix use-after-free in addgetnetgrentX and its callers.
8211         * nscd/netgroupcache.c
8212         (addgetnetgrentX): Add tofreep parameter.  Do not free
8213         heap-allocated buffer.
8214         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
8215         (addgetnetgrentX_ignore): New function.
8216         (addgetnetgrent): Call it.
8217         (readdgetnetgrent): Likewise.
8218
8219 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8220
8221         * string/memmem.c: Use memcmp for first match.
8222
8223 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
8224
8225         [BZ #17426]
8226         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
8227
8228 2018-08-27  DJ Delorie  <dj@redhat.com>
8229
8230         * support/Makefile (others): Don't list programs explicitly as a
8231         dependency of "others".
8232
8233 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
8234
8235         * sysdeps/generic/math-tests-trap-force.h: New file.
8236         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
8237         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
8238         * sysdeps/powerpc/math-tests.h: Remove file.
8239         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
8240
8241 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
8242            Torvald Riegel  <triegel@redhat.com>
8243
8244         [BZ #23538]
8245         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
8246         Update r to include the set wake-request flag if waiters are
8247         remaining after spinning.
8248
8249 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
8250
8251         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
8252
8253 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         [BZ #23578]
8256         regex: fix uninitialized memory access
8257         I introduced this bug into gnulib in commit
8258         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
8259         eventually it was merged into glibc.  The bug was found by
8260         project-repo <bugs@feusi.co> and reported here:
8261         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
8262         Diagnosis and draft fix reported by Assaf Gordon here:
8263         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
8264         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
8265         * posix/regex_internal.c (build_wcs_upper_buffer):
8266         Fix bug when mbrtowc returns 0.
8267
8268 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
8269
8270         * po/be.po: Update translation.
8271
8272 2018-08-24  DJ Delorie  <dj@delorie.com>
8273
8274         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
8275         $(libunwind).
8276
8277 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
8278
8279         [BZ #23400]
8280         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
8281         create temporary files in source tree.
8282
8283 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
8284
8285         * sysdeps/generic/math-tests-trap.h: New file.
8286         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
8287         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
8288         * sysdeps/aarch64/math-tests.h: Remove file.
8289         * sysdeps/arm/math-tests.h: Likewise.
8290         * sysdeps/riscv/math-tests.h: Likewise.
8291         * sysdeps/aarch64/math-tests-trap.h: New file.
8292         * sysdeps/arm/math-tests-trap.h: Likewise.
8293         * sysdeps/riscv/math-tests-trap.h: Likewise.
8294
8295 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
8296
8297         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
8298         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
8299         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
8300         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8301         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8302         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8303         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8304         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8305         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8306         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8307         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8308         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8309         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8310         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8311         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8312         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8313         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8314         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8315
8316 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
8317
8318         * sysdeps/generic/math-tests-exceptions.h: New file.
8319         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8320         (EXCEPTION_TESTS_float): Do not define here.
8321         (EXCEPTION_TESTS_double): Likewise.
8322         (EXCEPTION_TESTS_long_double): Likewise.
8323         (EXCEPTION_TESTS_float128): Likewise.
8324         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8325         Likewise.
8326         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8327         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8328         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8329         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8330         * sysdeps/mips/math-tests.h: Likewise.
8331         * sysdeps/nios2/math-tests.h: Likewise.
8332         * sysdeps/riscv/math-tests.h [!__riscv_flen]
8333         (EXCEPTION_TESTS_float): Do not define here.
8334         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8335         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8336         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8337
8338 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
8339
8340         * NEWS: Move optimized sinf entry to 2.29.
8341
8342 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
8343
8344         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8345
8346 2018-08-22  DJ Delorie  <dj@redhat.com>
8347
8348         * Makefile (testroot.pristine): New rules to initialize the
8349         test-in-container "testroot".
8350         * Makerules (all-testsuite): Add tests-container.
8351         * Rules (tests-expected): Add tests-container.
8352         (binaries-all-tests): Likewise.
8353         (tests-container): New, run these tests in the testroot container.
8354         * support/Makefile (others): Add *-container, support_paths.c,
8355         xmkdirp, and links-dso-program.
8356         * support/links-dso-program-c.c: New.
8357         * support/links-dso-program.cc: New.
8358         * support/test-container.c: New.
8359         * support/shell-container.c: New.
8360         * support/echo-container.c: New.
8361         * support/true-container.c: New.
8362         * support/xmkdirp.c: New.
8363         * support/xsymlink.c: New.
8364         * support/support_paths.c: New.
8365         * support/support.h: Add support paths prototypes.
8366         * support/xunistd.h: Add xmkdirp () and xsymlink ().
8367
8368         * nss/tst-nss-test3.c: Convert to test-in-container.
8369         * nss/tst-nss-test3.root/: New.
8370
8371 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
8372
8373         regex: port Gnulib code to z/OS POSIX environment
8374         Problem reported by Arnold Robbins in:
8375         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8376         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8377         Undef.
8378
8379 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
8380
8381         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8382         (ROUNDING_TESTS_double): Remove.
8383         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8384         (ROUNDING_TESTS_double): Remove.
8385         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8386         (ROUNDING_TESTS_double): Remove.
8387         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8388         (ROUNDING_TESTS_float): Remove.
8389         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8390         (ROUNDING_TESTS_float): Remove.
8391         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8392         (ROUNDING_TESTS_float): Remove.
8393         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8394         !TEST_MATHVEC here.
8395         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8396         (IF_ROUND_INIT_FE_UPWARD): Likewise.
8397
8398         * sysdeps/generic/math-tests-rounding.h: New file.
8399         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8400         (ROUNDING_TESTS_float): Do not define here.
8401         (ROUNDING_TESTS_double): Likewise.
8402         (ROUNDING_TESTS_long_double): Likewise.
8403         (ROUNDING_TESTS_float128): Likewise.
8404         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8405         (ROUNDING_TESTS_double): Undefine before defining.
8406         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8407         (ROUNDING_TESTS_double): Undefine before defining.
8408         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8409         (ROUNDING_TESTS_double): Undefine before defining.
8410         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8411         (ROUNDING_TESTS_float): Undefine before defining.
8412         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8413         (ROUNDING_TESTS_float): Undefine before defining.
8414         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8415         (ROUNDING_TESTS_float): Undefine before defining.
8416         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8417         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8418         not define here.
8419         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8420         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8421         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8422         * sysdeps/riscv/math-tests.h [!__riscv_flen]
8423         (ROUNDING_TESTS_float): Do not define here.
8424         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8425         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8426         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8427         (ROUNDING_TESTS_float): Likewise.
8428         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8429         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8430         * sysdeps/mips/math-tests.h [__mips_soft_float]
8431         (ROUNDING_TESTS_float): Likewise.
8432         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8433         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8434         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8435         (ROUNDING_TESTS_double): Likewise.
8436         (ROUNDING_TESTS_long_double): Likewise.
8437
8438 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
8439
8440         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8441         (PF_XDP): New macro.
8442         (AF_XDP): New macro.
8443         (SOL_XDP): New macro.
8444
8445 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
8446
8447         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8448         (TCP_INQ): Likewise.
8449         (TCP_CM_INQ): Likewise.
8450         (TCP_REPAIR_ON): Likewise.
8451         (TCP_REPAIR_OFF): Likewise.
8452         (TCP_REPAIR_OFF_NO_WP): Likewise.
8453         (struct tcp_zerocopy_receive): New type.
8454
8455 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8456
8457         * support/support.h (support_descriptor_supports_holes): Declare.
8458         * support/Makefile (libsupport-routines): Add
8459         support_descriptor_supports_holes.
8460         * support/support_descriptor_supports_holes.c: New file.
8461         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8462         and stop testing if holes are not supported.
8463         * io/test-lfs.c (do_prepare): Likewise.
8464         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8465         Likewise.
8466         * timezone/tst-tzset.c (create_tz_file): Likewise.
8467         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8468         variable.
8469         (do_prepare): Set it.
8470         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8471
8472 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8473
8474         [BZ #17248]
8475         * Makeconfig (+cflags): Do not sort (and deduplicate).
8476
8477 2018-08-21  Florian Weimer  <fweimer@redhat.com>
8478
8479         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8480         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8481
8482 2018-08-20  Florian Weimer  <fweimer@redhat.com>
8483
8484         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8485         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
8486
8487 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
8488
8489         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8490         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8491         and ssi_arch members.
8492
8493         * elf/elf.c (NT_VMCOREDD): New macro.
8494         (AT_MINSIGSTKSZ): Likewise.
8495
8496 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8497
8498         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8499         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8500         s_cosf-ppc64 and s_cosf-power8.
8501         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8502         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8503         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8504         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8505         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8507         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8508         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8510         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8511         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8512         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8513
8514 2018-08-17  Florian Weimer  <fweimer@redhat.com>
8515
8516         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8517
8518 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
8519
8520         * malloc/malloc.c (_int_malloc): Additional binning code checks.
8521
8522 2018-08-16  Florian Weimer  <fweimer@redhat.com>
8523
8524         * configure.ac: Add --with-nonshared-cflags option.
8525         * config.make.in (extra-nonshared-cflags): Set variable.
8526         * Makeconfig (CFLAGS-.oS): Use it.
8527         * manual/install.texi (Configuring and compiling): Document
8528         --with-nonshared-cflags.
8529         * configure: Regenerate.
8530         * INSTALL: Likewise.
8531
8532 2018-08-16  Florian Weimer  <fweimer@redhat.com>
8533
8534         * Makeconfig (ASFLAGS): Always append required assembler flags.
8535
8536 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
8537
8538         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8539         (malloc_consolidate): Likewise.
8540
8541 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
8542
8543         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8544
8545 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8546
8547         * benchtests/bench-strlen.c (do_test): Allocate buffers before
8548         every strlen call.
8549
8550         * benchtests/bench-strlen.c: Print performance numbers in json.
8551
8552 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8553
8554         * sysdeps/powerpc/powerpc64/multiarch/Makefile
8555         (sysdep_routines): Build strcmp-power9 and strncmp-power9
8556         only for little endian.
8557         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8558         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8559         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8560         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8561         Add check for little endian.
8562         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8563         (__strcmp_power9): Add check for little endian.
8564         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8565         Add check for little endian.
8566         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8567         (__strncmp_power9): Add check for little endian.
8568         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8569         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8570         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8571         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8572         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8573
8574 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8575
8576         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8577         [!STRLEN](STRLEN): Set to __strlen.
8578         * sysdeps/aarch64/multiarch/strlen.c: New file.
8579         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8580         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8581         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8582         (__libc_ifunc_impl_list): Add strlen.
8583         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8584         strlen_generic and strlen_asimd.
8585
8586 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
8587
8588         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8589         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8590         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8591
8592 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
8593
8594         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8595
8596 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8597
8598         [BZ #23519]
8599         * include/stdio.h (__vfxprintf): Declare.
8600         * stdio-common/fxprintf.c (__vfxprintf): New function.
8601         (__fxprintf): Call it.
8602         * misc/err.c (convert_and_print): Remove function.
8603         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8604         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8605         * misc/Makefile (tests): Add tst-warn-wide.
8606         * misc/tst-warn-wide.c: New file.
8607
8608 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
8609             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8610
8611         * NEWS: Mention sinf, cosf, sincosf.
8612         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8613         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8614         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8615         constants rather than including generic sincosf.h.
8616         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8617         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8618         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8619         (reduced_cos): Remove.
8620         (sinf_poly): New function.
8621         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8622
8623 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8624
8625         [BZ #23521]
8626         [BZ #23522]
8627         * nss/nss_files/files-alias.c (get_next_alias): During :include:
8628         processing, bail out if no room, and close the stream before
8629         returning ERANGE.
8630         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8631         (tst-nss-files-alias-leak): Link with libdl.
8632         (tst-nss-files-alias-leak.out): Depend on nss_files.
8633
8634         * nss/tst-nss-files-alias-leak.c: New file.
8635
8636 2018-08-14  Florian Weimer  <fweimer@redhat.com>
8637
8638         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8639         server_user, stat_user.
8640
8641 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
8642
8643         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8644         version to 4.18.
8645         (io_pgetevents): New syscall.
8646         (rseq): Likewise.
8647
8648         * manual/install.texi (Configuring and compiling): Do not list
8649         tools used for testing pretty printers here.
8650         (Tools for Compilation): List Python, PExpect and GDB here.
8651         Update descriptions of uses of Perl and Python.
8652         * INSTALL: Regenerate.
8653
8654         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8655         version to 4.18.
8656
8657 2018-08-13  Florian Weimer  <fweimer@redhat.com>
8658
8659         * misc/error.c (error): Add missing va_end call.
8660         (error_at_line): Likewise.
8661
8662 2018-08-13  Florian Weimer  <fweimer@redhat.com>
8663
8664         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8665
8666 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8667
8668         * benchtests/scripts/benchout.schema.json (properties): Add
8669         new properties.
8670
8671         * benchtests/bench-skeleton.c (main): Add duration and
8672         iterations attributes.
8673
8674 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
8675
8676         regex: Gnulib unibyte RRI uses bytes not chars
8677         Adjust the non-glibc code to agree with what Gawk needs for
8678         rational range interpretation (RRI) for regular expression ranges.
8679         In unibyte locales, Gawk wants ranges to use the underlying byte
8680         rather than the character code point.  This change does not affect
8681         glibc proper.
8682         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8683         In unibyte locales, use the byte value rather than
8684         running it through btowc.
8685
8686 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
8687
8688         * sysdeps/generic/math-tests-snan.h: New file.
8689         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8690         (SNAN_TESTS_float): Do not define here.
8691         (SNAN_TESTS_double): Likewise.
8692         (SNAN_TESTS_long_double): Likewise.
8693         (SNAN_TESTS_float128): Likewise.
8694         * sysdeps/i386/fpu/math-tests-snan.h: New file.
8695         * sysdeps/i386/fpu/math-tests.h: Remove file.
8696         * sysdeps/ia64/math-tests-snan.h: New file.
8697         * sysdeps/ia64/math-tests.h: Remove file.
8698         * sysdeps/x86/math-tests.h: Likewise.
8699         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8700
8701 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8702             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8703
8704         * math/Makefile: Add s_sincosf_data.c.
8705         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8706         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8707         (sincosf_poly): Likewise.
8708         (reduce_small): Likewise.
8709         (reduce_large): Likewise.
8710         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8711         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8712         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8713         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8714
8715 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
8716             Szabolcs Nagy  <szabolcs.nagy@arm.com>
8717
8718         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8719         (converttoint): Use lround.
8720         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8721         document the semantics when TOINT_INTRINSICS is set.
8722         (converttoint): Likewise.
8723         (TOINT_RINT): Remove.
8724         (TOINT_SHIFT): Remove.
8725         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8726         path.
8727
8728 2018-08-10  Florian Weimer  <fweimer@redhat.com>
8729
8730         [BZ #23497]
8731         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8732         function.
8733         (__old_getdents64): Use getdents64.  Convert entries without
8734         moving them.
8735         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8736         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8737         tst-readdir64-compat.
8738
8739 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8740
8741         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8742         Fix unwind.
8743
8744 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8745
8746         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8747         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8748         code to s390x-mcount.h and #include it.
8749         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8750         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8751         (__fentry__): Add.
8752
8753 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8754
8755         * stdlib/Versions: Remove __fentry__.
8756         * sysdeps/i386/Versions: Add __fentry__.
8757         * sysdeps/x86_64/Versions: Add __fentry__.
8758
8759 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8760
8761         * sysdeps/s390/Makefile: Register the new tests.
8762         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8763         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8764         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8765         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8766         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8767         * sysdeps/s390/tst-dl-runtime.c: New file.
8768
8769 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8770
8771         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8772         Do not clobber R0.
8773
8774 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8775
8776         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8777         Do not clobber R0.
8778
8779 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8780
8781         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8782         Do not clobber R0.
8783
8784 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8785
8786         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8787         Do not clobber R0.
8788
8789 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8790
8791         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8792         Use symbolic offsets for stack variables.
8793
8794 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8795
8796         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8797         Use symbolic offsets for stack variables.
8798
8799 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8800
8801         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8802         Use symbolic offsets for stack variables.
8803
8804 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
8805
8806         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8807         Use symbolic offsets for stack variables.
8808
8809 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
8810
8811         * math/gen-libm-test.py: New file.
8812         * math/gen-libm-test.pl: Remove.
8813         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8814         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8815         gen-libm-test.pl.
8816         ($(libm-test-c-noauto-obj)): Likewise.
8817         ($(libm-test-c-auto-obj)): Likewise.
8818         ($(libm-test-c-narrow-obj)): Likewise.
8819         (regen-ulps): Likewise.
8820         * math/README.libm-test: Update references to gen-libm-test.pl.
8821         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8822         referencing gen-libm-test.pl.
8823         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8824         * math/libm-test-support.c: Likewise.
8825         * math/libm-test-support.h: Likewise.
8826         * sysdeps/generic/libm-test-ulps: Likewise.
8827
8828 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8829
8830         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8831         Fix value.
8832
8833 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
8834
8835         * math/libm-test-nextdown.inc (do_test): Move comment to ....
8836         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8837
8838 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8839
8840         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8841         symbols.
8842         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8843         __pthread_setspecific): Add hidden proto.
8844         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8845         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8846
8847 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8848
8849         * benchtests/bench-string.h (buf1_size, buf2_size): New
8850         variables.
8851         (init_sizes): New function.
8852         (test_init): Use it.
8853         (alloc_buf, exit_error): New functions.
8854         (alloc_bufs): Use ALLOC_BUF.
8855         (realloc_bufs): Remove.
8856         * benchtests/bench-memcmp.c (do_test): Adjust.
8857         * benchtests/bench-memset-large.c (do_test): Likewise.
8858         * benchtests/bench-memset-walk.c (do_test): Likewise.
8859         * benchtests/bench-memset.c (do_test): Likewise.
8860         * benchtests/bench-strncmp.c (do_test): Likewise.
8861
8862 2018-08-06  Andreas Schwab  <schwab@suse.de>
8863
8864         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8865         of CONST_THREAD_AREA.
8866
8867 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8868
8869         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8870         (STATE_SAVE_MASK): Likewise.
8871         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8872         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8873         (STATE_SAVE_MASK): Likewise.
8874         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8875         instead of <cpu-features.h>.
8876
8877 2018-08-03  DJ Delorie  <dj@redhat.com>
8878
8879         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8880         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8881
8882         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8883
8884 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
8885
8886         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8887         after TEST_* calls.
8888         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8889         * math/libm-test-logb.inc (logb_test_data): Likewise.
8890
8891 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
8892
8893         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8894         * string/strstr.c (AVAILABLE): Likewise.
8895
8896 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8897
8898         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8899         <init-arch.h>.
8900         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8901         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8902         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8903
8904 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
8905
8906         * po/be.po: Update translation.
8907
8908         * po/be.po: Update translation.
8909
8910 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8911
8912         * sysdeps/x86/cpu-features-offsets.sym
8913         (rtld_global_ro_offsetof): Removed.
8914         (CPU_FEATURES_SIZE): Likewise.
8915         (CPUID_OFFSET): Likewise.
8916         (CPUID_SIZE): Likewise.
8917         (CPUID_EAX_OFFSET): Likewise.
8918         (CPUID_EBX_OFFSET): Likewise.
8919         (CPUID_ECX_OFFSET): Likewise.
8920         (CPUID_EDX_OFFSET): Likewise.
8921         (FAMILY_OFFSET): Likewise.
8922         (MODEL_OFFSET): Likewise.
8923         (FEATURE_OFFSET): Likewise.
8924         (FEATURE_SIZ): Likewise.
8925         (COMMON_CPUID_INDEX_1): Likewise.
8926         (COMMON_CPUID_INDEX_7): Likewise.
8927         (FEATURE_INDEX_1): Likewise.
8928         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8929
8930 2018-08-02  Carlos O'Donell <carlos@redhat.com>
8931
8932         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8933         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8934         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8935         (install-locales): Depend on install-locale-archive.
8936         (install-locale-archive): Define.
8937         (install-locale-files): Define.
8938         (build-one-locale): Define macro.
8939         * manual/install.texi (Running make install): Document.
8940         * manual/INSTALL: Regenerate.
8941
8942 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8943
8944         * benchtests/scripts/compare_strings.py: Import traceback.
8945         (parse_file): Pretty-print error.
8946
8947         * NEWS: Mention the change.
8948         * elf/dl-tunables.list: Rename tune namespace to cpu.
8949         * sysdeps/powerpc/dl-tunables.list: Likewise.
8950         * sysdeps/x86/dl-tunables.list: Likewise.
8951         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8952         cpu.name.
8953         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8954         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8955         * manual/README.tunables: Likewise.
8956         * manual/tunables.texi: Likewise.
8957         * sysdeps/powerpc/cpu-features.c: Likewise.
8958         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8959         (init_cpu_features): Likewise.
8960         * sysdeps/x86/cpu-features.c: Likewise.
8961         * sysdeps/x86/cpu-features.h: Likewise.
8962         * sysdeps/x86/cpu-tunables.c: Likewise.
8963         * sysdeps/x86_64/Makefile: Likewise.
8964         * sysdeps/x86/dl-cet.c: Likewise.
8965
8966 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
8967
8968         [BZ #23479]
8969         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8970         [__mips_hard_float].
8971         (FE_UNDERFLOW): Likewise.
8972         (FE_OVERFLOW): Likewise.
8973         (FE_DIVBYZERO): Likewise.
8974         (FE_INVALID): Likewise.
8975         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8976         (FE_TOWARDZERO): Define only if [__mips_hard_float].
8977         (FE_UPWARD): Likewise.
8978         (FE_DOWNWARD): Likewise.
8979         (__FE_UNDEFINED): Define if [!__mips_hard_float]
8980         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8981         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8982         [__mips_hard_float].
8983         (FP_ROUNDMODE): Likewise.
8984         (FP_RND_NEAREST): Likewise.
8985         (FP_RND_ZERO): Likewise.
8986         (FP_RND_PINF): Likewise.
8987         (FP_RND_MINF): Likewise.
8988         (FP_EX_INVALID): Likewise.
8989         (FP_EX_OVERFLOW): Likewise.
8990         (FP_EX_UNDERFLOW): Likewise.
8991         (FP_EX_DIVZERO): Likewise.
8992         (FP_EX_INEXACT): Likewise.
8993         (FP_INIT_ROUNDMODE): Likewise.
8994         * sysdeps/mips/nofpu/fesetenv.c: New file.
8995         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8996
8997 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
8998
8999         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
9000         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
9001         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
9002         conditional on [FE_UPWARD].
9003
9004 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
9005
9006         regex: fix memory leak in Gnulib
9007         Problem and fix reported by Assaf Gordon in:
9008         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
9009         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
9010         range_ends members too, as they are defined in 'struct
9011         re_charset_t' even if not _LIBC.  This affects only Gnulib.
9012
9013 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
9014
9015         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
9016         ...
9017         (get_common_indices): This.
9018         (init_cpu_features): Updated.
9019
9020 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
9021
9022         * sysdeps/generic/math-tests-snan-payload.h: New file.
9023         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
9024         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
9025         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
9026         * sysdeps/generic/math-tests.h: Include
9027         <math-tests-snan-payload.h>.
9028         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9029         * sysdeps/hppa/math-tests.h: Remove file.
9030         * sysdeps/mips/math-tests.h [!__mips_nan2008]
9031         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
9032         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
9033         Likewise.
9034
9035         * sysdeps/generic/math-tests-snan-cast.h: New file.
9036         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
9037         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
9038         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
9039         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
9040
9041 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
9042
9043         * version.h (RELEASE): Set to "development".
9044         (VERSION): Set to "2.28.9000".
9045         * NEWS (2.29): New section.
9046
9047         * version.h (RELEASE): Set to "stable".
9048         (VERSION): Set to "2.28".
9049         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
9050         * NEWS: Add the list of bugs fixed in 2.28.
9051
9052         * po/ca.po: Update to latest version.
9053         * po/cs.po: Likewise
9054         * po/da.po: Likewise
9055         * po/el.po: Likewise
9056         * po/eo.po: Likewise
9057         * po/es.po: Likewise
9058         * po/fi.po: Likewise
9059         * po/fr.po: Likewise
9060         * po/gl.po: Likewise
9061         * po/hu.po: Likewise
9062         * po/ia.po: Likewise
9063         * po/id.po: Likewise
9064         * po/it.po: Likewise
9065         * po/ja.po: Likewise
9066         * po/ko.po: Likewise
9067         * po/lt.po: Likewise
9068         * po/nb.po: Likewise
9069         * po/nl.po: Likewise
9070         * po/pt_BR.po: Likewise
9071         * po/ru.po: Likewise
9072         * po/rw.po: Likewise
9073         * po/sk.po: Likewise
9074         * po/sl.po: Likewise
9075         * po/tr.po: Likewise
9076         * po/zh_CN.po: Likewise
9077         * po/zh_TW.po: Likewise
9078
9079 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9080
9081         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
9082         initialization...
9083         (init): ... before initializing libpthread.
9084
9085         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
9086         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
9087         (__mach_setup_tls): ... new function.
9088         (mach_setup_tls): New alias.
9089         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
9090         __mach_setup_thread.
9091         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
9092         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
9093         * mach/Versions [libc] (mach_setup_tls): Add symbol.
9094         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
9095
9096 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
9097
9098         * manual/install.texi: Update versions.
9099         * INSTALL: Regenerate.
9100
9101         * manual/contrib.texi (Contributors): Update contributions.
9102
9103 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
9104
9105         * po/be.po: Update translations.
9106
9107 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9108
9109         * sysdeps/sh/libm-test-ulps: Update.
9110
9111 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
9112
9113         * po/bg.po: Update translations.
9114         * po/de.po: Likewise.
9115         * po/hr.po: Likewise.
9116         * po/pt_BR.po: Likewise.
9117         * po/sv.po: Likewise.
9118         * po/vi.po: Likewise.
9119
9120 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         [BZ #23467]
9123         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9124         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
9125         (CFLAGS-tst-cet-property-1.o): New.
9126         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
9127         ($(objpfx)tst-cet-property-2): Likewise.
9128         ($(objpfx)tst-cet-property-2.out): Likewise.
9129         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
9130         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
9131         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
9132         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
9133         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
9134
9135 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
9136
9137         [BZ #23458]
9138         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
9139
9140 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9141
9142         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
9143         __sbrk): Do not set attribute_hidden.
9144         * sysdeps/mach/hurd/not-errno.h: New file.
9145         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9146         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
9147
9148 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
9149
9150         * po/uk.po: Update translations.
9151         * po/cs.po: Likewise.
9152         * po/pl.po: Likewise.
9153
9154 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
9155
9156         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
9157         parse beyond the note end.
9158
9159 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9160
9161         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
9162         kernel does not support OFD locks.
9163         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
9164
9165 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9166
9167         * sysdeps/mach/hurd/Versions (libc): Make __access and
9168         __access_noerrno external so they can override the ld symbols.
9169         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
9170         __writev, __open64, __access_noerrno extern so they can be overrided.
9171         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
9172         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
9173
9174 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
9175
9176         * po/libc.pot: Regenerate.
9177
9178 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
9179
9180         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
9181
9182 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9183
9184         [BZ #23459]
9185         * sysdeps/x86/cpu-features.c (get_extended_indices): New
9186         function.
9187         (init_cpu_features): Call get_extended_indices for both Intel
9188         and AMD CPUs.
9189         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
9190         Remove "for AMD" comment.
9191
9192 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
9193
9194         [BZ # 23456]
9195         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
9196         COMMON_CPUID_INDEX_80000001.
9197
9198 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
9199
9200         * string/tst-xbzero-opt.c (use_test_buffer): New function.
9201         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
9202
9203 2018-07-26  Florian Weimer  <fweimer@redhat.com>
9204
9205         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
9206         aliases for symbols not in the implementation namespace.
9207
9208 2018-07-25  Carlos O'Donell <carlos@redhat.com>
9209
9210         [BZ #23393]
9211         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
9212         lowercase in LATIN script.
9213         * localedata/Makefile (test-input): Add en_US.UTF-8.
9214         * localedata/en_US.UTF-8.in: New file.
9215         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
9216         and restore old tests.
9217         * posix/tst-regexloc.c (do_test): Add back range expression test.
9218
9219 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9220
9221         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
9222
9223 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9224
9225         * nptl/threads.h: Move to ...
9226         * sysdeps/nptl/threads.h: ... here.
9227         * sysdeps/hurd/stdc-predef.h: New file.
9228
9229 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9230
9231         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
9232         tst-cet-setcontext-1 if CET is enabled.
9233         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
9234         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
9235
9236 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9237
9238         * include/threads.h: Move to ...
9239         * sysdeps/nptl/threads.h: ... here.
9240         * sysdeps/htl/threads.h: New file.
9241         * conform/Makefile (linknamespace-libs-ISO11): Use
9242         static-thread-library instead of linking libpthread.
9243         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
9244
9245 2018-07-25  Florian Weimer  <fweimer@redhat.com>
9246
9247         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
9248         nanoseconds into seconds.
9249         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
9250         (do_test): Likewise.
9251         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
9252         (do_test): Likewise.  Avoid nanosecond overflow and spurious
9253         timeouts due to system load.
9254         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
9255         (child_wait): Increment it.
9256         (do_test): Wait as long as necessary until all expected threads
9257         have arrived.
9258
9259 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
9260             H.J. Lu  <hongjiu.lu@intel.com>
9261
9262         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
9263         __ssp.
9264         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
9265         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
9266         (__push___start_context): New.
9267         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
9268         <asm/prctl.h>.
9269         (__getcontext): Record the current shadow stack base.  Save the
9270         caller's shadow stack pointer and base.
9271         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
9272         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
9273         (__push___start_context): New prototype.
9274         (__makecontext): Call __push___start_context to allocate a new
9275         shadow stack, push __start_context onto the new stack as well
9276         as the new shadow stack.
9277         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
9278         <asm/prctl.h>.
9279         (__setcontext): Restore the target shadow stack.
9280         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
9281         <asm/prctl.h>.
9282         (__swapcontext): Record the current shadow stack base.  Save
9283         the caller's shadow stack pointer and base. Restore the target
9284         shadow stack.
9285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
9286         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
9287         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
9288
9289 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9290
9291         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
9292         tst-setcontext8 and tst-setcontext9.
9293         * stdlib/tst-setcontext6.c: New file.
9294         * stdlib/tst-setcontext7.c: Likewise.
9295         * stdlib/tst-setcontext8.c: Likewise.
9296         * stdlib/tst-setcontext9.c: Likewise.
9297
9298 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9299
9300         * stdlib/Makefile ((tests): Add tst-setcontext5.
9301         * stdlib/tst-setcontext5.c: New file.
9302
9303 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9304
9305         * stdlib/Makefile (tests): Add tst-setcontext4.
9306         * stdlib/tst-setcontext4.c: New file.
9307
9308 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9309
9310         * stdlib/Makefile (tests): Add tst-swapcontext1.
9311         * stdlib/tst-swapcontext1.c: New test.
9312
9313 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9314
9315         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9316         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9317         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9318         and tst-cet-legacy-4c.
9319         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9320         and tst-cet-legacy-mod-4.
9321         (CFLAGS-tst-cet-legacy-2.c): New.
9322         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9323         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9324         (CFLAGS-tst-cet-legacy-3.c): Likewise.
9325         (CFLAGS-tst-cet-legacy-4.c): Likewise.
9326         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9327         ($(objpfx)tst-cet-legacy-1): Likewise.
9328         ($(objpfx)tst-cet-legacy-2): Likewise.
9329         ($(objpfx)tst-cet-legacy-2.out): Likewise.
9330         ($(objpfx)tst-cet-legacy-2a): Likewise.
9331         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9332         ($(objpfx)tst-cet-legacy-4): Likewise.
9333         ($(objpfx)tst-cet-legacy-4.out): Likewise.
9334         ($(objpfx)tst-cet-legacy-4a): Likewise.
9335         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9336         (tst-cet-legacy-4a-ENV): Likewise.
9337         ($(objpfx)tst-cet-legacy-4b): Likewise.
9338         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9339         (tst-cet-legacy-4b-ENV): Likewise.
9340         ($(objpfx)tst-cet-legacy-4c): Likewise.
9341         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9342         (tst-cet-legacy-4c-ENV): Likewise.
9343         * sysdeps/x86/tst-cet-legacy-1.c: New file.
9344         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9345         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9346         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9347         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9348         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9349         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9350         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9351         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9352         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9353         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9354
9355 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
9356
9357         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9358         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9359         with ssp_base.
9360         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9361         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9362         with ssp_base.
9363
9364 2018-07-25  Andreas Schwab  <schwab@suse.de>
9365
9366         [BZ #23442]
9367         * locale/weightwc.h (findidx): Handle the case where usrc is a
9368         prefix of cp but one character too short.
9369
9370 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9371
9372         * NEWS: Add ISO C threads addition.
9373
9374 2018-07-24  Florian Weimer  <fweimer@redhat.com>
9375
9376         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9377         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9378         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
9379         4.13.
9380
9381 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9382
9383         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9384         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9385         <sys/prctl.h> and <asm/prctl.h>.
9386         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9387         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9388         and <asm/prctl.h>.
9389         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9390         ARCH_CET_LEGACY_BITMAP.
9391         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9392         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9393         * sysdeps/x86/libc-start.c: Include <startup.h>.
9394
9395 2018-07-24  Florian Weimer  <fweimer@redhat.com>
9396
9397         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9398         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
9399
9400 2018-07-24  Rical Jasan <rj@2c3t.io>
9401             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9402             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
9403
9404         [BZ #14092]
9405         * manual/debug.texi: Update adjacent chapter name.
9406         * manual/probes.texi: Likewise.
9407         * manual/threads.texi (ISO C Threads): New section.
9408         (POSIX Threads): Convert to a section.
9409
9410 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9411             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
9412
9413         [BZ# 14092]
9414         * nptl/Makefile (tests): Add new test files.
9415         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9416         * nptl/tst-cnd-basic.c: Likewise.
9417         * nptl/tst-cnd-broadcast.c: Likewise.
9418         * nptl/tst-cnd-timedwait.c: Likewise.
9419         * nptl/tst-mtx-basic.c: Likewise.
9420         * nptl/tst-mtx-recursive.c: Likewise.
9421         * nptl/tst-mtx-timedlock.c: Likewise.
9422         * nptl/tst-mtx-trylock.c: Likewise.
9423         * nptl/tst-thrd-basic.c: Likewise.
9424         * nptl/tst-thrd-detach.c: Likewise.
9425         * nptl/tst-thrd-sleep.c: Likewise.
9426         * nptl/tst-tss-basic.c: Likewise.
9427
9428 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9429
9430         [BZ #14092]
9431         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9432         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9433         symbols.
9434         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9435         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9436         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9437         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9438         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9439         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9440         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9441         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9442         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9443         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9444         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9445         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9447         Likewise.
9448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9449         Likewise.
9450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9451         Likewise.
9452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9453         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9454         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9455         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9456         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9457         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9458         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9459         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9460         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9461         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9462         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9463         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9464         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9465         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9466         Likewise.
9467         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9468         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9469         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9470         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9471         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9472         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9473         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9474         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9475         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9476         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9477         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9478         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9479         ikewise.
9480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9482         Likewise.
9483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9484         Likewise.
9485         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9486         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9487         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9488         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9489         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9490         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9491         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9492         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9493
9494         [BZ #14092]
9495         * conform/data/threads.h-data (thread_local): New macro.
9496         (TSS_DTOR_ITERATIONS): Likewise.
9497         (tss_t): New type.
9498         (tss_dtor_t): Likewise.
9499         (tss_create): New function.
9500         (tss_get): Likewise.
9501         (tss_set): Likewise.
9502         (tss_delete): Likewise.
9503         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9504         tss_get, and tss_set objects.
9505         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9506         * nptl/tss_create.c: New file.
9507         * nptl/tss_delete.c: Likewise.
9508         * nptl/tss_get.c: Likewise.
9509         * nptl/tss_set.c: Likewise.
9510         * sysdeps/nptl/threads.h (thread_local): New define.
9511         (TSS_DTOR_ITERATIONS): Likewise.
9512         (tss_t): New typedef.
9513         (tss_dtor_t): Likewise.
9514         (tss_create): New prototype.
9515         (tss_get): Likewise.
9516         (tss_set): Likewise.
9517         (tss_delete): Likewise.
9518
9519         [BZ #14092]
9520         * conform/data/threads.h-data (cnd_t): New type.
9521         (cnd_init): New function.
9522         (cnd_signal): Likewise.
9523         (cnd_broadcast): Likewise.
9524         (cnd_wait): Likewise.
9525         (cnd_timedwait): Likewise.
9526         (cnd_destroy): Likewise.
9527         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9528         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9529         object.
9530         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9531         * nptl/cnd_broadcast.c: New file.
9532         * nptl/cnd_destroy.c: Likewise.
9533         * nptl/cnd_init.c: Likewise.
9534         * nptl/cnd_signal.c: Likewise.
9535         * nptl/cnd_timedwait.c: Likewise.
9536         * nptl/cnd_wait.c: Likewise.
9537         * sysdeps/nptl/threads.h (cnd_t): New type.
9538         (cnd_init): New prototype.
9539         (cnd_signa): Likewise.
9540         (cnd_broadcast): Likewise.
9541         (cnd_wait): Likewise.
9542         (cnd_timedwait): Likewise.
9543         (cnd_destroy): Likewise.
9544
9545         [BZ #14092]
9546         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9547         (once_flag): New type.
9548         (call_once): New function.
9549         * nptl/Makefile (libpthread-routines): Add call_once object.
9550         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9551         * nptl/call_once.c: New file.
9552         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9553         (once_flag): New type.
9554         (call_once): New prototype.
9555
9556         [BZ #14092]
9557         * conform/data/threads.h-data (mtx_plain): New constant.
9558         (mtx_recursive): Likewise.
9559         (mtx_timed): Likewise.
9560         (mtx_t): New type.
9561         (mtx_init): New function.
9562         (mtx_lock): Likewise.
9563         (mtx_timedlock): Likewise.
9564         (mtx_trylock): Likewise.
9565         (mtx_unlock): Likewise.
9566         (mtx_destroy): Likewise.
9567         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9568         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9569         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9570         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9571         * nptl/mtx_destroy.c: New file.
9572         * nptl/mtx_init.c: Likewise.
9573         * nptl/mtx_lock.c: Likewise.
9574         * nptl/mtx_timedlock.c: Likewise.
9575         * nptl/mtx_trylock.c: Likewise.
9576         * nptl/mtx_unlock.c: Likewise.
9577         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9578         (mtx_recursive): Likewise.
9579         (mtx_timed): Likewise.
9580         (mtx_t): New type.
9581         (mtx_init): New prototype.
9582         (mtx_lock): Likewise.
9583         (mtx_timedlock): Likewise.
9584         (mtx_trylock): Likewise.
9585         (mtx_unlock): Likewise.
9586         (mtx_destroy): Likewise.
9587
9588         [BZ #14092]
9589         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9590         (linknamespace-libs-ISO11): Add libpthread.a.
9591         * conform/data/threads.h-data: New file: add C11 thrd_* types and
9592         functions.
9593         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9594         * nptl/Makefile (headers): Add threads.h.
9595         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9596         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9597         thrd_yield.
9598         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9599         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9600         thrd_join, thrd_sleep, and thrd_yield symbols.
9601         * nptl/descr.h (struct pthread): Add c11 field.
9602         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9603         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9604         routine with expected function prototype.
9605         (__pthread_create_2_1): Add C11 threads check based on attribute
9606         value.
9607         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9608         * nptl/thrd_create.c: New file.
9609         * nptl/thrd_current.c: Likewise.
9610         * nptl/thrd_detach.c: Likewise.
9611         * nptl/thrd_equal.c: Likewise.
9612         * nptl/thrd_exit.c: Likewise.
9613         * nptl/thrd_join.c: Likewise.
9614         * nptl/thrd_priv.h: Likewise.
9615         * nptl/thrd_sleep.c: Likewise.
9616         * nptl/thrd_yield.c: Likewise.
9617         * include/threads.h: Likewise.
9618
9619 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9620
9621         * bits/indirect-return.h: New file.
9622         * misc/sys/cdefs.h (__glibc_has_attribute): New.
9623         * sysdeps/x86/bits/indirect-return.h: Likewise.
9624         * stdlib/Makefile (headers): Add bits/indirect-return.h.
9625         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9626         (swapcontext): Add __INDIRECT_RETURN.
9627         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9628         (prepare_test_buffer): Use it.
9629
9630 2018-07-24  Andreas Schwab  <schwab@suse.de>
9631
9632         [BZ #23448]
9633         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9634         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9635
9636 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9637
9638         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9639         Redefine if shadow stack is enabled.
9640         (SYSCALL_ERROR_LABEL): Likewise.
9641         (__vfork): Pop shadow stack and jump back to to caller directly
9642         when shadow stack is in use.
9643         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9644         Redefine if shadow stack is enabled.
9645         (SYSCALL_ERROR_LABEL): Likewise.
9646         (__vfork): Pop shadow stack and jump back to to caller directly
9647         when shadow stack is in use.
9648
9649 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
9650
9651         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9652         enabled.
9653         (foo): Likewise.
9654         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9655         (foo): Likewise.
9656
9657 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
9658
9659         * scripts/build-many-glibcs.py (Context.checkout): Default
9660         binutils version to 2.31 branch.
9661
9662 2018-07-20  Zong Li  <zong@andestech.com>
9663
9664         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9665         URL of gcc's tarball.
9666
9667 2018-07-20  Florian Weimer  <fweimer@redhat.com>
9668
9669         [BZ #23396]
9670         * posix/regcomp.c (build_equiv_class): When comparing weights, do
9671         not compare an extra byte after the end of the weights.
9672
9673 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9674
9675         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9676         to 1.
9677         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9678         hidden prototypes.
9679         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9680         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9681         * scripts/check-execstack.awk: Consider `xfail' variable containing a
9682         list of libraries whose stack executability is expected.
9683         * elf/Makefile ($(objpfx)check-execstack.out): Pass
9684         $(check-execstack-xfail) to check-execstack.awk through `xfail'
9685         variable.
9686         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9687         libc.so libpthread.so.
9688
9689 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
9690
9691         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9692         SOCK_NONBLOCK.
9693         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9694         and SOCK_NONBLOCK.
9695         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
9696         implement __pipe2.
9697         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9698
9699 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
9700
9701         * benchtests/scripts/compare_bench.py (__main__): use the argparse
9702         library to improve command line parsing.
9703         (__main__): make schema file as optional parameter (--schema),
9704         defaulting to benchtests/scripts/benchout.schema.json.
9705         (main): move out of the parsing stuff to __main_  and leave it
9706         only as caller of main comparison functions.
9707
9708 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
9709
9710         * NEWS: Add a note for Intel CET status.
9711         * manual/install.texi: Likewise.
9712         * INSTALL: Regenerated.
9713
9714 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
9715
9716         [BZ #23140]
9717         * localedata/locales/oc_FR (mon): Rename to...
9718         (alt_mon): This, then update October (typo fix).
9719         (mon): New content (genitive case, month names preceded by
9720         "de" or "d’").
9721
9722         [BZ #23422]
9723         * localedata/locales/oc_FR (abday): Update all items.
9724         (day): Update Wednesday and Saturday (typo fixes).
9725         (abmon): Update all items, except May.
9726         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9727         (LC_IDENTIFICATION): Bump the revision number and date.
9728         Keep the "category" entries in alphabetic order.
9729         (LC_ADDRESS): Remove no longer needed comment.
9730         (LC_COLLATE): Use “copy "ca_ES"”.
9731         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9732         "name_mrs".
9733
9734 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
9735
9736         * grp/tst_fgetgrent.c: Include <unistd.h>.
9737         (main): Use mkstemp instead of tmpnam.
9738         * io/test-utime.c (main): Likewise.
9739         * posix/annexc.c (macrofile): Change to modifiable array.
9740         (main): Remove macrofile here.
9741         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
9742         macrofile here.
9743         (check_header): Do not remove macrofile here.
9744         * posix/bug-getopt1.c: Include <stdlib.h>.
9745         (do_test): Use mkstemp instead of tmpnam.
9746         * posix/bug-getopt2.c: Include <stdlib.h>.
9747         (do_test): Use mkstemp instead of tmpnam.
9748         * posix/bug-getopt3.c: Include <stdlib.h>.
9749         (do_test): Use mkstemp instead of tmpnam.
9750         * posix/bug-getopt4.c: Include <stdlib.h>.
9751         (do_test): Use mkstemp instead of tmpnam.
9752         * posix/bug-getopt5.c: Include <stdlib.h>.
9753         (do_test): Use mkstemp instead of tmpnam.
9754         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9755         (main): Use mkstemp instead of tmpnam.
9756         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9757         (main): Use mkstemp instead of tmpnam.
9758         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9759         (main): use mkstemp instead of tmpnam.
9760         * stdlib/isomac.c (macrofile): Change to modifiable array.
9761         (main): Remove macrofile here.
9762         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
9763         macrofile here.
9764         (check_header): Do not remove macrofile here.
9765
9766 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9767
9768         * manual/tunables.texi: Document glibc.tune.x86_ibt and
9769         glibc.tune.x86_shstk.
9770
9771 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9772
9773         * NEWS: Mention --enable-cet.
9774         * manual/install.texi: Document --enable-cet.
9775         * INSTALL: Regenerated.
9776
9777 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9778
9779         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9780         Add _CET_NOTRACK before indirect jump to jump table.
9781
9782 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9783
9784         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9785         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9786         to jump table.
9787
9788 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9789
9790         * sysdeps/i386/i686/multiarch/strcat-sse2.S
9791         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9792         to jump table.
9793
9794 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9795
9796         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9797         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9798         to jump table.
9799
9800 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9801
9802         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9803         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9804         to jump table.
9805
9806 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9807
9808         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9809         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9810         to jump table.
9811         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9812
9813 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9814
9815         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9816         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9817         to jump table.
9818
9819 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9820
9821         * sysdeps/i386/i686/multiarch/memset-sse2.S
9822         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9823         to jump table.
9824
9825 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9826
9827         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9828         indirect jump to jump table.
9829
9830 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9831
9832         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9833         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9834         to jump table.
9835         (MEMCPY): Likewise.
9836
9837 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9838
9839         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9840         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9841         to jump table.
9842         (MEMCPY): Likewise.
9843
9844 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9845
9846         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9847         _CET_NOTRACK before indirect jump to jump table.
9848
9849 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9850
9851         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9852         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9853         to jump table.
9854
9855 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
9856
9857         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9858         indirect jump to jump table.
9859
9860 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
9861
9862         [BZ #22241]
9863         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9864         (LOCALES): Likewise.
9865         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9866         * localedata/locales/sah_RU: New file.
9867         * localedata/sah_RU.UTF-8.in: New file.
9868
9869 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9870
9871         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9872         "sysdep.h".
9873         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
9874         _CET_ENDBR to indirect jump targets and adjust jump destination
9875         for _CET_ENDBR.
9876         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9877         "sysdep.h".
9878         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
9879         _CET_ENDBR to indirect jump targets and adjust jump destination
9880         for _CET_ENDBR.
9881         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9882         "sysdep.h".
9883         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
9884         _CET_ENDBR to indirect jump targets and adjust jump destination
9885         for _CET_ENDBR.
9886
9887 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9888
9889         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9890         _CET_ENDBR.
9891
9892 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9893
9894         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9895         _CET_ENDBR.
9896         (_dl_tlsdesc_undefweak): Likewise.
9897         (_dl_tlsdesc_dynamic): Likewise.
9898         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9899         (_dl_tlsdesc_resolve_rel): Likewise.
9900         (_dl_tlsdesc_resolve_rela): Likewise.
9901         (_dl_tlsdesc_resolve_hold): Likewise.
9902         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9903         (_dl_tlsdesc_undefweak): Likewise.
9904         (_dl_tlsdesc_dynamic): Likewise.
9905         (_dl_tlsdesc_resolve_rela): Likewise.
9906         (_dl_tlsdesc_resolve_hold): Likewise.
9907
9908 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9909
9910         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9911         (_fini): Likewise.
9912         * sysdeps/x86_64/crti.S (_init): Likewise.
9913         (_fini): Likewise.
9914
9915 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
9916
9917         [BZ #23140]
9918         * localedata/locales/os_RU (mon): Rename to...
9919         (alt_mon): This.
9920         (mon): Import from CLDR (genitive case).
9921
9922 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9923
9924         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9925         cet-tunables.h> when CET is enabled.
9926
9927 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9928
9929          [BZ #21598]
9930         * configure.ac: Add --enable-cet.
9931         * configure: Regenerated.
9932         * elf/Makefille (all-built-dso): Add a comment.
9933         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9934         Include <dl-prop.h>.
9935         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9936         segment.
9937         * elf/dl-open.c: Include <dl-prop.h>.
9938         (dl_open_worker): Call _dl_open_check.
9939         * elf/rtld.c: Include <dl-prop.h>.
9940         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
9941         _rtld_main_check.
9942         * sysdeps/generic/dl-prop.h: New file.
9943         * sysdeps/i386/dl-cet.c: Likewise.
9944         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9945         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9946         * sysdeps/x86/cet-tunables.h: Likewise.
9947         * sysdeps/x86/check-cet.awk: Likewise.
9948         * sysdeps/x86/configure: Likewise.
9949         * sysdeps/x86/configure.ac: Likewise.
9950         * sysdeps/x86/dl-cet.c: Likewise.
9951         * sysdeps/x86/dl-procruntime.c: Likewise.
9952         * sysdeps/x86/dl-prop.h: Likewise.
9953         * sysdeps/x86/libc-start.h: Likewise.
9954         * sysdeps/x86/link_map.h: Likewise.
9955         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9956         _CET_ENDBR.
9957         (_dl_runtime_profile): Likewise.
9958         (_dl_runtime_resolve_shstk): New.
9959         (_dl_runtime_profile_shstk): Likewise.
9960         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9961         if CET is enabled.
9962         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9963         (CFLAGS-.os): Likewise.
9964         (CFLAGS-.op): Likewise.
9965         (CFLAGS-.oS): Likewise.
9966         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9967         is enabled.
9968         (tests-special): Add $(objpfx)check-cet.out.
9969         (cet-built-dso): New.
9970         (+$(cet-built-dso:=.note)): Likewise.
9971         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9972         ($(objpfx)check-cet.out): New.
9973         (generated): Add check-cet.out.
9974         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9975         <cet-tunables.h>.
9976         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9977         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9978         (init_cpu_features): Call get_cet_status to check CET status
9979         and update dl_x86_feature_1 with CET status.  Call
9980         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9981         (set_x86_shstk).  Disable and lock CET in libc.a.
9982         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9983         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9984         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9985         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9986         (_CET_ENDBR): Define if not defined.
9987         (ENTRY): Add _CET_ENDBR.
9988         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9989         x86_shstk.
9990         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9991         _CET_ENDBR.
9992         (_dl_runtime_profile): Likewise.
9993
9994 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
9995
9996         [BZ #21895]
9997         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9998         restore r2 on longjmp.
9999         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
10000         test list.
10001         Added rules to build test tst-setjmp-bug21895-static.
10002         Added module setjmp-bug21895 and rules to build a shared object from it.
10003         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
10004         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
10005
10006 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
10007
10008         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
10009         * benchtests/bench-strstr.c: Likewise.
10010         * string/memmem.c (FASTSEARCH): Define.
10011         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
10012         Add support for FASTSEARCH.
10013         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
10014         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
10015         (FASTSEARCH): Define.
10016         * string/test-strcasestr.c: Rename __strnlen to strnlen.
10017         * string/test-strstr.c: Likewise.
10018
10019 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
10020
10021         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
10022         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
10023
10024 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
10025             H.J. Lu  <hongjiu.lu@intel.com>
10026
10027         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
10028         (__longjmp): Restore shadow stack pointer if shadow stack is
10029         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10030         isn't defined for __longjmp_cancel.
10031         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
10032         (_setjmp): Save shadow stack pointer if shadow stack is enabled
10033         and SHADOW_STACK_POINTER_OFFSET is defined.
10034         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
10035         (setjmp): Save shadow stack pointer if shadow stack is enabled
10036         and SHADOW_STACK_POINTER_OFFSET is defined.
10037         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
10038         (__sigsetjmp): Save shadow stack pointer if shadow stack is
10039         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10040         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
10041         <jmp_buf-ssp.h>.
10042         (____longjmp_chk): Restore shadow stack pointer if shadow stack
10043         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10044         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
10045         Remove jmp_buf-ssp.sym.
10046         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
10047         <jmp_buf-ssp.h>.
10048         (____longjmp_chk): Restore shadow stack pointer if shadow stack
10049         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10050         * sysdeps/x86/Makefile (gen-as-const-headers): Add
10051         jmp_buf-ssp.sym.
10052         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
10053         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
10054         (__longjmp): Restore shadow stack pointer if shadow stack is
10055         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
10056         isn't defined for __longjmp_cancel.
10057         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
10058         (__sigsetjmp): Save shadow stack pointer if shadow stack is
10059         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
10060
10061 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
10062
10063         [BZ #22563]
10064         * nptl/pthread_create.c: Include <tls-setup.h>.
10065         (__pthread_create_2_1): Call tls_setup_tcbhead.
10066         * sysdeps/generic/tls-setup.h: New file.
10067         * sysdeps/x86/nptl/tls-setup.h: Likewise.
10068         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
10069         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
10070         Likewise.
10071         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
10072         to feature_1.
10073         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10074         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
10075         (X86_FEATURE_1_SHSTK): Likewise.
10076         (CET_ENABLED): Likewise.
10077         (IBT_ENABLED): Likewise.
10078         (SHSTK_ENABLED): Likewise.
10079
10080 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
10081
10082         [BZ #23208]
10083         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
10084         (LOCALES): Likewise.
10085         * localedata/dsb_DE.UTF-8.in: New file.
10086         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
10087
10088 2018-07-12  Florian Weimer  <fweimer@redhat.com>
10089
10090         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
10091         __mprotect, not mprotect.
10092
10093 2018-07-11  Florian Weimer  <fweimer@redhat.com>
10094
10095         * io/Makefile (headers): Add bits/statx.h.
10096
10097 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
10098
10099         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
10100         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
10101         and headers.
10102         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
10103         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
10104         for utf8_gen.py
10105
10106 2018-07-10  Florian Weimer  <fweimer@redhat.com>
10107
10108         * io/Makefile (routines): Add statx.
10109         (tests-internal): Add tst-statx.
10110         * io/Versions (GLIBC_2.28): Export statx.
10111         * io/bits/statx.h: New file.
10112         * io/sys/stat.h [__USE_GNU]: Include it.
10113         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
10114         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
10115         Define.
10116         * io/statx.c: New file.
10117         * io/statx_generic.: Likewise.
10118         * io/tst-statx.: Likewise.
10119         * include/bits/statx.h: Likewise.
10120         * sysdeps/unix/sysv/linux/kernel-features.h
10121         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
10122         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10123         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
10124         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
10125         Undefine.
10126         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10127         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
10128         * sysdeps/unix/sysv/linux/statx.c: New file.
10129         * manual/filesys.texi: Note that statx is undocumented.
10130         * sysdeps/**/libc*.abilist: Update.
10131
10132 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10133
10134         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
10135         a kernel issue which lead to test failure in some cases.
10136
10137 2018-07-10  Florian Weimer  <fweimer@redhat.com>
10138
10139         [BZ #23036]
10140         * posix/regexec.c (check_node_accept_bytes): When comparing
10141         weights, do not compare an extra byte after the end of the
10142         weights.
10143
10144 2018-07-10  Florian Weimer  <fweimer@redhat.com>
10145
10146         * libio/readline.c: Fix copyright year.
10147         * libio/tst-readline.c Likewise.
10148         * nss/tst-nss-files-hosts-getent.c: Likewise.
10149
10150 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10151
10152         [BZ #18991]
10153         * nss/nss_files/files-XXX.c (internal_getent): Use
10154         __libc_readline_unlocked.  Seek back to the start of the line if
10155         parsing failes with ERANGE.
10156         (get_contents_ret, get_contents): Remove.
10157         * nss/tst-nss-files-hosts-getent.c: New file.
10158         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
10159         (tst-nss-files-hosts-getent): Link with -ldl.
10160
10161 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10162
10163         * include/stdio.h (__libc_readline_unlocked): Declare.
10164         (__ftello64, __fseeko64): Declare aliases.
10165         * libio/readline.c: New file.
10166         * libio/tst-readline.c: Likewise.
10167         (routines): Add readline.
10168         (tests-internal): Add tst-readlime.
10169         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
10170         __libc_readline_unlocked.
10171         * libio/fseeko.c (__fseeko): Rename from fseeko.
10172         (fseeko): Add alias.
10173         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
10174         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
10175         (fseeko64): Add alias.
10176         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
10177         * libio/ftello64.c (__ftello64): Rename from ftello64.
10178         (ftello64): Add alias.
10179
10180 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10181
10182         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
10183         HWCAP_ATOMICS.
10184
10185 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10186
10187         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
10188         Use dl_hwcap without masking.
10189         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
10190         Remove HWCAP_CPUID.
10191
10192 2018-07-06  Florian Weimer  <fweimer@redhat.com>
10193
10194         * conform/conformtest.pl (checknamespace): Escape literal braces
10195         in regular expressions.
10196
10197 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
10198
10199         * sysdeps/x86/cpu-features.c (get_common_indeces):
10200         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
10201         * sysdeps/x86/cpu-features.c (init_cpu_features):
10202         AVX_Fast_Unaligned_Load is disabled for Excavator core.
10203
10204 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10205
10206         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
10207         protector.
10208         (CFLAGS-elf-init.oS): Likewise.
10209
10210 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10211             Carlos O'Donell  <carlos@redhat.com>
10212
10213         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
10214         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
10215         with stack protector enabled because there is no risk of infinite
10216         recursion.
10217
10218 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
10219
10220         [BZ #19818]
10221         [BZ #23307]
10222         * libc-abis (ABSOLUTE): New ABI.
10223         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
10224         * NEWS: Mention the new ABI.
10225
10226 2018-07-05  Florian Weimer  <fweimer@redhat.com>
10227
10228         [BZ # 17662]
10229         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
10230         (RENAME_WHITEOUT): Define.
10231         [__USE_GNU] (renameat2): Declare.
10232         * stdio-common/Makefile (routines): Add renameat2.
10233         (tests): Add tst-renameat2.
10234         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
10235         * stdio-common/renameat2.c: New file.
10236         * stdio-common/tst-renameat2.c: Likewise.
10237         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
10238         * manual/filesys.texi (Temporary Files): Note that renameat2 is
10239         undocumented.
10240         * sysdeps/unix/sysv/linux/kernel-features.h
10241         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
10242         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10243         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10244         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10245         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
10246         * sysdeps/unix/sysv/linux/sh/kernel-features.h
10247         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
10248         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10249         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
10250         * include/stdio.h (__renameat): Add alias for renameat.
10251         * stdio-common/renameat.c (__renameat): Rename from renameat.
10252         Add hidden definition and alias.
10253         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
10254         * sysdeps/mach/hurd/renameat.c: Likewise.
10255         * sysdeps/**/libc*.abilist: Add renameat2.
10256
10257 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10258
10259         * posix/bug-regex33.c: Fix build after regex sync.
10260
10261 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
10262
10263         [BZ #23164]
10264         * localedata/tst-langinfo-setlocale.c: New file.
10265         * localedata/tst-langinfo-setlocale-static.c: New file.
10266         * localedata/tst-langinfo-newlocale.c: New file.
10267         * localedata/tst-langinfo-newlocale-static.c: New file.
10268         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
10269         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
10270         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
10271         (tests-static): Remove tst-langinfo-static. Add
10272         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
10273         (tests-special): Remove $(objpfx)tst-langinfo.out,
10274         $(objpfx)tst-langinfo-static.out. Add
10275         $(objpfx)tst-langinfo-setlocale.out,
10276         $(objpfx)tst-langinfo-newlocale.out,
10277         $(objpfx)tst-langinfo-setlocale-static.out,
10278         $(objpfx)tst-langinfo-newlocale-static.out.
10279         ($(objpfx)tst-langinfo.out): Remove.
10280         ($(objpfx)tst-langinfo-static.out): Remove.
10281         ($(objpfx)tst-langinfo-newlocale.out): New target.
10282         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
10283         (test-xfail-tst-langinfo-newlocale-static): Add.
10284         ($(objpfx)tst-langinfo-setlocale.out): New target.
10285         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
10286         * localedata/tst-langinfo.c: Call test_locale.
10287         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
10288         data.
10289
10290 2018-07-04  Florian Weimer  <fweimer@redhat.com>
10291
10292         testrun.sh: Implement --tool=strace, --tool=valgrind
10293         * Makefile (testrun-script): Define variable.
10294         (testrun.sh): Use variable.
10295         * manual/install.texi (Tools for Compilation): make 4.0 or later
10296         is required.
10297         * configure.ac: Check for make 4.0 or later.
10298         * INSTALL: Regenerate.
10299         * configure: Likewise.
10300
10301 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10302
10303         [BZ #23233]
10304         [BZ #21163]
10305         [BZ #18986]
10306         [BZ #13762]
10307         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10308         * posix/PCRE.tests: Remove invalid test.
10309         * posix/bug-regex28.c: Fix expected values for used syntax.
10310         * posix/bug-regex37.c: New file.
10311         * posix/bug-regex38.c: Likewise.
10312         * posix/regcomp.c: Sync with gnulib.
10313         * posix/regex.c: Likewise.
10314         * posix/regex.h: Likewise.
10315         * posix/regex_internal.c: Likewise.
10316         * posix/regex_internal.h: Likewise.
10317         * posix/regexec.c: Likewise.
10318
10319 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
10320
10321         [BZ #23308]
10322         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10323         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10324         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10325         * localedata/unicode-gen/PropList.txt: likewise.
10326         * localedata/unicode-gen/UnicodeData.txt: likewise.
10327         * localedata/charmaps/UTF-8: Regenerate.
10328         * localedata/locales/i18n_ctype: likewise.
10329         * localedata/locales/tr_TR: likewise.
10330         * localedata/locales/translit_circle: likewise.
10331         * localedata/locales/translit_cjk_compat: likewise.
10332         * localedata/locales/translit_combining: likewise.
10333         * localedata/locales/translit_compat: likewise.
10334         * localedata/locales/translit_font: likewise.
10335         * localedata/locales/translit_fraction: likewise.
10336
10337 2018-07-03  Florian Weimer  <fweimer@redhat.com>
10338
10339         [BZ #23363]
10340         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10341         * stdio-common/tst-printf.sh: Adjust expected output.
10342         * LICENSES: Update.
10343
10344 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10345
10346         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10347         symbol.
10348
10349 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10350
10351         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10352         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10353         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10354         * stdio-common/tst-printfsz-islongdouble.c: New file.
10355         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10356         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10357         [subdir == stdio-common] (routines): Add ieee128-printf_size.
10358         [subdir == stdio-common] (tests-internal): Add
10359         test-printf-size-ieee128, and test-printf-size-ibm128.
10360         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10361         (CFLAGS-test-printf-size-ibm128.c): New variables.
10362         [subdir == stdio-common] (tests-special): Add
10363         $(objpfx)test-printf-size-ieee128.out and
10364         $(objpfx)test-printf-size-ibm128.out.
10365         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10366         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10367         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10368         __printf_sizeieee128.
10369         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10370         New file.
10371         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10372         Likewise.
10373         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10374         Likewise.
10375
10376 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10377
10378         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10379         (exp2f_inline): Likewise.
10380         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10381         (__math_uflowf): Likewise.
10382         (__math_may_uflowf): Likewise.
10383         (__math_divzerof): Likewise.
10384         (__math_invalidf): Likewise.
10385         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10386         (__math_oflowf): Likewise.
10387         (__math_uflowf): Likewise.
10388         (__math_may_uflowf): Likewise.
10389         (__math_divzerof): Likewise.
10390         (__math_invalidf): Likewise.
10391
10392 2018-06-29  DJ Delorie  <dj@redhat.com>
10393             Carlos O'Donell  <carlos@redhat.com>
10394
10395         [BZ #23329]
10396         * include/libc-symbols.h: Comment the freeres framework.
10397         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
10398         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10399         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10400         * dlfcn/dlerror.c: Include libc-symbols.h
10401         (__dlerror_main_freeres): New function.
10402         * dlfcn/dlfreeres.c: New file.
10403         * dlfcn/sdlfreeres.c: New file.
10404         * include/dlfcn.h: Declare __dlerror_main_freeres.
10405         * malloc/set-freeres.c: Declare __libdl_freeres, and
10406         __libpthread_freeres.
10407         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10408         the releavant libraries are loaded.
10409         * malloc/thread-freeres.c: Add comments.
10410         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10411         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10412         * nptl/allocatestack.c (__nptl_free_stacks): New function.
10413         (__free_stacks): Rename to...
10414         (free_stacks): ...this. Mark static.
10415         (queue_stack): Call free_stacks.
10416         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10417         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10418         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10419         ptr_freeres element from struct.
10420         (pthread_functions): Remove .ptr_freeres from struct initializer.
10421         [SHARED] (nptl_freeres): Remove.
10422         * nptl/nptlfreeres.c: New file.
10423         * nptl/pthreadP.h
10424         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10425         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
10426         attribute_hidden.
10427         (__free_stacks): Rename to...
10428         (__nptl_stacks_freeres): ...this.
10429         (__shm_directory_freeres): Declare.
10430         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10431         (__nptl_unwind_freeres): ...this.
10432         * resolv/res-close.c: Add comment.
10433         * resolv/resolv_conf.c: Include libc-symbols.h.
10434         * string/strerror_l.c: Include libc-symbols.h.
10435         * sunrpc/rpc_thread.c: Include libc-symbols.h.
10436         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10437         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10438         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10439
10440 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10441
10442         * stdlib/tst-strfmon_l.c: Add tests for long double.
10443
10444 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
10445
10446         [BZ #23208]
10447         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10448         * localedata/locales/dsb_DE: New file.
10449
10450 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
10451
10452         [BZ #23140]
10453         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10454         genitive case).
10455         (alt_mon): New entry, import from CLDR (nominative case).
10456
10457 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
10458
10459         [BZ #22996]
10460         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10461
10462 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10463
10464         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10465         Use vector registers.
10466
10467         * sysdeps/aarch64/multiarch/memmove_falkor.S
10468         (__memcpy_falkor): Use vector registers.
10469
10470 2018-06-29  Martin Sebor  <msebor@redhat.com>
10471
10472         * manual/stdio.texi (Customizing Printf): Mention interaction
10473         with GCC built-ins.
10474
10475 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
10476
10477         [BZ #23307]
10478         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10479         `st_value' is 0 if `st_shndx' is SHN_ABS.
10480         * elf/tst-absolute-zero.c: New file.
10481         * elf/tst-absolute-zero-lib.c: New file.
10482         * elf/tst-absolute-zero-lib.lds: New file.
10483         * elf/Makefile (tests): Add `tst-absolute-zero'.
10484         (modules-names): Add `tst-absolute-zero-lib'.
10485         (LDLIBS-tst-absolute-zero-lib.so): New variable.
10486         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10487         ($(objpfx)tst-absolute-zero: New dependency.
10488
10489 2018-06-29  Zack Weinberg  <zackw@panix.com>
10490
10491         * configure.ac: New command-line option --disable-crypt.
10492         Force --disable-nss-crypt when --disable-crypt is given, with a
10493         warning if it was explicitly enabled.
10494         * configure: Regenerate.
10495         * config.make.in: New boolean substitution variable $(build-crypt).
10496         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10497         when $(build-crypt).
10498         * manual/install.texi: Document --disable-crypt.
10499         * INSTALL: Regenerate.
10500
10501         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10502         which is never set.
10503         * conform/Makefile: Only include libcrypt.a in
10504         linknamespace-libs-xsi and linknamespace-libs-XPG4
10505         when $(build-crypt).
10506         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10507         USE_CRYPT to 1 when $(build-crypt).
10508         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10509         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10510         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10511
10512 2018-06-29  Zack Weinberg  <zackw@panix.com>
10513
10514         * crypt/crypt.h, posix/unistd.h: Update comments and
10515         prototypes for crypt and crypt_r.
10516
10517         * manual/crypt.texi (Cryptographic Functions): New initial
10518         exposition.
10519         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
10520         (Unpredictable Bytes): Improve initial exposition.  Clarify error
10521         behavior of getentropy and getrandom.
10522         * manual/examples/genpass.c: Generate a salt using getentropy
10523         instead of the current time. Use hash $5$ (SHA-2-256).
10524         * manual/examples/testpass.c: Demonstrate validation against
10525         hashes generated with three different one-way functions.
10526
10527         * manual/intro.texi: crypt.texi does not need an overview
10528         anymore.
10529
10530         * manual/nss.texi, manual/memory.texi, manual/socket.texi
10531         * manual/terminal.texi: Consistently refer to "passphrases"
10532         * instead of "passwords", and to the "user database" instead
10533         * of the "password database".
10534         * manual/users.texi: Similarly.  Add notes about how actual
10535         passphrase hashes are now stored in the shadow database.
10536         Remove 20-year-old junk todo note.
10537
10538 2018-06-29  Zack Weinberg  <zackw@panix.com>
10539
10540         * manual/crypt.texi: Use a normal top-level @node declaration.
10541         Move most of the introductory text to the 'crypt' section.
10542         Move the example programs below the @deftypefun for 'crypt_r'.
10543         Move the 'getpass' section...
10544         * manual/terminal.texi: ...here.
10545
10546 2018-06-29  Zack Weinberg  <zackw@panix.com>
10547             Florian Weimer <fweimer@redhat.com>
10548
10549         * posix/unistd.h: Do not declare encrypt.
10550         (_XOPEN_CRYPT): Remove macro definition.
10551         (crypt): Declare only for _USE_MISC.
10552         * stdlib/stdlib.h: Do not declare setkey.
10553         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10554         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10555
10556         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10557         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10558         into compat symbols.  Don't define initial_perm if it's not
10559         going to be used.
10560         * crypt/cert.c: Link explicitly with the expected versions for
10561         setkey and encrypt.  If they are not available at all, mark
10562         the test as unsupported.
10563
10564         * sunrpc/des_crypt.c: Unconditionally block linkage with
10565         cbc_crypt and ecb_crypt for new binaries.
10566         * sunrpc/des_soft.c: Unconditionally block linkage with
10567         des_setparity for new binaries.
10568
10569         * manual/crypt.texi: Remove the entire "DES Encryption"
10570         section.  Also remove the paragraph talking about FIPS 140-2
10571         from the introduction.
10572         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
10573         of libgcrypt for "real" encryption, not DES.
10574         * manual/conf.texi (Constants for Sysconf): Mention that
10575         _XOPEN_CRYPT is no longer impelemented.
10576
10577         * conform/data/unistd.h-data: Remove crypt function declaration.
10578
10579 2018-06-29  Florian Weimer  <fweimer@redhat.com>
10580
10581         [BZ #23351]
10582         * malloc/hooks.c: Update comments on restoring of dumped heaps.
10583         (disallow_malloc_check): Remove variable.
10584         (__malloc_check_init): Adjust.
10585         (malloc_set_state): Update comment.
10586         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10587         declarations.
10588
10589 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
10590
10591         [BZ #23140]
10592         * localedata/locales/ast_ES (mon): Rename to...
10593         (alt_mon): This.
10594         (mon): Import from CLDR (genitive case).
10595
10596 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
10597             Jakub Sitnicki  <jkbs@redhat.com>
10598
10599         [BZ #21812]
10600         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10601         on NLM_F_DUMP_INTR.
10602
10603 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10604
10605         * manual/llio.texi: Remove spurious space.
10606
10607 2018-06-28  Florian Weimer  <fweimer@redhat.com>
10608
10609         [BZ #23349]
10610         * time/bits/types/struct_timespec.h: Change header inclusion guard to
10611         _STRUCT_TIMESPEC.
10612
10613 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10614
10615         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10616          __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10617         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10618         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10619         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10620         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10621         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10622
10623 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
10624
10625         [BZ #23266]
10626         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10627         Copy and null-terminate entries that are not terminated, in
10628         addition to empty ones.
10629
10630 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10631
10632         [BZ #18023]
10633         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10634         (extend_alloca_account): Remove.
10635         * manual/stdio.texi (Variable Arguments Output): Update comment.
10636
10637 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
10638
10639         * nptl/sockperf.c: Remove file.
10640
10641 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10642
10643         [BZ #18023]
10644         * elf/dl-deps.c (_dl_map_object_deps): Use struct
10645         scratch_buffer instead of extend_alloca.
10646
10647 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10648
10649         [BZ #18023]
10650         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10651         scratch_buffer instead of extend_alloca.  Update comments.
10652
10653 2018-06-27  Florian Weimer  <fweimer@redhat.com>
10654
10655         [BZ #18023]
10656         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10657         instead of extend_alloca.
10658
10659 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
10660
10661         [BZ #13888]
10662         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10663         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10664         /tmp.
10665         * scripts/test-installation.pl: Put temporary files in build
10666         directory, not /tmp.
10667         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10668         (CFLAGS-bug4.c): Likewise.
10669         (CFLAGS-bug5.c): Likewise.
10670         (CFLAGS-test-fseek.c): Likewise.
10671         (CFLAGS-test-popen.c): Likewise.
10672         (CFLAGS-test_rdwr.c): Likewise.
10673         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10674         /tmp.
10675         * stdio-common/bug4.c (main): Likewise.
10676         * stdio-common/bug5.c (main): Likewise.
10677         * stdio-common/test-fseek.c (TESTFILE): Likewise.
10678         * stdio-common/test-popen.c (do_test): Likewise.
10679         * stdio-common/test_rdwr.c (main): Likewise.
10680
10681 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
10682
10683         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10684         (sem_open): Set sem.newsem.pad to zero for valgrind.
10685
10686 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10687
10688         [BZ #20251]
10689         * NEWS: Mention fcntl64 addition.
10690         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10691         * login/utmp_file.c: Likewise.
10692         * sysdeps/posix/fdopendir.c: Likewise.
10693         * sysdeps/posix/opendir.c: Likewise.
10694         * sysdeps/unix/pt-fcntl.c: Likewise.
10695         * include/fcntl.h (__libc_fcntl64, __fcntl64,
10696         __fcntl64_nocancel_adjusted): New prototype.
10697         (__fcntl_nocancel_adjusted): Remove prototype.
10698         * io/Makefile (routines): Add fcntl64.
10699         (CFLAGS-fcntl64.c): New rule.
10700         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10701         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10702         * io/fcntl.h (fcntl64): Add prototype and redirect if
10703         __USE_FILE_OFFSET64 is defined.
10704         * io/fcntl64.c: New file.
10705         * manual/llio.text: Add a note for which commands fcntl acts a
10706         cancellation point.
10707         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10708         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10709         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10710         New symbols.
10711         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10712         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10713         non-LFS case.
10714         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10715         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10716         to __fcntl64_nocancel.
10717         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10718         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10719         to __fcntl64_nocancel.
10720         * sysdeps/generic/not-cancel.h: Likewise.
10721         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10722         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10723         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10724         (fcntl64): New symbol.
10725         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10726         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10727         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10730         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10731         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10732         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10733         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10734         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10735         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10736         fcntl64): Likewise.
10737         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10738         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10739         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10740         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10741         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10742         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10743         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10744         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10745         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10747         Likewise.
10748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10749         Likewise.
10750         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10751         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10752         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10753
10754 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10755
10756         Run thread shutdown functions in an explicit order.
10757         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10758         definition.
10759         (__libc_thread_freeres): Call thread shutdown functions
10760         explicitly.
10761         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10762         * include/string.h (__strerror_thread_freeres): Declare.
10763         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10764         arena_thread_freeres.  No longer static.  Remove thread shutdown
10765         hook registration.
10766         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10767         Declare.
10768         * resolv/res-close.c (__res_thread_freeres): Renamed from
10769         res_thread_freeres.  No longer static.  Remove thread shutdown
10770         hook registration.
10771         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10772         * resolv/resolv_conf.c (freeres): Remove incorrect section
10773         attribute and use libc_freeres_fn.
10774         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10775         strerror_thread_freeres.  No longer static.  Remove thread
10776         shutdown hook registration.
10777         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10778         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10779         shutdown hook registration.
10780         * Makerules (shlib.lds): Do not provide section boundary symbols
10781         for __libc_thread_subfreeres.
10782         * manual/memory.texi (Basic Allocation): Update comment.
10783
10784 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10785
10786         Remove always-defined _RPC_THREAD_SAFE_ macro.
10787         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10788         Do not define _RPC_THREAD_SAFE_.
10789         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10790         conditional.
10791         * sunrpc/clnt_perr.c: Likewise.
10792         * sunrpc/clnt_raw.c: Likewise.
10793         * sunrpc/clnt_simp.c: Likewise.
10794         * sunrpc/key_call.c: Likewise.
10795         * sunrpc/rpc_common.c: Likewise.
10796         * sunrpc/rpc_main.c: Likewise.
10797         * sunrpc/rpc_thread.c: Likewise.
10798         * sunrpc/svc.c: Likewise.
10799         * sunrpc/svc_raw.c: Likewise.
10800         * sunrpc/svc_simple.c: Likewise.
10801         * sumrpc/svcauth_des.c: Likewise.
10802
10803 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10804
10805         * libio/Makefile (tests-internal): Add tst-vtables,
10806         tst-vtables-interposed.
10807         * libio/tst-vtables.c: New file.
10808         * libio/tst-vtables-common.c: Likewise.
10809         * libio/tst-vtables-interposed.c: Likewise.
10810
10811 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10812
10813         * support/support_test_main.c (support_test_main): Only call
10814         setvbuf if not disables.
10815         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10816         * support/test-driver.h (struct test_config): Add no_setvbuf member.
10817
10818 2018-06-26  Florian Weimer  <fweimer@redhat.com>
10819
10820         [BZ #23313]
10821         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10822
10823 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10824
10825         [BZ #18023]
10826         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10827         Use struct scratch_buffer instead of extend_alloca.
10828
10829 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10830
10831         [BZ #18023]
10832         * nss/getent.c (initgroups_keys): Use dynarray instead of
10833         extend_alloca.
10834
10835 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10836
10837         [BZ #18023]
10838         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10839         Use struct scratch_buffer instead of extend_alloca.
10840
10841 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10842
10843         [BZ #18023]
10844         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10845         back to malloc directly, without stack allocations.
10846
10847 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10848
10849         [BZ #18023]
10850         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10851         of extend_alloca.
10852
10853 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10854
10855         [BZ #18023]
10856         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10857         of extend_alloca.
10858         * nscd/hstcache.c (addhstbyX): Likewise.
10859         * nscd/pwdcache.c (addpwbyX): Likewise.
10860         * nscd/servicescache.c (addservbyX): Likewise.
10861
10862 2018-06-25  Florian Weimer  <fweimer@redhat.com>
10863
10864         [BZ #18023]
10865         * nscd/connections.c (read_cmdline): New function.
10866         (restart): Use it.  Update comment.
10867
10868 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
10869
10870         [BZ #23140]
10871         * localedata/locales/csb_PL (mon): Rename to...
10872         (alt_mon): This.
10873         (abmon): Rename to...
10874         (ab_alt_mon): This.
10875         (mon): Add with proper genitive forms, copy from Wikipedia.
10876         (abmon): Likewise.
10877
10878 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
10879
10880         [BZ #19485]
10881         * localedata/locales/csb_PL (mon): Fix typos:
10882         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10883         (yesstr): Add, value is "jo".
10884         (nostr): Add, value is "nié".
10885
10886 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10887
10888         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10889         all log1p and significand functions on m680x0.
10890         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10891         of s_significand.c..
10892         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10893         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10894         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10895         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10896         s_log1p.c and include it..
10897
10898 2018-06-21  Vincent Chen  <vincentc@andestech.com>
10899
10900         * elf/elf.h (R_NDS32_NONE): New define.
10901         (R_NDS32_32_RELA): Likewise.
10902         (R_NDS32_COPY): Likewise.
10903         (R_NDS32_GLOB_DAT): Likewise.
10904         (R_NDS32_JUMP_SLOT): Likewise.
10905         (R_NDS32_RELATIVE): Likewise.
10906         (R_NDS32_TLS_TPOFF): Likewise.
10907         (R_NDS32_TLS_DESC): Likewise.
10908
10909 2018-06-21  Mark Wielaard  <mark@klomp.org>
10910
10911         * elf/elf.h (R_BPF_MAP_FD): Removed.
10912         (R_BPF_64_64, R_BPF_64_32): New.
10913
10914 2018-06-21  Florian Weimer  <fweimer@redhat.com>
10915
10916         [BZ #23253]
10917         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10918         Renamed from libc_feholdsetround_ctx.
10919         (default_libc_feresetround_ctx): Renamed from
10920         libc_feresetround_ctx.
10921         (default_libc_feholdsetround_noex_ctx): Renamed from
10922         libc_feholdsetround_noex_ctx.
10923         (default_libc_feresetround_noex_ctx): Renamed from
10924         libc_feresetround_noex_ctx.
10925         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10926         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10927         forwardning to the old implementations under the new names.
10928         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10929         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10930         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10931         (libc_feresetround_ctx): Forward to default implements for i386
10932         and MATH_SET_BOTH_ROUNDING_MODES.
10933         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10934         Add -DMATH_SET_BOTH_ROUNDING_MODES.
10935
10936 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
10937
10938         * string/tst-cmp.c: Include <libc-diag.h>.
10939         (strncmp_max): Disable -Wstringop-overflow= around call to
10940         strncmp.
10941         (strncasecmp_max): Disable -Wstringop-overflow= around call to
10942         strncasecmp.
10943
10944         * string/bug-strpbrk1.c: Include <libc-diag.h>.
10945         (main): Disable -Wunused-value around call to strpbrk.
10946         * string/bug-strspn1.c: Include <libc-diag.h>.
10947         (main): Disable -Wunused-value around call to strspn.
10948
10949 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10950             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
10951
10952         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10953         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10954
10955 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
10956
10957         * math/Makefile (libm-calls): Move s_significandF to...
10958         (gen-libm-calls): ... here.
10959         * math/s_significand_template.c: New file.
10960         * math/s_significand.c: Removed.
10961         * math/s_significandf.c: Removed.
10962         * math/s_significandl.c: Removed.
10963         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10964         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10965
10966         * math/e_exp2_template.c (declare_mgen_finite_alias,
10967         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10968         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10969         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10970
10971 2018-06-20  Florian Weimer  <fweimer@redhat.com>
10972
10973         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10974
10975 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
10976
10977         [BZ #23280]
10978         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10979         floating-point number to strtod functions rather than possibly
10980         negating result of those functions.
10981         * stdio-common/tst-scanf-round.c: New file.
10982         * stdio-common/Makefile (tests): Add tst-scanf-round.
10983         ($(objpfx)tst-scanf-round): Depend on $(libm).
10984
10985 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10986
10987         * sysdeps/mach/hurd/localplt.data: Move to...
10988         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10989         R_386_GLOB_DAT like on Linux i386.
10990
10991 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
10992
10993         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10994         (SHM_STAT_ANY): New macro.
10995         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10996         (SHM_STAT_ANY): Likewise.
10997         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10998         (SHM_STAT_ANY): Likewise.
10999         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
11000         (SHM_STAT_ANY): Likewise.
11001         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
11002         (SHM_STAT_ANY): Likewise.
11003         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
11004         (SHM_STAT_ANY): Likewise.
11005         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
11006         (SHM_STAT_ANY): Likewise.
11007         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
11008         (SHM_STAT_ANY): Likewise.
11009         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
11010         (SHM_STAT_ANY): Likewise.
11011         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
11012         (SHM_STAT_ANY): Likewise.
11013         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
11014         (SHM_STAT_ANY): Likewise.
11015         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
11016         (SHM_STAT_ANY): Likewise.
11017
11018         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
11019         (SEM_STAT_ANY): New macro.
11020         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
11021         (SEM_STAT_ANY): Likewise.
11022         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
11023         (SEM_STAT_ANY): Likewise.
11024         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
11025         (SEM_STAT_ANY): Likewise.
11026         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
11027         (SEM_STAT_ANY): Likewise.
11028         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
11029         (SEM_STAT_ANY): Likewise.
11030         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
11031         (SEM_STAT_ANY): Likewise.
11032         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
11033         (SEM_STAT_ANY): Likewise.
11034         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
11035         (SEM_STAT_ANY): Likewise.
11036         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
11037         (SEM_STAT_ANY): Likewise.
11038
11039         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
11040         (MSG_STAT_ANY): New macro.
11041         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
11042         (MSG_STAT_ANY): Likewise.
11043         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
11044         (MSG_STAT_ANY): Likewise.
11045         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
11046         (MSG_STAT_ANY): Likewise.
11047         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
11048         (MSG_STAT_ANY): Likewise.
11049         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
11050         (MSG_STAT_ANY): Likewise.
11051         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
11052         (MSG_STAT_ANY): Likewise.
11053         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
11054         (MSG_STAT_ANY): Likewise.
11055         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
11056         (MSG_STAT_ANY): Likewise.
11057         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
11058         (MSG_STAT_ANY): Likewise.
11059
11060         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11061         (MAP_TYPE): Change value to 0x2b.
11062
11063 2018-06-18  Florian Weimer  <fweimer@redhat.com>
11064
11065         [BZ #15722]
11066         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
11067         socket with SOCK_CLOEXEC.
11068
11069 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
11070
11071         [BZ #23303]
11072         * sysdeps/powerpc/powerpc64/le/Makefile
11073         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
11074         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
11075         (gnulib-tests): Also add $(f128-loader-link) for
11076         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
11077
11078 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11079
11080         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
11081         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
11082         of sendfile.
11083         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
11084         (sendfile64): New strong alias.
11085         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
11086         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
11087         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
11088         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
11089         attribute.
11090         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
11091         ___pthread_get_cleanup_stack.
11092         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
11093         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
11094         * mach/shortcut.awk: Make syscall stubs include
11095         <mach-shortcuts-hidden.h> and add hidden definition.
11096         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
11097         (__mach_msg): Add hidden prototype.
11098         * mach/msg.c: Include <mach.h>.
11099         (__mach_msg): Add hidden definition.
11100         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
11101         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
11102         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
11103         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
11104         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
11105         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
11106         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
11107         prototype and definition.
11108         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
11109         hidden target for _hurd_self_sigstate.
11110
11111 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
11112
11113         [BZ #23007]
11114         * stdlib/tst-strtod-nan-sign-main.c: New file.
11115         * stdlib/tst-strtod-nan-sign.c: Likewise.
11116         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
11117         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
11118         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
11119         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
11120         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
11121
11122 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
11123
11124         [BZ #23007]
11125         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
11126         appropriate sign.
11127
11128 2018-06-14  Florian Weimer  <fweimer@redhat.com>
11129
11130         [BZ #23290]
11131         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
11132         that the result stays within the ISO-8859-1 range.
11133         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
11134         characters are defined in IBM273.
11135
11136 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11137
11138         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
11139         __mach_task_self): Remove attribute_hidden.
11140
11141 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
11142
11143         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
11144         ignore -Wrestrict for one test.
11145
11146 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
11147             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11148
11149         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
11150
11151 2018-06-14  Florian Weimer  <fweimer@redhat.com>
11152
11153         * scripts/update-abilist.sh: Accept empty list of files to patch.
11154
11155 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11156
11157         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
11158         test-xfail-check-abi-libmachuser): Add.
11159         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
11160         __libc_read and __libc_write to __read and __write.
11161         * sysdeps/hurd/include/hurd/port.h: New file.
11162         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
11163         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
11164         __thread_switch, __evc_wait): Move declarations to...
11165         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
11166         attribute_hidden.
11167         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
11168         use PLT to call _hurd_self_sigstate.
11169
11170 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
11171
11172         [BZ #23279]
11173         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
11174         MAX_EXP as overflowing.
11175         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
11176         overflow flag.
11177         (round_str): Output also whether result overflows in each rounding
11178         mode.
11179         * stdlib/tst-strtod-round-data: Add more tests.
11180         * stdlib/tst-strtod-round-data.h: Regenerated.
11181         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
11182         (TEST): Handle extra arguments for overflow flags.
11183         (struct test_overflow): New type.
11184         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
11185         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
11186         (test_in_one_mode): Take argument with overflow information.
11187         (do_test): Update calls to test_in_one_mode.
11188
11189 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
11190
11191         * elf/dl-load (_dl_dst_substitute): Correct comment.
11192         (_dl_dst_count): Likewise.
11193
11194         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
11195         lll_futex_timed_wait.
11196
11197 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
11198
11199         [BZ #23277]
11200         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
11201         attribute.
11202         * math/test-nan-const.c: New file.
11203         * math/Makefile (tests): Add test-nan-const.
11204         (CFLAGS-test-nan-const.c): New variable.
11205
11206 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11207
11208         * benchtests/scripts/compare_strings.py (process_results): Add
11209         funcs argument.  Compare only functions which are selected.
11210         (main): Check if base function is among selected functions.
11211         Pass selected functions to process_results.
11212         (__main__): Add -f/--functions argument.
11213
11214 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
11215             Hongbo Zhang  <hongbo.zhang@linaro.org>
11216
11217         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
11218         __memcpy_falkor for phecda core.
11219         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
11220         __memmove_falkor for phecda core.
11221         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
11222         __memset_falkor for phecda core.
11223         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
11224         for phecda core.
11225         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
11226         macro to identify phecda core.
11227
11228 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
11229             Andreas Schwab  <schwab@suse.de>
11230             Dmitry V. Levin  <ldv@altlinux.org>
11231             Florian Weimer <fweimer@redhat.com>
11232
11233         [BZ #23102]
11234         [BZ #21942]
11235         [BZ #18018]
11236         [BZ #23259]
11237         CVE-2011-0536
11238         * elf/dl-dst.h: Remove DL_DST_COUNT.
11239         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
11240         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
11241         (is_dst): Comment.  Support ELF gABI.
11242         (_dl_dst_count): Comment.  Simplify and count DSTs.
11243         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
11244         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
11245         locals.
11246
11247 2018-06-12  Zack Weinberg  <zackw@panix.com>
11248
11249         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
11250         * sysdeps/unix/sysv/linux/dl-sysdep.c
11251         Include not-cancel.h.  Use __close_nocancel instead of __close,
11252         __open64_nocancel instead of __open, __read_nocancel instead of
11253         __libc_read, and __write_nocancel instead of __libc_write.
11254
11255         * csu/check_fds.c (check_one_fd)
11256         * sysdeps/posix/fdopendir.c (__fdopendir)
11257         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
11258         instead of __fcntl and/or __libc_fcntl.
11259
11260         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
11261         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
11262         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
11263         Use __open64_nocancel instead of __open_nocancel.
11264
11265         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
11266         hidden_proto declarations to the end and issue them if either
11267         IS_IN(libc) or IS_IN(rtld).
11268         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
11269         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
11270         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
11271         read_nocancel, waitpid_nocancel, write_nocancel.
11272
11273         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
11274         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
11275         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
11276
11277         * nptl/pt-fcntl.c: New file.
11278         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
11279         (libpthread-routines): Add pt-fcntl.
11280         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
11281         (__libc_fcntl): Remove attribute_hidden.
11282         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
11283         __fcntl_nocancel_adjusted, not fcntl_common.
11284         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
11285         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
11286         to fcntl_nocancel.c.
11287         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
11288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
11289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
11290         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
11291
11292         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
11293         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
11294         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
11295         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
11296         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
11297         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
11298         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
11299         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
11300         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11301         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11302         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11303         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11304         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11305         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11306         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11307         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11308         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11309         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11310         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11311         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11312
11313         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11314         libpthread-routines.
11315         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11316         defines nothing.
11317
11318         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11319         __libc_read, and __write instead of __libc_write.  Define
11320         __open64 in addition to __open.
11321
11322 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
11323
11324         [BZ #23250]
11325         [BZ #10686]
11326         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11327         to _private_tm[3] and add __glibc_reserved2.
11328         Add _Static_assert of offset of __private_ss == 0x30.
11329         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11330         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11331
11332 2018-06-12  Florian Weimer  <fweimer@redhat.com>
11333
11334         x86: Make strncmp usable from rtld.
11335         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11336         __strncmp_ia32 if in libc (and not in rtld).
11337         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11338         strncmp if not in libc (and not to __strncmp_sse2).
11339
11340 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
11341
11342         [BZ #23140]
11343         * localedata/locales/gd_GB (mon): Rename to...
11344         (alt_mon): This.
11345         (mon): Import from CLDR (genitive case).
11346         * localedata/locales/hsb_DE (mon): Rename to...
11347         (alt_mon): This.
11348         (mon): Import from CLDR (genitive case).
11349         * localedata/locales/wa_BE (mon): Rename to...
11350         (alt_mon): This.
11351         (mon): Add, fill with the proper genitive forms, but CLDR data
11352         is incomplete; completed according to the comments in this file.
11353         (d_t_fmt): Do not use "di" before the month name, no longer needed.
11354
11355         * localedata/locales/wa_BE (country_name): Reword
11356         "Beljike" -> "Beldjike".
11357
11358 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
11359
11360         [BZ #23272]
11361         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11362         cases of non-finite arguments.
11363         * math/libm-test-fma.inc (fma_test_data): Add more tests.
11364
11365 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
11366
11367         [BZ #23174]
11368         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11369
11370 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11371
11372         [BZ #23264]
11373         * include/unistd.h (__execvpex): New prototype.
11374         * posix/Makefile (tests): Add tst-spawn4.
11375         (tests-internal): Add tst-spawn4-compat.
11376         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11377         * posix/tst-spawn4-compat.c: New file.
11378         * posix/tst-spawn4.c: Likewise.
11379         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11380         binaries as shell scripts.
11381         * sysdeps/posix/spawni.c (__spawni): Likewise.
11382
11383 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
11384
11385         [BZ #23145]
11386         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11387         ($(all-built-dso:=.dynsym): New target.
11388         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11389         ($(objpfx)check-initfini.out): New target.
11390         (generated): Add check-initfini.out.
11391         * scripts/check-initfini.awk: New file.
11392         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11393         (_fini): Likewise.
11394         * sysdeps/alpha/crti.S (_init): Mark as hidden.
11395         (_fini): Likewise.
11396         * sysdeps/arm/crti.S (_init): Mark as hidden.
11397         (_fini): Likewise.
11398         * sysdeps/hppa/crti.S (_init): Mark as hidden.
11399         (_fini): Likewise.
11400         * sysdeps/i386/crti.S (_init): Mark as hidden.
11401         (_fini): Likewise.
11402         * sysdeps/ia64/crti.S (_init): Mark as hidden.
11403         (_fini): Likewise.
11404         * sysdeps/m68k/crti.S (_init): Mark as hidden.
11405         (_fini): Likewise.
11406         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11407         (_fini): Likewise.
11408         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11409         (_fini): Likewise.
11410         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11411         (_fini): Likewise.
11412         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11413         (_fini): Likewise.
11414         * sysdeps/nios2/crti.S (_init): Mark as hidden.
11415         (_fini): Likewise.
11416         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11417         (_fini): Likewise.
11418         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11419         (_fini): Likewise.
11420         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11421         (_fini): Likewise.
11422         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11423         (_fini): Likewise.
11424         * sysdeps/sh/crti.S (_init): Mark as hidden.
11425         (_fini): Likewise.
11426         * sysdeps/sparc/crti.S (_init): Mark as hidden.
11427         (_fini): Likewise.
11428         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11429         (_fini): Likewise.
11430
11431 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
11432
11433         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11434         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11435         and TF redirection to KFtype and KF only when the default
11436         long double type is not the IEEE 128-bit floating point type.
11437
11438 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
11439
11440         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11441         macro.
11442         (HWCAP_USCAT): Likewise.
11443         (HWCAP_ILRCPC): Likewise.
11444         (HWCAP_FLAGM): Likewise.
11445         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11446         Increase to 28.
11447         (_dl_aarch64_cap_flags): Add new flag names.
11448
11449         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11450         (MAP_FIXED_NOREPLACE): New macro.
11451         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11452         (MAP_FIXED_NOREPLACE): Likewise.
11453         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11454         (MAP_FIXED_NOREPLACE): Likewise.
11455         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11456         (MAP_FIXED_NOREPLACE): Likewise.
11457         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11458         (MAP_FIXED_NOREPLACE): Likewise.
11459         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11460         (MAP_FIXED_NOREPLACE): Likewise.
11461         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11462         (MAP_FIXED_NOREPLACE): Likewise.
11463         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11464         (MAP_FIXED_NOREPLACE): Likewise.
11465         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11466         (MAP_FIXED_NOREPLACE): Likewise.
11467         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11468         (MAP_FIXED_NOREPLACE): Likewise.
11469         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11470         (MAP_FIXED_NOREPLACE): Likewise.
11471         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11472         (MAP_FIXED_NOREPLACE): Likewise.
11473         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11474         (MAP_FIXED_NOREPLACE): Likewise.
11475         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11476         (MAP_FIXED_NOREPLACE): Likewise.
11477         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11478         (MAP_FIXED_NOREPLACE): Likewise.
11479
11480         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11481         version to 4.17.
11482
11483 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
11484
11485         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11486         version to 4.17
11487
11488 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11489
11490         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11491         int.
11492         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11493
11494 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11495
11496         * benchtests/scripts/compare_string.py: (process_results) Catch
11497         exception in non-existent base_func and catch exception in
11498         non-existent attribute.
11499         (parse_file) Catch exception if input file does not exist.
11500
11501 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11502
11503         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11504         options to avoid diff calculation and omit header, respectively.
11505         (main): process --no-diff and --no-header
11506
11507 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
11508             H.J. Lu  <hongjiu.lu@intel.com>
11509
11510         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11511         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11512         wcsncmp-sse2.
11513         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11514         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11515         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11516         and __wcsncmp_sse2.
11517         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11518         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11519         AVX unaligned load is fast and vzeroupper is preferred.
11520         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11521         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11522         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11523         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11524         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11525         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11526         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11527         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11528         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11529         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11530         is undefined.
11531
11532 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11533
11534         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11535         configuring with --disable-multi-arch, building with
11536         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11537         Haswell-era CPU.
11538
11539 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11540
11541         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11542         results from building with “-march=x86-64 -mtune=generic
11543         -mfpmath=sse” and running on a Haswell-era CPU.
11544
11545 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
11546
11547         [BZ #18473]
11548         * soft-fp/sqrttf2.c: Remove file.
11549         * soft-fp/sqrtdf2.c: Move to ....
11550         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
11551         <shlib-compat.h>.
11552         (__sqrtdf2): Make conditional on
11553         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
11554         symbol.
11555         * soft-fp/sqrtsf2.c: Move to ....
11556         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
11557         <shlib-compat.h>.
11558         (__sqrtsf2): Make conditional on
11559         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
11560         symbol.
11561         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11562         (gcc-double-routines): Remove sqrtdf2.
11563         (gcc-quad-routines): Remove sqrttf2.
11564         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11565         Do not filter out sqrtsf2 and sqrtdf2.
11566         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11567         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11568
11569 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11570
11571         * sysdeps/generic/libcidn.abilist: Remove file.
11572
11573 2018-06-01  Florian Weimer  <fweimer@redhat.com>
11574
11575         [BZ #23236]
11576         * libio/strfile.h (struct _IO_str_fields): Rename members to
11577         discourage their use and add comment.
11578         (_IO_STR_DYNAMIC): Remove unused macro.
11579         * libio/strops.c (_IO_str_init_static_internal): Do not use
11580         callback pointers.  Call malloc and free.
11581         (_IO_str_overflow): Do not use callback pointers.  Call malloc
11582         and free.
11583         (enlarge_userbuf): Likewise.
11584         (_IO_str_finish): Call free.
11585         * libio/wstrops.c (_IO_wstr_init_static): Initialize
11586         _allocate_buffer_unused.
11587         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
11588         and free.
11589         (enlarge_userbuf): Likewise.
11590         (_IO_wstr_finish): Call free.
11591         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11592         _allocate_buffer_unused, _free_buffer_unused.
11593         * libio/memstream.c (__open_memstream): Likewise.
11594         * libio/vasprintf.c (_IO_vasprintf): Likewise.
11595         * libio/wmemstream.c (open_wmemstream): Likewise.
11596
11597 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
11598
11599         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11600         AMD Ryzen 7 1800X.
11601
11602 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11603
11604         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11605         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11606         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11607         New file.
11608         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11609         Likewise.
11610         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11611
11612 2018-05-29  Florian Weimer  <fweimer@redhat.com>
11613
11614         * support/Makefile (libsupport-routines): Add
11615         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11616         xpthread_barrierattr_setpshared.
11617         * support/xpthread_barrierattr_destroy.c: New file.
11618         * support/xpthread_barrierattr_init.c: Likewise.
11619         * support/xpthread_barrierattr_setpshared.c: Likewise.
11620
11621 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11622
11623         [BZ #23206]
11624         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11625         _r_debug and update DT_DEBUG for debugger.
11626
11627 2018-05-29  Florian Weimer  <fweimer@redhat.com>
11628
11629         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11630         (tst-strtod5i.out): Likewise.
11631
11632 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
11633
11634         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11635         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11636         (sparc64-quad-routines): New variable.  Moved from ....
11637         [$(subdir) = soft-fp] (sysdep_routines): Add
11638         $(sparc64-quad-routines).  Moved from ....
11639         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
11640         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
11641         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11642         moved from ....
11643         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
11644         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11645         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11646         * sysdeps/sparc/sparc64/qp_add.c: ... here.
11647         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11648         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11649         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11650         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11651         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11652         * sysdeps/sparc/sparc64/qp_div.c: ... here.
11653         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11654         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11655         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11656         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11657         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11658         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11659         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11660         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11661         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11662         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11663         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11664         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11665         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11666         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11667         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11668         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11669         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11670         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11671         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11672         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11673         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11674         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11675         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11676         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11677         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11678         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11679         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11680         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11681         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11682         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11683         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11684         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11685         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11686         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11687         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11688         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11689         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11690         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11691         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11692         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11693         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11694         * sysdeps/sparc/sparc64/qp_util.c: ... here.
11695         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11696         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11697         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11698         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11699         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11700         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11701
11702         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11703         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11704         (sparc32-quad-routines): New variable.  Moved from ....
11705         [$(subdir) = soft-fp] (sysdep_routines): Add
11706         $(sparc32-quad-routines).  Moved from ....
11707         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
11708         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11709         moved from ....
11710         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
11711         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11712         * sysdeps/sparc/sparc32/q_add.c: ... here.
11713         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11714         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11715         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11716         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11717         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11718         * sysdeps/sparc/sparc32/q_div.c: ... here.
11719         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11720         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11721         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11722         * sysdeps/sparc/sparc32/q_feq.c: ... here.
11723         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11724         * sysdeps/sparc/sparc32/q_fge.c: ... here.
11725         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11726         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11727         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11728         * sysdeps/sparc/sparc32/q_fle.c: ... here.
11729         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11730         * sysdeps/sparc/sparc32/q_flt.c: ... here.
11731         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11732         * sysdeps/sparc/sparc32/q_fne.c: ... here.
11733         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11734         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11735         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11736         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11737         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11738         * sysdeps/sparc/sparc32/q_mul.c: ... here.
11739         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11740         * sysdeps/sparc/sparc32/q_neg.c: ... here.
11741         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11742         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11743         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11744         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11745         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11746         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11747         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11748         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11749         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11750         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11751         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11752         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11753         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11754         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11755         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11756         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11757         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11758         * sysdeps/sparc/sparc32/q_sub.c: ... here.
11759         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11760         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11761         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11762         * sysdeps/sparc/sparc32/q_util.c: ... here.
11763         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11764         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11765         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11766         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11767
11768 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
11769             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11770
11771         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
11772         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11773         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11774         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11775
11776 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
11777
11778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11779         powerpc/soft-fp.
11780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11781         Likewise.
11782         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11783         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11784
11785 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
11786
11787         [BZ #23171]
11788         * math/math.h [C++] (iseqsig): Fix parameter type for the long
11789         double version.
11790
11791 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
11792
11793         * sysdeps/sh/Implies: Remove sh/soft-fp.
11794         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11795         * sysdeps/sh/sfp-machine.h: ... here.
11796
11797 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11798
11799         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11800         (__mempcpy_erms): Skip zero length.
11801         (__memmove_erms): Likewise.
11802         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11803         (__memset_erms): Likewise.
11804
11805 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
11806
11807         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11808         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11809         Add functions moved from ....
11810         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
11811         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
11812         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11813         from ....
11814         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
11815         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11816         * sysdeps/alpha/e_sqrtl.c: ... here.
11817         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11818         * sysdeps/alpha/local-soft-fp.h: ... here.
11819         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11820         * sysdeps/alpha/ots_add.c: ... here.
11821         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11822         * sysdeps/alpha/ots_cmp.c: ... here.
11823         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11824         * sysdeps/alpha/ots_cmpe.c: ... here.
11825         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11826         * sysdeps/alpha/ots_cvtqux.c: ... here.
11827         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11828         * sysdeps/alpha/ots_cvtqx.c: ... here.
11829         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11830         * sysdeps/alpha/ots_cvttx.c: ... here.
11831         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11832         * sysdeps/alpha/ots_cvtxq.c: ... here.
11833         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11834         * sysdeps/alpha/ots_cvtxt.c: ... here.
11835         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11836         * sysdeps/alpha/ots_div.c: ... here.
11837         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11838         * sysdeps/alpha/ots_mul.c: ... here.
11839         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11840         * sysdeps/alpha/ots_nintxq.c: ... here.
11841         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11842         * sysdeps/alpha/ots_sub.c: ... here.
11843         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11844         * sysdeps/alpha/sfp-machine.h: ... here.
11845
11846 2018-05-23  Florian Weimer  <fweimer@redhat.com>
11847
11848         [BZ #19728]
11849         [BZ #19729]
11850         [BZ #22247]
11851         CVE-2016-6261
11852         CVE-2016-6263
11853         CVE-2017-14062
11854         Switch to extern IDNA implementation (libidn2).
11855         * libidn: Remove subdirectory.
11856         * LICENSES: Do not mention licensing conditions for the removed
11857         libidn code.
11858         * config.h.in (HAVE_LIBIDN): Remove.
11859         * include/dlfcn.h (__libc_dlopen): Update comment.
11860         * include/idna.h: Remove file.
11861         * inet/Makefile (routines): Add idna.
11862         (tests-static, tests-internal): Add tst-idna_name_classify.
11863         (LOCALES): Generate locales for tests.
11864         (tst-idna_name_classify.out): Depend on generated locales.
11865         * inet/idna_name_classify.c: New file.
11866         * inet/tst-idna_name_classify.c: Likewise.
11867         * inet/net-internal.h (__idna_to_dns_encoding)
11868         (__idna_from_dns_encoding): Declare.
11869         * inet/net-internal.h (enum idna_name_classification): Define.
11870         (__idna_name_classify): Declare.
11871         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11872         __idna_from_dns_encoding.
11873         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11874         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
11875         name as a fallback in case of encoding errors.
11876         (getnameinfo): Use DEPRECATED_NI_IDN.
11877         * inet/idna.c: New file.
11878         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11879         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11880         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11881         (modules-names): Add tst-no-libidn2.
11882         (extra-test-objs): Add tst-no-libidn2.os.
11883         (LDFLAGS-tst-no-libidn2.so): Set soname.
11884         (LOCALES): Set, and generate locales.
11885         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11886         (tst-resolv-ai_idn-latin1): Likewise.
11887         (tst-resolv-ai_idn-nolibidn2): Likewise.
11888         (tst-resolv-ai_idn.out): Depend on locales.
11889         (tst-resolv-ai_idn-latin1.out): Depend on locales.
11890         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11891         tst-no-libidn2.so.
11892         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11893         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11894         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11895         * resolv/tst-resolv-ai_idn.c: New file.
11896         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11897         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11898         * resolv/tst-no-libidn2.c: Likewise.
11899         * support/support_format_addrinfo.c (format_ai_flags): Do not
11900         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11901         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11902         (gaih_inet): Call __idna_to_dns_encoding and
11903         __idna_from_dns_encoding, and use the original (punycode) name if
11904         __idna_from_dns_encoding fails due to an encoding error.
11905         (getaddrinfo): Use DEPRECATED_AI_IDN.
11906         * sysdeps/unix/inet/Subdirs (libidn): Remove.
11907         * sysdeps/unix/inet/configure: Remove file.
11908         * sysdeps/unix/inet/configure.ac: Likewise.
11909
11910 2018-05-23  Florian Weimer  <fweimer@redhat.com>
11911
11912         Implement allocate_once.
11913         * include/allocate_once.h: New file.
11914         * misc/allocate_once.c: Likewise.
11915         * misc/tst-allocate_once.c: Likewise.
11916         * misc/Makefile (routines): Add allocate_once.
11917         (tests-internal): Add tst-allocate_once.
11918         (generated): Add tst-allocate_once.mtrace,
11919         tst-allocate_once-mem.out.
11920         (tests-special): Add tst-allocate_once-mem.out.
11921         (tst-allocate_once-ENV): Set MALLOC_TRACE.
11922         (tst-allocate_once-mem.out): Call mtrace.
11923         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11924
11925 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11926
11927         [BZ #23196]
11928         * string/test-memcpy.c (do_test1): New function.
11929         (test_main): Call it.
11930
11931 2018-05-23  Andreas Schwab  <schwab@suse.de>
11932
11933         [BZ #23196]
11934         CVE-2018-11237
11935         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11936         (L(preloop_large)): Save initial destination pointer in %r11 and
11937         use it instead of %rax after the loop.
11938         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11939
11940 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
11941
11942         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11943         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11944         -I../soft-fp.  Moved from ....
11945         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
11946         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11947         * sysdeps/aarch64/e_sqrtl.c: ... here.
11948         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11949         * sysdeps/aarch64/sfp-machine.h: ... here.
11950
11951         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11952         -Wmaybe-uninitialized around access to fq[0].
11953         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11954         Likewise.
11955
11956         [BZ #18471]
11957         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11958         aliases for non-libc case of versioned symbols.
11959         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11960         (llseek): Define as compat symbol if
11961         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11962         with link warning.
11963         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11964         Make into a compat symbol, disabled for minimum symbol version
11965         GLIBC_2.28 and later.
11966         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11967
11968 2018-05-22  Florian Weimer  <fweimer@redhat.com>
11969
11970         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11971         not add -mpreferred-stack-boundary=4.
11972         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11973         (stack-align-test-flags): Likewise.
11974         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11975         Likewise.
11976         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11977         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11978         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11979         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11980         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11981         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11982         (CFLAGS-tst-align2.c): Likewise.
11983
11984 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11985
11986         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11987         (index_arch_Prefer_FSRM): Likewise.
11988         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11989         Also check Prefer_FSRM.
11990         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11991         Also return OPTIMIZE (erms) for Prefer_FSRM.
11992
11993 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11994
11995         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11996         (index_cpu_FSRM): Likewise.
11997         (reg_FSRM): Likewise.
11998
11999 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
12000
12001         * math/gen-tgmath-tests.py: Import sys.
12002         (Tests.__init__): Initialize macros_seen.
12003         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
12004         if requested to do so for this macro.
12005         (Tests.add_all_tests): Take argument for macro for which to
12006         generate tests.
12007         (Tests.check_macro_list): New function.
12008         (main): Handle check-list argument and argument specifying macro
12009         for which to generate tests.
12010         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
12011         [PYTHON] (tgmath3-macro-tests): Likewise.
12012         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
12013         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
12014         not test-tgmath3.c.
12015         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
12016         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
12017         to CFLAGS.
12018         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
12019         [PYTHON] ($(foreach
12020         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
12021         rule.
12022         [PYTHON] (tests-special): Add
12023         $(objpfx)test-tgmath3-macro-list.out.
12024         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
12025
12026         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
12027         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
12028         later.
12029
12030         [BZ #22639]
12031         * time/tzset.c (SECSPERDAY): Cast to time_t.
12032         * time/tst-y2039.c: New file.
12033         * time/Makefile (tests): Add tst-y2039.
12034
12035 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
12036
12037         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
12038         (PREFETCH_ONE_SET): Remove duplicate line.
12039
12040 2018-05-17  Florian Weimer  <fweimer@redhat.com>
12041
12042         * sysdeps/generic/math-type-macros-double.h: Include
12043         <math-nan-payload-double.h> after <libm-alias-double.h>.
12044         * sysdeps/generic/math-type-macros-float.h: Include
12045         <math-nan-payload-float.h> after <libm-alias-float.h>.
12046         * sysdeps/generic/math-type-macros-float128.h: Include
12047         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
12048         * sysdeps/generic/math-type-macros-ldouble.h: Include
12049         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
12050
12051 2018-05-17  Andreas Schwab  <schwab@suse.de>
12052
12053         * resolv/res_send.c (__res_context_send): Don't set errno when
12054         returing error after malloc failure.
12055
12056 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12057
12058         * nptl/allocatestack.c (allocate_stack): Remove the
12059         !__ASSUME_PRIVATE_FUTEX paths.
12060         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
12061         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
12062         Likewise.
12063         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
12064         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12065         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12066         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
12067         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
12068         !__ASSUME_PRIVATE_FUTEX path.
12069         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
12070         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
12071         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12072         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
12073         !__ASSUME_PRIVATE_FUTEX macros.
12074         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
12075         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
12076         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
12077         * sysdeps/unix/sysv/linux/kernel-features.h
12078         (__ASSUME_PRIVATE_FUTEX): Removed.
12079
12080 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
12081
12082         * math/Makefile (libm-narrow-fns): Add div.
12083         (libm-test-funcs-narrow): Likewise.
12084         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
12085         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
12086         * math/gen-auto-libm-tests.c (test_functions): Add div.
12087         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
12088         (NARROW_DIV_ROUND_TO_ODD): Likewise.
12089         (NARROW_DIV_TRIVIAL): Likewise.
12090         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
12091         macro.
12092         (__ddivl): Likewise.
12093         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
12094         ddiv.
12095         (CFLAGS-nldbl-ddiv.c): New variable.
12096         (CFLAGS-nldbl-fdiv.c): Likewise.
12097         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12098         __nldbl_ddivl.
12099         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
12100         prototype.
12101         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
12102         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
12103         * math/auto-libm-test-in: Add tests of div.
12104         * math/auto-libm-test-out-narrow-div: New generated file.
12105         * math/libm-test-narrow-div.inc: New file.
12106         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
12107         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
12108         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
12109         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
12110         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
12111         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
12112         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
12113         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
12114         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
12115         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
12116         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
12119         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
12120         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
12121         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
12122         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
12123         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
12124         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12125         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12126         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12127         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12128         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12129         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12130         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12131         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12132         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12133         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12134         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12135         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12136         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12137         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12141         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12142         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12143         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12144         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12145         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12146         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12147         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12148         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12149         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12150
12151 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12152
12153         [BZ #23178]
12154         * nscd/nscd-client.h (sendfileall): Remove prototype.
12155         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
12156         (handle_request): Use writeall instead of sendfileall.
12157         * nscd/aicache.c (addhstaiX): Likewise.
12158         * nscd/grpcache.c (cache_addgr): Likewise.
12159         * nscd/hstcache.c (cache_addhst): Likewise.
12160         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12161         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
12162         * nscd/pwdcache.c (cache_addpw): Likewise.
12163         * nscd/servicescache.c (cache_addserv): Likewise.
12164         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
12165         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
12166         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
12167         Remove define.
12168
12169 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12170
12171         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
12172         Include <string/strncat.c>.
12173         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
12174         alias.
12175         (__GI___strncat): New hidden alias.
12176
12177 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
12178
12179         * sysdeps/mips/mips32/libm-test-ulps: Update.
12180         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12181
12182 2018-05-16  Florian Weimer  <fweimer@redhat.com>
12183
12184         * support/Makefile (libsupport-routines): Add support_quote_blob,
12185         support_test_compare_blob.
12186         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
12187         * support/check.h (TEST_COMPARE_BLOB): Define.
12188         (support_test_compare_blob): Declare.
12189         * support/support.h (support_quote_blob): Declare.
12190         * support/support_quote_blob.c: New file.
12191         * support/support_test_compare_blob.c: Likewise.
12192         * support/tst-support_quote_blob.c: Likewise.
12193         * support/tst-test_compare_blob.c: Likewise.
12194
12195 2018-05-16  Florian Weimer  <fweimer@redhat.com>
12196
12197         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
12198         of <strtod_nan_double.h>.
12199         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
12200         instead of SET_MANTISSA.
12201         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
12202         of include <strtod_nan_float.h>.
12203         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
12204         instead of <strtod_nan_ldouble.h>.
12205         * stdlib/strtod_nan_double.h: Move to ...
12206         * sysdeps/generic/math-nan-payload-double.h: ... here.
12207         (FLOAT): Remove definition.
12208         (SET_MANTISSA): Rename to ...
12209         (SET_NAN_PAYLOAD): ... this.
12210         * stdlib/strtod_nan_float.h: Move to ...
12211         * sysdeps/generic/math-nan-payload-float.h: ... here.
12212         (FLOAT): Remove definition.
12213         (SET_MANTISSA): Rename to ...
12214         (SET_NAN_PAYLOAD): ... this.
12215         * sysdeps/generic/math-type-macros-double.h: Include
12216         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
12217         instead of <math-svid-compat.h>.
12218         * sysdeps/generic/math-type-macros-float.h: Include
12219         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
12220         instead of <math-svid-compat.h>.
12221         * sysdeps/generic/math-type-macros-float128.h: Include
12222         <math-nan-payload-float128.h>.
12223         * sysdeps/generic/math-type-macros-ldouble.h: Include
12224         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
12225         instead of <math-svid-compat.h>.
12226         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
12227         check for definition.
12228         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
12229         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
12230         Include <ieee754_float128.h>.
12231         (FLOAT): Remove definition.
12232         (SET_MANTISSA): Rename to ...
12233         (SET_NAN_PAYLOAD): ... this.
12234         * sysdeps/ieee754/float128/strtof128_nan.c: Include
12235         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
12236         Do not include <float128_private.h>.
12237         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
12238         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
12239         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
12240         (FLOAT): Remove definition.
12241         (SET_MANTISSA): Rename to ...
12242         (SET_NAN_PAYLOAD): ... this.
12243         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
12244         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
12245         (FLOAT): Remove definition.
12246         (SET_MANTISSA): Rename to ...
12247         (SET_NAN_PAYLOAD): ... this.
12248         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
12249         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
12250         (FLOAT): Remove definition.
12251         (SET_MANTISSA): Rename to ...
12252         (SET_NAN_PAYLOAD): ... this.
12253         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
12254         of "../stdlib/strtod_nan_double.h".
12255         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
12256         of "../stdlib/strtod_nan_float.h".
12257         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
12258         instead of "../stdlib/strtod_nan_ldouble.h".
12259         * manual/arith.texi (Parsing of Floats): Adjust comment.
12260
12261 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
12262
12263         * math/Makefile (libm-narrow-fns): Add mul.
12264         (libm-test-funcs-narrow): Likewise.
12265         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
12266         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
12267         * math/gen-auto-libm-tests.c (test_functions): Add mul.
12268         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
12269         (NARROW_MUL_ROUND_TO_ODD): Likewise.
12270         (NARROW_MUL_TRIVIAL): Likewise.
12271         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
12272         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
12273         macro.
12274         (__dmull): Likewise.
12275         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
12276         dmul.
12277         (CFLAGS-nldbl-dmul.c): New variable.
12278         (CFLAGS-nldbl-fmul.c): Likewise.
12279         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12280         __nldbl_dmull.
12281         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
12282         prototype.
12283         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
12284         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
12285         * math/auto-libm-test-in: Add tests of mul.
12286         * math/auto-libm-test-out-narrow-mul: New generated file.
12287         * math/libm-test-narrow-mul.inc: New file.
12288         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
12289         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
12290         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
12291         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
12292         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
12293         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
12294         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
12295         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
12296         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
12297         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
12298         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12301         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12302         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12303         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12304         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12305         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12306         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12307         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12308         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12309         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12310         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12311         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12312         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12313         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12314         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12315         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12316         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12317         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12318         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12319         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12324         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12325         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12326         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12327         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12328         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12329         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12330         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12331         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12332
12333 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12334
12335         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12336         with *%eax in call.
12337
12338 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12339
12340         * sysdeps/i386/ldsodefs.h: Removed.
12341         * sysdeps/x86_64/ldsodefs.h: Moved to ...
12342         * sysdeps/x86/ldsodefs.h: This.
12343         (La_i86_regs): New.
12344         (La_i86_retval): Likewise.
12345         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12346         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12347
12348 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12349
12350         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12351         unnecessary testl.
12352
12353 2018-05-13  Alan Modra  <amodra@gmail.com>
12354
12355         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12356         R_PARISC_TLS_DTPOFF32 reloc addend.
12357
12358 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
12359
12360         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12361         * math/math.h: Restrict the prototype definition for the functions
12362         issignaling(_Float128) and iszero(_Float128); and template
12363         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12364         __HAVE_FLOAT128_UNLIKE_LDBL.
12365         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12366         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12367         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12368         __f128() constants; define the type _Float128 as long double;
12369         and reuse long double in __CFLOAT128.
12370
12371 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
12372
12373         * sysdeps/generic/math_private.h: Do not include
12374         <math-barriers.h>.
12375         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12376         <math_private.h>.
12377         * math/fromfp.h: Include <math-barriers.h>.
12378         * math/math-narrow.h: Likewise.
12379         * math/s_nextafter.c: Likewise.
12380         * math/s_nexttowardf.c: Likewise.
12381         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12382         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12383         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12384         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12385         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12386         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12387         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12388         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12389         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12390         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12391         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12392         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12393         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12394         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12395         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12396         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12397         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12398         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12399         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12400         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12401         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12402         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12403         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12404         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12405         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12406         * sysdeps/ieee754/k_standardl.c: Likewise.
12407         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12408         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12409         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12410         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12411         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12412         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12413         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12414         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12415         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12416         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12417         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12418         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12419         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12420         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12421         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12422         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12423         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12424         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12425         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12426         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12427         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12428         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12429
12430 2018-05-11  Florian Weimer  <fweimer@redhat.com>
12431
12432         Use 64-bit epoch values in the time zone file parser.
12433         * include/time.h (internal_time_t): Define.
12434         (__tzfile_compute): Use it.
12435         * time/tzfile.c (struct leap): Use internal_time_t for epoch
12436         member.
12437         (transitions): Switch to internal_time_t.
12438         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
12439         types.
12440         (__tzfile_compute): Use internal_time_t for timer argument.  Check
12441         for truncation before calling __offtime.
12442
12443 2018-05-11  Florian Weimer  <fweimer@redhat.com>
12444
12445         [BZ #23166]
12446         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12447         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12448         Likewise.
12449         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12450         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
12451         export without --enable-obsolete-rpc.
12452         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12453         symbol.  This should not have been exported, ever.
12454
12455 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
12456
12457         [BZ #23152]
12458         * localedata/locales/gd_GB (abmon): Fix typo in May:
12459         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
12460
12461 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12462
12463         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12464         Use multiple registers to copy data in loop tail.
12465
12466         * sysdeps/aarch64/multiarch/memmove_falkor.S
12467         (__memmove_falkor): Use multiple registers to move data in
12468         loop tail.
12469
12470 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
12471
12472         * math/math-underflow.h: New file.
12473         * sysdeps/generic/math_private.h: Do not include <float.h>.
12474         (fabs_tg): Remove macro.  Moved to math-underflow.h.
12475         (min_of_type_f): Likewise.
12476         (min_of_type_): Likewise.
12477         (min_of_type_l): Likewise.
12478         (min_of_type_f128): Likewise.
12479         (min_of_type): Likewise.
12480         (math_check_force_underflow): Likewise.
12481         (math_check_force_underflow_nonneg): Likewise.
12482         (math_check_force_underflow_complex): Likewise.
12483         * math/e_exp2_template.c: Include <math-underflow.h>.
12484         * math/k_casinh_template.c: Likewise.
12485         * math/s_catan_template.c: Likewise.
12486         * math/s_catanh_template.c: Likewise.
12487         * math/s_ccosh_template.c: Likewise.
12488         * math/s_cexp_template.c: Likewise.
12489         * math/s_clog10_template.c: Likewise.
12490         * math/s_clog_template.c: Likewise.
12491         * math/s_csin_template.c: Likewise.
12492         * math/s_csinh_template.c: Likewise.
12493         * math/s_csqrt_template.c: Likewise.
12494         * math/s_ctan_template.c: Likewise.
12495         * math/s_ctanh_template.c: Likewise.
12496         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12497         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12498         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12499         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12500         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12501         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12502         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12503         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12504         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12505         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12506         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12507         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12508         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12509         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12510         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12511         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12512         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12513         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12514         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12515         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12516         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12517         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12518         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12519         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12520         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12521         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12522         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12523         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12524         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12525         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12526         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12527         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12528         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12529         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12530         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12531         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12532         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12533         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12534         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12535         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12536         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12537         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12538         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12539         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12540         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12541         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12542         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12543         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12544         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12545         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12546         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12547         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12548         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12549         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12550         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12551         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12552         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12553         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12554         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12555         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12556         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12557         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12558         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12559         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12560         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12561         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12562         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12563         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12564         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12565         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12566         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12567         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12568         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12569         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12570         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12571         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12572         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12573         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12574         * sysdeps/x86/fpu/powl_helper.c: Likewise.
12575         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12576         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12577         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12578         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12579         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12580
12581 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
12582
12583         * sysdeps/generic/math-barriers.h: New file.
12584         * sysdeps/generic/math_private.h [!math_opt_barrier]
12585         (math_opt_barrier): Move to math-barriers.h.
12586         [!math_opt_barrier] (math_force_eval): Likewise.
12587         * sysdeps/aarch64/fpu/math-barriers.h: New file.
12588         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12589         math-barriers.h.
12590         (math_force_eval): Likewise.
12591         * sysdeps/alpha/fpu/math-barriers.h: New file.
12592         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12593         math-barriers.h.
12594         (math_force_eval): Likewise.
12595         * sysdeps/x86/fpu/math-barriers.h: New file.
12596         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12597         math-barriers.h.
12598         (math_force_eval): Likewise.
12599         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12600         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
12601         multiple-include guard for rename.
12602         * sysdeps/powerpc/fpu/math-barriers.h: New file.
12603         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12604         math-barriers.h.
12605         (math_force_eval): Likewise.
12606
12607 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
12608
12609         [BZ #22786]
12610         CVE-2018-11236
12611         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12612         computation.
12613         * stdlib/Makefile (test-bz22786): New test.
12614         * stdlib/test-bz22786.c: New test.
12615
12616 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
12617
12618         * include/math-narrow-eval.h: New file.  Contents moved from ....
12619         * sysdeps/generic/math_private.h: ... here.
12620         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
12621         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12622         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12623         * stdlib/strtod_l.c: Likewise.
12624         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12625         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12626         * sysdeps/i386/fpu/s_fdim.c: Likewise.
12627         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12628         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12629         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12630         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12631         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12632         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12633         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12634         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12635         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12636         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12637         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12638         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12639         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12640         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12641         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12642         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12643         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12644         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12645         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12646         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12647         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12648         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12649         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12650         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12651         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12652         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12653
12654 2018-05-08  Andreas Schwab  <schwab@suse.de>
12655
12656         * sysdeps/nptl/internaltypes.h: Fix comment.
12657
12658 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
12659
12660         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12661         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12662         hidden.
12663
12664 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12665
12666         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12667         of I into loop header.
12668         * benchtests/bench-memmove-walk.c
12669         (test_main): Likewise.
12670
12671 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
12672
12673         Revert:
12674         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
12675         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12676
12677 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
12678
12679         [BZ #20419]
12680         * elf/dl-load.c (open_verify): Fix stack overflow.
12681         * elf/Makefile (tst-big-note): New test.
12682         * elf/tst-big-note-lib.S: New.
12683         * elf/tst-big-note.c: New.
12684
12685 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
12686
12687         * scripts/abilist.awk: Ignore absolute symbols.
12688         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12689         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12690         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12691         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12692         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12693         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12694         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12695         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12696         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12697         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12698         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12699         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12700         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12701         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12702         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12703         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12704         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12705         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12706         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12707         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12708         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12709         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12710         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12711         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12712         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12713         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12714         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12715         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12716         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12717         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12718         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12719         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12720         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12721         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12722         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12723         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12724         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12725         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12726         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12727         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12728         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12729         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12730         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12731         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12732         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12733         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12734         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12735         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12736         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12737         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12738         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12739         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12740         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12741         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12742         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12743         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12744         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12745         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12746         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12747         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12748         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12749         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12750         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12751         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12752         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12753         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12754         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12755         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12756         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12757         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12758         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12759         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12760         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12761         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12762         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12763         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12764         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12765         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12766         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12767         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12768         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12769         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12770         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12771         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12772         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12773         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12774         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12775         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12776         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12777         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12778         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12779         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12780         Likewise.
12781         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12782         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12783         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12784         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12785         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12786         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12787         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12788         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12789         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12790         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12791         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12792         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12793         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12794         Likewise.
12795         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12796         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12797         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12798         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12799         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12800         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12801         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12802         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12803         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12804         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12805         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12806         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12807         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12808         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12809         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12810         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12811         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12812         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12813         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12814         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12815         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12816         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12817         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12818         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12819         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12820         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12821         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12822         Likewise.
12823         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12824         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12825         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12826         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12827         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12828         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12829         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12830         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12831         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12832         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12833         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12834         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12835         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12836         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12837         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12838         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12839         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12840         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12841         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12842         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12843         Likewise.
12844         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12845         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12846         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12847         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12848         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12849         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12850         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12851         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12852         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12853         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12854         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12855         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12856         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12857         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12858         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12859         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12860         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12861         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12862         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12863         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12864         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12865         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12866         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12867         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12868         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12869         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12870         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12871         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12876         Likewise.
12877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12882         Likewise.
12883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12884         Likewise.
12885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12887         Likewise.
12888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12890         Likewise.
12891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12892         Likewise.
12893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12896         Likewise.
12897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12898         Likewise.
12899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12900         Likewise.
12901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12905         Likewise.
12906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12912         Likewise.
12913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12915         Likewise.
12916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12917         Likewise.
12918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12919         Likewise.
12920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12921         Likewise.
12922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12925         Likewise.
12926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12927         Likewise.
12928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12929         Likewise.
12930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12931         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12932         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12933         Likewise.
12934         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12935         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12936         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12937         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12938         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12939         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12940         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12941         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12942         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12943         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12944         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12945         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12946         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12947         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12948         Likewise.
12949         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12950         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12951         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12952         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12953         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12954         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12955         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12956         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12957         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12958         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12959         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12960         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12961         Likewise.
12962         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12963         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12964         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12965         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12966         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12967         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12968         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12969         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12970         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12971         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12972         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12973         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12974         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12975         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12976         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12977         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12978         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12979         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12980         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12981         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12982         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12983         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12984         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12985         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12986         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12987         Likewise.
12988         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12989         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12990         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12991         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12992         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12993         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12994         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12995         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12996         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12997         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12998         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12999         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
13000         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
13001         Likewise.
13002         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
13003         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13004         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
13005         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
13006         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13007         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
13008         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
13009         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
13010         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
13011         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
13012         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
13013         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
13014         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
13015         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
13016         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13017         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
13018         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
13019         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13020         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
13021         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
13022         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
13023         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
13024         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
13025         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
13026         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
13027         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
13028         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
13029         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
13030         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13031         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
13032         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
13033         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13034         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
13035         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
13036         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
13037         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
13038         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
13039         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
13040
13041 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
13042
13043         [BZ #23137]
13044         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
13045         Use atomic_load_acquire to load __tid.
13046
13047 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13048
13049         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
13050         Restore the pointer into %rdx, after syscall and use %rdx,
13051         instead of %rsi, to restore context.
13052
13053 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13054
13055         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
13056         Pop the pointer into %rdx after syscall and use %rdx, instead
13057         of %rsi, to restore context.
13058
13059 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
13060
13061         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
13062         handlers after setjmp.
13063         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
13064         defined.
13065         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
13066         <libc-pointer-arith.h>.
13067         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
13068         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
13069         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
13070         _JUMP_BUF_SIGSET_BITS_PER_WORD.
13071         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
13072         * sysdeps/x86/__longjmp_cancel.S: New file.
13073         * sysdeps/x86/longjmp.c: Likewise.
13074         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
13075
13076 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13077
13078         * NEWS: Add ustat.h deprecation entry.
13079         * bits/ustat.h: Remove file.
13080         * misc/sys/ustat.h: Likewise.
13081         * misc/ustat.h: Likewise.
13082         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
13083         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
13084         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
13085         compatibility mode.
13086         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
13087         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
13088         generic Linux implementation.
13089
13090 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13091
13092         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
13093         * math/w_expl_compat.c: Likewise.
13094         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
13095
13096 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
13097
13098         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
13099
13100 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13101
13102         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
13103         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
13104         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
13105         Remove.
13106         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
13107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
13108         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
13109         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
13110         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
13111         and SYSCALL_LL64.
13112
13113 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13114
13115         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
13116
13117         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
13118         * math/w_asin_template.c: Likewise.
13119         * math/w_atanh_template.c: Likewise.
13120
13121 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
13122
13123         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
13124         to powerpc/powerpc64/be for big-endian.
13125         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
13126         little-endian.
13127
13128         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
13129         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
13130         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
13131         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
13132         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
13133         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
13134         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
13135         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
13136         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
13137         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
13138         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
13139         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
13140         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
13141         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
13142         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
13143         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
13144         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
13145         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
13146         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
13147         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
13148         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
13149         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
13150         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
13151         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
13152         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
13153         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
13154         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
13155         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
13156         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
13157         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
13158         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
13159         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
13160
13161         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
13162         adjusted to imply powerpc64 and older processors on powerpc64/be.
13163         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
13164         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
13165         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
13166         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
13167         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
13168         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
13169         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
13170         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
13171         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
13172         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
13173         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
13174         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
13175         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
13176         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
13177         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
13178         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
13179         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
13180         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
13181         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
13182         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
13183         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
13184         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
13185         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
13186         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
13187         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
13188         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
13189         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
13190         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
13191         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
13192         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
13193         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
13194
13195         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
13196         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
13197         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
13198         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
13199
13200         * sysdeps/powerpc/powerpc64/be/Implies: New file.
13201         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
13202         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
13203         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
13204
13205         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
13206         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
13207         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
13208         * sysdeps/powerpc/powerpc64le/configure: Likewise.
13209         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
13210         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
13211         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
13212         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
13213         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
13214         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
13215         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
13216
13217         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
13218         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
13219         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
13220         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
13221         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
13222         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
13223         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
13224         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
13225         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
13226         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
13227         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
13228
13229         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
13230         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
13231         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
13232         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
13233         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
13234         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
13235         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
13236         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
13237         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
13238         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
13239         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
13240         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
13241
13242         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
13243         and adjusted to imply olders processors.
13244         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
13245         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
13246         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
13247         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
13248         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
13249         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
13250         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
13251         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
13252         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
13253         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
13254         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
13255
13256         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
13257         powerpc64/le.
13258         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
13259         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
13260
13261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
13262         powerpc64le.
13263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
13264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
13265
13266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
13267         powerpc64/be.
13268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
13269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
13270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
13271
13272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
13273         powerpc64 and adjusted.
13274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
13275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
13276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
13277         Likewise.
13278
13279 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
13280
13281         * sysdeps/tile: Remove.
13282         * sysdeps/unix/sysv/linux/tile: Likewise.
13283         * README (tilegx-*-linux-gnu): Remove from list of supported
13284         configurations.
13285         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
13286         contribution of support for generic Linux kernel syscall
13287         interface.
13288         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
13289         tilegx configurations.
13290         (Config.install_linux_headers): Do not handle tile.
13291         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
13292         in comment.
13293         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
13294         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
13295         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13296         conditional undefine and redefine.
13297         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
13298         in comment.
13299         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
13300         conditional undefine and redefine.
13301
13302 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
13303
13304         * signal/tst-sigaction.c: New file to test BZ #23069.
13305         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13306
13307 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13308
13309         [BZ #22766]
13310         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13311         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13312         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13313         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13314
13315 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13316
13317         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13318         _DIRENT_MATCHES_DIRENT64 is not defined.
13319         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13320         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13321         is defined.
13322         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13323         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13324
13325 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
13326
13327         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13328         version to GCC 8 branch.
13329
13330 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
13331
13332         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13333         (check_no_hidden): Use type of original function when declaring
13334         alias.
13335
13336         * sysdeps/unix/sysv/linux/sys/ptrace.h
13337         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13338         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13339         (struct __ptrace_seccomp_metadata): New type.
13340         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13341         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13342         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13343         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13344         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13345         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13346         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13347         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13348         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13349         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13350         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13351         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13352         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13353         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13354         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13355         (PTRACE_SECCOMP_GET_METADATA): Likewise.
13356
13357 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13358
13359         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13360         defined.
13361         * dirent/versionsort.c (versionsort): Likewise.
13362         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13363         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13364         * dirent/versionsort64.c (versionsort64): Likewise.
13365         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13366         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13367         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13368         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13369         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13370         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13371         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13372         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13373         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13374         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13377         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13378         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13379
13380 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
13381
13382         * elf/elf.h (NT_PPC_PKEY): New macro.
13383
13384 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13385
13386         [BZ #23094]
13387         * localedata/locales/hr_HR: fix thousands_sep and
13388         mon_thousands_sep
13389
13390 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
13391
13392         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13393         (XTABS): Define to TAB3.
13394
13395 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13396
13397         * sysdeps/hppa/fpu/libm-test-ulps: Update.
13398
13399         * dirent/scandir-tail-common.c: New file.
13400         * dirent/scandir-tail.c: Use scandir-tail-common.c.
13401         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13402         * dirent/scandir.c: Use scandir-tail-common.c.
13403         * dirent/scandirat.c: Likewise.
13404         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13405         * dirent/scandir64.c (scandir64): Always build and alias to scandir
13406         if _DIRENT_MATCHES_DIRENT64 is defined.
13407         * dirent/scandirat64.c (scandirat64): Likewise.
13408         * include/dirent.h (__scandir_tail): Only define iff
13409         _DIRENT_MATCHES_DIRENT64 is not defined.
13410         (__scandir64_tail): Define regardless.
13411         (__scandirat, scandirat64): Remove libc_hidden_proto.
13412         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13413         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13415         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13416         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13417         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13418         * sysdeps/unix/sysv/linux/scandir64.c: New file.
13419
13420 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
13421
13422         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13423         New macro.
13424         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13425         Increase to 24.
13426         (_dl_aarch64_cap_flags): Add asimdfhm.
13427
13428 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
13429
13430         * sysdeps/nios2/libm-test-ulps: Update.
13431
13432 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13433
13434         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13435         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13436
13437         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13438         requirements.
13439          (_DIRENT_MATCHES_DIRENT64): Undef
13440         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13441         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13442         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13443         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13444         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13445         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13446         use getdents64 syscalls as base.
13447         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13448         symbol if required.
13449         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13450         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13451         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13452         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13453         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13454         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13455         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13456         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13457         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13458         (__get_clockfreq_via_proc_openprom): Use __getdents64.
13459         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13460
13461 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
13462
13463         * scripts/test_printers_common.py (init_test): Disable lock elision.
13464
13465 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
13466
13467         * math/test-tgmath.c (count_double, count_float,
13468         count_ldouble, count_cdouble, count_cfloat,
13469         count_cldouble): Use volatile int.
13470
13471 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13472
13473         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13474         (conformtest-xfail-conds): Add i386-gnu.
13475         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13476         i386-gnu.
13477         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13478         ipc_perm.cuid, ipc_perm.cgid): Likewise.
13479         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13480         msqid_ds.msg_lrpid): Likewise.
13481         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13482         Likewise.
13483         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13484         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13485         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13486         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13487         unsigned int.
13488         (struct statvfs64): Likewise.
13489         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13490         Likewise.
13491         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13492         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13493         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13494         instead of wait_queue.
13495         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13496         instead of vm_area_struct.
13497         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13498         struct sched_param definition to it.
13499         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13500         * bits/types/struct_sched_param.h: New file.
13501         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13502         <bits/types/struct_sched_param.h> instead of <sched.h>.
13503         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13504         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13505         generic version but include <bits/pthreadtypes.h> to make struct
13506         sigevent's sigev_notify_attributes field a pthread_attr_t*.
13507         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13508         non-compliant.
13509         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13510         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13511         [__USE_XOPEN] (OFDEL): New macro.
13512         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13513         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13514         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13515         prototypes.
13516         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13517         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13518         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13519         non-compliant.
13520         * sysdeps/i386/sys/ucontext.h: Likewise.
13521         * sysdeps/m68k/sys/ucontext.h: Likewise.
13522         * sysdeps/mips/sys/ucontext.h: Likewise.
13523         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13524         * sysdeps/mach/hurd/i386/Makefile
13525         (test-xfail-POSIX/fcntl.h/conform): Add.
13526         (test-xfail-POSIX/signal.h/conform): Add.
13527         (test-xfail-POSIX/semaphore.h/conform): Add.
13528         (test-xfail-POSIX/regex.h/conform): Add.
13529         (test-xfail-POSIX/aio.h/conform): Add.
13530         (test-xfail-POSIX/mqueue.h/conform): Add.
13531         (test-xfail-POSIX/sys/types.h/conform): Add.
13532         (test-xfail-UNIX98/fcntl.h/conform): Add.
13533         (test-xfail-UNIX98/netdb.h/conform): Add.
13534         (test-xfail-UNIX98/signal.h/conform): Add.
13535         (test-xfail-UNIX98/semaphore.h/conform): Add.
13536         (test-xfail-UNIX98/regex.h/conform): Add.
13537         (test-xfail-UNIX98/aio.h/conform): Add.
13538         (test-xfail-UNIX98/ftw.h/conform): Add.
13539         (test-xfail-UNIX98/mqueue.h/conform): Add.
13540         (test-xfail-UNIX98/netinet/in.h/conform): Add.
13541         (test-xfail-UNIX98/sys/wait.h/conform): Add.
13542         (test-xfail-UNIX98/sys/sem.h/conform): Add.
13543         (test-xfail-UNIX98/sys/uio.h/conform): Add.
13544         (test-xfail-UNIX98/sys/socket.h/conform): Add.
13545         (test-xfail-UNIX98/sys/types.h/conform): Add.
13546         (test-xfail-UNIX98/stdlib.h/conform): Add.
13547         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13548         (test-xfail-POSIX2008/fcntl.h/conform): Add.
13549         (test-xfail-POSIX2008/netdb.h/conform): Add.
13550         (test-xfail-POSIX2008/signal.h/conform): Add.
13551         (test-xfail-POSIX2008/semaphore.h/conform): Add.
13552         (test-xfail-POSIX2008/regex.h/conform): Add.
13553         (test-xfail-POSIX2008/aio.h/conform): Add.
13554         (test-xfail-POSIX2008/mqueue.h/conform): Add.
13555         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13556         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13557         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13558         (test-xfail-POSIX2008/sys/types.h/conform): Add.
13559         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13560         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13561         (test-xfail-XOPEN2K/netdb.h/conform): Add.
13562         (test-xfail-XOPEN2K/signal.h/conform): Add.
13563         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13564         (test-xfail-XOPEN2K/regex.h/conform): Add.
13565         (test-xfail-XOPEN2K/aio.h/conform): Add.
13566         (test-xfail-XOPEN2K/ftw.h/conform): Add.
13567         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13568         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13569         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13570         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13571         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13572         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13573         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13574         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13575         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13576         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13577         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13578         (test-xfail-XOPEN2K8/signal.h/conform): Add.
13579         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13580         (test-xfail-XOPEN2K8/regex.h/conform): Add.
13581         (test-xfail-XOPEN2K8/aio.h/conform): Add.
13582         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13583         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13584         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13585         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13586         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13587         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13588         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13589         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13590         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13591         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13592         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13593         i386-gnu.
13594         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13595         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13596
13597 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13600         --enable-obsolete for powerpc-linux-gnuspe.
13601
13602 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13603
13604         * conform/data/sys/un.h-data: Allow sun_ prefix.
13605         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13606         prototypes.
13607         * sysdeps/mach/include/mach.h: Likewise.
13608         * sysdeps/mach/include/mach/mig_support.h: Likewise.
13609         * sysdeps/mach/include/mach_error.h: Likewise.
13610
13611 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13612
13613         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13614         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13615         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13616         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13617
13618 2018-04-16  Andreas Schwab  <schwab@suse.de>
13619
13620         [BZ #19527]
13621         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13622
13623 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
13624
13625         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13626         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13627
13628 2018-04-12  DJ Delorie  <dj@redhat.com>
13629
13630         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13631         version to 4.16.
13632
13633 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
13634
13635         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13636         (struct kernel_sigaction): Use the same definition on 31bit as is used
13637         on 64bit.
13638
13639 2018-04-09  Florian Weimer  <fweimer@redhat.com>
13640
13641         [BZ #23037]
13642         * resolv/res_send.c (send_dg): Use designated initializers instead
13643         of assignment to zero-initialize other fields of struct mmsghdr.
13644
13645 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13646
13647         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13648         __READDIR_ALIAS): Undefine after usage.
13649         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13650         __READDIR_R_ALIAS): Likewise.
13651         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13652         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13653         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13654         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13655         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13656         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13657         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13658         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13659         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13660         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13661         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13662         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13663         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13664         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13665         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13666         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13667         * sysdeps/unix/sysv/linux/readdir.c: New file.
13668         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13669         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13670         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13671
13672         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13673
13674 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
13675
13676         * manual/charset.texi (Converting a Character): Fix typo.
13677
13678 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13679
13680         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13681
13682         * sysdeps/arm/libm-test-ulps: Update.
13683
13684         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13685         as base implementation.
13686         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13687         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13688         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13689         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13690         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13691         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13692         remove unrequired definitions and update comments.
13693         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13694         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13695         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13696         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13697         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13698         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13699         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13700         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13701         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13702         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13703         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13704         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13705         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13706         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13707         and RESET_SA_RESTORER hooks.
13708
13709 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
13710
13711         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13712
13713 2018-04-05  Florian Weimer  <fweimer@redhat.com>
13714
13715         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13716         integer overflow, memory leak on error, and indeterminate errno
13717         value.  Add a null wide character to terminate the result string.
13718         * manual/charset.texi (Converting a Character): Mention embedded
13719         null bytes in the mbrtowc input string.  Explain what happens in
13720         the -2 result case.  Do not claim that mbrtowc is simple or
13721         obvious to use.  Adjust the description of the code example.  Use
13722         @code, not @var, for concrete variables.
13723
13724 2018-04-05  Florian Weimer  <fweimer@redhat.com>
13725
13726         * manual/examples/mbstouwcs.c: New file.
13727         * manual/charset.texi (Converting a Character): Include it.
13728
13729 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13730
13731         * include/dirent.h (dirfd): Add hidden proto.
13732         * dirent/dirfd.c (dirfd): Add hidden def.
13733         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13734         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13735
13736 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
13737
13738         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13739         sin, cos and sincos to 1 ULP.
13740
13741 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
13742
13743         [BZ #19818]
13744         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13745         symbols.
13746         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13747         * elf/tst-absolute-sym.c: New file.
13748         * elf/tst-absolute-sym-lib.c: New file.
13749         * elf/tst-absolute-sym-lib.lds: New file.
13750         * elf/Makefile (tests): Add `tst-absolute-sym'.
13751         (modules-names): Add `tst-absolute-sym-lib'.
13752         (LDLIBS-tst-absolute-sym-lib.so): New variable.
13753         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13754         ($(objpfx)tst-absolute-sym): New dependency.
13755
13756         [BZ #19818]
13757         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13758         parameter.
13759         (SYMBOL_ADDRESS): New macro.
13760         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13761         SYMBOL_ADDRESS for symbol address calculation.
13762         * elf/dl-runtime.c (_dl_fixup): Likewise.
13763         (_dl_profile_fixup): Likewise.
13764         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13765         * elf/rtld.c (dl_main): Likewise.
13766         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13767         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13768         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13769         (elf_machine_rela): Likewise.
13770         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13771         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13772         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13773         (elf_machine_rela): Likewise.
13774         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13775         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13776         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13777         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13778         Likewise.
13779         (elf_machine_reloc): Likewise.
13780         (elf_machine_got_rel): Likewise.
13781         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13782         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13783         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13784         Likewise.
13785         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13786         Likewise.
13787         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13788         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13789         Likewise.
13790         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13791         Likewise.
13792         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13793         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13794         Likewise.
13795         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13796         Likewise.
13797         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13798         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13799
13800 2018-04-04  Zack Weinberg  <zackw@panix.com>
13801
13802         * sysdeps/generic/internal-signals.h: Include signal.h,
13803         sigsetops.h, and stdbool.h.
13804         (__libc_signal_block_all): Actually block all signals.
13805         (__libc_signal_block_app): Likewise.
13806         (__libc_signal_restore_set): Actually restore the signal mask.
13807
13808 2018-04-04  Florian Weimer  <fweimer@redhat.com>
13809
13810         inet: Actually build and run tst-deadline.
13811         * inet/Makefile (tests-internal): Add tst-deadline and do not
13812         overwrite the variable.
13813         (tests-static-internal): Remove variable.
13814
13815 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
13816
13817         [BZ #22947]
13818         * bits/uio-ext.h (RWF_APPEND): New.
13819         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13820         * manual/llio.texi: Document RWF_APPEND.
13821         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13822         (RWF_SUPPORTED): Add RWF_APPEND.
13823
13824 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13825
13826         [BZ #22391]
13827         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13828         check for internal nptl signals.
13829         * nptl/sigaction.c (__sigaction): Likewise.
13830         * signal/sigaddset.c (sigaddset): Likewise.
13831         * signal/sigdelset.c (sigdelset): Likewise.
13832         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13833         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13834         value.
13835         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13836         to filter out internal nptl signals.
13837         * signal/tst-sigset.c (do_test): Check ech signal indidually and
13838         also check realtime signals using standard macros.
13839         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13840         __is_internal_signal, __libc_signal_block_all,
13841         __libc_signal_block_app, __libc_signal_restore_set): New functions.
13842         * sysdeps/nptl/sigfillset.c: Remove file.
13843         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13844         Change return to bool.
13845         (__clear_internal_signals): Remove SIGTIMER clean since it is
13846         equal to SIGCANEL on Linux.
13847         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13848         signal set was constructed using standard functions.
13849
13850 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13851
13852         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13853         ifname is too long.
13854         * hurd/hurdsig.c (interrupted_reply_port_location): Use
13855         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13856         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13857         hidden def.
13858         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13859         * signal/sigaddset.c: Include <sigsetopts.h>.
13860         * signal/sigdelset.c: Likewise.
13861
13862 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13863
13864         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13865         (__cos): Likewise.
13866         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13867         logic as sin and cos.
13868
13869 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13870
13871         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13872         inputs.  Return correct sign.
13873         (do_sincos): Remove small input check before do_sin, let do_sin set
13874         the sign.
13875         (__sin): Likewise.
13876         (__cos): Likewise.
13877
13878 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13879
13880         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13881         (do_cos_slow): Likewise.
13882         (do_sin_slow): Likewise.
13883         (reduce_and_compute): Likewise.
13884         (slow): Likewise.
13885         (slow1): Likewise.
13886         (slow2): Likewise.
13887         (sloww): Likewise.
13888         (sloww1): Likewise.
13889         (sloww2): Likewise.
13890         (bslow): Likewise.
13891         (bslow1): Likewise.
13892         (bslow2): Likewise.
13893         (cslow2): Likewise.
13894
13895 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13896
13897         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13898         (do_cos): Remove corp parameter and calculations.
13899         (do_sin): Likewise.
13900         (do_sincos): Remove cor variable.
13901         (__sin): Use do_sincos for huge inputs.
13902         (__cos): Likewise.
13903         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13904         (reduce_and_compute_sincos): Remove unused function.
13905
13906 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13907
13908         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13909         reduce_sincos, improve accuracy to 136 bits.
13910         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13911         (__sin): Use improved reduction and simplified do_sincos calculation.
13912         (__cos): Likewise.
13913         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13914
13915 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13916
13917         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13918         (do_sincos_2): Likewise.
13919         (__sin): Remove middle range reduction case.
13920         (__cos): Likewise.
13921         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13922         reduction case.
13923
13924 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
13925
13926         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13927         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13928         inputs.
13929         (__cos): Likewise.
13930         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13931
13932 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13935         version to 4.16
13936
13937 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13938
13939         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13940         Remove definitions.
13941         (opendir_oflags): Use O_DIRECTORY regardless.
13942         (__opendir, __opendirat): Remove need_isdir_precheck usage.
13943         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13944
13945 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13946
13947         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13948         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13949         macros.
13950         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13951         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13952         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13953         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13954         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13955         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13956
13957         * htl/Makefile: Bump licence to LGPL 2.1+.
13958         * htl/alloca_cutoff.c: Likewise.
13959         * htl/cthreads-compat.c: Likewise.
13960         * htl/lockfile.c: Likewise.
13961         * htl/pt-alloc.c: Likewise.
13962         * htl/pt-cancel.c: Likewise.
13963         * htl/pt-cleanup.c: Likewise.
13964         * htl/pt-create.c: Likewise.
13965         * htl/pt-dealloc.c: Likewise.
13966         * htl/pt-detach.c: Likewise.
13967         * htl/pt-exit.c: Likewise.
13968         * htl/pt-getattr.c: Likewise.
13969         * htl/pt-initialize.c: Likewise.
13970         * htl/pt-internal.h: Likewise.
13971         * htl/pt-join.c: Likewise.
13972         * htl/pt-self.c: Likewise.
13973         * htl/pt-setcancelstate.c: Likewise.
13974         * htl/pt-setcanceltype.c: Likewise.
13975         * htl/pt-sigmask.c: Likewise.
13976         * htl/pt-spin-inlines.c: Likewise.
13977         * htl/pt-testcancel.c: Likewise.
13978         * htl/pt-yield.c: Likewise.
13979         * htl/tests/test-1.c: Likewise.
13980         * htl/tests/test-10.c: Likewise.
13981         * htl/tests/test-11.c: Likewise.
13982         * htl/tests/test-12.c: Likewise.
13983         * htl/tests/test-13.c: Likewise.
13984         * htl/tests/test-14.c: Likewise.
13985         * htl/tests/test-15.c: Likewise.
13986         * htl/tests/test-16.c: Likewise.
13987         * htl/tests/test-17.c: Likewise.
13988         * htl/tests/test-2.c: Likewise.
13989         * htl/tests/test-3.c: Likewise.
13990         * htl/tests/test-4.c: Likewise.
13991         * htl/tests/test-5.c: Likewise.
13992         * htl/tests/test-6.c: Likewise.
13993         * htl/tests/test-7.c: Likewise.
13994         * htl/tests/test-8.c: Likewise.
13995         * htl/tests/test-9.c: Likewise.
13996         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13997         * sysdeps/htl/bits/cancelation.h: Likewise.
13998         * sysdeps/htl/bits/pthread-np.h: Likewise.
13999         * sysdeps/htl/bits/pthread.h: Likewise.
14000         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
14001         * sysdeps/htl/bits/semaphore.h: Likewise.
14002         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
14003         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
14004         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
14005         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
14006         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
14007         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
14008         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
14009         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
14010         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
14011         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
14012         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
14013         * sysdeps/htl/old_pt-atfork.c: Likewise.
14014         * sysdeps/htl/pt-atfork.c: Likewise.
14015         * sysdeps/htl/pt-attr-destroy.c: Likewise.
14016         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
14017         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
14018         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
14019         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
14020         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
14021         * sysdeps/htl/pt-attr-getscope.c: Likewise.
14022         * sysdeps/htl/pt-attr-getstack.c: Likewise.
14023         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
14024         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
14025         * sysdeps/htl/pt-attr-init.c: Likewise.
14026         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
14027         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
14028         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
14029         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
14030         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
14031         * sysdeps/htl/pt-attr-setscope.c: Likewise.
14032         * sysdeps/htl/pt-attr-setstack.c: Likewise.
14033         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
14034         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
14035         * sysdeps/htl/pt-attr.c: Likewise.
14036         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
14037         * sysdeps/htl/pt-barrier-init.c: Likewise.
14038         * sysdeps/htl/pt-barrier-wait.c: Likewise.
14039         * sysdeps/htl/pt-barrier.c: Likewise.
14040         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
14041         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
14042         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
14043         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
14044         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
14045         * sysdeps/htl/pt-cond-destroy.c: Likewise.
14046         * sysdeps/htl/pt-cond-init.c: Likewise.
14047         * sysdeps/htl/pt-cond-signal.c: Likewise.
14048         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
14049         * sysdeps/htl/pt-cond-wait.c: Likewise.
14050         * sysdeps/htl/pt-cond.c: Likewise.
14051         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
14052         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
14053         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
14054         * sysdeps/htl/pt-condattr-init.c: Likewise.
14055         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
14056         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
14057         * sysdeps/htl/pt-destroy-specific.c: Likewise.
14058         * sysdeps/htl/pt-equal.c: Likewise.
14059         * sysdeps/htl/pt-getconcurrency.c: Likewise.
14060         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
14061         * sysdeps/htl/pt-getschedparam.c: Likewise.
14062         * sysdeps/htl/pt-getspecific.c: Likewise.
14063         * sysdeps/htl/pt-init-specific.c: Likewise.
14064         * sysdeps/htl/pt-key-create.c: Likewise.
14065         * sysdeps/htl/pt-key-delete.c: Likewise.
14066         * sysdeps/htl/pt-key.h: Likewise.
14067         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
14068         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
14069         * sysdeps/htl/pt-mutex-init.c: Likewise.
14070         * sysdeps/htl/pt-mutex-lock.c: Likewise.
14071         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
14072         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
14073         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
14074         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
14075         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
14076         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
14077         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
14078         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
14079         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
14080         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
14081         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
14082         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
14083         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
14084         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
14085         * sysdeps/htl/pt-mutexattr.c: Likewise.
14086         * sysdeps/htl/pt-once.c: Likewise.
14087         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
14088         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
14089         * sysdeps/htl/pt-rwlock-init.c: Likewise.
14090         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
14091         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
14092         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
14093         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
14094         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
14095         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
14096         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
14097         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
14098         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
14099         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
14100         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
14101         * sysdeps/htl/pt-setconcurrency.c: Likewise.
14102         * sysdeps/htl/pt-setschedparam.c: Likewise.
14103         * sysdeps/htl/pt-setschedprio.c: Likewise.
14104         * sysdeps/htl/pt-setspecific.c: Likewise.
14105         * sysdeps/htl/pt-spin.c: Likewise.
14106         * sysdeps/htl/pt-startup.c: Likewise.
14107         * sysdeps/htl/pthread.h: Likewise.
14108         * sysdeps/htl/sem-close.c: Likewise.
14109         * sysdeps/htl/sem-destroy.c: Likewise.
14110         * sysdeps/htl/sem-getvalue.c: Likewise.
14111         * sysdeps/htl/sem-init.c: Likewise.
14112         * sysdeps/htl/sem-open.c: Likewise.
14113         * sysdeps/htl/sem-post.c: Likewise.
14114         * sysdeps/htl/sem-timedwait.c: Likewise.
14115         * sysdeps/htl/sem-trywait.c: Likewise.
14116         * sysdeps/htl/sem-unlink.c: Likewise.
14117         * sysdeps/htl/sem-wait.c: Likewise.
14118         * sysdeps/hurd/htl/pt-kill.c: Likewise.
14119         * sysdeps/i386/htl/pt-machdep.h: Likewise.
14120         * sysdeps/mach/htl/pt-block.c: Likewise.
14121         * sysdeps/mach/htl/pt-spin.c: Likewise.
14122         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
14123         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
14124         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
14125         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
14126         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
14127         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
14128         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
14129         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
14130         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
14131         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
14132         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
14133         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
14134         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
14135         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
14136         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
14137         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
14138         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
14139         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
14140         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
14141         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
14142         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
14143         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
14144         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
14145         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
14146         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
14147         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
14148         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
14149         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
14150         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
14151         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
14152         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
14153         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
14154         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
14155         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
14156         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
14157         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
14158         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
14159         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
14160         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
14161         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
14162         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
14163         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
14164         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
14165
14166         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
14167         * README: Remove the mention of out-of-tree patches needed for
14168         GNU/Hurd.
14169
14170         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
14171         (UTIME_NOW, UTIME_OMIT): Define macros.
14172
14173         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
14174         instead of pthread_detach.
14175         (__cthread_fork): Call __pthread_create instead of pthread_create.
14176         (__cthread_keycreate): Call __pthread_key_create instead of
14177         pthread_key_create.
14178         (__cthread_getspecific): Call __pthread_getspecific instead of
14179         pthread_getspecific.
14180         (__cthread_setspecific): Call __pthread_setspecific instead of
14181         pthread_setspecific.
14182         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
14183         __pthread_mutex_unlock instead of pthread_mutex_lock and
14184         pthread_mutex_unlock.
14185         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
14186         ___pthread_get_cleanup_stack.
14187         (__pthread_get_cleanup_stack): New strong alias.
14188         * htl/pt-create.c: Include <pthreadP.h>.
14189         (entry_point): Call __pthread_exit instead of pthread_exit.
14190         (pthread_create): Rename to __pthread_create.
14191         (pthread_create): New strong alias.
14192         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
14193         (pthread_detach): New strong alias.
14194         (__pthread_detach): Call __pthread_cond_broadcast instead of
14195         pthread_cond_broadcast.
14196         * htl/pt-exit.c: Include <pthreadP.h>.
14197         (__pthread_exit): Call __pthread_setcancelstate and
14198         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
14199         __pthread_get_cleanup_stack.
14200         * htl/pt-testcancel.c: Include <pthreadP.h>.
14201         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
14202         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
14203         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
14204         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
14205         pthread_attr_getstacksize.
14206         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
14207         Rename to __pthread_attr_getstackaddr.
14208         (pthread_attr_getstackaddr): New strong alias.
14209         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
14210         Rename to __pthread_attr_getstacksize.
14211         (pthread_attr_getstacksize): New strong alias.
14212         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
14213         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
14214         (pthread_attr_setstack): New strong alias.
14215         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
14216         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
14217         pthread_attr_getstacksize, pthread_attr_setstacksize and
14218         pthread_attr_setstackaddr.
14219         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
14220         Rename to __pthread_attr_setstackaddr.
14221         (pthread_attr_setstackaddr): New strong alias.
14222         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
14223         Rename to __pthread_attr_setstacksize.
14224         (pthread_attr_setstacksize): New strong alias.
14225         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
14226         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
14227         pthread_exit.
14228         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
14229         (__pthread_key_create): New hidden def.
14230         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
14231         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
14232         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
14233         __pthread_exit, __pthread_key_create, __pthread_getspecific,
14234         __pthread_setspecific, __pthread_setcancelstate,
14235         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
14236         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
14237         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
14238         declarations.
14239         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
14240         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
14241         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
14242         (pthread_attr_setstackaddr): New strong alias.
14243         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
14244         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
14245         (pthread_attr_setstacksize): New strong alias.
14246         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
14247         (call_exit): Call __pthread_exit instead of pthread_exit.
14248         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
14249         (_pthread_mutex_init): New hidden definition.
14250         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
14251         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
14252         instead of pthread_attr_init and pthread_attr_setstack.
14253
14254         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
14255         __vm_deallocate instead of vm_allocate and vm_deallocate.
14256         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
14257         setenv.
14258         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
14259         of geteuid.
14260         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
14261         strdup.
14262         * hurd/siginfo.c: Include <libioP.h>.
14263         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
14264         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
14265         munmap.
14266         * mach/devstream.c: Include <libioP.h>.
14267         (dealloc_ref): Call __mach_port_deallocate instead of
14268         mach_port_deallocate.
14269         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
14270         Call __mach_port_deallocate instead of mach_port_deallocate.
14271         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
14272         pathconf.
14273         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
14274         munmap.
14275         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
14276         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
14277         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
14278         of munmap.
14279         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
14280         of close.
14281         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
14282         instead of sysconf.
14283         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
14284         __clock_gettime instead of clock_gettime.
14285         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
14286         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
14287         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
14288         * sysdeps/unix/bsd/stty.c (stty): Likewise.
14289         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
14290         tcgetattr.
14291         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
14292         __clock_gettime and __nanosleep instead of clock_gettime and
14293         nanosleep.
14294         * hurd/catch-signal.c (hurd_catch_signal): Rename to
14295         __hurd_catch_signal.
14296         (hurd_catch_signal): New strong alias.
14297         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
14298         __hurd_catch_signal instead of hurd_catch_signal.
14299         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
14300         * hurd/hurdexec.c (_hurd_init): Add hidden def.
14301         * hurd/hurdinit.c (_hurd_init): Add hidden def.
14302         * hurd/hurdsig.c: Include <mach/mig_support.h>.
14303         (_hurd_thread_sigstate): Add hidden def.
14304         (_hurd_internal_post_signal): Use __mutex_unlock instead of
14305         mutex_unlock.
14306         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14307         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14308         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14309         __hurd_file_name_path_lookup.
14310         (hurd_file_name_path_lookup): New strong alias.
14311         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14312         hurd_file_name_path_lookup.
14313         * mach/errstring.c (mach_error_type): Add hidden def.
14314         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14315         * mach/mutex-init.c (__mutex_init): Add hidden def.
14316         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14317         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14318         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14319         * sysdeps/mach/hurd/getcwd.c
14320         (_hurd_canonicalize_directory_name_internal): Rename to
14321         __hurd_canonicalize_directory_name_internal.
14322         (_hurd_canonicalize_directory_name_internal): New strong alias.
14323         (__canonicalize_directory_name_internal, __getcwd): Call
14324         __hurd_canonicalize_directory_name_internal instead of
14325         _hurd_canonicalize_directory_name_internal.
14326         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14327         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14328         hidden defs.
14329         * sysdeps/hurd/include/hurd.h: New file.
14330         * sysdeps/hurd/include/hurd/fd.h: New file.
14331         * sysdeps/hurd/include/hurd/signal.h: New file.
14332         * sysdeps/mach/include/lock-intern.h: New file.
14333         * sysdeps/mach/include/mach.h: New file.
14334         * sysdeps/mach/include/mach/mig_support.h: New file.
14335         * sysdeps/mach/include/mach_error.h: New file.
14336         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14337         prototype.
14338         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14339         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14340         _HEADER_H_HIDDEN_DEF macro.
14341         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14342         _hurd_fd_error_signal): Add hidden prototype.
14343         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14344         hidden def.
14345         * libio/iolibio.h (_IO_puts): New hidden prototype.
14346         * libio/ioputs.c (_IO_puts): New hidden def.
14347         * sysdeps/mach/hurd/localplt.data: New file.
14348
14349 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
14350             Amos Jeffries  <squid3@treenet.co.nz>
14351             David Michael  <fedora.dm0@gmail.com>
14352             Marco Gerards  <marco@gnu.org>
14353             Marcus Brinkmann  <marcus@gnu.org>
14354             Neal H. Walfield  <neal@gnu.org>
14355             Pino Toscano  <toscano.pino@tiscali.it>
14356             Richard Braun  <rbraun@sceen.net>
14357             Roland McGrath  <roland@gnu.org>
14358             Samuel Thibault  <samuel.thibault@ens-lyon.org>
14359             Thomas DiModica  <ricinwich@yahoo.com>
14360             Thomas Schwinge  <tschwinge@gnu.org>
14361
14362         * htl: New directory.
14363         * sysdeps/htl: New directory.
14364         * sysdeps/hurd/htl: New directory.
14365         * sysdeps/i386/htl: New directory.
14366         * sysdeps/mach/htl: New directory.
14367         * sysdeps/mach/hurd/htl: New directory.
14368         * sysdeps/mach/hurd/i386/htl: New directory.
14369         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14370         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14371         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14372
14373 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14374
14375         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14376         signals in thread created for runing timers.
14377
14378 2018-04-01  Florian Weimer  <fweimer@redhat.com>
14379
14380         * support/support_format_addrinfo.c (support_format_addrinfo):
14381         Include unknown error number in formatted result.
14382
14383 2018-03-29  Florian Weimer  <fweimer@redhat.com>
14384
14385         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14386         capture SIGBUS.
14387
14388 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14389
14390         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14391         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14392         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14393         (__ASSUME_CLONE_BACKWARDS): Define.
14394
14395 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
14396
14397         [BZ #23024]
14398         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14399         early when linux sentinel value is set.
14400
14401 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14402
14403         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14404
14405 2018-03-27  Andreas Schwab  <schwab@suse.de>
14406
14407         [BZ #23005]
14408         * resolv/res_send.c (__res_context_send): Return ENOMEM if
14409         allocation of private copy of nsaddr_list fails.
14410
14411 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
14412
14413         [BZ #16552]
14414         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14415         * sysdeps/unix/sysv/linux/umount.c: ... here.
14416         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14417         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14418         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14419         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14421         * sysdeps/unix/sysv/linux/umount.S: Likewise.
14422         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14423
14424 2018-03-26  Andreas Schwab  <schwab@suse.de>
14425
14426         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14427         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14428         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14429         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14430         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14431         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14432         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14433         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14434         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14435         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14436         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14437         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14438         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14439         (R_RISCV_NUM): Define.
14440
14441 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14442
14443         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14444         TLS declaration of errno.
14445         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14446         __libc_setup_tls.
14447         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14448         (ARCH_SETUP_TLS): Likewise.
14449         * sysdeps/mach/hurd/libc-start.h: New file copied from
14450         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14451         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14452         instead of __libc_setup_tls.
14453         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14454         __libc_setup_tls before initializing libpthread and running _hurd_init
14455         which starts the signal thread.
14456         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14457         Declare function.
14458         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14459
14460 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
14461
14462         [BZ #22998]
14463         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14464         after it is defined.
14465
14466 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
14467             Max Horn  <max@quendi.de>
14468
14469         [BZ #22644]
14470         CVE-2017-18269
14471         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14472         branch conditions.
14473         * string/test-memmove.c (do_test2): New testcase.
14474
14475 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
14476
14477         * sysdeps/generic/frame.h: Remove file.
14478         * sysdeps/arm/frame.h: Likewise.
14479         * sysdeps/hppa/frame.h: Likewise.
14480         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14481         macro.
14482         (GET_FRAME): Likewise.
14483         (GET_STACK): Likewise.
14484         (CALL_SIGHANDLER): Likewise.
14485         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14486         Likewise.
14487         (GET_FRAME): Likewise.
14488         (GET_STACK): Likewise.
14489         (CALL_SIGHANDLER): Likewise.
14490         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14491         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14492         (GET_FRAME): Likewise.
14493         (GET_STACK): Likewise.
14494         (CALL_SIGHANDLER): Likewise.
14495         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14496         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14497         (GET_FRAME): Likewise.
14498         (GET_STACK): Likewise.
14499         (ADVANCE_STACK_FRAME): Likewise.
14500         (CALL_SIGHANDLER): Likewise.
14501         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14502         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14503         (GET_FRAME): Likewise.
14504         (GET_STACK): Likewise.
14505         (CALL_SIGHANDLER): Likewise.
14506         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14507         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14508         (GET_FRAME): Likewise.
14509         (GET_STACK): Likewise.
14510         (CALL_SIGHANDLER): Likewise.
14511         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14512         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14513         (GET_FRAME): Likewise.
14514         (GET_STACK): Likewise.
14515         (CALL_SIGHANDLER): Likewise.
14516         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14517         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14518         (GET_FRAME): Likewise.
14519         (GET_STACK): Likewise.
14520         (CALL_SIGHANDLER): Likewise.
14521         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14522         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14523         (GET_FRAME): Likewise.
14524         (GET_STACK): Likewise.
14525         (CALL_SIGHANDLER): Likewise.
14526         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14527         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14528         (GET_FRAME): Likewise.
14529         (GET_STACK): Likewise.
14530         (CALL_SIGHANDLER): Likewise.
14531         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14532         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14533         (GET_FRAME): Likewise.
14534         (GET_STACK): Likewise.
14535         (CALL_SIGHANDLER): Likewise.
14536         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14537         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14538         (GET_FRAME): Likewise.
14539         (GET_STACK): Likewise.
14540         (CALL_SIGHANDLER): Likewise.
14541         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14542         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14543         (GET_FRAME): Likewise.
14544         (GET_STACK): Likewise.
14545         (CALL_SIGHANDLER): Likewise.
14546         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14547         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14548         (FIRST_FRAME_POINTER): Likewise.
14549         (ADVANCE_STACK_FRAME): Likewise.
14550         (GET_STACK): Likewise.
14551         (GET_FRAME): Likewise.
14552         (CALL_SIGHANDLER): Likewise.
14553         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14554         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14555         (ADVANCE_STACK_FRAME): Likewise.
14556         (GET_STACK): Likewise.
14557         (GET_FRAME): Likewise.
14558         (CALL_SIGHANDLER): Likewise.
14559         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14560         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14561         (GET_FRAME): Likewise.
14562         (GET_STACK): Likewise.
14563         (CALL_SIGHANDLER): Likewise.
14564         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14565         (SIGCONTEXT_EXTRA_ARGS): Likewise.
14566         (GET_FRAME): Likewise.
14567         (GET_STACK): Likewise.
14568         (CALL_SIGHANDLER): Likewise.
14569
14570 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
14571
14572         * sysdeps/x86_64/backtrace.c: Move to ....
14573         * debug/backtrace.c: ... here.
14574         * sysdeps/aarch64/backtrace.c: Remove file.
14575         * sysdeps/alpha/backtrace.c: Likewise.
14576         * sysdeps/hppa/backtrace.c: Likewise.
14577         * sysdeps/ia64/backtrace.c: Likewise.
14578         * sysdeps/mips/backtrace.c: Likewise.
14579         * sysdeps/nios2/backtrace.c: Likewise.
14580         * sysdeps/riscv/backtrace.c: Likewise.
14581         * sysdeps/sh/backtrace.c: Likewise.
14582         * sysdeps/tile/backtrace.c: Likewise.
14583
14584 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
14585
14586         [BZ #22987]
14587         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14588         function.
14589         (fdimf): Likewise.
14590         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14591
14592         [BZ #17343]
14593         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14594         possibly overflowing computations.
14595
14596 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14597
14598         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14599         values from Linux-specific section now that it is in the GNU section.
14600         * sysdeps/gnu/errlist.c: Regenerate.
14601
14602 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
14603
14604         * math/Makefile (libm-narrow-fns): Add sub.
14605         (libm-test-funcs-narrow): Likewise.
14606         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14607         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14608         * math/gen-auto-libm-tests.c (test_functions): Add sub.
14609         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14610         (NARROW_SUB_ROUND_TO_ODD): Likewise.
14611         (NARROW_SUB_TRIVIAL): Likewise.
14612         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14613         macro.
14614         (__dsubl): Likewise.
14615         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14616         dsub.
14617         (CFLAGS-nldbl-dsub.c): New variable.
14618         (CFLAGS-nldbl-fsub.c): Likewise.
14619         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14620         __nldbl_dsubl.
14621         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14622         prototype.
14623         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14624         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14625         * math/auto-libm-test-in: Add tests of sub.
14626         * math/auto-libm-test-out-narrow-sub: New generated file.
14627         * math/libm-test-narrow-sub.inc: New file.
14628         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14629         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14631         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14632         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14633         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14634         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14635         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14636         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14637         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14638         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14639         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14640         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14641         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14642         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14643         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14644         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14645         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14647         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14648         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14649         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14650         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14651         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14652         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14653         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14654         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14655         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14656         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14657         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14658         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14659         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14664         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14665         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14666         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14667         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14668         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14669         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14670         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14671         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14672         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14673         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14674
14675 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
14676
14677         [BZ #20079]
14678         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14679
14680 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
14681
14682         * benchtests/bench-timing.h (attribute_hidden): Undefine.
14683
14684 2018-03-18  Richard Braun  <rbraun@sceen.net>
14685
14686         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14687         thread reference.
14688
14689 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
14690
14691         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14692         (__libc_cleanup_fct): Define function.
14693         (__libc_cleanup_region_start, __libc_cleanup_region_end,
14694         __libc_cleanup_end): Rewrite implementation using
14695         __attribute__ ((__cleanup__)).
14696         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14697         * hurd/Makefile (routines): Add hurdlock.
14698         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14699         interface.
14700         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14701         * hurd/hurdpid.c: Include <lowlevellock.h>
14702         (_S_msg_proc_newids): Use lll_wait to synchronize.
14703         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14704         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14705         * mach/Makefile (lock-headers): Remove machine-lock.h.
14706         * mach/lock-intern.h: Include <lowlevellock.h> instead of
14707         <machine-lock.h>.
14708         (__spin_lock_t): New type.
14709         (__SPIN_LOCK_INITIALIZER): New macro.
14710         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14711         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14712         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14713         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14714         (__mutex_init): Initialize with lll.
14715         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14716         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14717         needing lll.
14718         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14719         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14720         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14721         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14722         (__setpgid): Use lll for synchronization.
14723         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14724         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14725         instead of <cthreads.h>.
14726         (_IO_lock_inexpensive): New macro
14727         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14728         (__libc_lock_self0): New declaration.
14729         (__libc_lock_owner_self): New macro.
14730         (__libc_key_t): Remove type.
14731         (_LIBC_LOCK_INITIALIZER): New macro.
14732         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14733         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14734         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14735         __libc_lock_define_initialized_recursive,
14736         __rtld_lock_define_initialized_recursive,
14737         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14738         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14739         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14740         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14741         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14742         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14743         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14744         New macros.
14745         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14746         * hurd/hurdlock.c: New file.
14747         * hurd/hurdlock.h: New file.
14748         * mach/lowlevellock.h: New file
14749
14750 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14751
14752         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14753         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14754         when opening a symlink with O_NOFOLLOW.
14755         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14756         path when flags contains O_NOFOLLOW.
14757         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14758         if flags contains O_DIRECTORY and the result is a directory.
14759         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14760         oneself when the pointer given in D is nul (as set by ext2fs).
14761         * sysdeps/mach/hurd/mlockall.c: New file.
14762         * sysdeps/mach/hurd/munlockall.c: New file.
14763
14764 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14765
14766         * hurd/hurdsig.c: Include <pthread.h>.
14767         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14768         get the signal thread stack layout.
14769         * hurd/Makefile (headers): Remove threadvar.h.
14770         (inline-headers): Remove threadvar.h.
14771         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14772         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14773         __hurd_threadvar_max, __hurd_errno_location.
14774         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14775         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14776         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14777         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14778         unless TLS is not initialized yet, in which case we do not need a
14779         critical section yet anyway.
14780         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14781         <machine-sp.h>.
14782         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14783         declarations.
14784         (__hurd_threadvar_index): Remove enum.
14785         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14786         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14787         inlines.
14788         (__hurd_reply_port0): New variable declaration.
14789         (__hurd_local_reply_port): New macro.
14790         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14791         (interrupted_reply_port_location): Add thread_t parameter.  Use it
14792         with THREAD_TCB to access thread-local variables.
14793         (_hurdsig_abort_rpcs): Pass ss->thread to
14794         interrupted_reply_port_location.
14795         (_hurd_internal_post_signal): Likewise.
14796         (_hurdsig_init): Use presence of cthread_fork instead of
14797         __hurd_threadvar_stack_mask to start signal thread by hand.
14798         Remove signal thread threadvar initialization.
14799         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14800         * hurd/sigunwind.c: Include <hurd/threadvar.h>
14801         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14802         of threadvar.
14803         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14804         __libc_lock_self0.
14805         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14806         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14807         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14808         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14809         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14810         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14811         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14812         define variables.
14813         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14814         <hurd/threadvar.h>.
14815         [IS_IN(rtld)] (rtld_errno): New variable.
14816         [IS_IN(rtld)] (__errno_location): New weak function.
14817         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14818         * sysdeps/mach/hurd/errno.c: Remove file.
14819         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14820         (__fork): Remove THREADVAR_SPACE macro and its use.
14821         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14822         variable.
14823         (init): Do not initialize threadvar.
14824         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14825         symbol.
14826         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14827         __hurd_local_reply_port instead of threadvar.
14828         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14829         _hurd_sigstate fields.
14830         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14831         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14832         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14833         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14834         instead of threadvar.
14835         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14836         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14837         (use_threadvar, global_reply_port): Remove variables.
14838         (__hurd_reply_port0): New variable.
14839         (__mig_get_reply_port): Use __hurd_local_reply_port and
14840         __hurd_reply_port0 instead of threadvar.
14841         (__mig_dealloc_reply_port): Likewise.
14842         (__mig_init): Do not initialize threadvar.
14843         * sysdeps/mach/hurd/profil.c: Fix comment.
14844         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14845         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14846         cthread_keycreate, cthread_getspecific, cthread_setspecific to
14847         __cthread_fork, __cthread_detach, __pthread_getattr_np,
14848         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14849         __cthread_setspecific.
14850         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14851         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14852         __cthread_t instead of cthread_fork, cthread_detach,
14853         pthread_getattr_np, pthread_attr_getstack.
14854         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14855         __cthread_keycreate.
14856         (cthread_getspecific): Rename to __cthread_getspecific.
14857         (cthread_setspecific): Rename to __cthread_setspecific.
14858         (__libc_getspecific): Use __cthread_getspecific instead of
14859         cthread_getspecific.
14860         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14861         __cthread_keycreate instead of cthread_keycreate.
14862         (__libc_setspecific): Use __cthread_setspecific instead of
14863         cthread_setspecific.
14864         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14865         Likewise.
14866         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14867         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
14868         testing whether it is defined.
14869
14870 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14871
14872         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14873         Define macro.
14874         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14875         * sysdeps/mach/i386/thread_state.h
14876         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14877         i386_THREAD_STATE.
14878         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14879         i386_THREAD_STATE.
14880         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14881
14882         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14883         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14884
14885         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14886         macros.
14887         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14888         descriptor instead of creating a new one.
14889         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14890
14891         * mach/setup-thread.c: Include <ldsodefs.h>.
14892         (__mach_setup_thread): Call _dl_allocate_tls, pass
14893         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14894         MACHINE_THREAD_STATE_FLAVOR, before getting
14895         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14896         MACHINE_THREAD_STATE_FLAVOR with the result.
14897         * hurd/hurdfault.c (_hurdsig_fault_init): Call
14898         MACHINE_THREAD_STATE_FIX_NEW.
14899         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14900         too.  Add original thread parameter.
14901
14902 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
14903
14904         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14905         Remove inline function.
14906
14907         * sysdeps/i386/fpu/libm-test-ulps: Update.
14908         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14909
14910 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
14911
14912         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14913         commit.
14914
14915 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
14916
14917         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14918         (__sincos_code): Remove define and undefine.
14919         [__FAST_MATH__] (__sincos): Remove inline function.
14920         [__FAST_MATH__] (__sincosf): Remove inline function.
14921         [__FAST_MATH__] (__sincosl): Remove inline function.
14922         (__atan2l): Remove inline functions.
14923         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14924         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14925         function.
14926         (floor): Remove inline function.
14927         (ceil): Likewise.
14928         [__FAST_MATH__] (__ldexp_code): Remove macro.
14929         [__FAST_MATH__] (ldexp): Remove inline function.
14930         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14931         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14932         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14933         [__USE_ISOC99] (__lrint_code): Remove macro.
14934         [__USE_ISOC99] (__llrint_code): Likewise.
14935         [__USE_ISOC99] (lrintf): Remove inline function.
14936         [__USE_ISOC99] (lrint): Likewise.
14937         [__USE_ISOC99] (lrintl): Likewise.
14938         [__USE_ISOC99] (llrint): Likewise.
14939         [__USE_ISOC99] (llrintf): Likewise.
14940         [__USE_ISOC99] (llrintl): Likewise.
14941
14942 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14943
14944         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14945         (__ieee754_sqrtf): Remove.
14946         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14947         (__ieee754_sqrtf): Remove.
14948         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14949         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14950         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14951         (__ieee754_sqrtf): Remove.
14952         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14953         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14954         (sqrtf): Remove.
14955         (sqrtl): Remove.
14956         (__ieee754_sqrt): Remove.
14957         (__ieee754_sqrtf): Remove.
14958         (__ieee754_sqrtl): Remove.
14959         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14960         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14961         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14962         (__ieee754_sqrtf): Remove.
14963         (__ieee754_sqrtl): Remove.
14964
14965 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
14966
14967         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14968         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14969         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14970         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14971         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14972         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14973         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14974         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14975         Likewise.
14976         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14977         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14978         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14979         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14980         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14981         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14982         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14983         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14984         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14985         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14986         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14987         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14988         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14989         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14990         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14991         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14992         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14993         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14994         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14995         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14996         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14997         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14998         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14999         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
15000         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
15001         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
15002         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15003         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15004         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
15005         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
15006         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
15007         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
15008         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
15009         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
15010         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
15011         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15012         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
15013         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
15014         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
15015         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
15016
15017 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
15018
15019         * include/math.h (sqrt): Declare with asm redirect.
15020         (sqrtf): Likewise.
15021         (sqrtl): Likewise.
15022         (sqrtf128): Likewise.
15023         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
15024         nonlib and libnldbl with -fmath-errno.
15025         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
15026         * math/w_sqrt_template.c: Likewise.
15027         * math/w_sqrtf_compat.c: Likewise.
15028         * math/w_sqrtl_compat.c: Likewise.
15029         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
15030         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
15031         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
15032         complex.h.
15033
15034 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
15035
15036         * benchtests/Makefile: Define _ISOMAC.
15037         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
15038         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
15039         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
15040         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
15041         * benchtests/bench-timing.h: Define attribute_hidden.
15042
15043 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15044
15045         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
15046         mov + lsr.
15047
15048 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
15049
15050         [BZ #22963]
15051         * localedata/locales/cs_CZ (mon): Rename to...
15052         (alt_mon): This.
15053         (mon): Import from CLDR (genitive case).
15054
15055 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
15056
15057         [BZ #22937]
15058         * localedata/locales/el_CY (abmon): Rename to...
15059         (ab_alt_mon): This.
15060         (abmon): Import from CLDR (abbreviated genitive case).
15061         * localedata/locales/el_GR (abmon): Rename to...
15062         (ab_alt_mon): This.
15063         (abmon): Import from CLDR (abbreviated genitive case).
15064
15065 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
15066
15067         [BZ #22932]
15068         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
15069
15070 2018-03-15  Robert Buj  <robert.buj@gmail.com>
15071
15072         [BZ #22848]
15073         * localedata/locales/ca_ES (abmon): Rename to...
15074         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
15075         (mon): Rename to...
15076         (alt_mon): This.
15077         (abmon): Import from CLDR (genitive case, month names preceded by
15078         "de" or "d’").
15079         (mon): Likewise.
15080         (abday): Synchronize with CLDR.
15081         (d_t_fmt): Likewise.
15082         (d_fmt): Likewise.
15083         (am_pm): Likewise.
15084
15085         (LC_TIME): Improve indentation.
15086         (LC_TELEPHONE): Likewise.
15087         (LC_NAME): Likewise.
15088         (LC_ADDRESS): Likewise.
15089
15090 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
15091
15092         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
15093         (lrintf): Remove definitions used only with old GCC.
15094         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
15095         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
15096         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
15097         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
15098         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
15099         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
15100         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
15101         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
15102         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
15103         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
15104         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
15105         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
15106         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
15107         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
15108         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
15109         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
15110         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
15111         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
15112         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
15113         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
15114         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
15115         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
15116         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
15117         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
15118         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
15119         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
15120         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
15121         [__FAST_MATH__] (__M_SQRT2): Remove macro.
15122
15123 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15124
15125         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
15126         instruction to unbreak builds with binutils 2.26 and older.
15127
15128 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15129
15130         * sysdeps/aarch64/strncmp.S (count): New macro.
15131         (strncmp): Store misaligned length in SRC1 in COUNT.
15132         (mutual_align): Adjust.
15133         (misaligned8): Load dword at a time when it is safe.
15134
15135 2018-03-12  Zack Weinberg  <zackw@panix.com>
15136
15137         [BZ #1190]
15138         [BZ #19476]
15139         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
15140         if the _IO_EOF_SEEN bit is already set; update commentary.
15141         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
15142         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
15143
15144         * support/support_openpty.c, support/tty.h: New files.
15145         * support/Makefile (libsupport-routines): Add support_openpty.
15146
15147         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
15148         New test cases.
15149         * libio/Makefile (tests): Add tst-fgetc-after-eof.
15150         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
15151
15152 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
15153
15154         * po/pt_BR.po: Update translations.
15155
15156 2018-03-12  David Michael <fedora.dm0@gmail.com>
15157
15158         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
15159         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
15160         get a port to the startup server.
15161
15162 2018-03-11  Zack Weinberg  <zackw@panix.com>
15163
15164         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
15165         before nldbl-compat.h.
15166
15167 2018-03-10  Zack Weinberg  <zackw@panix.com>
15168
15169         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
15170         math.h or math_private.h.
15171
15172         * sysdeps/alpha/fpu/s_isnan.c
15173         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
15174         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
15175         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
15176         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
15177         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
15178         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
15179         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
15180         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
15181         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
15182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
15183         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
15184         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
15185         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
15186         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
15187         Include math_private.h.
15188
15189         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
15190         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
15191         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
15192         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
15193         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
15194         * sysdeps/powerpc/power7/fpu/s_logb.c:
15195         Include math.h and math_private.h.
15196
15197         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
15198         uses of $at in .set noat / .set at.
15199
15200 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
15201
15202         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
15203         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
15204         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
15205         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
15206         Likewise.
15207
15208 2018-03-09  Florian Weimer  <fweimer@redhat.com>
15209
15210         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
15211         in comment.
15212
15213 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
15214
15215         [BZ #22919]
15216         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
15217         Add nop before __startcontext, add explaining comments.
15218
15219 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15220
15221         [BZ #22926]
15222         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
15223         empty for __SPE__.
15224         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
15225         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
15226         Do not build hardware transactional code for __SPE__.
15227         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
15228         (__lll_trylock_elision): Likewise.
15229         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
15230         (__lll_unlock_elision): Likewise.
15231
15232         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
15233         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
15234         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
15235         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
15236         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
15237         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
15238         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
15239         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
15240         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
15241         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
15242         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
15243         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
15244         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
15245         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
15246         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
15247         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
15248         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
15249         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
15250         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
15251         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
15252         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
15253         * sysdeps/unix/sysv/linux/arm/kernel-features.h
15254         (__ASSUME_CLONE_BACKWARDS): Define.
15255         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
15256         __clone2 if __NR_clone2 is defined.
15257         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
15258         (__ASSUME_CLONE_BACKWARDS): Likewise.
15259         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15260         (__ASSUME_CLONE_BACKWARDS): Likewise.
15261         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
15262         (__ASSUME_CLONE2): Likewise.
15263         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15264         (__ASSUME_CLONE_BACKWARDS3): Likewise.
15265         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
15266         variants and the define architecture can use.
15267         (__ASSUME_CLONE_DEFAULT): Define as default.
15268         * sysdeps/unix/sysv/linux/mips/kernel-features.h
15269         (__ASSUME_CLONE_BACKWARDS): Likewise.
15270         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15271         (__ASSUME_CLONE_BACKWARDS): Likewise.
15272         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15273         (__ASSUME_CLONE_BACKWARDS2): Likewise.
15274
15275 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15276
15277         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
15278
15279         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
15280         time.
15281
15282         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
15283         (do_test_limit): Likewise.
15284
15285         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
15286         for every implementation.
15287         (do_test): Likewise.
15288
15289         * benchtests/bench-strncmp.c: Convert output to json.
15290
15291 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15292
15293         * io/futimens.c: Add missing start-of-file descriptive comment.
15294         * io/utime.c: Likewise.
15295         * misc/futimesat.c: Likewise.
15296         * misc/utimes.c: Likewise.
15297         * sysdeps/mach/hurd/futimesat.c: Likewise.
15298         * sysdeps/mach/hurd/utimes.c: Likewise.
15299         * sysdeps/posix/utime.c: Likewise.
15300         * sysdeps/posix/utimes.c: Likewise.
15301         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15302         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15303         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15304         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15305
15306 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15307
15308         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15309         hurd_futimes.
15310         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15311         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15312         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15313         (__futimens): Move implementation to...
15314         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15315         utime_tvalue_from_tspec): ... new helper functions.
15316         (hurd_futimens): New function.
15317         * sysdeps/mach/hurd/futimesat.c: New file.
15318         * sysdeps/mach/hurd/utimensat.c: New file.
15319
15320 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
15321
15322         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15323         UTIME_OMIT): New macros.
15324         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15325         before reverting to converting time spec to time value and calling
15326         __file_utimes.
15327         * sysdeps/mach/hurd/utime-helper.c: New file.
15328         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15329         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15330         reverting to utime_tvalue_from_tval and __file_utimes.
15331         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15332         (__lutimes): Just call hurd_futimens after lookup.
15333         * sysdeps/mach/hurd/utimes.c: Likewise.
15334
15335 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15336
15337         * bits/sigaction.h: Add include guard.
15338         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15339         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15340         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15341         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15342         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15343         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15344         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15345         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15346         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15347
15348 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
15349
15350         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15351         -Wmaybe-uninitialized for -Os.
15352         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15353         this disabling.
15354
15355 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15356
15357         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15358         __INO_T_MATCHES_INO64_T is defined.
15359         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15360         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15361         of definition.
15362         * dirent/alphasort64.c: Likewise.
15363         * dirent/scandir.c: Likewise.
15364         * dirent/scandir64-tail.c: Likewise.
15365         * dirent/scandir64.c: Likewise.
15366         * dirent/scandirat.c: Likewise.
15367         * dirent/scandirat64.c: Likewise.
15368         * dirent/versionsort.c: Likewise.
15369         * dirent/versionsort64.c: Likewise.
15370         * include/dirent.h: Likewise.
15371
15372         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15373         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15374         for socketpair endpoint.
15375         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15376         WRITE_BUFFER_SIZE as buffer size for sending socket.
15377         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15378         issue on system where send is implemented with sendto syscall.
15379         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15380         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15381         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15382         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15383
15384         [BZ #21269]
15385         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15386         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15387         sa_restorer for vDSO case.
15388         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15389
15390 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15391
15392         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15393         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15394         * hurd/hurd/ioctl.h: Include <mach/port.h>
15395         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15396         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15397         <mach/mach_types.h> and <mach/message.h>.
15398         (headers): Move mach/param.h to bits/mach/param.h.
15399         * sysdeps/mach/i386/mach/param.h: Move file to ...
15400         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
15401         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15402         of <mach/param.h>.
15403         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15404         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15405         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15406         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15407         trivial, for C++ conformity.
15408         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15409         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15410         Process mig output through $(migheadersed).
15411         * hurd/Makefile (migheadersed): Define variable.
15412         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15413         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15414         headers.
15415         * hurd/hurd.h: Include <bits/types/sigset_t.h>
15416         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15417         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15418         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15419         <bits/types/sigset_t.h>.
15420         [!defined __USE_GNU]: Do not #error out.
15421         (struct hurd_sigstate): Use _NSIG instead of NSIG.
15422         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15423         Include <stddef.h> and <bits/types/sigset_t.h>
15424         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15425         instead of sighandler_t.
15426         * stdlib/errno.h (error_t): Move definition to...
15427         * bits/types/error_t.h: ... new header.
15428         * stdlib/Makefile (headers): Add bits/types/error_t.h.
15429         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15430         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15431         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15432         * hurd/hurd.h: Include <bits/types/error_t.h>
15433         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15434         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15435         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15436         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15437         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15438         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15439         * sysdeps/mach/hurd/futimens.c: New file.
15440
15441 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
15442
15443         [BZ #22918]
15444         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15445         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15446         * nscd/gai.c (__nss_hosts_database): Readd definition.
15447         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15448         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15449         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15450
15451 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
15452
15453         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15454         (ifunc_one): Likewise.
15455
15456 2018-03-01  DJ Delorie  <dj@delorie.com>
15457
15458         [BZ #22342]
15459         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15460         key value.
15461
15462 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
15463
15464         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15465         `match_pid' parameter.
15466         (td_ta_thr_iter): Update accordingly.
15467
15468 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15469
15470         * nptl/Makefile (install-lib-ldscripts): Remove.
15471         (install): Remove rule.
15472         ($(inst_libdir)/libpthread.so): Likewise.
15473
15474 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
15475
15476         [BZ #22896]
15477         * localedata/locales/an_ES: update month and day names,
15478         improve d_fmt, improve postal_fmt, add country_post,
15479         add country_isbn
15480
15481 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
15482
15483         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15484         Ukrainian instead of Bulgarian.
15485
15486 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15487
15488         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15489         reference.
15490
15491 2018-03-01  Florian Weimer  <fweimer@redhat.com>
15492
15493         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
15494         * nptl/Makefile (routines): Add pthread_atfork.
15495         (static-only-routines): Set to pthread_atfork.
15496         (libpthread-routines): Remove pthread_atfork.
15497         (libpthread-static-only-routines): Remove.
15498         (install): Update comment.
15499         (libpthread.so): Do not install libpthread_nonshared.a.
15500         (tests): Do not link with libpthread_nonshared.a.
15501         (generated): Remove libpthread_nonshared.a.
15502         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15503         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15504         with libpthread_nonshared.a.
15505
15506 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
15507
15508         [BZ #22902]
15509         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15510         (libc_feholdexcept_setroundf128): New macro.
15511         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15512
15513         [BZ #15105]
15514         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15515         libc_hidden_def.
15516         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15517         * include/inttypes.h: New file.
15518
15519 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
15520
15521         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15522         -Os in two more places.
15523
15524 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15525
15526         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15527         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15528         be sorted correctly at the moment because of a bug.
15529
15530 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15531
15532         [BZ #22550] - es_ES locale (and other es_* locales): collation should
15533         treat ñ as a primary different character, sync the collation
15534         for Spanish with CLDR.
15535         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15536         * localedata/Makefile: Add new test files.
15537         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15538         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15539         collation order.
15540         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15541         * localedata/am_ET.UTF-8.in: New test file.
15542         * localedata/az_AZ.UTF-8.in: Likewise.
15543         * localedata/be_BY.UTF-8.in: Likewise.
15544         * localedata/ber_DZ.UTF-8.in: Likewise.
15545         * localedata/ber_MA.UTF-8.in: Likewise.
15546         * localedata/bg_BG.UTF-8.in: Likewise.
15547         * localedata/br_FR.UTF-8.in: Likewise.
15548         * localedata/cmn_TW.UTF-8.in: Likewise.
15549         * localedata/crh_UA.UTF-8.in: Likewise.
15550         * localedata/csb_PL.UTF-8.in: Likewise.
15551         * localedata/cv_RU.UTF-8.in: Likewise.
15552         * localedata/cy_GB.UTF-8.in: Likewise.
15553         * localedata/dz_BT.UTF-8.in: Likewise.
15554         * localedata/eo.UTF-8.in: Likewise.
15555         * localedata/es_ES.UTF-8.in: Likewise.
15556         * localedata/fa_IR.UTF-8.in: Likewise.
15557         * localedata/fi_FI.UTF-8.in: Likewise.
15558         * localedata/fil_PH.UTF-8.in: Likewise.
15559         * localedata/fur_IT.UTF-8.in: Likewise.
15560         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15561         * localedata/ha_NG.UTF-8.in: Likewise.
15562         * localedata/ig_NG.UTF-8.in: Likewise.
15563         * localedata/ik_CA.UTF-8.in: Likewise.
15564         * localedata/kk_KZ.UTF-8.in: Likewise.
15565         * localedata/ku_TR.UTF-8.in: Likewise.
15566         * localedata/ky_KG.UTF-8.in: Likewise.
15567         * localedata/ln_CD.UTF-8.in: Likewise.
15568         * localedata/mi_NZ.UTF-8.in: Likewise.
15569         * localedata/ml_IN.UTF-8.in: Likewise.
15570         * localedata/mn_MN.UTF-8.in: Likewise.
15571         * localedata/mr_IN.UTF-8.in: Likewise.
15572         * localedata/mt_MT.UTF-8.in: Likewise.
15573         * localedata/nb_NO.UTF-8.in: Likewise.
15574         * localedata/om_KE.UTF-8.in: Likewise.
15575         * localedata/os_RU.UTF-8.in: Likewise.
15576         * localedata/ps_AF.UTF-8.in: Likewise.
15577         * localedata/ro_RO.UTF-8.in: Likewise.
15578         * localedata/ru_RU.UTF-8.in: Likewise.
15579         * localedata/sc_IT.UTF-8.in: Likewise.
15580         * localedata/se_NO.UTF-8.in: Likewise.
15581         * localedata/sq_AL.UTF-8.in: Likewise.
15582         * localedata/sv_SE.UTF-8.in: Likewise.
15583         * localedata/szl_PL.UTF-8.in: Likewise.
15584         * localedata/tg_TJ.UTF-8.in: Likewise.
15585         * localedata/tk_TM.UTF-8.in: Likewise.
15586         * localedata/tt_RU.UTF-8.in: Likewise.
15587         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15588         * localedata/ug_CN.UTF-8.in: Likewise.
15589         * localedata/uz_UZ.UTF-8.in: Likewise.
15590         * localedata/vi_VN.UTF-8.in: Likewise.
15591         * localedata/yi_US.UTF-8.in: Likewise.
15592         * localedata/yo_NG.UTF-8.in: Likewise.
15593         * localedata/zh_CN.UTF-8.in: Likewise.
15594         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15595         file and fix bugs in the collation.
15596         * localedata/locales/az_AZ: Likewise.
15597         * localedata/locales/be_BY: Likewise.
15598         * localedata/locales/ber_DZ: Likewise.
15599         * localedata/locales/ber_MA: Likewise.
15600         * localedata/locales/bg_BG: Likewise.
15601         * localedata/locales/br_FR: Likewise.
15602         * localedata/locales/br_FR@euro: Likewise.
15603         * localedata/locales/ca_ES: Likewise.
15604         * localedata/locales/cns11643_stroke: Likewise.
15605         * localedata/locales/crh_UA: Likewise.
15606         * localedata/locales/cs_CZ: Likewise.
15607         * localedata/locales/csb_PL: Likewise.
15608         * localedata/locales/cv_RU: Likewise.
15609         * localedata/locales/cy_GB: Likewise.
15610         * localedata/locales/da_DK: Likewise.
15611         * localedata/locales/dz_BT: Likewise.
15612         * localedata/locales/en_CA: Likewise.
15613         * localedata/locales/eo: Likewise.
15614         * localedata/locales/es_CU: Likewise.
15615         * localedata/locales/es_EC: Likewise.
15616         * localedata/locales/es_ES: Likewise.
15617         * localedata/locales/es_US: Likewise.
15618         * localedata/locales/et_EE: Likewise.
15619         * localedata/locales/fa_IR: Likewise.
15620         * localedata/locales/fi_FI: Likewise.
15621         * localedata/locales/fil_PH: Likewise.
15622         * localedata/locales/fur_IT: Likewise.
15623         * localedata/locales/gez_ER@abegede: Likewise.
15624         * localedata/locales/ha_NG: Likewise.
15625         * localedata/locales/hr_HR: Likewise.
15626         * localedata/locales/hsb_DE: Likewise.
15627         * localedata/locales/hu_HU: Likewise.
15628         * localedata/locales/ig_NG: Likewise.
15629         * localedata/locales/ik_CA: Likewise.
15630         * localedata/locales/is_IS: Likewise.
15631         * localedata/locales/iso14651_t1_pinyin: Likewise.
15632         * localedata/locales/kk_KZ: Likewise.
15633         * localedata/locales/ku_TR: Likewise.
15634         * localedata/locales/ky_KG: Likewise.
15635         * localedata/locales/ln_CD: Likewise.
15636         * localedata/locales/lt_LT: Likewise.
15637         * localedata/locales/lv_LV: Likewise.
15638         * localedata/locales/mi_NZ: Likewise.
15639         * localedata/locales/ml_IN: Likewise.
15640         * localedata/locales/mn_MN: Likewise.
15641         * localedata/locales/mr_IN: Likewise.
15642         * localedata/locales/mt_MT: Likewise.
15643         * localedata/locales/nb_NO: Likewise.
15644         * localedata/locales/om_KE: Likewise.
15645         * localedata/locales/os_RU: Likewise.
15646         * localedata/locales/pl_PL: Likewise.
15647         * localedata/locales/ps_AF: Likewise.
15648         * localedata/locales/ro_RO: Likewise.
15649         * localedata/locales/ru_RU: Likewise.
15650         * localedata/locales/ru_UA: Likewise.
15651         * localedata/locales/sc_IT: Likewise.
15652         * localedata/locales/se_NO: Likewise.
15653         * localedata/locales/si_LK: Likewise.
15654         * localedata/locales/sq_AL: Likewise.
15655         * localedata/locales/sv_FI: Likewise.
15656         * localedata/locales/sv_FI@euro: Likewise.
15657         * localedata/locales/sv_SE: Likewise.
15658         * localedata/locales/szl_PL: Likewise.
15659         * localedata/locales/tg_TJ: Likewise.
15660         * localedata/locales/ti_ER: Likewise.
15661         * localedata/locales/tk_TM: Likewise.
15662         * localedata/locales/tl_PH: Likewise.
15663         * localedata/locales/tr_TR: Likewise.
15664         * localedata/locales/tt_RU: Likewise.
15665         * localedata/locales/tt_RU@iqtelif: Likewise.
15666         * localedata/locales/ug_CN: Likewise.
15667         * localedata/locales/uk_UA: Likewise.
15668         * localedata/locales/uz_UZ: Likewise.
15669         * localedata/locales/uz_UZ@cyrillic: Likewise.
15670         * localedata/locales/vi_VN: Likewise.
15671         * localedata/locales/yi_US: Likewise.
15672         * localedata/locales/yo_NG: Likewise.
15673
15674 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15675
15676         * gen-locales.mk: Make test files which contain @ modifiers in their
15677         name work.
15678         * localedata/gen-locale.sh: Likewise.
15679
15680 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15681
15682         * posix/tst-fnmatch.input: Fix results for range expressions
15683         for non C locales.
15684         * posix/tst-regexloc.c: Do not use a range expression for
15685         de_DE.ISO-8859-1 locale.
15686
15687 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15688
15689         * posix/bug-regex5.c: Fix test case because with the new
15690         iso14651_t1_common file, the da_DK locale now has 6 collating elements
15691         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15692         file.
15693
15694 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15695
15696         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15697         downloaded from ISO, the collation order of @-. and space has changed.
15698         Therefore, this test file needed to be adapted.
15699         * localedata/fr_CA.UTF-8.in: Likewise.
15700         * localedata/fr_FR.UTF-8.in: Likewise.
15701         * localedata/uk_UA.UTF-8.in: Likewise.
15702
15703 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15704
15705         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15706         order of ȥ in the new iso14651_t1_common file.
15707         * localedata/pl_PL.UTF-8.in: Likewise.
15708
15709 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15710
15711         * localedata/locales/iso14651_t1_common: Add sections for various
15712         scripts to the iso14651_t1_common file.
15713
15714 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15715
15716         * localedata/locales/iso14651_t1_common: Use the code point of a
15717         character in the fourth collation level instead of IGNORE for all
15718         entries which have IGNORE on all 4 levels.
15719
15720 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15721
15722         * localedata/locales/iso14651_t1_common: Add some convenient collation
15723         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15724         rules similar to those in CLDR.
15725
15726 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15727
15728         * localedata/locales/iso14651_t1_common: The new version of this
15729         file downloaded from ISO contained several syntax errors which
15730         are fixed by this patch.
15731
15732 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15733
15734         * localedata/locales/iso14651_t1_common: replace all <U.....>
15735         with <U000.....> because glibc understands only 4 digit or 8 digit
15736
15737 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15738
15739         * localedata/locales/iso14651_t1_common: Necessary changes
15740         to make the file downloaded from ISO usable by glibc.
15741
15742 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
15743
15744         [BZ #14095]
15745         * localedata/locales/iso14651_t1_common: Update file to
15746         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15747
15748 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15749
15750         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15751         of <nptl/pthreadP.h>
15752         (thread_attr_compare): Move function to...
15753         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15754         * sysdeps/nptl/timer_routines.h: ... new header.
15755         * sysdeps/mach/hurd/gai_misc.h: New file.
15756
15757 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
15758
15759         * string/strcoll_l.c: Include <libc-diag.h>.
15760         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15761         declarations of seq1 and seq2.
15762
15763         [BZ #15105]
15764         * stdlib/atoi.c (atoi): Use libc_hidden_def.
15765         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15766
15767 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
15768
15769         [BZ #22433]
15770         [BZ #22807]
15771         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15772         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15773         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15774         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15775         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15776         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15777
15778 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15779
15780         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15781         macros used in __ptrace_request.
15782
15783 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
15784
15785         [BZ #22792]
15786         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15787         to $(CC).
15788         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15789         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15790         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15791         <tcb-offsets.h>.
15792
15793 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
15794
15795         [BZ #15105]
15796         * ctype/ctype.c (tolower): Use libc_hidden_def.
15797         (toupper): Likewise.
15798         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15799         [!_ISOMAC] (toupper): Likewise.
15800
15801 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15802
15803         * localedata/Makefile: Remove --quiet argument when
15804         installing locales
15805
15806 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15807
15808         [BZ #17438]
15809         * localedata/locales/pt_BR (LC_TIME): use / instead of -
15810         in d_fmt.
15811         * localedata/locales/pt_PT (LC_TIME): likewise
15812
15813 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
15814
15815         [BZ #22646]
15816         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15817         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15818         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15819
15820 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15821
15822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15823
15824         * nptl/Makefile (routines): Remove unregister-atfork.
15825         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15826         (fork_handler_alloc): Remove function.
15827         (fork_handlers, fork_handler_init): New variables.
15828         (__fork_lock): Rename to atfork_lock.
15829         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15830         to use a dynamic array to add/remove atfork handlers.
15831         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15832         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15833         Remove declaration.
15834         (fork_handler): Remove next, refcntr, and need_signal member.
15835         (__run_fork_handler_type): New enum.
15836         (__run_fork_handlers): New prototype.
15837         * nptl/register-atfork.c: Remove file.
15838         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15839
15840         * sysdeps/nptl/nptl-signals.h: Move to ...
15841         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
15842         comments.
15843         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15844         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15845         unnecessary check for SIGTIMER.
15846         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15847         remove unnecessary removal of SIGTIMER.
15848         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15849         include-signals.h rename.
15850         * nptl/pthreadP.h: Likewise.
15851         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15852         __is_internal_signal instead of __nptl_is_internal_signal.
15853
15854 2018-02-22  Andrew Waterman <andrew@sifive.com>
15855
15856         [BZ # 22884]
15857         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15858         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15859         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15860         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15861
15862 2018-02-22  DJ Delorie  <dj@delorie.com>
15863
15864         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15865
15866 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
15867
15868         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15869         do_misaligned, not misaligned8.
15870
15871 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
15872
15873         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15874         Add memcpy_thunderx2.
15875         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15876         Increment to 4.
15877         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15878         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15879         and IS_THUNDERX2PA checks.
15880         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15881         Use macro to set name appropriately.
15882         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15883         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15884         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15885         New macro.
15886         (IS_THUNDERX2): New macro.
15887
15888 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
15889
15890         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15891
15892 2018-02-21  Zack Weinberg  <zackw@panix.com>
15893
15894         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15895         Define here, unconditionally.
15896         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15897         * libio/libioP.h: Remove #if 0 blocks.
15898         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15899         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15900         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
15901
15902         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15903         Assume weak_alias is always defined.
15904
15905         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15906         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15907         Remove #if 0 and #ifdef TODO blocks.
15908         Assume text_set_element is always defined.
15909
15910         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15911         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15912         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15913
15914         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15915         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15916         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15917         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15918         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15919         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15920         Reformat bit flags for _flags field to make occupancy clearer.
15921         Update commentary.
15922         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15923         Keep definitions consistent with those in libio/libio.h.
15924
15925         * libio/libio.h (_IO_file_flags): Remove macro.
15926         All uses changed to _flags.
15927
15928         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15929         (__HAVE_COLUMN, _IO_BE): Don't define.
15930         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15931         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15932         * libio/libioP.h (EOF): Don't define.
15933         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15934         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15935         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15936         testing _IO_UNIFIED_JUMPTABLES.
15937
15938         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15939         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15940         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15941         (_IO_size_t): Delete; all uses changed to size_t.
15942         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15943         (_IO_off_t): Delete; all uses changed to off_t.
15944         (_IO_off64_t): Delete; all uses changed to off64_t.
15945         (_IO_pid_t): Delete; all uses changed to pid_t.
15946         (_IO_uid_t): Delete; all uses changed to uid_t.
15947         (_IO_wint_t): Delete; all uses changed to wint_t.
15948         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15949         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15950         (_IO_cookie_io_functions_t): Delete; all uses changed to
15951         cookie_io_functions_t.
15952         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15953         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15954         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15955         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15956
15957         * libio/iofopncook.c: Remove unnecessary forward declarations.
15958         * libio/iolibio.h: Correct outdated commentary.
15959         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15960         * stdio-common/fxprintf.c (__fxprintf_nocancel):
15961         Remove unnecessary casts.
15962         * stdio-common/getline.c: Use _IO_getdelim directly.
15963         Don't redefine ssize_t.
15964         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15965         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15966         Remove outdated comments.
15967         * stdio-common/vfscanf.c: Don't redefine va_list.
15968
15969         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15970         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15971         Remove preprocessor conditionals on _LIBC and __USE_GNU,
15972         which are always true, and __cplusplus, which is always false.
15973
15974 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
15975
15976         [BZ #15105]
15977         [BZ #19463]
15978         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15979         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15980         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
15981         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15982         libc_hidden_proto.
15983         [!_ISOMAC] (putc_unlocked): Likewise.
15984         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15985         define inline if [__USE_EXTERN_INLINES].
15986         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15987         putc_unlocked.
15988
15989         [BZ #15105]
15990         [BZ #19463]
15991         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15992         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15993         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15994         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15995         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15996         getc_unlocked.
15997         * time/tzfile.c (__tzfile_read): Likewise.
15998
15999 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
16000
16001         [BZ #22517]
16002         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
16003
16004 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
16005
16006         * io/fcntl.h: Fix a typo in a comment.
16007
16008 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
16009
16010         [BZ #22862]
16011         * include/features.h: Add _ISOC11_SOURCE to test for whether to
16012         define _DEFAULT_SOURCE.
16013         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
16014
16015 2018-02-21  Florian Weimer  <fweimer@redhat.com>
16016
16017         [BZ #20890]
16018         * elf/cache.c (save_cache): Call fsync on temporary file before
16019         renaming it.
16020         (save_aux_cache): Call fdatasync on temporary file before renaming
16021         it.
16022
16023 2018-02-21  Florian Weimer  <fweimer@redhat.com>
16024
16025         [BZ #22787]
16026         * include/caller.h: Remove file.
16027         * elf/dl-caller.c: Likewise.
16028         * elf/Makefile (dl-routines): Remove dl-caller.
16029         (shared-only-routines): Do not add dl-caller.
16030         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
16031         __check_caller.
16032         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
16033         member.
16034         (dl_open_worker): Do not call __check_caller.
16035         (_dl_open): Do not set caller_dl_open member.
16036         * elf/rtld.c (_rtld_global_ro): Do not initialize
16037         _dl_check_caller member.
16038         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
16039         _dl_check_caller member.
16040         (_dl_check_caller): Remove declaration.
16041         * sysdeps/unix/sysv/linux/dl-execstack.c
16042         (_dl_make_stack_executable): Do not call __check_caller.
16043
16044 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16045
16046         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
16047         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
16048
16049 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
16050
16051         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
16052         description.
16053
16054 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
16055
16056         [BZ #16335]
16057         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
16058         of 199606L, 200112L, and 200809L.
16059         (_XOPEN_SOURCE): Document special values of 600 and 700.
16060         (_ISOC11_SOURCE): Document macro.
16061         (_ATFILE_SOURCE): Likewise.
16062         (_FORTIFY_SOURCE): Likewise.
16063
16064 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
16065
16066         [BZ #15105]
16067         [BZ #19463]
16068         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
16069         and define as weak alias of __ferror_unlocked.  Use
16070         libc_hidden_weak.
16071         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
16072         libc_hidden_proto.
16073         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
16074         function if [__USE_EXTERN_INLINES].
16075         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
16076         ferror_unlocked.
16077
16078 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
16079
16080         [BZ #6889]
16081         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
16082
16083 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
16084
16085         [BZ #22818]
16086         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
16087         the GLIBC_2.1 version.
16088
16089 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
16090
16091         [BZ #21508]
16092         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
16093         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
16094         intl/tst-gettext-de.po from po/de.po by removing the
16095         POT-Creation-Date line.
16096         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
16097         ../po/de.po.
16098         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
16099         ../po/de.po.
16100
16101 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16102
16103         * mach/Makefile (headers): Add mach/param.h.
16104         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
16105         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
16106         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
16107         (__ptsname_r): Move implementation to...
16108         (__ptsname_internal): ... new function.  Add filling the STP
16109         structure.
16110
16111 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
16112
16113         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
16114         idouble to 1 ULP.
16115
16116 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
16117
16118         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
16119         syntax.
16120
16121 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
16122
16123         * nptl/Makefile (tst-mutex8-ENV): Delete.
16124         * nptl/tst-mutex8.c (check_type):
16125         Add runtime check if mutex will be elided.
16126
16127 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
16128
16129         [BZ #20980]
16130         [BZ #21234]
16131         * manual/install.texi (Configuring and compiling): Describe
16132         passing CC and CFLAGS on configure command line, not as
16133         environment variables.  Use @code markup on those variables.
16134         Specify what options go in CC and what go in CFLAGS.  Note the
16135         requirement to compile with optimization.
16136         * INSTALL: Regenerated.
16137
16138         [BZ #18124]
16139         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
16140         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
16141         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
16142         __sigprocmask instead of sigprocmask.
16143         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
16144         Likewise.
16145         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
16146         __sigsetjmp and sigprocmask.
16147
16148         [BZ #15105]
16149         * include/argz.h (argz_next): Use libc_hidden_proto.
16150         (__argz_next): Likewise.
16151         * string-argz-next.c (__argz_next): Use libc_hidden_def.
16152         (argz_next): Use libc_hidden_weak.
16153
16154         [BZ #15105]
16155         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
16156         libc_hidden_proto.
16157         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
16158         libc_hidden_def.
16159
16160         [BZ #15105]
16161         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
16162         libc_hidden_proto.
16163         * libio/iofputs.c (fputs): Use libc_hidden_weak.
16164
16165         [BZ #15105]
16166         [BZ #19463]
16167         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
16168         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
16169         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
16170         (__feof_unlocked): New declaration, and inline function if
16171         [__USE_EXTERN_INLINES].
16172         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
16173         instead of feof_unlocked.
16174         * intl/localealias.c [_LIBC] (FEOF): Likewise.
16175         * nss/nsswitch.c (nss_parse_file): Likewise.
16176         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
16177         Likewise.
16178         * time/getdate.c (__getdate_r): Likewise.
16179         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
16180         Define as macro to call __feof_unlocked.
16181
16182 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
16183
16184         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
16185
16186 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
16187
16188         * math/Makefile: Remove mpexp.c and mplog.c
16189         * sysdeps/i386/fpu/mpexp.c: Delete file.
16190         * sysdeps/i386/fpu/mplog.c: Likewise.
16191         * sysdeps/ia64/fpu/mpexp.c: Likewise.
16192         * sysdeps/ia64/fpu/mplog.c: Likewise.
16193         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
16194         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
16195         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
16196         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
16197         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
16198         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
16199         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
16200         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
16201         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
16202         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16203         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
16204         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
16205         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16206         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
16207         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
16208         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16209
16210 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
16211
16212         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16213
16214 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16215
16216         * sysdeps/sh/libm-test-ulps: Update.
16217
16218 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16219
16220         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
16221         idouble to 1 ULP.
16222
16223 2018-02-12  Zack Weinberg  <zackw@panix.com>
16224
16225         [BZ #19239]
16226         * posix/sys/types.h: Don't include sys/sysmacros.h.
16227         * misc/sys/sysmacros.h: Remove the conditional deprecation
16228         warnings for the macros defined by this header.
16229
16230 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16231
16232         * manual/probes.texi: Remove slowexp probes.
16233         * math/Makefile: Remove slowexp.
16234         * sysdeps/generic/math_private.h (__slowexp): Remove.
16235         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
16236         document error bounds.
16237         * sysdeps/i386/fpu/slowexp.c: Remove.
16238         * sysdeps/ia64/fpu/slowexp.c: Remove.
16239         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
16240         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
16241         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
16242         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
16243         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
16244         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
16245         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
16246         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
16247         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
16248         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
16249         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
16250
16251 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
16252
16253         [BZ #13932]
16254         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
16255         * benchtests/pow-inputs: Update comment for slow path cases.
16256         * manual/probes.texi (slowpow_p10): Delete removed probe.
16257         (slowpow_p10): Likewise.
16258         * math/Makefile: Remove halfulp.c and slowpow.c.
16259         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
16260         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
16261         (__halfulp): Remove.
16262         (__slowpow): Remove.
16263         * sysdeps/i386/fpu/halfulp.c: Delete file.
16264         * sysdeps/i386/fpu/slowpow.c: Likewise.
16265         * sysdeps/ia64/fpu/halfulp.c: Likewise.
16266         * sysdeps/ia64/fpu/slowpow.c: Likewise.
16267         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
16268         improve comments and add error analysis.
16269         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
16270         (power1): Remove function:
16271         (log1): Remove error argument, add error analysis.
16272         (my_log2): Remove function.
16273         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
16274         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16275         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
16276         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
16277         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
16278         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
16279         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
16280         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
16281         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
16282         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
16283         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
16284         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16285         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
16286         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16287
16288 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16289
16290         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
16291         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
16292
16293 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
16294
16295         [BZ #22433]
16296         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
16297         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
16298         and PTRACE_SETHBPREGS.
16299
16300 2018-02-10  Zack Weinberg  <zackw@panix.com>
16301
16302         [BZ #22830]
16303         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16304         correctly.
16305         * malloc/tst-malloc-stats-cancellation.c: New test case.
16306         * malloc/Makefile: Add new test case.
16307
16308 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
16309
16310         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16311
16312 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
16313
16314         * math/Makefile (libm-narrow-fns): Add add.
16315         (libm-test-funcs-narrow): Likewise.
16316         * math/Versions (GLIBC_2.28): Add narrowing add functions.
16317         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16318         * math/gen-auto-libm-tests.c (test_functions): Add add.
16319         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16320         (NARROW_ADD_ROUND_TO_ODD): Likewise.
16321         (NARROW_ADD_TRIVIAL): Likewise.
16322         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16323         macro.
16324         (__daddl): Likewise.
16325         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16326         dadd.
16327         (CFLAGS-nldbl-dadd.c): New variable.
16328         (CFLAGS-nldbl-fadd.c): Likewise.
16329         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16330         __nldbl_daddl.
16331         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16332         prototype.
16333         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16334         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16335         * math/auto-libm-test-in: Add tests of add.
16336         * math/auto-libm-test-out-narrow-add: New generated file.
16337         * math/libm-test-narrow-add.inc: New file.
16338         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16339         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16340         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16341         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16342         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16343         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16344         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16345         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16346         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16347         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16348         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16349         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16350         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16351         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16352         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16353         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16354         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16355         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16356         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16357         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16358         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16359         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16360         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16361         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16362         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16363         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16364         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16365         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16366         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16367         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16368         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16369         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16374         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16375         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16376         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16377         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16378         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16379         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16380         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16381         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16382         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16383         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16384
16385         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16386         (f128-pairs): New variable.
16387         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16388         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16389         to CFLAGS.
16390         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16391         Also make tests add $(f128-loader-link) to gnulib-tests.
16392
16393 2018-02-09  DJ Delorie  <dj@redhat.com>
16394
16395         [BZ #22827]
16396         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16397         64-bit ELF type for 64-bit ELF objects.
16398
16399 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
16400
16401         * math/libm-test-driver.c (snan_tests_arg): New variable.
16402         * math/libm-test-support.h (snan_tests_arg): New declaration.
16403         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16404
16405         * math/Makefile (test-type-pairs): New variable.
16406         (test-type-pairs-f64xf128-yes): Likewise.
16407         (tests): Add test-narrow-macros.
16408         (libm-test-funcs-narrow): New variable.
16409         (libm-test-c-narrow): Likewise.
16410         (generated): Add $(libm-test-c-narrow).
16411         (libm-tests-base-narrow): New variable.
16412         (libm-tests-narrow): Likewise.
16413         (libm-tests): Add $(libm-tests-narrow).
16414         (libm-tests-for-type): Handle $(libm-tests-narrow).
16415         (libm-test-c-narrow-obj): New variable.
16416         ($(libm-test-c-narrow-obj)): New rule.
16417         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16418         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16419         $(o-iterator) to set dependencies and CFLAGS.
16420         * math/gen-auto-libm-tests.c: Document use for narrowing
16421         functions.
16422         (output_for_one_input_case): Take argument NARROW.
16423         (generate_output): Likewise.  Update call to
16424         output_for_one_input_case.
16425         (main): Take --narrow option.  Update call to generate_output.
16426         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16427         (apply_lit): Update call to _apply_lit.
16428         (apply_arglit): New function.
16429         (parse_args): Handle "a" arguments.
16430         (parse_auto_input): Handle format names using ":".
16431         * math/README.libm-test: Document "a" parameter type.
16432         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16433         (ARG_TYPE_TRUE_MIN): Likewise.
16434         (ARG_TYPE_MAX): Likwise.
16435         (ARG_MIN_EXP): Likewise.
16436         (ARG_MAX_EXP): Likewise.
16437         (ARG_MANT_DIG): Likewise.
16438         (TEST_COND_arg_ibm128): Likewise.
16439         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16440         (TEST_COND_arg_fmt): New macro.
16441         (init_max_error): Update prototype.
16442         * math/libm-test-support.c (test_ibm128): New variable.
16443         (init_max_error): Take argument testing_ibm128 and set test_ibm128
16444         instead of using [TEST_COND_ibm128] conditional.
16445         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16446         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16447         [TEST_NARROW] (TEST_MSG): New definition.
16448         (arg_plus_zero): New macro.
16449         (arg_minus_zero): Likewise.
16450         (arg_plus_infty): Likewise.
16451         (arg_minus_infty): Likewise.
16452         (arg_qnan_value_pl): Likewise.
16453         (arg_qnan_value): Likewise.
16454         (arg_snan_value_pl): Likewise.
16455         (arg_snan_value): Likewise.
16456         (arg_max_value): Likewise.
16457         (arg_min_value): Likewise.
16458         (arg_min_subnorm_value): Likewise.
16459         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16460         (RUN_TEST_LOOP_aa_f): New macro.
16461         (TEST_SUFF): New macro.
16462         (TEST_SUFF_STR): Likewise.
16463         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16464         (TEST_COND_any_ibm128): New macro.
16465         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16466         this_func.  Update call to init_max_error.
16467         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16468         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16469         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16470         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16471         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16472         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16473         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16474         * math/test-math-scalar.h (TEST_NARROW): Likewise.
16475         * math/test-math-vector.h (TEST_NARROW): Likewise.
16476         * math/test-arg-double.h: New file.
16477         * math/test-arg-float128.h: Likewise.
16478         * math/test-arg-float32x.h: Likewise.
16479         * math/test-arg-float64.h: Likewise.
16480         * math/test-arg-float64x.h: Likewise.
16481         * math/test-arg-ldouble.h: Likewise.
16482         * math/test-math-narrow.h: Likewise.
16483         * math/test-narrow-macros.c: Likewise.
16484         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16485         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16486         test-narrow-macros-ldbl-64.
16487         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16488
16489         * math/bits/mathcalls-narrow.h: New file.
16490         * include/bits/mathcalls-narrow.h: Likewise.
16491         * math/math-narrow.h: Likewise.
16492         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16493         (__MATHCALL_NARROW_ARGS_2): Likewise.
16494         (__MATHCALL_NARROW_ARGS_3): Likewise.
16495         (__MATHCALL_NARROW_NORMAL): Likewise.
16496         (__MATHCALL_NARROW_REDIR): Likewise.
16497         (__MATHCALL_NARROW): Likewise.
16498         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16499         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16500         defined.
16501         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16502         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16503         (libm-narrow-fns): New variable.
16504         (libm-narrow-types-basic): Likewise.
16505         (libm-narrow-types-ldouble-yes): Likewise.
16506         (libm-narrow-types-float128-yes): Likewise.
16507         (libm-narrow-types-float128-alias-yes): Likewise.
16508         (libm-narrow-types): Likewise.
16509         (libm-routines): Add narrowing functions.
16510         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16511         (libc_feholdexcept_setroundf128): New macro.
16512         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16513         * sysdeps/ieee754/float128/float128_private.h: Include
16514         <math/math-narrow.h>.
16515         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16516         Undefine and redefine.
16517         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16518         (libm_alias_float_ldouble): Undefine and redefine.
16519         (libm_alias_double_ldouble): Likewise.
16520
16521         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16522
16523 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
16524
16525         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16526         FPCR/FPSR.
16527
16528 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
16529
16530         * manual/creature.texi: Convert references to gcc.info to gcc.
16531         * manual/stdio.texi: Likewise.
16532         * manual/string.texi: Likewise.
16533
16534 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
16535
16536         [BZ #17979]
16537         * posix/bits/types.h (__int_least8_t): New typedef.
16538         (__uint_least8_t): Likewise.
16539         (__int_least16_t): Likewise.
16540         (__uint_least16_t): Likewise.
16541         (__int_least32_t): Likewise.
16542         (__uint_least32_t): Likewise.
16543         (__int_least64_t): Likewise.
16544         (__uint_least64_t): Likewise.
16545         * sysdeps/generic/stdint.h (int_least8_t): Define using
16546         __int_least8_t.
16547         (int_least16_t): Define using __int_least16_t.
16548         (int_least32_t): Define using __int_least32_t.
16549         (int_least64_t): Define using __int_least64_t.
16550         (uint_least8_t): Define using __uint_least8_t.
16551         (uint_least16_t): Define using __uint_least16_t.
16552         (uint_least32_t): Define using __uint_least32_t.
16553         (uint_least64_t): Define using __uint_least64_t.
16554         * wcsmbs/uchar.h: Include <bits/types.h>.
16555         (char16_t): Define using __uint_least16_t conditional only on
16556         [!__USE_ISOCXX11].
16557         (char32_t): Define using __uint_least32_t conditional only on
16558         [!__USE_ISOCXX11].
16559         * wcsmbs/test-char-types.c: New file.
16560         * wcsmbs/Makefile (tests): Add test-char-types.
16561
16562         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16563         version to 4.0.1.
16564
16565 2018-02-07  Zack Weinberg  <zackw@panix.com>
16566
16567         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16568         Delete all contents except for definitions of _G_HAVE_MMAP and
16569         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
16570         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16571         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
16572         change as above.
16573
16574         * libio/libio.h: Don't include bits/_G_config.h here.
16575         Include stddef.h with __need_wchar_t defined.  Include
16576         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16577         Define _IO_iconv_t here, directly.
16578         Don't define _IO_HAVE_ST_BLKSIZE.
16579         * libio/libioP.h: Include _G_config.h here.  Move include of
16580         shlib-compat.h up with rest of includes.  Simplify conditionals
16581         controlling definition of _IO_JUMPS_OFFSET.
16582
16583         * csu/init.c: Remove always-true #if around entire file.
16584         Don't include stdio.h.  Set _IO_stdin_used to hardwired
16585         constant 0x20001, and update commentary.
16586         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16587         Replace all uses of _G_va_list with __gnuc_va_list.
16588         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16589         instead of #if _IO_HAVE_ST_BLKSIZE.
16590         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16591         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16592         not #ifdef.
16593
16594         * libio/bits/libio.h: Move back to libio/libio.h and adjust
16595         multiple-include guard to match.
16596         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16597         into this file.
16598         Remove preprocessor conditionals that are always true and/or
16599         redundant to other preprocessor conditionals in the same nest.
16600         Include shlib-compat.h unconditionally.
16601         Error out if _LIBC is not defined, or if _ISOMAC is defined,
16602         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16603         defined after including stdio.h.
16604         Use __BEGIN_DECLS/__END_DECLS.
16605
16606         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16607         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16608         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16609
16610 2018-02-07  Zack Weinberg  <zackw@panix.com>
16611
16612         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16613         New single-type headers split from _G_config.h.
16614         * libio/bits/types/cookie_io_functions_t.h
16615         * libio/bits/types/struct_FILE.h
16616         New single-type headers split from libio.h.
16617
16618         * libio/Makefile: Install the above new headers.  Don't install
16619         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16620         bits/libio-ldbl.h.
16621         * libio/_G_config.h, libio/libio.h: Delete file.
16622
16623         * libio/bits/libio.h: Remove improper-inclusion guard.
16624         Include stdio.h and don't repeat anything that it does.
16625         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16626         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16627         __io_read_fn as cookie_read_function_t,
16628         __io_write_fn as cookie_write_function_t,
16629         __io_seek_fn as cookie_seek_function_t,
16630         __io_close_fn as cookie_close_function_t,
16631         and _IO_cookie_io_functions_t as cookie_io_functions_t.
16632         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16633         here, in the "compatibility defines" section.  Remove an #if 0
16634         block.  Use the "body" macros from bits/types/struct_FILE.h to
16635         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16636         and _IO_ferror_unlocked.
16637         Move prototypes of __uflow and __overflow...
16638
16639         * libio/stdio.h: ...here.  Don't include bits/libio.h.
16640         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
16641         directly from stdarg.h.  Include bits/types/__fpos_t.h,
16642         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16643         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16644         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16645         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16646         cookie_io_functions_t, not _IO_cookie_io_functions_t;
16647         __ssize_t, not _IO_ssize_t.  Unconditionally define
16648         BUFSIZ as 8192 and EOF as (-1).
16649
16650         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
16651         macros from bits/types/struct_FILE.h instead of _IO_* macros
16652         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16653         instead of _IO_ssize_t.
16654         * libio/bits/stdio2.h: Similarly.
16655
16656         * libio/iolibio.h: Add multiple-include guard.
16657         Include bits/libio.h after stdio.h.
16658         * libio/libioP.h: Add multiple-include guard.
16659         Include stdio.h and bits/libio.h before iolibio.h.
16660
16661         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16662         * include/bits/types/cookie_io_functions_t.h
16663         * include/bits/types/struct_FILE.h: New wrappers.
16664
16665         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16666         Get definitions of _G_fpos_t and _G_fpos64_t from
16667         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16668         respectively.  Remove improper-inclusion guards.
16669
16670         * conform/data/stdio.h-data: Update expectations of va_list.
16671         * scripts/check-installed-headers.sh: Remove special case for
16672         libio.h and _G_config.h.
16673
16674 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
16675
16676         [BZ #15105]
16677         [BZ #19463]
16678         * include/sys/sysmacros.h [!_ISOMAC]
16679         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16680         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16681         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16682         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16683         libc_hidden_proto.
16684         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16685         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16686         Likewise.
16687         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16688         Undefine and redefine to add use __gnu_dev_ prefix.
16689         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16690         Likewise.
16691         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16692         and define as hidden inline function.
16693         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16694         Likewise.
16695         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16696         Likewise.
16697         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16698         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16699         (gnu_dev_minor): Likewise.
16700         (gnu_dev_makedev): Likewise.
16701         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16702         makedev.
16703         * posix/wordexp.c (exec_comm_child): Likewise.
16704         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16705         instead of minor and __gnu_dev_major instead of major.
16706         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16707         __gnu_dev_major instead of major.
16708         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16709         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16710         instead of gnu_dev_minor.
16711         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16712         (SLAVE_P): Likewise.
16713         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16714         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16715         instead of major.
16716
16717         [BZ #21313]
16718         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16719         in another place.
16720         * locale/weightwc.h (findidx): Likewise.
16721
16722 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
16723
16724         * manual/probes.texi (slowlog): Delete documentation of removed probe.
16725         (slowlog_inexact): Likewise
16726         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16727         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16728
16729 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
16730
16731         [BZ #22797]
16732         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16733         missing second underscore to parameter name.
16734
16735 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
16736
16737         [BZ #14508]
16738         [BZ #15512]
16739         [BZ #17082]
16740         [BZ #20530]
16741         * bits/byteswap.h: Update file comment.  Do not include
16742         <bits/byteswap-16.h>.
16743         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
16744         constant.
16745         (__bswap_16): Define as inline function.
16746         (__bswap_constant_32): Reformat definition.
16747         (__bswap_32): Always define as inline function, not macro, using
16748         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16749         otherwise __bswap_constant_32.
16750         (__bswap_constant_64): Reformat definition.  Do not use
16751         __extension__ here.
16752         (__bswap_64): Always define as inline function, not macro.  Use
16753         __extension__ on function definition.  Use __builtin_bswap64 if
16754         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16755         * string/test-endian-file-scope.c: New file.
16756         * string/test-endian-sign-conversion.c: Likewise.
16757         * string/Makefile (headers): Remove bits/byteswap-16.h.
16758         (tests): Add test-endian-file-scope and
16759         test-endian-sign-conversion.
16760         (CFLAGS-test-endian-sign-conversion.c): New variable.
16761         * bits/byteswap-16.h: Remove file.
16762         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16763         * sysdeps/ia64/bits/byteswap.h: Likewise.
16764         * sysdeps/m68k/bits/byteswap.h: Likewise.
16765         * sysdeps/s390/bits/byteswap-16.h: Likewise.
16766         * sysdeps/s390/bits/byteswap.h: Likewise.
16767         * sysdeps/tile/bits/byteswap.h: Likewise.
16768         * sysdeps/x86/bits/byteswap-16.h: Likewise.
16769         * sysdeps/x86/bits/byteswap.h: Likewise.
16770
16771         [BZ #17721]
16772         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16773         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16774         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16775         199901L] (__restrict): Define to restrict.
16776
16777         [BZ #19667]
16778         * string/testcopy.c: Include <support/support.h>.  Do not include
16779         <malloc.h>.  Use <support/test-driver.c>.
16780         (main): Rename to do_test.  Make static.  Use xmalloc instead of
16781         malloc.
16782
16783         [BZ #13575]
16784         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16785         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16786         (SSIZE_MAX): Define to INT_MAX.
16787         * posix/test-ssize-max.c: New file.
16788         * posix/Makefile (tests): Add test-ssize-max.
16789
16790         [BZ #19668]
16791         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16792         <support/support.h>.  Do not include <malloc.h>.
16793         (query_auxv): Use xmalloc instead of malloc.
16794
16795         [BZ #14553]
16796         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16797         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16798         instead of loff_t.
16799
16800 2018-02-06  Florian Weimer <fweimer@redhat.com>
16801
16802         [BZ #18023]
16803         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16804         Use scratch_buffer instead of extend_alloca.
16805
16806 2018-02-06  Zack Weinberg  <zackw@panix.com>
16807
16808         * libio/stdio.h: Don't define getc or putc as macros.
16809         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16810         not _IO_getc and _IO_putc.
16811
16812         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16813         * stdio-common/tstgetln.c: Don't redefine ssize_t.
16814
16815 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
16816
16817         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16818         (TCP_FASTOPEN_NO_COOKIE): Likewise.
16819
16820         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16821
16822         [BZ #14890]
16823         * elf/elf.h (NT_PRFPREG): New macro.
16824         (NT_S390_VXRS_LOW): Likewise.
16825         (NT_S390_VXRS_HIGH): Likewise.
16826         (NT_S390_GS_CB): Likewise.
16827         (NT_S390_GS_BC): Likewise.
16828         (NT_S390_RI_CB): Likewise.
16829
16830         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16831         (MAP_SYNC): New macro.
16832         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16833         Likewise.
16834         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16835         (MAP_SYNC): Likewise.
16836         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16837         (MAP_SYNC): Likewise.
16838         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16839         (MAP_SYNC): Likewise.
16840         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16841         (MAP_SYNC): Likewise.
16842         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16843         (MAP_SYNC): Likewise.
16844         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16845         (MAP_SYNC): Likewise.
16846         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16847         Likewise.
16848         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16849         Likewise.
16850
16851         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16852         (MAP_SHARED_VALIDATE): New macro.
16853         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16854         (MAP_SHARED_VALIDATE): Likewise.
16855
16856 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16857
16858         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16859         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16860         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16861
16862 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16863
16864         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
16865         (DT_NUM): Updated to 35.
16866
16867 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16868
16869         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16870         __builtin_expect with __glibc_likely and __glibc_unlikely.
16871         (elf_machine_rela): Likewise.
16872         (elf_machine_lazy_rel): Likewise.
16873
16874 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16875
16876         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16877         __builtin_expect with __glibc_likely and __glibc_unlikely.
16878         (elf_machine_lazy_rel): Likewise.
16879
16880 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16881
16882         [BZ #22638]
16883         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16884         SHARED.
16885         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16886
16887 2018-02-05  Andreas Schwab  <schwab@suse.de>
16888
16889         [BZ #22761]
16890         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16891         string.
16892
16893 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16894
16895         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16896         not check against PTHREAD_STACK_MIN.
16897
16898 2018-02-02  Sean McKean  <smckean83@gmail.com>
16899
16900         [BZ #22735]
16901         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16902
16903 2018-02-02  Florian Weimer  <fweimer@redhat.com>
16904
16905         [BZ #22753]
16906         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16907         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16908         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16909         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16910         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16911         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16912         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16913         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16914         * manual/llio.texi (Scatter-Gather): Mention offset -1.
16915         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16916         * misc/tst-preadvwritev2.c (do_test): Call it.
16917         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16918
16919 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16920
16921         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16922
16923         * benchtests/bench-memcmp.c: Print json instead of plain text.
16924
16925         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16926         every test run.
16927
16928 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
16929
16930         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16931         version to 4.15.
16932         (s390_sthyi): New syscall.
16933
16934         * sysdeps/generic/ldbl-classify-compat.h: New file.
16935         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16936         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16937         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16938         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16939         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16940         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16941         * sysdeps/ieee754/dbl-64/s_finite.c: Include
16942         <ldbl-classify-compat.h>.
16943         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16944         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16945         <ldbl-classify-compat.h>.
16946         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16947         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16948         <ldbl-classify-compat.h>.
16949         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16950         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16951         <ldbl-classify-compat.h>.
16952         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16953         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16954         <ldbl-classify-compat.h>.
16955         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16957         <ldbl-classify-compat.h>.
16958         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16959         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16960         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16961         * sysdeps/m68k/coldfire/math_private.h: Remove file.
16962         * sysdeps/microblaze/math_private.h: Likewise.
16963         * sysdeps/nios2/math_private.h: Likewise.
16964         * sysdeps/sh/math_private.h: Likewise.
16965
16966         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16967         * sysdeps/m68k/coldfire/math_private.h: ... here.
16968         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16969         * sysdeps/tile/math_private.h: Likewise.
16970         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16971         Remove macro.
16972         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16973         Likewise.
16974
16975         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16976         Remove macro.
16977         (libc_fetestexcept): Likewise.
16978         (libc_feupdateenv_test): Likewise.
16979         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16980         (libc_fetestexcept): Likewise.
16981         (libc_feupdateenv_test): Likewise.
16982         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16983         (libc_fetestexcept): Likewise.
16984         (libc_feupdateenv_test): Likewise.
16985         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16986         (libc_fetestexcept): Likewise.
16987         (libc_feupdateenv_test): Likewise.
16988
16989         * sysdeps/generic/math_private.h
16990         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16991         New inline function.
16992         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16993         Likewise.
16994
16995         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16996         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16997         * sysdeps/generic/math_private.h
16998         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16999         inline function.
17000         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
17001         Likewise.
17002         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
17003         Likewise.
17004         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
17005         Likewise.
17006         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
17007         Likewise.
17008         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
17009         Likewise.
17010         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
17011         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
17012         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
17013         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
17014         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
17015         (__fegetenv): Likewise.
17016         (fesetenv): Likewise.
17017         (__fesetenv): Likewise.
17018         (feupdateenv): Likewise.
17019         (__feupdateenv): Likewise.
17020         (fegetround): Likewise.
17021         (__fegetround): Likewise.
17022         (fesetround): Likewise.
17023         (__fesetround): Likewise.
17024
17025         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
17026         (feraiseexcept): New macro.
17027         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
17028         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
17029         Remove macro.
17030         (__feraiseexcept): Likewise.
17031         (feclearexcept): Likewise.
17032         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
17033         (__feraiseexcept): Likewise.
17034         (feclearexcept): Likewise.
17035         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
17036         (__feraiseexcept): Likewise.
17037         (feclearexcept): Likewise.
17038         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
17039         (__feraiseexcept): Likewise.
17040         (feclearexcept): Likewise.
17041         (fetestexcept): Likewise.
17042
17043         * sysdeps/m68k/coldfire/math-tests.h: New file.
17044
17045         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
17046         * sysdeps/m68k/bits/fenv.h: ... here.
17047         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
17048         not define.
17049         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
17050         Likewise.
17051         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
17052         Likewise.
17053         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
17054         Likewise.
17055         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
17056         Likewise.
17057         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
17058         Define to 0.
17059         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
17060         (__FE_UNDEFINED): New enum constant.
17061         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
17062         Do not define.
17063         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
17064         Likewise.
17065         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
17066         Likewise.
17067         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
17068         to match generic bits/fenv.h.
17069         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
17070         Do not define.
17071
17072         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
17073         packed on bits.
17074         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
17075         * soft-fp/half.h (union _FP_UNION_H): Likewise.
17076         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
17077         * soft-fp/single.h (union _FP_UNION_S): Likewise.
17078
17079 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
17080             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
17081             Joseph Myers  <joseph@codesourcery.com>
17082
17083         [BZ #21314]
17084         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
17085         (__log1p): Disable -Wmaybe-uninitialized for -Os around
17086         computation using c.
17087         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
17088         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
17089         computation using c.
17090
17091 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
17092
17093         * version.h (RELEASE): Set to "development".
17094         (VERSION): Set to "2.27.9000".
17095         * NEWS (2.28): New section.
17096
17097         * version.h (RELEASE): Set to "stable".
17098         (VERSION): Set to "2.27".
17099         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
17100
17101         * NEWS: Add the list of bugs fixed in 2.27.
17102
17103 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17104
17105         * stdlib/test-atexit-race-common.c (do_test): Check stack size
17106         against PTHREAD_STACK_MIN.
17107
17108 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
17109
17110         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
17111         New entries.
17112         (Rafal Luzynski, Andreas Schwab): Update.
17113
17114 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
17115
17116         [BZ #10871]
17117         * NEWS: List the languages which actually use the alternative
17118         months feature in this release.  Also explain that "alt_mon" and
17119         "ab_alt_mon" are optional.
17120
17121 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
17122
17123         [BZ #22765]
17124         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
17125
17126 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
17127
17128         * manual/install.texi (Tools for Compilation): Update the newest
17129         versions of gcc, binutils, texinfo, gawk, bison, and sed.
17130         * INSTALL: Regenerated.
17131
17132 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17133
17134         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
17135         instead of __builtin_expect.
17136
17137 2018-01-30  Florian Weimer  <fweimer@redhat.com>
17138
17139         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
17140         data.
17141         * nss/tst-nss-getpwent.c (do_test): Likewise.
17142
17143 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
17144
17145         [BZ #10871]
17146         * localedata/locales/hr_HR (mon): Rename to...
17147         (alt_mon): This.
17148         (mon): Import from CLDR (genitive case).
17149         (d_t_fmt): Update the comment.
17150
17151 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
17152
17153         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
17154         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
17155         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
17156
17157 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17158
17159         * mach/Versions: Fix version when __mach_host_self_ was added.
17160         * hurd/Versions: Fix version when _hurd_exec_paths was added.
17161         * sysdeps/mach/hurd/i386/ld.abilist: New file.
17162         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
17163         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
17164         * sysdeps/mach/hurd/i386/libc.abilist: New file.
17165         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
17166         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
17167         * sysdeps/mach/hurd/i386/libm.abilist: New file.
17168         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
17169         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
17170         * sysdeps/mach/hurd/i386/librt.abilist: New file.
17171         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
17172         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
17173         || to respect codestyle.
17174         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
17175         (do_test_bz20181): Rename accordingly.
17176         * malloc/malloc.c: Include <assert.h>.
17177         (assert): Do not define.
17178         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
17179         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
17180         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
17181         * sysdeps/mach/hurd/hp-timing.h: New file.
17182         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
17183
17184 2018-01-29  Darius Rad  <darius@bluespec.com>
17185
17186         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
17187
17188 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
17189
17190         * sysdeps/init_array/crti.S (.section .init_array): Add
17191         PREINIT_FUNCTION when defined.
17192         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
17193         * config.h.in: Regenerate.
17194         * manual/platform.texi: Add RISC-V documenation for
17195         __riscv_flush_icache.
17196         * sysdeps/riscv/__longjmp.S: New file.
17197         * sysdeps/riscv/backtrace.c: Likewise.
17198         * sysdeps/riscv/bits/endian.h: Likewise.
17199         * sysdeps/riscv/bits/setjmp.h: Likewise.
17200         * sysdeps/riscv/bits/wordsize.h: Likewise.
17201         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
17202         * sysdeps/riscv/bsd-setjmp.c: Likewise.
17203         * sysdeps/riscv/dl-trampoline.S: Likewise.
17204         * sysdeps/riscv/gccframe.h: Likewise.
17205         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
17206         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
17207         * sysdeps/riscv/machine-gmon.h: Likewise.
17208         * sysdeps/riscv/memusage.h: Likewise.
17209         * sysdeps/riscv/setjmp.S: Likewise.
17210         * sysdeps/riscv/sys/asm.h: Likewise.
17211         * sysdeps/riscv/tls-macros.h: Likewise.
17212         * sysdeps/riscv/dl-tls.h: New file.
17213         * sysdeps/riscv/libc-tls.c: Likewise.
17214         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
17215         * sysdeps/riscv/nptl/tls.h: Likewise.
17216         * sysdeps/riscv/stackinfo.h: Likewise.
17217         * sysdeps/riscv/bits/fenv.h: New file.
17218         * sysdeps/riscv/e_sqrtl.c: Likewise.
17219         * sysdeps/riscv/fpu_control.h: Likewise.
17220         * sysdeps/riscv/math-tests.h: Likewise.
17221         * sysdeps/riscv/nofpu/Implies: Likewise.
17222         * sysdeps/riscv/sfp-machine.h: Likewise.
17223         * sysdeps/riscv/tininess.h: Likewise.
17224         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
17225         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
17226         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
17227         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
17228         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
17229         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
17230         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
17231         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
17232         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
17233         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
17234         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
17235         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
17236         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
17237         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
17238         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
17239         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
17240         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
17241         * sysdeps/riscv/rvd/s_finite.c: Likewise.
17242         * sysdeps/riscv/rvd/s_fma.c: Likewise.
17243         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
17244         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
17245         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
17246         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
17247         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
17248         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
17249         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
17250         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
17251         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
17252         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
17253         * sysdeps/riscv/rvf/fegetround.c: Likewise.
17254         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
17255         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
17256         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
17257         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
17258         * sysdeps/riscv/rvf/fesetround.c: Likewise.
17259         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
17260         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
17261         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
17262         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
17263         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
17264         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
17265         * sysdeps/riscv/rvf/math_private.h: Likewise.
17266         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
17267         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
17268         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
17269         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
17270         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
17271         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
17272         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
17273         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
17274         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
17275         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
17276         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
17277         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
17278         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
17279         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
17280         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
17281         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
17282         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
17283         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
17284         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
17285         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
17286         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
17287         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17288         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
17289         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
17290         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
17291         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
17292         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
17293         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
17294         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
17295         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
17296         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
17297         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
17298         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
17299         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
17300         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17301         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17302         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17303         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17304         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17305         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17306         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17307         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17308         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17309         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17310         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17311         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17312         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17313         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17314         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17315         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17316         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17317         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17318         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17319         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17320         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17321         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17322         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17323         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17324         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17325         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17326         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17327         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17328         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17329         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17330         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17331         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17332         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17333         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17334         * sysdeps/riscv/Implies: New file.
17335         * sysdeps/riscv/Makefile: Likewise.
17336         * sysdeps/riscv/configure: Likewise.
17337         * sysdeps/riscv/configure.ac: Likewise.
17338         * sysdeps/riscv/nptl/Makefile: Likewise.
17339         * sysdeps/riscv/preconfigure: Likewise.
17340         * sysdeps/riscv/rv64/Implies-after: Likewise.
17341         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17342         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17343         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17344         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17345         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17346         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17347         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17348         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17349         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17350         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17351         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17352         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17353         (Config): Likewise.
17354
17355 2018-01-29  Florian Weimer  <fweimer@redhat.com>
17356
17357         [BZ #22701]
17358         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17359         libnsl_hidden_proto.
17360         * include/rpcsvc/yp.h (yp_xdrall): Declare with
17361         libnsl_hidden_proto.
17362         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17363         * nis/Makefile (libnsl-routines): Add nss-default only for
17364         build-obsolete-nsl.
17365         * nis/nis_defaults.c (__nis_default_ttl): Add
17366         libnsl_hidden_nolink_def.
17367         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17368         declaration.
17369         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17370         * nis/ypclnt.c (yp_maplist): Likewise.
17371
17372 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
17373
17374         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17375         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17376
17377 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
17378
17379         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17380         clean -dxfq for git updates when replacing sources.
17381
17382         * scripts/build-many-glibcs.py (Config.build_gcc): Use
17383         --disable-libcilkrts unconditionally, not just for the final GCC
17384         build for Hurd.
17385
17386         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17387         version to 4.15.
17388
17389 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17390
17391         [BZ #10871]
17392         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17393         case).
17394
17395 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17396
17397         [BZ #10871]
17398         * localedata/locales/be_BY (mon): Rename to...
17399         (alt_mon): This, then synchronize with CLDR (nominative case).
17400         (abmon): Rename to...
17401         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17402         (mon): Import from CLDR (genitive case).
17403         (abmon): Likewise.
17404         * localedata/locales/be_BY@latin (mon): Rename to...
17405         (alt_mon): This.
17406         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17407
17408         * localedata/locales/be_BY@latin (lang_name): Reworded to
17409         "biełaruskaja mova".
17410
17411 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17412
17413         [BZ #10871]
17414         * localedata/locales/el_CY (mon): Renamed to...
17415         (alt_mon): This.
17416         (mon): Import from CLDR (genitive case).
17417         * localedata/locales/el_GR: Likewise.
17418
17419 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
17420
17421         [BZ #10871]
17422         * localedata/locales/ru_RU (mon): Rename to...
17423         (alt_mon): This.
17424         (abmon): Rename to...
17425         (ab_alt_mon): This.
17426         (mon): Import from CLDR (genitive case).
17427         (abmon): Copy from the old content except the 5th month which is
17428         now in the genitive case, even when abbreviated.
17429         * localedata/locales/ru_UA: Likewise.
17430         * time/tst-strptime.c (day_tests): Add an actual example of
17431         a difference between %b and %Ob in Russian.
17432
17433 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17434
17435         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17436         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17437         a `c' variable.
17438         * resolv/res-close.c: Include <stdlib.h>.
17439         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17440         <sys/wait.h>, <time.h>, <sys/uio.h>.
17441         (NOT_CANCEL_H): Add inclusion guard.
17442         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17443         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17444         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17445         return 0.
17446         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17447         vm_address_t * to ElfW(Addr) * for dl_main parameter.
17448         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17449         instead of void *.
17450         * sysdeps/pthread/timer_create.c (timer_create): Do not use
17451         timer_ptr2id to cast struct timer_node * to void *.
17452         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17453         --disable-libcilkrts to gcc configure.
17454         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17455         and make them the default for now.
17456         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17457         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17458         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17459         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17460         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17461         MACH_IPC_COMPAT.
17462         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17463         __task_terminate would ever return successfully.
17464         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17465         to global scope.
17466         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17467         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17468         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17469         critical section to make code simpler and avoid warning.
17470         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17471         critical section to make code simpler and avoid warning.
17472         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17473         const char * instead of char *.
17474         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17475         __hurd_file_name_split, hurd_file_name_split,
17476         __hurd_directory_name_split, hurd_directory_name_split,
17477         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17478         hurd_file_name_path_lookup): Make lookup function parameter take a
17479         const char *name instead of char *name.
17480         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17481         __hurd_directory_name_split): Likewise.
17482         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17483         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17484         * sysdeps/mach/hurd/check_native.c: New file.
17485         * sysdeps/mach/hurd/check_pf.c: New file.
17486         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17487         (__freeifaddrs): Define macro to freeifaddrs.
17488         * sysdeps/mach/hurd/libhurduser.abilist: New file.
17489         * sysdeps/mach/libmachuser.abilist: New file.
17490         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17491         (do_test_bz20181): Rename accordingly.
17492         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17493         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17494         <sys/mount.h>.
17495         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17496         version only if __USE_EXTERN_INLINES is defined.
17497         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17498         __hurd_sockfail): Likewise.
17499         (_hurd_fd_get): Always declare functions, and provide inline versions
17500         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17501         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17502         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17503         _hurd_port_set): Always declare functions, and provide inline versions
17504         only if __USE_EXTERN_INLINES and _LIBC are defined and
17505         IS_IN(libc).
17506         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17507         _hurd_critical_section_unlock): Likewise.
17508         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17509         * __hurd_threadvar_location): Likewise.
17510         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17511         _hurd_userlink_clear): Likewise.
17512         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17513         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17514         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17515         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17516         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17517         __spin_lock_locked): Likewise.
17518         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17519         __spin_lock_locked): Likewise.
17520         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17521         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17522         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17523         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17524         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17525         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17526         _POSIX_NO_TRUNC): Define to 0.
17527         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17528         check size against PTHREAD_STACK_MIN.
17529         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17530         IS_IN(libpthread)]: Include <sigsetops.h>.
17531         * mach/Makefile (user-interfaces): Add mach/gnumach.
17532         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17533         * sysdeps/mach/configure (mach_interface_list): Regenerate.
17534         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17535         instead of invalid -1.
17536         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17537         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17538         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17539         <net/ppp_defs.h>.
17540
17541 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
17542
17543         * hurd/fcntl-internal.h: New file.
17544
17545 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
17546
17547         * sysdeps/hppa/fpu/libm-test-ulps: Update.
17548
17549         * sysdeps/alpha/fpu/libm-test-ulps: Update.
17550
17551 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
17552
17553         [BZ #22701]
17554         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17555         Build only shared objects.
17556
17557 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
17558
17559         * README: Update for hppa.
17560
17561 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
17562
17563         * sysdeps/sparc/fpu/libm-test-ulps: Update
17564         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17565
17566 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
17567
17568         Revert:
17569
17570         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
17571
17572         [BZ #22563]
17573         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17574         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17575         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17576         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17577         to feature_1.
17578
17579         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
17580
17581         [BZ #22563]
17582         * bits/types/__cancel_jmp_buf_tag.h: New file.
17583         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17584         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17585         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17586         * nptl/Makefile (headers): Add
17587         bits/types/__cancel_jmp_buf_tag.h.
17588         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17589         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17590         * sysdeps/nptl/pthread.h: Include
17591         <bits/types/__cancel_jmp_buf_tag.h>.
17592         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17593         __cancel_jmp_buf.
17594         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17595
17596 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
17597
17598         [BZ #10871]
17599         * localedata/locales/uk_UA (mon): Renamed to...
17600         (alt_mon): This.
17601         (alt_digits): "0" removed and then renamed to...
17602         (mon): This.
17603         (date_fmt): Definition changed not to use the alternative
17604         digits hack.
17605
17606 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
17607
17608         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17609         FLAG_RISCV_FLOAT_ABI_DOUBLE.
17610         * elf/elf.h (EF_RISCV_RVC): New define.
17611         (EF_RISCV_FLOAT_ABI): Likewise.
17612         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17613         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17614         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17615         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17616         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17617         define.
17618         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17619
17620 2018-01-25  Andreas Schwab  <schwab@suse.de>
17621
17622         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17623         single quotes.
17624         * sysdeps/gnu/configure: Regenerate.
17625         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17626         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17628         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17629         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17630         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17631         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17632         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17633
17634 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17635
17636         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17637         URL, and run autoconf, make it the default for now.
17638
17639 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
17640
17641         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17642         soft-float ColdFire configuration.
17643
17644         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17645         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17646         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17647
17648         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
17649         MicroBlaze file.
17650
17651         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17652         ....
17653         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17654         ... here.
17655         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17656         New file.
17657
17658         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17659         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17660         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17661         file.
17662
17663 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17664
17665         [BZ #22742]
17666         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17667         Rename to __reserved and add comment.
17668         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17669         Rename to __reserved.
17670
17671 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
17672
17673         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17674         i686-gnu configurations.
17675         (Context.run_builds): Include mig, gnumach and hurd in components
17676         considered.
17677         (Context.checkout): Add mig, gnumach and hurd to components.
17678         (Context.checkout_tar): Add URL mappings for mig, gnumach and
17679         hurd.
17680         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17681         (Config.build): Install gnumach headers, build mig and install
17682         hurd headers for 'gnu' OS.
17683         (Config.install_gnumach_headers): New function.
17684         (Config.install_hurd_headers): Likewise.
17685         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
17686         when building for 'gnu' OS.
17687
17688 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
17689
17690         * manual/tunables.texi (Hardware Capability Tunables): Fix
17691         spelling.
17692
17693 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
17694
17695         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17696         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17697         (ALTMON_11, ALTMON_12): Improve documentation.
17698         * manual/time.texi (strftime): Likewise.
17699
17700 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17701
17702         [BZ #10871]
17703         * localedata/locales/pl_PL: Alternative month names added,
17704         primary month names are genitive now.
17705         * time/tst-strptime.c (day_tests): Actually use a genitive case
17706         of a month name in Polish language.
17707
17708 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17709
17710         [BZ #10871]
17711         * manual/locale.texi: Document ALTMON_1..12 constants for
17712         nl_langinfo.  Specify when to use ALTMON instead of MON.
17713         * manual/time.texi (strftime, strptime): Document GNU extension
17714         permitting O modifier with %B and %b.  Specify when to use
17715         %OB instead of %B.
17716
17717 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17718
17719         [BZ #10871]
17720         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17721         names, define them as the same as abbreviated month names explicitly.
17722         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17723         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17724         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17725         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17726         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17727         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17728         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17729         _NL_WABALTMON_12): New enum constants.
17730         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17731         wab_alt_mon, and ab_alt_mon_defined members.
17732         (time_output): Output ab_alt_mon and wab_alt_mon members.
17733         (time_read): Read them, initialize them as copies of abmon and wabmon
17734         respectively if they are missing, initialize ab_alt_mon_defined.
17735         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17736         * locale/programs/locfile-kw.h: Regenerate.
17737         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17738         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17739         and ru_RU.UTF-8.
17740         * time/strftime_l.c (a_altmonth, aam_len): New macros.
17741         [!COMPILE_WIDE] (ABALTMON_1): New macro.
17742         (__strftime_internal): Handle %Ob and %Oh formats.
17743         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17744         (__strptime_internal): Handle %Ob and %Oh formats.
17745         * time/tst-strptime.c (day_tests): Add more tests to parse different
17746         forms of month names including the new %Ob format specifier.
17747
17748 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
17749
17750         [BZ #10871]
17751         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17752         define them as the same as primary full month names explicitly.
17753         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17754         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17755         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17756         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17757         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17758         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17759         _NL_WALTMON_12): New enum constants.
17760         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17761         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17762         macros.
17763         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17764         walt_mon, and alt_mon_defined members.
17765         (time_output): Output alt_mon and walt_mon members.
17766         (time_read): Read them, initialize them as copies of mon and wmon
17767         respectively if they are missing, initialize alt_mon_defined.
17768         * locale/programs/locfile-kw.gperf (alt_mon): Define.
17769         * locale/programs/locfile-kw.h: Regenerate.
17770         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17771         * localedata/tst-langinfo.c (map): Add tests for the new constants
17772         ALTMON_1 .. ALTMON_12.
17773         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17774         and pl_PL.UTF-8.
17775         * time/strftime_l.c (f_altmonth): New macro.
17776         (__strftime_internal): Handle %OB format.
17777         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17778         (__strptime_internal): Handle %OB format.
17779         * time/tst-strptime.c (day_tests): Add tests to parse different forms
17780         of month names including the new %OB format specifier.
17781
17782 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17783
17784         [BZ #22685]
17785         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17786         from ABORT_TRANSACTION.
17787         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17788         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17789         ABORT_TRANSACTION_IMPL): Likewise.
17790         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
17791         Linux code, but remove the code that aborts transactions.
17792
17793 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17794
17795         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17796
17797 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
17798
17799         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17800         in date: "2004-14-09" should be "2004-09-14".
17801         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17802         "2003-15-09" should be "2003-09-15".
17803
17804 2018-01-18  Arjun Shankar  <arjun@redhat.com>
17805
17806         [BZ #22343]
17807         [BZ #22774]
17808         CVE-2018-6485
17809         CVE-2018-6551
17810         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17811         after padding.
17812         (_int_memalign): check for integer overflow before calling
17813         _int_malloc.
17814         * malloc/tst-malloc-too-large.c: New test.
17815         * malloc/Makefile: Add tst-malloc-too-large.
17816
17817 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
17818
17819         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17820         in date: "2017-24-07" should be "2017-07-24".
17821         * localedata/locales/mai_IN: Likewise.
17822         * localedata/locales/mai_NP: Likewise.
17823
17824 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
17825
17826         * po/ru.po: Update translations.
17827
17828 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
17829
17830         [BZ #22719]
17831         * sysdeps/hppa/backtrace.c: New file.
17832
17833 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
17834
17835         [BZ #22715]
17836         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17837         align La_x86_64_retval to VEC_SIZE.
17838
17839 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
17840
17841         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17842         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17843
17844 2018-01-16  Florian Weimer  <fweimer@redhat.com>
17845
17846         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17847         Move tst-thread-exit-clobber ...
17848         [$(CXX)] (tests-unsupported): ... to here.
17849
17850 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17851
17852         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17853         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17854         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17855         (_dl_aarch64_cap_flags): Update.
17856         (_DL_HWCAP_COUNT): Update.
17857
17858 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17859
17860         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17861         (_DL_HWCAP_LAST): Remove.
17862         (_DL_HWCAP_COUNT): Move to ...
17863         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17864         (_DL_HWCAP_COUNT): ... here.
17865
17866 2018-01-16  Florian Weimer  <fweimer@redhat.com>
17867
17868         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17869         mode with GNU extensions.
17870
17871 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
17872
17873         * elf/elf.h (NT_ARM_SVE): Define.
17874
17875 2018-01-15  Florian Weimer  <fweimer@redhat.com>
17876
17877         [BZ #22636]
17878         * nptl/tst-minstack-throw.cc: New file.
17879         * nptl/Makefile (tests): Add tst-minstack-throw.
17880         (LDLIBS-tst-minstack-throw): Link with libstdc++.
17881         [!CXX] (tests-unsupported): Add tst-minstack-throw.
17882
17883 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
17884
17885         * scripts/build-many-glibcs.py (Context.checkout): Default
17886         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17887         version to 1.1.0.
17888
17889 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
17890
17891         [BZ #22707]
17892         * elf/elf.h (DF_1_STUB): Define.
17893         (DF_1_PIE): Define.
17894
17895 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17896
17897         [BZ #22697]
17898         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17899         Do not add 0.5 to integer or out-of-range arguments.
17900
17901 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
17902
17903         * po/bg.po: Update translations.
17904         * po/cs.po: Likewise.
17905         * po/de.po: Likewise.
17906         * po/ko.po: Likewise.
17907         * po/pl.po: Likewise.
17908         * po/sv.po: Likewise.
17909         * po/uk.po: Likewise.
17910         * po/vi.po: Likewise.
17911
17912 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17913
17914         * aarch64/start.S (_start): Use __wrap_main.
17915         (__wrap_main): New local symbol.
17916
17917 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
17918
17919         [BZ #22679]
17920         CVE-2018-1000001
17921         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17922         generic_getcwd if the path returned by getcwd syscall is not absolute.
17923         * io/tst-getcwd-abspath.c: New test.
17924         * io/Makefile (tests): Add tst-getcwd-abspath.
17925
17926 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
17927
17928         * malloc/malloc.c (malloc_consolidate): Add size check.
17929
17930 2018-01-12  Florian Weimer  <fweimer@redhat.com>
17931
17932         * support/write_message.c (write_message): Preserve errno.
17933         * support/check.c (print_failure): Likewise.
17934         * support/support_test_verify_impl.c (support_test_verify_impl):
17935         Likewise.
17936         * support/support_test_compare_failure.c
17937         (support_test_compare_failure): Likewise.
17938
17939 2018-01-12  Florian Weimer  <fweimer@redhat.com>
17940
17941         [BZ #22701]
17942         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17943         Prevent installation of libnsl.so.
17944         (libnsl-inhibit-o): Do not build (or install) static libraries.
17945
17946 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
17947
17948         [BZ #22657]
17949         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17950         before the day number which may produce a double space.
17951         (date_fmt): Likewise.
17952
17953 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
17954
17955         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17956         instead of fegetenv.
17957
17958 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
17959
17960         [BZ #22702]
17961         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17962         comment to say exceptions are discarded.
17963         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17964         __fegetenv.
17965         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17966         be enabled.
17967
17968 2018-01-11  Florian Weimer  <fweimer@redhat.com>
17969
17970         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17971         and error message.
17972
17973 2018-01-11  Florian Weimer  <fweimer@redhat.com>
17974
17975         [BZ #22636]
17976         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17977         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17978
17979 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
17980
17981         [BZ #22693]
17982         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17983         negative arguments in test for NaN or infinity argument.
17984
17985 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
17986
17987         * po/libc.pot: Regenerate.
17988
17989 2018-01-10  Florian Weimer  <fweimer@redhat.com>
17990
17991         [BZ #22636]
17992         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17993         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17994
17995 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17996
17997         * hurd/hurd/fd.h: Include <fcntl.h>
17998         (__hurd_at_flags): New function.
17999         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
18000         with call to __hurd_at_flags.
18001         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
18002         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
18003         __faccessat
18004         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
18005         (__access_noerrno): Use __faccessat_common instead of access_common.
18006         (__access): Likewise.
18007         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
18008         with a call to __faccessat.
18009         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
18010         (__faccessat_common): ... this. Move implementation of __access into it when
18011         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
18012         reauthenticate_cwdir_at helper to implement AT mechanism.
18013         (__faccessat_noerrno): New function, just calls __faccessat_common.
18014         (__faccessat): New function, just calls __faccessat_common.
18015         (faccessat): Define weak alias.
18016
18017 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
18018
18019         [BZ #22691]
18020         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18021         (CFLAGS-s_fmaxmagl.c): New variable.
18022         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
18023
18024         [BZ #22690]
18025         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
18026         long int for arguments of possibly overflowing addition or
18027         subtraction.
18028         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
18029
18030 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
18031
18032         [BZ #22688]
18033         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
18034         (CFLAGS-e_remainderl.c): New variable.
18035
18036         [BZ #22687]
18037         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
18038         variable.
18039         (CFLAGS-s_cacoshl.c): Likewise.
18040         (CFLAGS-s_casinhl.c): Likewise.
18041         (CFLAGS-s_catanl.c): Likewise.
18042         (CFLAGS-s_catanhl.c): Likewise.
18043         (CFLAGS-s_cexpl.c): Likewise.
18044         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
18045         (CFLAGS-s_csinhl.c): Likewise.
18046         (CFLAGS-s_clogl.c): Likewise.
18047         (CFLAGS-s_clog10l.c): Likewise.
18048         (CFLAGS-s_csinl.c): Likewise.
18049         (CFLAGS-s_csqrtl.c): Likewise.
18050
18051 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18052 2017-01-09  Svante Signell  <svante.signell@gmail.com>
18053
18054         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
18055         (_hurd_exec_paths): New function.
18056         * hurd/hurd.h (_hurd_exec): Deprecate function.
18057         (_hurd_exec_paths): Declare function.
18058         * hurd/Versions: Export _hurd_exec_paths.
18059         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
18060         (__execve): Use __getcwd to build absolute path, and use
18061         _hurd_exec_paths instead of _hurd_exec.
18062         * sysdeps/mach/hurd/spawni.c: Likewise.
18063         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
18064         _hurd_exec.
18065
18066 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
18067
18068         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
18069         test instead of failing in case of ENOENT returned by posix_openpt.
18070
18071 2018-01-08  Florian Weimer  <fweimer@redhat.com>
18072
18073         resolv: Support binary labels in test framework.
18074         * support/resolv_test.c (struct to_be_freed): Remove.
18075         (struct compressed_name): New.
18076         (allocate_compressed_name, ascii_tolower)
18077         (compare_compressed_name): New functions.
18078         (struct resolv_response_builder): Update type of
18079         compression_offsets for use with tsearch.  Rempve to_be_freed.
18080         (response_push_pointer_to_free): Remove function.
18081         (resolv_response_add_name): Rewrite using struct compressed_name
18082         and tsearch instead of hsearch_r.
18083         (response_builder_allocate): Remove initialization of
18084         compression_offsets.
18085         (response_builder_free): Update for removal of to_be_freed.  Use
18086         tdestroy instead of hdestroy_r.
18087         * resolv/Makefile (tests): Add tst-resolv-binary.
18088         (tst-resolv-binary): Link with -lresolv -lpthread.
18089
18090 2018-01-08  Florian Weimer  <fweimer@redhat.com>
18091
18092         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
18093         time.  Pass positive flag instead of negative flag to
18094         support_test_compare_failure.
18095         (support_test_compare_failure): Change negative parameter to
18096         positive.
18097         * support/support_test_compare_failure.c (report)
18098         (support_test_compare_failure): Likewise.
18099         * support/tst-test_compare.c (return_ssize_t, return_int): New.
18100         (do_test): Check int/size_t, ssize_t/size_t comparisons.
18101
18102 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18103
18104         [BZ #22637]
18105         * nptl/descr.h (stackblock, stackblock_size): Update comments.
18106         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
18107         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
18108         stacksize.
18109         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
18110
18111 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
18112
18113         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18114         Add s_sincosf-sse2 and s_sincosf-fma.
18115         (CFLAGS-s_sincosf-fma.c): New.
18116         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
18117         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
18118         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
18119         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
18120         __sincosf is defined.
18121
18122 2018-01-08  Florian Weimer  <fweimer@redhat.com>
18123
18124         * nptl/tst-thread-exit-clobber.cc: New file.
18125         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
18126         C++11 mode.
18127         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
18128         (tests): Add tst-thread-exit-clobber.
18129         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
18130
18131 2018-01-08  Florian Weimer  <fweimer@redhat.com>
18132
18133         * support/check.h (support_static_assert): Define.
18134         (TEST_COMPARE): Use it.
18135
18136 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
18137
18138         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
18139         [!__RLIM_T_MATCHES_RLIM64_T]
18140         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
18141         __getrlimit64. Add libc_hidden_weak.
18142
18143 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
18144
18145         * elf/elf.h (R_RISCV_NONE): New define.
18146         (R_RISCV_32): Likewise.
18147         (R_RISCV_64): Likewise.
18148         (R_RISCV_RELATIVE): Likewise.
18149         (R_RISCV_COPY): Likewise.
18150         (R_RISCV_JUMP_SLOT): Likewise.
18151         (R_RISCV_TLS_DTPMOD32): Likewise.
18152         (R_RISCV_TLS_DTPMOD64): Likewise.
18153         (R_RISCV_TLS_DTPREL32): Likewise.
18154         (R_RISCV_TLS_DTPREL64): Likewise.
18155         (R_RISCV_TLS_TPREL32): Likewise.
18156         (R_RISCV_TLS_TPREL64): Likewise.
18157         * Makerules (make-link-multidir): Make directories before linking into
18158         them.
18159         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
18160         define.
18161         (VDSO_HASH_LINUX_4_15): Likewise.
18162         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
18163         in subdirectories of lib.
18164         * nptl/Makefile (/librt.so): Always depend on
18165         "$(shared-thread-library)".
18166
18167 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18168
18169         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
18170         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
18171         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
18172         (___tls_get_addr).
18173         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
18174         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18175         "-O2 -march=i686".
18176         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
18177         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
18178         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
18179         * sysdeps/gnu/glob-lstat-compat.c: New file.
18180         * sysdeps/gnu/glob64-lstat-compat.c: New file.
18181         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
18182
18183 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18184
18185         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
18186         Reserve 16 chars to reloc_addr before calling _itoa_word.
18187
18188 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18189
18190         [BZ #22678]
18191         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
18192         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
18193
18194         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
18195         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
18196
18197         * resource/tst-getrlimit.c: Add copyright header.
18198
18199 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18200             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18201
18202         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18203         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
18204         Define __GI_getrlimit64 as weak alias of __getrlimit64.
18205         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
18206         instead.
18207         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
18208         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
18209         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
18210         RLIM64_INFINITY): Fix values to match the kernel ones.
18211         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
18212         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
18213         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
18214         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
18215         getrlimit64@@GLIBC_2_27.
18216         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
18217         and setrlimit64.
18218         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
18219         getrlimit, setrlimit, getrlimit64 and setrlimit64.
18220         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
18221         setrlimit, getrlimit64 and setrlimit64.
18222
18223 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
18224
18225         [BZ #22648]
18226         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
18227         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
18228
18229 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
18230
18231         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
18232         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
18233         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
18234
18235 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18236
18237         [BZ #15479]
18238         [BZ #22666]
18239         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
18240         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
18241
18242         [BZ #15479]
18243         [BZ #22665]
18244         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
18245         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
18246         * sysdeps/alpha/fpu/s_floor.c: Likewise.
18247         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
18248
18249 2018-01-04  Florian Weimer  <fweimer@redhat.com>
18250
18251         [BZ #22667]
18252         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
18253         Align the stack before calling exit.
18254         * stdlib/tst-makecontext-align.c: New file.
18255         * stdlib/Makefile (tests): Add tst-makecontext-align.
18256
18257 2018-01-04  Florian Weimer  <fweimer@redhat.com>
18258
18259         Add support for calling dlvsym from libc.so.
18260         * include/dlfcn.h (__libc_dlvsym): Declare.
18261         * elf/Makefile (tests-static-internal): Add
18262         tst-libc_dlvsym-static.
18263         (tests-internal): Add tst-libc_dlvsym.
18264         (modules-names): Add tst-libc_dlvsym-dso.
18265         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
18266         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
18267         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
18268         object tst-libc_dlvsym-dso.so needs to be built before running
18269         these tests.
18270         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
18271         * elf/Versions: Export __libc_dlvsym.
18272         * elf/dl-libc.c (struct do_dlvsym_args): New.
18273         (do_dlvsym, __libc_dlvsym): New functions.
18274         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
18275         (_dl_open_hook2): New variable.
18276         (__libc_register_dl_open_hook): Set it.
18277         * elf/tst-libc_dlvsym-dso.c: New file.
18278         * elf/tst-libc_dlvsym-static.c: Likewise.
18279         * elf/tst-libc_dlvsym.c: Likewise.
18280         * elf/tst-libc_dlvsym.h: Likewise.
18281
18282 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18283
18284         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
18285         include <sys/mount.h>.
18286
18287 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
18288
18289         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
18290         Add __NO_MATH_ERRNO__ check.
18291
18292 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
18293
18294         * sysdeps/mips/mips32/libm-test-ulps: Update.
18295         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
18296
18297 2018-01-02  Florian Weimer  <fweimer@redhat.com>
18298
18299         * misc/tst-pselect.c: Add copyright header.
18300
18301 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
18302
18303         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18304         comment.
18305         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18306         comment.
18307         (settrlimit): Rename into setrlimit.
18308         (__sttrlimit): Rename into __setrlimit.
18309
18310         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18311         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18312         never defined in that case.
18313
18314 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
18315
18316         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18317
18318         * sysdeps/arm/libm-test-ulps: Update.
18319
18320         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18321         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18322
18323 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18324
18325         * NEWS: Add cosf and sincosf to list of optimized functions.
18326
18327 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
18328
18329         [BZ #22660]
18330         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18331         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18332         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18333         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18334
18335 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
18336
18337         [BZ #22433]
18338         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18339
18340         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18341         making a copy of it.
18342
18343 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
18344
18345         * manual/texinfo.tex: Update to version 2017-12-26.21 with
18346         trailing whitespace removed.
18347         * scripts/config.guess: Update to version 2018-01-01.
18348         * scripts/config.sub: Update to version 2018-01-01.
18349         * scripts/move-if-change: Update from gnulib.
18350
18351         * NEWS: Update copyright dates.
18352         * catgets/gencat.c (print_version): Likewise.
18353         * csu/version.c (banner): Likewise.
18354         * debug/catchsegv.sh: Likewise.
18355         * debug/pcprofiledump.c (print_version): Likewise.
18356         * debug/xtrace.sh (do_version): Likewise.
18357         * elf/ldconfig.c (print_version): Likewise.
18358         * elf/ldd.bash.in: Likewise.
18359         * elf/pldd.c (print_version): Likewise.
18360         * elf/sotruss.sh: Likewise.
18361         * elf/sprof.c (print_version): Likewise.
18362         * iconv/iconv_prog.c (print_version): Likewise.
18363         * iconv/iconvconfig.c (print_version): Likewise.
18364         * locale/programs/locale.c (print_version): Likewise.
18365         * locale/programs/localedef.c (print_version): Likewise.
18366         * login/programs/pt_chown.c (print_version): Likewise.
18367         * malloc/memusage.sh (do_version): Likewise.
18368         * malloc/memusagestat.c (print_version): Likewise.
18369         * malloc/mtrace.pl: Likewise.
18370         * manual/libc.texinfo: Likewise.
18371         * nptl/version.c (banner): Likewise.
18372         * nscd/nscd.c (print_version): Likewise.
18373         * nss/getent.c (print_version): Likewise.
18374         * nss/makedb.c (print_version): Likewise.
18375         * posix/getconf.c (main): Likewise.
18376         * scripts/test-installation.pl: Likewise.
18377         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18378
18379         * All files with FSF copyright notices: Update copyright dates
18380         using scripts/update-copyrights.
18381         * locale/programs/charmap-kw.h: Regenerated.
18382         * locale/programs/locfile-kw.h: Likewise.
18383
18384 2017-12-31  Zack Weinberg  <zackw@panix.com>
18385
18386         * libio/bits/libio-ldbl.h: Correct check for improper
18387         inclusion.  Add own multiple include guard.
18388
18389 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
18390             Dmitry V. Levin  <ldv@altlinux.org>
18391
18392         [BZ #22625]
18393         CVE-2017-16997
18394         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18395         string token expansion. Check for NULL pointer or empty string possibly
18396         returned by expand_dynamic_string_token.
18397         (decompose_rpath): Check for empty path after dynamic string
18398         token expansion.
18399
18400 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
18401
18402         [BZ #22433]
18403         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18404
18405         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18406         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18407         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
18408         and PTRACE_SYSCALL.
18409         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18410         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18411         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18412         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18413         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18414         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18415
18416         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18417         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18418         __ptrace_peeksiginfo_flags, ptrace): Move to ...
18419         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18420         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18421         bits/ptrace-shared.h.
18422         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18423         <bits/ptrace-shared.h>.
18424         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18425         __ptrace_peeksiginfo_flags, ptrace): Remove.
18426         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18427         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18428         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18429         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18430         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18431
18432 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
18433
18434         [BZ #17804]
18435         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18436         end of the loop. Improve comments.
18437
18438 2017-12-29  Zack Weinberg  <zackw@panix.com>
18439
18440         [BZ #22615]
18441         * manual/errno.texi (Checking for Errors): Explicitly say that errno
18442         might be set on success.
18443
18444 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
18445
18446         [BZ #22611]
18447         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18448         is unchanged on success.
18449
18450 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
18451
18452         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18453         updated.
18454         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18455         expand_dynamic_string_token): Likewise.
18456         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18457         is_path argument.
18458
18459         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18460         contains ':'.
18461
18462         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18463         is set and name contains ':', and all code depending on these checks.
18464
18465 2017-12-24  Zack Weinberg  <zackw@panix.com>
18466
18467         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18468         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18469         respectively.
18470         * libio/libio.h: Rename the original version of this file to
18471         libio/bits/libio.h.  Error out if not included by stdio.h or the
18472         stub libio.h.
18473         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
18474         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
18475         if not included by bits/libio.h or the stub _G_config.h.
18476         * sysdeps/unix/sysv/linux/_G_config.h: Move to
18477         sysdeps/unix/sysv/linux/bits.  Error out if not included by
18478         bits/libio.h or the stub _G_config.h.
18479         * libio/stdio.h: Include bits/libio.h, not libio.h.
18480         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18481         well as libio.h and _G_config.h.
18482
18483         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18484         * libio/strfile.h, stdio-common/vfscanf.c
18485         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18486         Include stdio.h, not _G_config.h nor libio.h.
18487         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18488         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18489
18490         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18491
18492 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
18493
18494         [BZ #22347]
18495         * stdlib/getrandom.c (getrandom): Fix comment.
18496         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18497
18498 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
18499
18500         [BZ #21161]
18501         * manual/arith.texi (strtoul): Fix a typo.
18502
18503         [BZ #22596]
18504         * manual/arith.texi (finite): Fix the description of the return
18505         value.
18506
18507 2017-12-22  Eric Blake  <ebb9@byu.net>
18508
18509         Avoid gcc warnings on cygwin
18510         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18511         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18512         Avoid unused variable.
18513
18514 2017-12-22  Florian Weimer  <fweimer@redhat.com>
18515
18516         * io/Makefile (routines): Add copy_file_range.
18517         (tests): Add tst-copy_file_range.
18518         (tests-static, tests-internal): Add tst-copy_file_range-compat.
18519         * io/Versions (GLIBC_2.27): Export copy_file_range.
18520         * io/copy_file_range-compat.c: New file.
18521         * io/copy_file_range.c: Likewise.
18522         * io/tst-copy_file_range-compat.c: Likewise.
18523         * io/tst-copy_file_range.c: Likewise.
18524         * manual/llio.texi (Copying File Data): New section.
18525         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18526         * support/Makefile (libsupport-routines): Add support-xfstat,
18527         xftruncate, xlseek.
18528         * support/support-xfstat.c: New file.
18529         * support/xftruncate.c: Likewise.
18530         * support/xlseek.c: Likewise.
18531         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18532         * sysdeps/unix/sysv/linux/**.abilist: Update.
18533         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18534
18535 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18536
18537         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18538         disable-multi-arch variant to aarch64-linux-gnu.
18539
18540 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
18541
18542         * manual/texinfo.tex: Update to version 2017-12-18.20 with
18543         trailing whitespace removed.
18544         * scripts/config.guess: Update to version 2017-12-17.
18545         * scripts/config.sub: Update to version 2017-11-23.
18546         * scripts/install-sh: Update to version 2017-09-23.17.
18547         * scripts/move-if-change: Update to version 2017-09-13 06:45.
18548
18549 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18550
18551         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18552         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18553         * sysdeps/tile/_mcount.S (__mcount): Likewise.
18554         * sysdeps/tile/crti.S (_init, _fini): Likewise.
18555         * sysdeps/tile/crtn.S: Likewise.
18556         * sysdeps/tile/dl-start.S (_start): Likewise.
18557         * sysdeps/tile/dl-trampoline.S: Likewise.
18558         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18559         * sysdeps/tile/start.S (_start): Likewise.
18560         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18561         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18562         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18563         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18564         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18565         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18566         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18567
18568         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18569         comment.
18570         * sysdeps/tile/preconfigure: Remove tilegx folder.
18571         * sysdeps/tile/tilegx/Implies: Move definitions to ...
18572         * sysdeps/tile/Implies: ... here.
18573         * sysdeps/tile/tilegx/Makefile: Move rules to ...
18574         * sysdeps/tile/Makefile: ... here.
18575         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18576         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
18577         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18578         * sysdeps/tile/bits/wordsize.h: ... here.
18579         * sysdeps/tile/tilegx/*: Move to ...
18580         * sysdeps/tile/*: ... here.
18581         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18582         * sysdeps/tile/tilegx32/Implies: ... here.
18583         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18584         * sysdeps/tile/tilegx64/Implies: ... here.
18585         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18586         to ...
18587         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18588         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18589         * sysdeps/unix/sysv/linux/tile/*: ... here.
18590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18591         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18593         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18594
18595         * README: Remove tilepro-*-linux-gnu from supported architecture.
18596         * scripts/build-many-glibcs.py: Likewise.
18597         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18598         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18599         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18600         elf_machine_matches_host, elf_machine_dynamic,
18601         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18602         howto, elf_machine_rela): Likewise.
18603         * sysdeps/tile/dl-start.S (_start): Likewise.
18604         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18605         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18606         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18607         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18608         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18609         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18610         Likewise.
18611         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18612         * sysdeps/tile/preconfigure: Likewise.
18613         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18614         POINTER_CHK_GUARD): Likewise.
18615         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18616         * sysdeps/tile/start.S (_start): Likewise.
18617         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18618         Likewise.
18619         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18620         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18621         CMOVNEZ): Remove.
18622         * sysdeps/unix/sysv/linux/tile/bits/environments.h
18623         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18624         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18625         Likewise.
18626         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18627         * sysdeps/tile/tilepro/Implies: Remove file.
18628         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18629         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18630         * sysdeps/tile/tilepro/memchr.c: Likewise.
18631         * sysdeps/tile/tilepro/memcpy.S: Likewise.
18632         * sysdeps/tile/tilepro/memset.c: Likewise.
18633         * sysdeps/tile/tilepro/memusage.h: Likewise.
18634         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18635         * sysdeps/tile/tilepro/strchr.c: Likewise.
18636         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18637         * sysdeps/tile/tilepro/strlen.c: Likewise.
18638         * sysdeps/tile/tilepro/strrchr.c: Likewise.
18639         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18640         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18641         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18642         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18643         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18644         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18645         Likewise.
18646         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18647         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18648         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18649         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18650         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18651         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18652         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18653         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18654         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18655         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18656         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18657         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18658         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18659         tilepro mention in comment.
18660
18661         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18662         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18663         * nptl/pthread_join_common.c: New file: common function used on
18664         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18665         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18666         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18667         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18668         (cleanup): Move definition to pthread_join_common.c.
18669         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18670         Remove superflous checks.
18671         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18672         Likewise.
18673
18674 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18675
18676         * sysdeps/aarch64/libm-test-ulps: Update.
18677
18678 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18679
18680         * sysdeps/aarch64/memset.S (MEMSET): Define.
18681
18682 2017-12-20  Florian Weimer  <fweimer@redhat.com>
18683
18684         [BZ #22635]
18685         nptl: Provide full implementation of pthread_self in libc.so.
18686         * nptl/Makefile (routines): Add pthread_self.
18687         (libpthread-routines): Replace pthread_self with
18688         compat-pthread_self.
18689         * nptl/forward.c (pthread_self): Remove.
18690         * nptl/nptl-init.c (pthread_functions): Do not initialize
18691         ptr_pthread_self.
18692         * nptl/pthread_self.c (pthread_self): Remove weak alias.
18693         * nptl/compat-pthread_self.c: New file.
18694         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18695         Remove ptr_pthread_self.
18696
18697 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
18698
18699         * posix/regcomp.c: Fix spelling in comments.
18700         * posix/regex.h: Likewise.
18701         * posix/regex_internal.c: Likewise.
18702         * posix/regexec.c: Likewise.
18703
18704 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
18705
18706         [BZ #22377]
18707         * math/Makefile [C++] (tests): Add test for iseqsig.
18708         * math/math.h [C++] (iseqsig): New implementation, which does
18709         not rely on __MATH_TG/__builtin_types_compatible_p.
18710         * math/test-math-iseqsig.cc: New file.
18711         * sysdeps/powerpc/powerpc64le/Makefile
18712         (CFLAGS-test-math-iseqsig.cc): New variable.
18713
18714 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
18715
18716         * elf/dl-load.c (is_trusted_path): Remove.
18717         (fillin_rpath): Remove check_trusted argument and its use,
18718         all callers changed.
18719
18720 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18721
18722         [BZ #22630]
18723         * Makeconfig (link-pie-before-libc): Replace -pie with
18724         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18725         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18726         (tst-dlopen-aout-no-pie): New.
18727         (LDFLAGS-tst-prelink): Removed.
18728         (tst-prelink-no-pie): New.
18729         (LDFLAGS-tst-main1): Removed.
18730         (tst-main1-no-pie): New.
18731         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18732         (tst-gmon-no-pie): New.
18733
18734 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18735
18736         * manual/install.texi: Document that --enable-static-pie
18737         implies PIE.
18738         * INSTALL: Regenerated.
18739
18740 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18741
18742         [BZ #21309]
18743         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18744         unsigned.
18745
18746 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18747
18748         Revert:
18749
18750         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18751
18752         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18753
18754         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
18755
18756         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18757         <errno.h>.  Include "eexp.tbl".
18758         (half): New constant.
18759         (one): Likewise.
18760         (__ieee754_exp): Rewrite.
18761         (__slowexp): Remove prototype.
18762         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18763         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18764         * sysdeps/i386/fpu/slowexp.c: Likewise.
18765         * sysdeps/ia64/fpu/slowexp.c: Likewise.
18766         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18767         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18768         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18769         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18770         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18771         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18772         comment.
18773         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18774         (CPPFLAGS-slowexp.c): Remove variable.
18775         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18776         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18777         (CFLAGS-slowexp-fma.c): Remove variable.
18778         (CFLAGS-slowexp-fma4.c): Likewise.
18779         (CFLAGS-slowexp-avx.c): Likewise.
18780         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18781         define as macro.
18782         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18783         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18784         * math/Makefile (type-double-routines): Remove slowexp.
18785         * manual/probes.texi (slowexp_p6): Remove.
18786         (slowexp_p32): Likewise.
18787
18788 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18789
18790         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18791         arithmetic.
18792
18793         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18794
18795 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18796
18797         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18798
18799 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
18800
18801         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18802         <errno.h>.  Include "eexp.tbl".
18803         (half): New constant.
18804         (one): Likewise.
18805         (__ieee754_exp): Rewrite.
18806         (__slowexp): Remove prototype.
18807         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18808         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18809         * sysdeps/i386/fpu/slowexp.c: Likewise.
18810         * sysdeps/ia64/fpu/slowexp.c: Likewise.
18811         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18812         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18813         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18814         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18815         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18816         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18817         comment.
18818         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18819         (CPPFLAGS-slowexp.c): Remove variable.
18820         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18821         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18822         (CFLAGS-slowexp-fma.c): Remove variable.
18823         (CFLAGS-slowexp-fma4.c): Likewise.
18824         (CFLAGS-slowexp-avx.c): Likewise.
18825         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18826         define as macro.
18827         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18828         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18829         * math/Makefile (type-double-routines): Remove slowexp.
18830         * manual/probes.texi (slowexp_p6): Remove.
18831         (slowexp_p32): Likewise.
18832
18833 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18834             James Clarke <jrtc27@jrtc27.com>
18835
18836         [BZ #22603]
18837         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18838         addition.
18839
18840 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18841
18842         [BZ #22605]
18843         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18844         code.
18845
18846 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18847
18848         [BZ #22563]
18849         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18850         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18851         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18852         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18853         to feature_1.
18854
18855 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
18856
18857         [BZ #22563]
18858         * bits/types/__cancel_jmp_buf_tag.h: New file.
18859         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18860         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18861         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18862         * nptl/Makefile (headers): Add
18863         bits/types/__cancel_jmp_buf_tag.h.
18864         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18865         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18866         * sysdeps/nptl/pthread.h: Include
18867         <bits/types/__cancel_jmp_buf_tag.h>.
18868         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18869         __cancel_jmp_buf.
18870         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18871
18872 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
18873
18874         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18875         --enable-static-pie variants to x86_64, x32 and i686.
18876
18877 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
18878
18879         [BZ #22631]
18880         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18881         argument for attrubutes.  All callers changed.
18882         (__inline_mathop1): Likewise.  All callers changed.
18883         (__inline_mathop): Likewise.  All callers changed.
18884         [__USE_MISC] (scalbn): Use __inline_forward instead of
18885         __inline_forward_c.
18886         [__USE_ISOC99] (scalbln): Likewise.
18887         [__USE_ISOC99] (nearbyint): Likewise.
18888         [__USE_ISOC99] (lrint): Likewise.
18889         [__USE_MISC] (scalbnf): Likewise.
18890         [__USE_ISOC99] (scalblnf): Likewise.
18891         [__USE_ISOC99] (nearbyintf): Likewise.
18892         [__USE_ISOC99] (lrintf): Likewise.
18893         [__USE_MISC] (scalbnl): Likewise.
18894         [__USE_ISOC99] (scalblnl): Likewise.
18895         [__USE_ISOC99] (nearbyintl): Likewise.
18896         [__USE_ISOC99] (lrintl): Likewise.
18897         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18898         __inline_mathop and __m81_defun changed.
18899
18900         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18901         CPU or FPU for ARM hard-float configurations.
18902
18903 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
18904
18905         * nptl/tst-attr3.c: Include <libc-diag.h>.
18906         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18907
18908         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18909
18910         * string/tester.c (test_strncat): Also disable -Warray-bounds
18911         warnings for two tests.
18912
18913 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
18914
18915         [BZ #22614]
18916         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18917         $(cc-pie-default) == yes.
18918         * config.make.in (cc-pie-default): New.
18919         * configure.ac (libc_cv_pie_default): Renamed to ...
18920         (libc_cv_cc_pie_default): This.
18921         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18922         * configure: Regenerated.
18923
18924 2017-12-18  Florian Weimer  <fweimer@redhat.com>
18925
18926         [BZ #20204]
18927         ld.so: Harden dl-libc/libdl hooks.
18928         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18929         (rtld_active): New function.
18930         * dlfcn/dladdr.c (__dladdr): Call it.
18931         * dlfcn/dladdr1.c (__dladdr1): Likewise.
18932         * dlfcn/dlclose.c (__dlcose): Likewise.
18933         * dlfcn/dlerror.c (__dlerror): Likewise.
18934         * dlfcn/dlinfo.c (__dlinfo): Likewise.
18935         * dlfcn/dlmopen.c (__dlmopen): Likewise.
18936         * dlfcn/dlopen.c (__dlopen): Likewise.
18937         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18938         * dlfcn/dlsym.c (__dlsym): Likewise.
18939         * dlfcn/dlvsym.c (__dlvsym): Likewise.
18940         * libio/vtables.c (_IO_vtable_check): Likewise.
18941         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18942         (__libc_dlclose): Likewise.
18943         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18944         assignment.
18945
18946 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
18947
18948         [BZ #22446]
18949         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18950         buffers for readlink input and output.
18951
18952 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
18953
18954         [BZ #22624]
18955         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18956         inhibit_stack_protector.
18957
18958         [BZ #22624]
18959         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18960         inhibit_stack_protector.
18961
18962 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
18963
18964         [BZ #22627]
18965         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18966         code and invocation.
18967
18968 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18969
18970         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18971
18972 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
18973
18974         [BZ #22505]
18975         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18976
18977 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18978
18979         * sysdeps/s390/fpu/libm-test-ulps: Update.
18980
18981 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18982
18983         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18984
18985 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18986
18987         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18988         constants to s_sincosf.h file.
18989         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18990         * sysdeps/ieee754/flt-32/s_sincosf.c: New
18991         implementation.
18992         * sysdeps/ieee754/flt-32/s_sincosf.h:
18993         New file.
18994
18995 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
18996
18997         [BZ #14681]
18998         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18999         before mtrace.
19000
19001 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19002
19003         [BZ #19574]
19004         * INSTALL: Regenerated.
19005         * Makeconfig (real-static-start-installed-name): New.
19006         (pic-default): Updated for --enable-static-pie.
19007         (pie-default): New for --enable-static-pie.
19008         (default-pie-ldflag): Likewise.
19009         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
19010         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
19011         Replace $(static-start-installed-name) with
19012         $(real-static-start-installed-name).
19013         (+prectorT): Updated for --enable-static-pie.
19014         (+postctorT): Likewise.
19015         (CFLAGS-.o): Add $(pie-default).
19016         (CFLAGS-.op): Likewise.
19017         * NEWS: Mention --enable-static-pie.
19018         * config.h.in (ENABLE_STATIC_PIE): New.
19019         * configure.ac (--enable-static-pie): New configure option.
19020         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
19021         (have-static-pie): Likewise.
19022         Enable static PIE if linker supports --no-dynamic-linker.
19023         (ENABLE_STATIC_PIE): New AC_DEFINE.
19024         (enable-static-pie): New LIBC_CONFIG_VAR.
19025         * configure: Regenerated.
19026         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
19027         gr$(start-installed-name) for --enable-static-pie.
19028         (extra-objs): Likewise.
19029         (install-lib): Likewise.
19030         (extra-objs): Add static-reloc.o and static-reloc.os
19031         ($(objpfx)$(start-installed-name)): Also depend on
19032         $(objpfx)static-reloc.o.
19033         ($(objpfx)r$(start-installed-name)): New.
19034         ($(objpfx)g$(start-installed-name)): Also depend on
19035         $(objpfx)static-reloc.os.
19036         ($(objpfx)gr$(start-installed-name)): New.
19037         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
19038         in libc.a.
19039         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
19040         initimage.
19041         * csu/static-reloc.c: New file.
19042         * elf/Makefile (routines): Add dl-reloc-static-pie.
19043         (elide-routines.os): Likewise.
19044         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
19045         (tst-tls1-static-non-pie-no-pie): New.
19046         * elf/dl-reloc-static-pie.c: New file.
19047         * elf/dl-support.c (_dl_get_dl_main_map): New function.
19048         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
19049         STATIC_PIE_BOOTSTRAP.
19050         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
19051         * gmon/Makefile (tests): Add tst-gmon-static-pie.
19052         (tests-static): Likewise.
19053         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
19054         (tst-gmon-static-no-pie): New.
19055         (CFLAGS-tst-gmon-static-pie.c): Likewise.
19056         (CRT-tst-gmon-static-pie): Likewise.
19057         (tst-gmon-static-pie-ENV): Likewise.
19058         (tests-special): Likewise.
19059         ($(objpfx)tst-gmon-static-pie.out): Likewise.
19060         (clean-tst-gmon-static-pie-data): Likewise.
19061         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
19062         * gmon/tst-gmon-static-pie.c: New file.
19063         * manual/install.texi: Document --enable-static-pie.
19064         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
19065         (_dl_get_dl_main_map): Likewise.
19066         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
19067         * sysdeps/x86_64/configure.ac: Likewise.
19068         * sysdeps/i386/configure: Regenerated.
19069         * sysdeps/x86_64/configure: Likewise.
19070         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
19071         (ASFLAGS-.op): Likewise.
19072
19073 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
19074
19075         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
19076         * posix/tst-mmap-offset.c (fname): Use /tmp.
19077         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
19078
19079 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
19080
19081         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
19082
19083 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
19084
19085         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
19086         errno.
19087
19088 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
19089
19090         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19091         --with-float=hard for arm-linux-gnueabihf configurations.
19092
19093         [BZ #14121]
19094         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
19095         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
19096         ($(mo-installed)): Use $(objpfx)%.mo.
19097         (realclean): Remove rule.
19098
19099         * po/Makefile (linguas): Remove rule and dependencies.
19100         (linguas.mo): Likewise.
19101         (.PHONY): Do not depend on linguas and linguas.mo.
19102         (podir): Remove variable.
19103         (pofiles): Likewise.
19104         [$(pofiles)] (%.po): Remove rule.
19105
19106         * sysdeps/sparc/sparc32/Makefile
19107         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
19108         start-of-line whitespace in argument of echo.
19109         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
19110         with whitespace.  Generate __wrap_.udiv alias.
19111         * sysdeps/sparc/sparc32/rem.S: Regenerated.
19112         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
19113         * sysdeps/sparc/sparc32/udiv.S: Likewise.
19114         * sysdeps/sparc/sparc32/urem.S: Likewise.
19115
19116 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19117
19118         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
19119         for aligned inputs.
19120
19121 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19122
19123         * benchtests/bench-strcmp.c: Print output in JSON format.
19124
19125         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
19126
19127 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19128
19129         [BZ #22607]
19130         CVE-2017-1000409
19131         * elf/dl-load.c (_dl_init_paths): Compute number of components in
19132         the expanded path string.
19133
19134 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19135
19136         [BZ #22606]
19137         CVE-2017-1000408
19138         * elf/dl-load.c (system_dirs): Update comment.
19139         (nsystem_dirs_len): Use array_length.
19140         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
19141
19142 2017-12-14  Florian Weimer  <fweimer@redhat.com>
19143
19144         Simplify compiling most of support/ outside of glibc.
19145         * support/check_addrinfo.c: Include <string.h>.
19146         * support/check_dns_packet.c: Likewise.
19147         * support/check_hostent.c: Likewise.
19148         * support/support_can_chroot.c: Include <support/xunistd.h>.
19149         * support/support_format_addrinfo.c: Include <stdlib.h>
19150         * support/support_format_dns_packet.c: Include <stdbool.h>.
19151         * support/support_format_hostent.c: Include <stdlib.h>.
19152         * support/support_format_netent.c: Likewise.
19153         * support/support_write_string.c: Include <support/xunistd.h>.
19154         * support/xdlfcn.c: Include <stddef.h>.
19155
19156 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
19157
19158         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
19159
19160 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
19161             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19162
19163         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19164         (sysdeps_routines): Add memset-niagara7.
19165         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
19166         Likewise.
19167         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
19168         file.
19169         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
19170         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19171         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
19172         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
19173         Add niagara7 option.
19174         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
19175         memset.
19176
19177         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
19178         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
19179         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
19180         Likewise.
19181         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
19182         New file.
19183         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
19184         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
19185         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
19186         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
19187         and __memmove_niagara7.
19188         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
19189         Add niagara7 option.
19190         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
19191         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
19192         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
19193         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
19194         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
19195
19196 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
19197
19198         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
19199         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
19200         * sysdeps/sparc/sparc64/memmove.S: Likewise.
19201         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
19202
19203         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
19204         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
19205         _dl_sparc_cap_flags array.
19206         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
19207
19208 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19209
19210         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
19211         time whenever possible.
19212
19213 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
19214
19215         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
19216         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
19217
19218 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
19219
19220         * soft-fp/fmadf4.c: Move to ....
19221         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
19222         * soft-fp/fmasf4.c: Move to ....
19223         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
19224         * soft-fp/fmatf4.c: Move to ....
19225         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
19226         * sysdeps/ieee754/soft-fp/Makefile: New file.
19227         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
19228         * sysdeps/arm/preconfigure: Regenerated.
19229         * sysdeps/arm/nofpu/Implies: New file.
19230         * sysdeps/arm/s_fma.c: Remove file.
19231         * sysdeps/arm/s_fmaf.c: Likewise.
19232         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
19233         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
19234         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
19235         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
19236         * sysdeps/microblaze/s_fma.c: Remove file.
19237         * sysdeps/microblaze/s_fmaf.c: Likewise.
19238         * sysdeps/mips/mips32/nofpu/Implies: New file.
19239         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
19240         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
19241         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
19242         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
19243         * sysdeps/mips/ieee754/s_fma.c: Remove file.
19244         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
19245         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
19246         implementation.
19247         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
19248         * sysdeps/nios2/s_fma.c: Remove file.
19249         * sysdeps/nios2/s_fmaf.c: Likewise.
19250         * sysdeps/sh/nofpu/Implies: New file.
19251         * sysdeps/sh/s_fma.c: Remove file.
19252         * sysdeps/sh/s_fmaf.c: Likewise.
19253         * sysdeps/tile/Implies: Add ieee754/soft-fp.
19254         * sysdeps/tile/s_fma.c: Remove file.
19255         * sysdeps/tile/s_fmaf.c: Likewise.
19256
19257 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
19258
19259         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19260         Add s_cosf-sse2 and s_cosf-fma.
19261         (CFLAGS-s_cosf-fma.c): New.
19262         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
19263         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
19264         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
19265
19266 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
19267
19268         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
19269
19270 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19271
19272         * libio/Makefile (tests): Add tst-bz22415.
19273         (tst-bz22415-ENV): New rule.
19274         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
19275         (tests-special): Add tst-bz22415-mem.out.
19276         ($(objpfx)tst-bz22415-mem.out): New rule.
19277         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
19278         in case of a successful seek operation.
19279         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
19280         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
19281         buffer is required.
19282         * libio/tst-bz22415.c: New test.
19283
19284         * sysdeps/ia64/fpu/libm-test-ulps: Update.
19285
19286 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
19287
19288         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
19289         __IPC_64 to 0 to avoid IPC_64 being set.
19290
19291 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19292
19293         [BZ #22593]
19294         * math/bits/mathcalls.h (nextafter): Remove const.
19295         (nexttoward): Likewise.
19296
19297 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
19298
19299         * configure.ac (--with-fp): Remove configure option.
19300         (with_fp_cond): New variable.
19301         (libc_cv_with_fp): New configure test.  Use this variable instead
19302         of with_fp.
19303         * configure: Regenerated.
19304         * config.make.in (with-fp): Use @libc_cv_with_fp@.
19305         * manual/install.texi (Configuring and compiling): Remove
19306         --without-fp.
19307         * INSTALL: Regenerated.
19308         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19309         * sysdeps/mips/preconfigure (with_fp_cond): Define.
19310         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19311         * sysdeps/sh/preconfigure (with_fp_cond): Define.
19312         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19313         use --without-fp to configure glibc.
19314
19315 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
19316
19317         * manual/locale.texi (nl_langinfo): Fix a typo.
19318
19319 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
19320
19321         [BZ #22588]
19322         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19323
19324 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
19325
19326         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19327         (CFLAGS-argp-parse.c): Likewise.
19328         (CFLAGS-argp-fmtstream.c): Likewise.
19329         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19330         (CPPFLAGS-sha512-crypt.c): Likewise.
19331         (CPPFLAGS-md5-crypt.c): Likewise.
19332         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19333         (CFLAGS-stack_chk_fail_local.c): Likewise.
19334         (CFLAGS-backtrace.c): Likewise.
19335         (CFLAGS-sprintf_chk.c): Likewise.
19336         (CFLAGS-snprintf_chk.c): Likewise.
19337         (CFLAGS-vsprintf_chk.c): Likewise.
19338         (CFLAGS-vsnprintf_chk.c): Likewise.
19339         (CFLAGS-asprintf_chk.c): Likewise.
19340         (CFLAGS-vasprintf_chk.c): Likewise.
19341         (CFLAGS-obprintf_chk.c): Likewise.
19342         (CFLAGS-dprintf_chk.c): Likewise.
19343         (CFLAGS-vdprintf_chk.c): Likewise.
19344         (CFLAGS-printf_chk.c): Likewise.
19345         (CFLAGS-fprintf_chk.c): Likewise.
19346         (CFLAGS-vprintf_chk.c): Likewise.
19347         (CFLAGS-vfprintf_chk.c): Likewise.
19348         (CFLAGS-gets_chk.c): Likewise.
19349         (CFLAGS-fgets_chk.c): Likewise.
19350         (CFLAGS-fgets_u_chk.c): Likewise.
19351         (CFLAGS-fread_chk.c): Likewise.
19352         (CFLAGS-fread_u_chk.c): Likewise.
19353         (CFLAGS-swprintf_chk.c): Likewise.
19354         (CFLAGS-vswprintf_chk.c): Likewise.
19355         (CFLAGS-wprintf_chk.c): Likewise.
19356         (CFLAGS-fwprintf_chk.c): Likewise.
19357         (CFLAGS-vwprintf_chk.c): Likewise.
19358         (CFLAGS-vfwprintf_chk.c): Likewise.
19359         (CFLAGS-fgetws_chk.c): Likewise.
19360         (CFLAGS-fgetws_u_chk.c): Likewise.
19361         (CFLAGS-read_chk.c): Likewise.
19362         (CFLAGS-pread_chk.c): Likewise.
19363         (CFLAGS-pread64_chk.c): Likewise.
19364         (CFLAGS-recv_chk.c): Likewise.
19365         (CFLAGS-recvfrom_chk.c): Likewise.
19366         (CFLAGS-tst-longjmp_chk.c): Likewise.
19367         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19368         (CFLAGS-tst-longjmp_chk2.c): Likewise.
19369         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19370         (CFLAGS-tst-longjmp_chk3.c): Likewise.
19371         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19372         (CFLAGS-tst-chk1.c): Likewise.
19373         (CFLAGS-tst-chk2.c): Likewise.
19374         (CFLAGS-tst-chk3.c): Likewise.
19375         (CFLAGS-tst-chk4.cc): Likewise.
19376         (CFLAGS-tst-chk5.cc): Likewise.
19377         (CFLAGS-tst-chk6.cc): Likewise.
19378         (CFLAGS-tst-lfschk1.c): Likewise.
19379         (CFLAGS-tst-lfschk2.c): Likewise.
19380         (CFLAGS-tst-lfschk3.c): Likewise.
19381         (CFLAGS-tst-lfschk4.cc): Likewise.
19382         (CFLAGS-tst-lfschk5.cc): Likewise.
19383         (CFLAGS-tst-lfschk6.cc): Likewise.
19384         (CFLAGS-tst-ssp-1.c): Likewise.
19385         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19386         (CFLAGS-scandir64.c): Likewise.
19387         (CFLAGS-scandir-tail.c): Likewise.
19388         (CFLAGS-scandir64-tail.c): Likewise.
19389         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19390         (CFLAGS-dl-tunables.c): Likewise.
19391         (CFLAGS-dl-runtime.c): Likewise.
19392         (CFLAGS-dl-lookup.c): Likewise.
19393         (CFLAGS-dl-iterate-phdr.c): Likewise.
19394         (CFLAGS-vismain.c): Likewise.
19395         (CFLAGS-tst-linkall-static.c): Likewise.
19396         (CFLAGS-tst-linkall-static.c): Likewise.
19397         (CPPFLAGS-dl-load.c): Likewise.
19398         (CFLAGS-ldconfig.c): Likewise.
19399         (CFLAGS-dl-cache.c): Likewise.
19400         (CFLAGS-cache.c): Likewise.
19401         (CFLAGS-rtld.c): Likewise.
19402         (CFLAGS-multiload.c): Likewise.
19403         (CFLAGS-filtmod1.c): Likewise.
19404         (CFLAGS-tst-align.c): Likewise.
19405         (CFLAGS-tst-align2.c): Likewise.
19406         (CFLAGS-tst-alignmod.c): Likewise.
19407         (CFLAGS-tst-alignmod2.c): Likewise.
19408         (CPPFLAGS-tst-execstack.c): Likewise.
19409         (CFLAGS-tst-ptrguard1-static.c): Likewise.
19410         (CFLAGS-tst-latepthreadmod.c): Likewise.
19411         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19412         (CFLAGS-getgrnam_r.c): Likewise.
19413         (CFLAGS-getgrent_r.c): Likewise.
19414         (CFLAGS-getgrent.c): Likewise.
19415         (CFLAGS-fgetgrent.c): Likewise.
19416         (CFLAGS-fgetgrent_r.c): Likewise.
19417         (CFLAGS-putgrent.c): Likewise.
19418         (CFLAGS-initgroups.c): Likewise.
19419         (CFLAGS-getgrgid.c): Likewise.
19420         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19421         (CFLAGS-getsgent.c): Likewise.
19422         (CFLAGS-fgetsgent.c): Likewise.
19423         (CFLAGS-fgetsgent_r.c): Likewise.
19424         (CFLAGS-putsgent.c): Likewise.
19425         (CFLAGS-getsgnam.c): Likewise.
19426         (CFLAGS-getsgnam_r.c): Likewise.
19427         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19428         (CFLAGS-iconv_charmap.c): Likewise.
19429         (CFLAGS-dummy-repertoire.c): Likewise.
19430         (CFLAGS-charmap.c): Likewise.
19431         (CFLAGS-linereader.c): Likewise.
19432         (CFLAGS-simple-hash.c): Likewise.
19433         (CFLAGS-gconv_conf.c): Likewise.
19434         (CFLAGS-iconvconfig.c): Likewise.
19435         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19436         (CFLAGS-gethstbyad.c): Likewise.
19437         (CFLAGS-gethstbynm_r.c): Likewise.
19438         (CFLAGS-gethstbynm.c): Likewise.
19439         (CFLAGS-gethstbynm2_r.c): Likewise.
19440         (CFLAGS-gethstbynm2.c): Likewise.
19441         (CFLAGS-gethstent_r.c): Likewise.
19442         (CFLAGS-gethstent.c): Likewise.
19443         (CFLAGS-rcmd.c): Likewise.
19444         (CFLAGS-getnetbynm_r.c): Likewise.
19445         (CFLAGS-getnetbynm.c): Likewise.
19446         (CFLAGS-getnetbyad_r.c): Likewise.
19447         (CFLAGS-getnetbyad.c): Likewise.
19448         (CFLAGS-getnetent_r.c): Likewise.
19449         (CFLAGS-getnetent.c): Likewise.
19450         (CFLAGS-getaliasent_r.c): Likewise.
19451         (CFLAGS-getaliasent.c): Likewise.
19452         (CFLAGS-getrpcent_r.c): Likewise.
19453         (CFLAGS-getrpcent.c): Likewise.
19454         (CFLAGS-getservent_r.c): Likewise.
19455         (CFLAGS-getservent.c): Likewise.
19456         (CFLAGS-getprtent_r.c): Likewise.
19457         (CFLAGS-getprtent.c): Likewise.
19458         (CFLAGS-either_ntoh.c): Likewise.
19459         (CFLAGS-either_hton.c): Likewise.
19460         (CFLAGS-getnetgrent.c): Likewise.
19461         (CFLAGS-getnetgrent_r.c): Likewise.
19462         (CFLAGS-tst-checks-posix.c): Likewise.
19463         (CFLAGS-tst-sockaddr.c): Likewise.
19464         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19465         (CFLAGS-tst-translit.c): Likewise.
19466         (CFLAGS-tst-gettext2.c): Likewise.
19467         (CFLAGS-tst-codeset.c): Likewise.
19468         (CFLAGS-tst-gettext3.c): Likewise.
19469         (CFLAGS-tst-gettext4.c): Likewise.
19470         (CFLAGS-tst-gettext5.c): Likewise.
19471         (CFLAGS-tst-gettext6.c): Likewise.
19472         * io/Makefile (CFLAGS-open.c): Likewise.
19473         (CFLAGS-open64.c): Likewise.
19474         (CFLAGS-creat.c): Likewise.
19475         (CFLAGS-creat64.c): Likewise.
19476         (CFLAGS-fcntl.c): Likewise.
19477         (CFLAGS-poll.c): Likewise.
19478         (CFLAGS-ppoll.c): Likewise.
19479         (CFLAGS-lockf.c): Likewise.
19480         (CFLAGS-statfs.c): Likewise.
19481         (CFLAGS-fstatfs.c): Likewise.
19482         (CFLAGS-statvfs.c): Likewise.
19483         (CFLAGS-fstatvfs.c): Likewise.
19484         (CFLAGS-fts.c): Likewise.
19485         (CFLAGS-fts64.c): Likewise.
19486         (CFLAGS-ftw.c): Likewise.
19487         (CFLAGS-ftw64.c): Likewise.
19488         (CFLAGS-lockf.c): Likewise.
19489         (CFLAGS-posix_fallocate.c): Likewise.
19490         (CFLAGS-posix_fallocate64.c): Likewise.
19491         (CFLAGS-fallocate.c): Likewise.
19492         (CFLAGS-fallocate64.c): Likewise.
19493         (CFLAGS-read.c): Likewise.
19494         (CFLAGS-write.c): Likewise.
19495         (CFLAGS-test-stat.c): Likewise.
19496         (CFLAGS-test-lfs.c): Likewise.
19497         * libio/Makefile (CFLAGS-fileops.c): Likewise.
19498         (CFLAGS-fputc.c): Likewise.
19499         (CFLAGS-fputwc.c): Likewise.
19500         (CFLAGS-freopen64.c): Likewise.
19501         (CFLAGS-freopen.c): Likewise.
19502         (CFLAGS-fseek.c): Likewise.
19503         (CFLAGS-fseeko64.c): Likewise.
19504         (CFLAGS-fseeko.c): Likewise.
19505         (CFLAGS-ftello64.c): Likewise.
19506         (CFLAGS-ftello.c): Likewise.
19507         (CFLAGS-fwide.c): Likewise.
19508         (CFLAGS-genops.c): Likewise.
19509         (CFLAGS-getc.c): Likewise.
19510         (CFLAGS-getchar.c): Likewise.
19511         (CFLAGS-getwc.c): Likewise.
19512         (CFLAGS-getwchar.c): Likewise.
19513         (CFLAGS-iofclose.c): Likewise.
19514         (CFLAGS-iofflush.c): Likewise.
19515         (CFLAGS-iofgetpos64.c): Likewise.
19516         (CFLAGS-iofgetpos.c): Likewise.
19517         (CFLAGS-iofgets.c): Likewise.
19518         (CFLAGS-iofgetws.c): Likewise.
19519         (CFLAGS-iofputs.c): Likewise.
19520         (CFLAGS-iofputws.c): Likewise.
19521         (CFLAGS-iofread.c): Likewise.
19522         (CFLAGS-iofsetpos64.c): Likewise.
19523         (CFLAGS-iofsetpos.c): Likewise.
19524         (CFLAGS-ioftell.c): Likewise.
19525         (CFLAGS-iofwrite.c): Likewise.
19526         (CFLAGS-iogetdelim.c): Likewise.
19527         (CFLAGS-iogetline.c): Likewise.
19528         (CFLAGS-iogets.c): Likewise.
19529         (CFLAGS-iogetwline.c): Likewise.
19530         (CFLAGS-ioputs.c): Likewise.
19531         (CFLAGS-ioseekoff.c): Likewise.
19532         (CFLAGS-ioseekpos.c): Likewise.
19533         (CFLAGS-iosetbuffer.c): Likewise.
19534         (CFLAGS-iosetvbuf.c): Likewise.
19535         (CFLAGS-ioungetc.c): Likewise.
19536         (CFLAGS-ioungetwc.c): Likewise.
19537         (CFLAGS-oldfileops.c): Likewise.
19538         (CFLAGS-oldiofclose.c): Likewise.
19539         (CFLAGS-oldiofgetpos64.c): Likewise.
19540         (CFLAGS-oldiofgetpos.c): Likewise.
19541         (CFLAGS-oldiofsetpos64.c): Likewise.
19542         (CFLAGS-oldiofsetpos.c): Likewise.
19543         (CFLAGS-peekc.c): Likewise.
19544         (CFLAGS-putc.c): Likewise.
19545         (CFLAGS-putchar.c): Likewise.
19546         (CFLAGS-putwc.c): Likewise.
19547         (CFLAGS-putwchar.c): Likewise.
19548         (CFLAGS-rewind.c): Likewise.
19549         (CFLAGS-wfileops.c): Likewise.
19550         (CFLAGS-wgenops.c): Likewise.
19551         (CFLAGS-oldiofopen.c): Likewise.
19552         (CFLAGS-iofopen.c): Likewise.
19553         (CFLAGS-iofopen64.c): Likewise.
19554         (CFLAGS-oldtmpfile.c): Likewise.
19555         (CFLAGS-tst_putwc.c): Likewise.
19556         * locale/Makefile (CFLAGS-md5.c): Likewise.
19557         (CFLAGS-charmap.c): Likewise.
19558         (CFLAGS-locfile.c): Likewise.
19559         (CFLAGS-charmap-dir.c): Likewise.
19560         * login/Makefile (CFLAGS-grantpt.c): Likewise.
19561         (CFLAGS-getpt.c): Likewise.
19562         (CFLAGS-pt_chown.c): Likewise.
19563         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19564         (CFLAGS-obstack.c): Likewise.
19565         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19566         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19567         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19568         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19569         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19570         (CFLAGS-test-tgmath.c): Likewise.
19571         (CFLAGS-test-tgmath2.c): Likewise.
19572         (CFLAGS-test-tgmath-ret.c): Likewise.
19573         (CFLAGS-test-powl.c): Likewise.
19574         (CFLAGS-test-snan.c): Likewise.
19575         (CFLAGS-test-signgam-finite.c): Likewise.
19576         (CFLAGS-test-signgam-finite-c99.c): Likewise.
19577         (CFLAGS-test-signgam-finite-c11.c): Likewise.
19578         (CFLAGS-test-signgam-uchar.c): Likewise.
19579         (CFLAGS-test-signgam-uchar-init.c): Likewise.
19580         (CFLAGS-test-signgam-uchar-static.c): Likewise.
19581         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19582         (CFLAGS-test-signgam-uint.c): Likewise.
19583         (CFLAGS-test-signgam-uint-init.c): Likewise.
19584         (CFLAGS-test-signgam-uint-static.c): Likewise.
19585         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19586         (CFLAGS-test-signgam-ullong.c): Likewise.
19587         (CFLAGS-test-signgam-ullong-init.c): Likewise.
19588         (CFLAGS-test-signgam-ullong-static.c): Likewise.
19589         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19590         (CFLAGS-test-math-cxx11.cc): Likewise.
19591         (CFLAGS-test-math-isinff.cc): Likewise.
19592         (CFLAGS-test-math-iszero.cc): Likewise.
19593         (CFLAGS-test-math-issignaling.cc): Likewise.
19594         (CFLAGS-test-math-iscanonical.cc): Likewise.
19595         (CFLAGS-test-iszero-excess-precision.c): Likewise.
19596         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19597         (CFLAGS-test-flt-eval-method.c): Likewise.
19598         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19599         (CFLAGS-test-finite-macros.c): Likewise.
19600         * misc/Makefile (CFLAGS-select.c): Likewise.
19601         (CFLAGS-tsearch.c): Likewise.
19602         (CFLAGS-lsearch.c): Likewise.
19603         (CFLAGS-pselect.c): Likewise.
19604         (CFLAGS-readv.c): Likewise.
19605         (CFLAGS-writev.c): Likewise.
19606         (CFLAGS-preadv.c): Likewise.
19607         (CFLAGS-preadv64.c): Likewise.
19608         (CFLAGS-pwritev.c): Likewise.
19609         (CFLAGS-pwritev64.c): Likewise.
19610         (CFLAGS-preadv2.c): Likewise.
19611         (CFLAGS-preadv64v2.c): Likewise.
19612         (CFLAGS-pwritev2.c): Likewise.
19613         (CFLAGS-pwritev64v2.c): Likewise.
19614         (CFLAGS-usleep.c): Likewise.
19615         (CFLAGS-syslog.c): Likewise.
19616         (CFLAGS-error.c): Likewise.
19617         (CFLAGS-getpass.c): Likewise.
19618         (CFLAGS-mkstemp.c): Likewise.
19619         (CFLAGS-mkstemp64.c): Likewise.
19620         (CFLAGS-getsysstats.c): Likewise.
19621         (CFLAGS-getusershell.c): Likewise.
19622         (CFLAGS-err.c): Likewise.
19623         (CFLAGS-tst-tsearch.c): Likewise.
19624         (CFLAGS-msync.c): Likewise.
19625         (CFLAGS-fdatasync.c): Likewise.
19626         (CFLAGS-fsync.c): Likewise.
19627         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19628         (CFLAGS-unwind.c): Likewise.
19629         (CFLAGS-unwind-forcedunwind.c): Likewise.
19630         (CFLAGS-pthread_cancel.c): Likewise.
19631         (CFLAGS-pthread_setcancelstate.c): Likewise.
19632         (CFLAGS-pthread_setcanceltype.c): Likewise.
19633         (CFLAGS-cancellation.c): Likewise.
19634         (CFLAGS-libc-cancellation.c): Likewise.
19635         (CFLAGS-pthread_exit.c): Likewise.
19636         (CFLAGS-forward.c): Likewise.
19637         (CFLAGS-pthread_testcancel.c): Likewise.
19638         (CFLAGS-pthread_join.c): Likewise.
19639         (CFLAGS-pthread_timedjoin.c): Likewise.
19640         (CFLAGS-pthread_once.c): Likewise.
19641         (CFLAGS-pthread_cond_wait.c): Likewise.
19642         (CFLAGS-sem_wait.c): Likewise.
19643         (CFLAGS-sem_timedwait.c): Likewise.
19644         (CFLAGS-fcntl.c): Likewise.
19645         (CFLAGS-lockf.c): Likewise.
19646         (CFLAGS-pread.c): Likewise.
19647         (CFLAGS-pread64.c): Likewise.
19648         (CFLAGS-pwrite.c): Likewise.
19649         (CFLAGS-pwrite64.c): Likewise.
19650         (CFLAGS-wait.c): Likewise.
19651         (CFLAGS-waitpid.c): Likewise.
19652         (CFLAGS-sigwait.c): Likewise.
19653         (CFLAGS-msgrcv.c): Likewise.
19654         (CFLAGS-msgsnd.c): Likewise.
19655         (CFLAGS-tcdrain.c): Likewise.
19656         (CFLAGS-open.c): Likewise.
19657         (CFLAGS-open64.c): Likewise.
19658         (CFLAGS-pause.c): Likewise.
19659         (CFLAGS-recv.c): Likewise.
19660         (CFLAGS-send.c): Likewise.
19661         (CFLAGS-accept.c): Likewise.
19662         (CFLAGS-sendto.c): Likewise.
19663         (CFLAGS-connect.c): Likewise.
19664         (CFLAGS-recvfrom.c): Likewise.
19665         (CFLAGS-recvmsg.c): Likewise.
19666         (CFLAGS-sendmsg.c): Likewise.
19667         (CFLAGS-close.c): Likewise.
19668         (CFLAGS-read.c): Likewise.
19669         (CFLAGS-write.c): Likewise.
19670         (CFLAGS-nanosleep.c): Likewise.
19671         (CFLAGS-sigsuspend.c): Likewise.
19672         (CFLAGS-msync.c): Likewise.
19673         (CFLAGS-fdatasync.c): Likewise.
19674         (CFLAGS-fsync.c): Likewise.
19675         (CFLAGS-pt-system.c): Likewise.
19676         (CFLAGS-tst-cleanup2.c): Likewise.
19677         (CFLAGS-tst-cleanupx2.c): Likewise.
19678         (CFLAGS-flockfile.c): Likewise.
19679         (CFLAGS-ftrylockfile.c): Likewise.
19680         (CFLAGS-funlockfile.c): Likewise.
19681         (CFLAGS-tst-initializers1.c): Likewise.
19682         (CFLAGS-tst-initializers1-c89.c): Likewise.
19683         (CFLAGS-tst-initializers1-c99.c): Likewise.
19684         (CFLAGS-tst-initializers1-c11.c): Likewise.
19685         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19686         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19687         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19688         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19689         (CFLAGS-nscd_getgr_r.c): Likewise.
19690         (CFLAGS-nscd_gethst_r.c): Likewise.
19691         (CFLAGS-nscd_getai.c): Likewise.
19692         (CFLAGS-nscd_initgroups.c): Likewise.
19693         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19694         (CFLAGS-pause.c): Likewise.
19695         (CFLAGS-pread.c): Likewise.
19696         (CFLAGS-pread64.c): Likewise.
19697         (CFLAGS-pwrite.c): Likewise.
19698         (CFLAGS-pwrite64.c): Likewise.
19699         (CFLAGS-sleep.c): Likewise.
19700         (CFLAGS-wait.c): Likewise.
19701         (CFLAGS-waitid.c): Likewise.
19702         (CFLAGS-waitpid.c): Likewise.
19703         (CFLAGS-getopt.c): Likewise.
19704         (CFLAGS-wordexp.c): Likewise.
19705         (CFLAGS-sysconf.c): Likewise.
19706         (CFLAGS-pathconf.c): Likewise.
19707         (CFLAGS-fpathconf.c): Likewise.
19708         (CFLAGS-spawn.c): Likewise.
19709         (CFLAGS-spawnp.c): Likewise.
19710         (CFLAGS-spawni.c): Likewise.
19711         (CFLAGS-glob.c): Likewise.
19712         (CFLAGS-glob64.c): Likewise.
19713         (CFLAGS-getconf.c): Likewise.
19714         (CFLAGS-nanosleep.c): Likewise.
19715         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19716         (CFLAGS-getpwent.c): Likewise.
19717         (CFLAGS-getpw.c): Likewise.
19718         (CFLAGS-fgetpwent_r.c): Likewise.
19719         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19720         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19721         (CFLAGS-mq_timedreceive.c): Likewise.
19722         (CFLAGS-mq_timedsend.c): Likewise.
19723         (CFLAGS-clock_nanosleep.c): Likewise.
19724         (CFLAGS-librt-cancellation.c): Likewise.
19725         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19726         (CFLAGS-getspent.c): Likewise.
19727         (CFLAGS-fgetspent.c): Likewise.
19728         (CFLAGS-fgetspent_r.c): Likewise.
19729         (CFLAGS-putspent.c): Likewise.
19730         (CFLAGS-getspnam.c): Likewise.
19731         (CFLAGS-getspnam_r.c): Likewise.
19732         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19733         (CFLAGS-sigsuspend.c): Likewise.
19734         (CFLAGS-sigtimedwait.c): Likewise.
19735         (CFLAGS-sigwait.c): Likewise.
19736         (CFLAGS-sigwaitinfo.c): Likewise.
19737         (CFLAGS-sigreturn.c): Likewise.
19738         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19739         (CFLAGS-vfwprintf.c): Likewise.
19740         (CFLAGS-tmpfile.c): Likewise.
19741         (CFLAGS-tmpfile64.c): Likewise.
19742         (CFLAGS-tempname.c): Likewise.
19743         (CFLAGS-psignal.c): Likewise.
19744         (CFLAGS-vprintf.c): Likewise.
19745         (CFLAGS-cuserid.c): Likewise.
19746         (CFLAGS-errlist.c): Likewise.
19747         (CFLAGS-siglist.c): Likewise.
19748         (CFLAGS-scanf15.c): Likewise.
19749         (CFLAGS-scanf17.c): Likewise.
19750         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19751         (CFLAGS-msort.c): Likewise.
19752         (CFLAGS-qsort.c): Likewise.
19753         (CFLAGS-system.c): Likewise.
19754         (CFLAGS-fmtmsg.c): Likewise.
19755         (CFLAGS-strfmon.c): Likewise.
19756         (CFLAGS-strfmon_l.c): Likewise.
19757         (CFLAGS-strfromd.c): Likewise.
19758         (CFLAGS-strfromf.c): Likewise.
19759         (CFLAGS-strfroml.c): Likewise.
19760         (CFLAGS-tst-bsearch.c): Likewise.
19761         (CFLAGS-tst-qsort.c): Likewise.
19762         (CFLAGS-tst-makecontext2.c): Likewise.
19763         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19764         (CFLAGS-xnlm_prot.c): Likewise.
19765         (CFLAGS-xrstat.c): Likewise.
19766         (CFLAGS-xyppasswd.c): Likewise.
19767         (CFLAGS-xklm_prot.c): Likewise.
19768         (CFLAGS-xrex.c): Likewise.
19769         (CFLAGS-xsm_inter.c): Likewise.
19770         (CFLAGS-xmount.c): Likewise.
19771         (CFLAGS-xrusers.c): Likewise.
19772         (CFLAGS-xspray.c): Likewise.
19773         (CFLAGS-xnfs_prot.c): Likewise.
19774         (CFLAGS-xrquota.c): Likewise.
19775         (CFLAGS-xkey_prot.c): Likewise.
19776         (CFLAGS-auth_unix.c): Likewise.
19777         (CFLAGS-key_call.c): Likewise.
19778         (CFLAGS-pmap_rmt.c): Likewise.
19779         (CFLAGS-clnt_perr.c): Likewise.
19780         (CFLAGS-openchild.c): Likewise.
19781         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19782         (CFLAGS-msgsnd.c): Likewise.
19783         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19784         * time/Makefile (CFLAGS-tzfile.c): Likewise.
19785         (CFLAGS-tzset.c): Likewise.
19786         (CFLAGS-getdate.c): Likewise.
19787         (CFLAGS-test_time.c): Likewise.
19788         (CPPFLAGS-tst-tzname.c): Likewise.
19789         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19790         (CFLAGS-zic.c): Likewise.
19791         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19792         (CFLAGS-wcswidth.c): Likewise.
19793         (CFLAGS-wcstol.c): Likewise.
19794         (CFLAGS-wcstoul.c): Likewise.
19795         (CFLAGS-wcstoll.c): Likewise.
19796         (CFLAGS-wcstoull.c): Likewise.
19797         (CFLAGS-wcstod.c): Likewise.
19798         (CFLAGS-wcstold.c): Likewise.
19799         (CFLAGS-wcstof128.c): Likewise.
19800         (CFLAGS-wcstof.c): Likewise.
19801         (CFLAGS-wcstol_l.c): Likewise.
19802         (CFLAGS-wcstoul_l.c): Likewise.
19803         (CFLAGS-wcstoll_l.c): Likewise.
19804         (CFLAGS-wcstoull_l.c): Likewise.
19805         (CFLAGS-wcstod_l.c): Likewise.
19806         (CFLAGS-wcstold_l.c): Likewise.
19807         (CFLAGS-wcstof128_l.c): Likewise.
19808         (CFLAGS-wcstof_l.c): Likewise.
19809         (CPPFLAGS-tst-wchar-h.c): Likewise.
19810         (CPPFLAGS-wcstold_l.c): Likewise.
19811
19812 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
19813
19814         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19815
19816 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19817             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19818
19819         * manual/tunables.texi (Hardware Capability Tunables): Document
19820         glibc.tune.cached_memopt.
19821         * sysdeps/powerpc/cpu-features.c: New file.
19822         * sysdeps/powerpc/cpu-features.h: New file.
19823         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19824         _dl_powerpc_cpu_features.
19825         * sysdeps/powerpc/dl-tunables.list: New file.
19826         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19827         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19828         (INIT_ARCH): Initialize use_aligned_memopt.
19829         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19830         IS_IN(rtld))]: Restrict dl_platform_init availability and
19831         initialize CPU features used by tunables.
19832         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19833         Add memcpy-power8-cached.
19834         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19835         __memcpy_power8_cached.
19836         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19837         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19838         New file.
19839
19840 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
19841
19842         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19843         (CFLAGS-noinl-tester.c): Likewise.
19844         (CFLAGS-tst-strlen.c): Likewise.
19845         (CFLAGS-stratcliff.c): Likewise.
19846         (CFLAGS-test-ffs.c): Likewise.
19847         (CFLAGS-tst-inlcall.c): Likewise.
19848         (CFLAGS-tst-xbzero-opt.c): Likewise.
19849         (CFLAGS-memcpy.c): Likewise.
19850         (CFLAGS-wordcopy.c): Likewise.
19851
19852 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
19853
19854         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19855         Store r15 on stack and add cfi rule.
19856         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19857         Likewise.
19858
19859 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
19860
19861         [BZ #22577]
19862         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19863         call.
19864
19865 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
19866
19867         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19868         Add s_sinf-sse2 and s_sinf-fma.
19869         (CFLAGS-s_sinf-fma.c): New.
19870         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19871         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19872         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19873
19874 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
19875
19876         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19877
19878 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
19879
19880         [BZ #22568]
19881         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19882         part of result to imaginary part of argument if it is zero and the
19883         real part of the argument is not finite.
19884         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19885         of result to real part of argument if it is zero and the imaginary
19886         part of the argument is not finite.
19887
19888 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
19889
19890         [BZ #22524]
19891         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19892         and to the list of locales to be built for testing.
19893         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19894         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19895         and build the collation rules upon that.
19896
19897 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
19898
19899         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19900         * manual/math.texi (Mathematics): Document support for _Float32.
19901         * math/Makefile (test-types): Add float32.
19902         * math/Versions (GLIBC_2.27): Add _Float32 functions.
19903         * stdlib/Versions (GLIBC_2.27): Likewise.
19904         * wcsmbs/Versions (GLIBC_2.27): Likewise.
19905         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19906         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19907         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19908         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19909         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19910         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19911         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19912         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19913         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19914         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19915         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19916         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19917         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19918         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19919         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19920         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19921         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19922         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19923         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19924         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19925         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19926         Likewise.
19927         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19928         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19929         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19930         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19931         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19933         Likewise.
19934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19935         Likewise.
19936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19937         Likewise.
19938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19939         Likewise.
19940
19941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19942         Likewise.
19943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19944         Likewise.
19945         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19946         Likewise.
19947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19948         Likewise.
19949         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19950         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19951         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19952         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19953         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19954         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19955         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19956         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19957         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19958         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19959         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19960         Likewise.
19961         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19962         Likewise.
19963         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19964         Likewise.
19965         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19966         Likewise.
19967         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19968         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19969         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19970         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19971         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19972         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19973         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19974         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19975
19976 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
19977
19978         * stdlib/strtof.c: Include <bits/floatn.h>
19979         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19980         and later undefine as macro.  Define as weak alias if
19981         [!USE_WIDE_CHAR].
19982         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19983         and later undefine as macro.  Define as weak alias if
19984         [USE_WIDE_CHAR].
19985         * stdlib/strtof_l.c: Include <bits/floatn.h>
19986         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19987         and later undefine as macro.  Define as weak alias if
19988         [!USE_WIDE_CHAR].
19989         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19990         and later undefine as macro.  Define as weak alias if
19991         [USE_WIDE_CHAR].
19992
19993         * stdlib/strfromf.c: Include <bits/floatn.h>.
19994         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19995         and later undefine as macro and define as weak alias.
19996
19997         * math/test-float32.h: New file.
19998
19999         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
20000         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
20001         (libm_alias_float_other_r): Create f32 alias.
20002         (libm_alias_float_r): Use semicolon before call to
20003         libm_alias_float_other_r.
20004
20005         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
20006         second argument to libm_alias_float_other.
20007         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
20008         second argument to libm_alias_float_other.
20009         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
20010         argument to libm_alias_float_other.
20011
20012         [BZ #22561]
20013         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
20014         real part of result for argument 0 + i * NaN.
20015         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
20016         results for tests of 0 + i * NaN.
20017
20018 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20019
20020         * sysdeps/alpha/fpu/libm-test-ulps: Update.
20021
20022 2017-12-06  David S. Miller  <davem@davemloft.net>
20023
20024         * sysdeps/sparc/fpu/libm-test-ulps: Update
20025         exp_{downward,towardzero,upward} ulps.
20026
20027 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
20028
20029         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
20030         variables static.
20031
20032         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
20033         (Y0_2D): Likewise.
20034         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
20035         (Y0_2D): Likewise.
20036         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
20037         (Y0_2D): Likewise.
20038         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
20039         (Y0_2D): Likewise.
20040
20041 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
20042
20043         [BZ #22515]
20044         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
20045         and to the list of locales to be built for testing.
20046         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
20047         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
20048         and build the collation rules upon that.
20049
20050 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20051
20052         * NEWS: Add sinf to list of optimized functions.
20053
20054 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
20055
20056         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
20057         (__HAVE_FLOAT32X): Likewise.
20058         * manual/math.texi (Mathematics): Document support for _Float64
20059         and _Float32x.
20060         * math/Makefile (test-types): Add float64 and float32x.
20061         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
20062         functions.
20063         * stdlib/Versions (GLIBC_2.27): Likewise.
20064         * wcsmbs/Versions (GLIBC_2.27): Likewise.
20065         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
20066         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20067         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
20068         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20069         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
20070         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20071         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
20072         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20073         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
20074         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20075         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
20076         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20077         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
20078         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20079         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
20080         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20081         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
20082         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20083         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
20084         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20085         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
20086         Likewise.
20087         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20088         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
20089         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
20090         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
20091         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
20093         Likewise.
20094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20095         Likewise.
20096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
20097         Likewise.
20098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20099         Likewise.
20100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
20101         Likewise.
20102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
20103         Likewise.
20104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20105         Likewise.
20106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20107         Likewise.
20108         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
20109         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20110         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
20111         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20112         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
20113         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20114         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
20115         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20116         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
20117         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20119         Likewise.
20120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20121         Likewise.
20122         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20123         Likewise.
20124         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20125         Likewise.
20126         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20127         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20128         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
20129         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20130         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
20131         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20132         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
20133         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20134
20135 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20136
20137         * bits/floatn-common.h: Include <bits/long-double.h>.
20138         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20139         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
20140         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20141         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
20142         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
20143         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
20144         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20145         (__builtin_huge_valf64): Use __builtin_huge_vall.
20146         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20147         (__builtin_inff64): Use __builtin_infl.
20148         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20149         (__builtin_nanf64): Use __builtin_nanl.
20150         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
20151         (__builtin_nansf64): Use __builtin_nansl.
20152
20153 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
20154             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20155             Carlos O'Donnell <carlos@redhat.com>
20156
20157         * elf/dl-tunables.list: Add elision parameters.
20158         * manual/tunables.texi: Add entries about elision tunable.
20159         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
20160         Add callback functions to dynamically enable/disable elision.
20161         Add multiple callbacks functions to set elision parameters.
20162         Deleted __libc_enable_secure check.
20163         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
20164         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
20165         * configure: Regenerated.
20166         * configure.ac: Option enable_lock_elision was deleted.
20167         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
20168         * config.make.in: Remove references to enable_lock_elision.
20169         * manual/install.texi: Elision configure option was removed.
20170         * INSTALL: Regenerated to remove enable_lock_elision.
20171         * nptl/Makefile:
20172         Disable elision so it can verify error case for destroying a mutex.
20173         * sysdeps/powerpc/nptl/elide.h:
20174         Cleanup ENABLE_LOCK_ELISION check.
20175         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
20176         * sysdeps/s390/configure: Regenerated.
20177         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
20178         * nptl/tst-mutex8.c:
20179         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
20180         * sysdeps/powerpc/powerpc32/sysdep.h:
20181         Deleted all ENABLE_LOCK_ELISION checks.
20182         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
20183         * sysdeps/powerpc/sysdep.h: Likewise.
20184         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
20185         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
20186         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
20187         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
20188         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
20189         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
20190         enable-lock-elision.
20191
20192 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20193
20194         * stdlib/strtod.c: Include <bits/floatn.h>.
20195         (BUILD_DOUBLE): New macro.
20196         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20197         (strtof64): Define and later undefine as macro.  Define as weak
20198         alias if [!USE_WIDE_CHAR].
20199         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20200         (wcstof64): Define and later undefine as macro.  Define as weak
20201         alias if [USE_WIDE_CHAR].
20202         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20203         (strtof32x): Define and later undefine as macro.  Define as weak
20204         alias if [!USE_WIDE_CHAR].
20205         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20206         (wcstof32x): Define and later undefine as macro.  Define as weak
20207         alias if [USE_WIDE_CHAR].
20208         * stdlib/strtod_l.c: Include <bits/floatn.h>.
20209         (BUILD_DOUBLE): New macro.
20210         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20211         (strtof64_l): Define and later undefine as macro.  Define as weak
20212         alias if [!USE_WIDE_CHAR].
20213         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
20214         (wcstof64_l): Define and later undefine as macro.  Define as weak
20215         alias if [USE_WIDE_CHAR].
20216         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20217         (strtof32x_l): Define and later undefine as macro.  Define as weak
20218         alias if [!USE_WIDE_CHAR].
20219         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
20220         (wcstof32x_l): Define and later undefine as macro.  Define as weak
20221         alias if [USE_WIDE_CHAR].
20222
20223 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20224
20225         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
20226         (reduced): Use ones as double instead of integer.
20227
20228 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20229
20230         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
20231
20232 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20233
20234         * stdlib/strfromd.c: Include <bits/floatn.h>.
20235         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
20236         and later undefine as macro and define as weak alias.
20237         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
20238         Likewise.
20239
20240         * math/test-float32x.h: New file.
20241         * math/test-float64.h: Likewise.
20242
20243         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
20244         (libm_alias_double_other_r_f64): New macro.
20245         (libm_alias_double_other_r_f32x): Likewise.
20246         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20247         libm_alias_double_other_r_f32x.
20248         (libm_alias_double_r): Use semicolon before call to
20249         libm_alias_double_other_r.
20250         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
20251         <bits/floatn.h>.
20252         (libm_alias_double_other_r_f64): New macro.
20253         (libm_alias_double_other_r_f32x): Likewise.
20254         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
20255         libm_alias_double_other_r_f32x.
20256
20257 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
20258
20259         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
20260         int.
20261         (SINF_FUNC): Likewise.  Replace floor with simple casts.
20262
20263 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
20264
20265         [BZ #22517]
20266         * localedata/Makefile: Add et_EE.UTF-8 to test-input
20267         and to the list of locales to be built for testing.
20268         * localedata/et_EE.UTF-8.in: New file for testing the collation.
20269         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
20270         and build the collation rules upon that.
20271
20272 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
20273
20274         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
20275         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
20276         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
20277         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
20278         instead of __insn__xxx.
20279         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
20280         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
20281         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
20282         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
20283         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
20284         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
20285
20286 2017-12-05  Florian Weimer  <fweimer@redhat.com>
20287
20288         Linux: Implement interfaces for memory protection keys
20289         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
20290         xsignal, xsysconf.
20291         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
20292         * support/xunistd.h (xsysconf): Declare.
20293         * support/xraise.c: New file.
20294         * support/xsigaction.c: Likewise.
20295         * support/xsignal.c: Likewise.
20296         * support/xsysconf.c: Likewise.
20297         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
20298         pkey_set, pkey_get, pkey_mprotect.
20299         [misc] (tests): Add tst-pkey.
20300         (tst-pkey): Link with -lpthread.
20301         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20302         pkey_free, pkey_set, pkey_get, pkey_mprotect.
20303         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20304         (PKEY_DISABLE_WRITE): Define.
20305         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20306         Declare.
20307         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20308         (SEGV_PKUERR): Add.
20309         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20310         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20311         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20312         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20313         Add.
20314         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20315         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20316         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20317         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20318         * sysdeps/unix/sysv/linux/**.abilist: Update.
20319
20320 2017-12-05  Florian Weimer  <fweimer@redhat.com>
20321
20322         * support/tst-test_compare.c (subprocess): Use long long instead
20323         of long argument for consistent type width across 32-bit and
20324         64-bit architectures.
20325         (do_test): Adjust expected output.
20326
20327 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
20328
20329         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20330         (cosf): Define using libm_alias_float.
20331         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20332         (fabsf): Define using libm_alias_float.
20333         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20334         (fmaf): Define using libm_alias_float.
20335         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20336         (rintf): Define using libm_alias_float.
20337         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20338         (sinf): Define using libm_alias_float.
20339         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20340         <libm-alias-float.h>.
20341         (modff): Define using libm_alias_float.
20342         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20343         <libm-alias-float.h>.
20344         (logbf): Define using libm_alias_float.
20345         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20346         <libm-alias-float.h>.
20347         (ceilf): Define using libm_alias_float.
20348         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20349         <libm-alias-float.h>.
20350         (copysignf): Define using libm_alias_float.
20351         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20352         <libm-alias-float.h>.
20353         (floorf): Define using libm_alias_float.
20354         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20355         <libm-alias-float.h>.
20356         (llrintf): Define using libm_alias_float.
20357         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20358         <libm-alias-float.h>.
20359         (llroundf): Define using libm_alias_float.
20360         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20361         <libm-alias-float.h>.
20362         (lrintf): Define using libm_alias_float.
20363         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20364         <libm-alias-float.h>.
20365         (lroundf): Define using libm_alias_float.
20366         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20367         <libm-alias-float.h>.
20368         (nearbyintf): Define using libm_alias_float.
20369         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20370         <libm-alias-float.h>.
20371         (rintf): Define using libm_alias_float.
20372         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20373         <libm-alias-float.h>.
20374         (roundf): Define using libm_alias_float.
20375         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20376         <libm-alias-float.h>.
20377         (truncf): Define using libm_alias_float.
20378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20379         Include <libm-alias-float.h>.
20380         (ceilf): Define using libm_alias_float.
20381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20382         Include <libm-alias-float.h>.
20383         (copysignf): Define using libm_alias_float.
20384         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20385         Include <libm-alias-float.h>.
20386         (floorf): Define using libm_alias_float.
20387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20388         Include <libm-alias-float.h>.
20389         (llrintf): Define using libm_alias_float.
20390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20391         Include <libm-alias-float.h>.
20392         (llroundf): Define using libm_alias_float.
20393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20394         Include <libm-alias-float.h>.
20395         (logbf): Define using libm_alias_float.
20396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20397         Include <libm-alias-float.h>.
20398         (lrintf): Define using libm_alias_float.
20399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20400         Include <libm-alias-float.h>.
20401         (lroundf): Define using libm_alias_float.
20402         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20403         Include <libm-alias-float.h>.
20404         (modff): Define using libm_alias_float.
20405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20406         Include <libm-alias-float.h>.
20407         (roundf): Define using libm_alias_float.
20408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20409         Include <libm-alias-float.h>.
20410         (truncf): Define using libm_alias_float.
20411         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20412         <libm-alias-float.h>.
20413         (llrintf): Define using libm_alias_float.
20414         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20415         <libm-alias-float.h>.
20416         (llroundf): Define using libm_alias_float.
20417         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20418         <libm-alias-float.h>.
20419         (ceilf): Define using libm_alias_float.
20420         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20421         <libm-alias-float.h>.
20422         (floorf): Define using libm_alias_float.
20423         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20424         <libm-alias-float.h>.
20425         (llroundf): Define using libm_alias_float.
20426         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20427         <libm-alias-float.h>.
20428         (lroundf): Define using libm_alias_float.
20429         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20430         <libm-alias-float.h>.
20431         (roundf): Define using libm_alias_float.
20432         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20433         <libm-alias-float.h>.
20434         (truncf): Define using libm_alias_float.
20435         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20436         <libm-alias-float.h>.
20437         (copysignf): Define using libm_alias_float.
20438         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20439         <libm-alias-float.h>.
20440         (llrintf): Define using libm_alias_float.
20441         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20442         <libm-alias-float.h>.
20443         (llroundf): Define using libm_alias_float.
20444         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20445         <libm-alias-float.h>.
20446         (lrintf): Define using libm_alias_float.
20447         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20448         <libm-alias-float.h>.
20449         (lroundf): Define using libm_alias_float.
20450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20451         <libm-alias-float.h>.
20452         (ceilf): Define using libm_alias_float.
20453         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20454         <libm-alias-float.h>.
20455         (copysignf): Define using libm_alias_float.
20456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20457         <libm-alias-float.h>.
20458         (cosf): Define using libm_alias_float.
20459         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20460         <libm-alias-float.h>.
20461         (floorf): Define using libm_alias_float.
20462         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20463         <libm-alias-float.h>.
20464         (llrintf): Define using libm_alias_float.
20465         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20466         <libm-alias-float.h>.
20467         (llroundf): Define using libm_alias_float.
20468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20469         <libm-alias-float.h>.
20470         (logbf): Define using libm_alias_float.
20471         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20472         <libm-alias-float.h>.
20473         (modff): Define using libm_alias_float.
20474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20475         <libm-alias-float.h>.
20476         (roundf): Define using libm_alias_float.
20477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20478         <libm-alias-float.h>.
20479         (sinf): Define using libm_alias_float.
20480         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20481         <libm-alias-float.h>.
20482         (truncf): Define using libm_alias_float.
20483         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20484         <libm-alias-float.h>.
20485         (ceilf): Define using libm_alias_float.
20486         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20487         <libm-alias-float.h>.
20488         (copysignf): Define using libm_alias_float.
20489         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20490         <libm-alias-float.h>.
20491         (floorf): Define using libm_alias_float.
20492         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20493         <libm-alias-float.h>.
20494         (llrintf): Define using libm_alias_float.
20495         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20496         <libm-alias-float.h>.
20497         (llroundf): Define using libm_alias_float.
20498         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20499         <libm-alias-float.h>.
20500         (nearbyintf): Define using libm_alias_float.
20501         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20502         <libm-alias-float.h>.
20503         (rintf): Define using libm_alias_float.
20504         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20505         <libm-alias-float.h>.
20506         (roundf): Define using libm_alias_float.
20507         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20508         <libm-alias-float.h>.
20509         (truncf): Define using libm_alias_float.
20510         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20511         <libm-alias-float.h>.
20512         (ceilf): Define using libm_alias_float.
20513         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20514         <libm-alias-float.h>.
20515         (floorf): Define using libm_alias_float.
20516         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20517         <libm-alias-float.h>.
20518         (llroundf): Define using libm_alias_float.
20519         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20520         <libm-alias-float.h>.
20521         (roundf): Define using libm_alias_float.
20522         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20523         <libm-alias-float.h>.
20524         (truncf): Define using libm_alias_float.
20525         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20526         <libm-alias-float.h>.
20527         (copysignf): Define using libm_alias_float.
20528         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20529         <libm-alias-float.h>.
20530         (llrintf): Define using libm_alias_float.
20531         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20532         <libm-alias-float.h>.
20533         (llroundf): Define using libm_alias_float.
20534         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20535         <libm-alias-float.h>.
20536         (cosf): Define using libm_alias_float.
20537         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20538         <libm-alias-float.h>.
20539         (llrintf): Define using libm_alias_float.
20540         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20541         <libm-alias-float.h>.
20542         (llroundf): Define using libm_alias_float.
20543         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20544         <libm-alias-float.h>.
20545         (sinf): Define using libm_alias_float.
20546
20547 2017-12-04  Florian Weimer  <fweimer@redhat.com>
20548
20549         * support/check.h (TEST_COMPARE): Define.
20550         (support_test_compare_failure): Declare.
20551         * support/Makefile (libsupport-routines): Add
20552         support_test_compare_failure.
20553         (tests): Add tst-test_compare.
20554         * support /support_test_compare_failure.c: New file.
20555         * support/tst-test_compare.c: Likewise.
20556
20557 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
20558
20559         [BZ #22527]
20560         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20561         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20562         available, this rewrite of the collation rules does reproduce
20563         the test file in the same order.
20564
20565 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
20566
20567         [BZ #10580]
20568         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20569         digraphs in the month and day names. Using single code points for
20570         digraphs is deprecated.  While there are dedicated Unicode
20571         codepoints, for the digraphs, these are included for backwards
20572         compatibility and modern texts use a sequence of Basic Latin
20573         characters. See: https://www.unicode.org/faq/ligature_digraph.html
20574         This makes the month and day names agree exactly with CLDR now,
20575         CLDR does not use the single code points for the digraphs either.
20576
20577 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
20578
20579         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20580
20581 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
20582
20583         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20584         of floor.
20585
20586 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20587
20588         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20589         Define only for libc.so.
20590
20591 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
20592
20593         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20594         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20595          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20596         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20597         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20598
20599 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20600
20601         [BZ #5997]
20602         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20603
20604 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
20605
20606         [BZ libc/19170]
20607         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20608         PREINIT_FUNCTION_WEAK is nonzero.
20609         (gmon_initializer): New function.  Put procedure label for it in
20610         .init_array section.
20611         (_init): Don't call PREINIT_FUNCTION.
20612         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20613         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20614         value when map argument is null.
20615
20616         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20617         depi instruction from PIC pc-relative sequence.
20618         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20619         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20620         (elf_machine_load_address): Likewise.
20621         (elf_machine_runtime_setup): Likewise.
20622
20623 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
20624
20625         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20626         <libm-alias-double.h>.
20627         (logb): Define using libm_alias_double.
20628         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20629         <libm-alias-double.h>.
20630         (copysign): Define using libm_alias_double.
20631         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20632         <libm-alias-double.h>.
20633         (llrint): Define using libm_alias_double.
20634         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20635         <libm-alias-double.h>.
20636         (llround): Define using libm_alias_double.
20637         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20638         <libm-alias-double.h>.
20639         (lrint): Define using libm_alias_double.
20640         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20641         <libm-alias-double.h>.
20642         (lround): Define using libm_alias_double.
20643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20644         Include <libm-alias-double.h>.
20645         (copysign): Define using libm_alias_double.
20646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20647         Include <libm-alias-double.h>.
20648         (llrint): Define using libm_alias_double.
20649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20650         Include <libm-alias-double.h>.
20651         (llround): Define using libm_alias_double.
20652         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20653         <libm-alias-double.h>.
20654         (logb): Define using libm_alias_double.
20655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20656         Include <libm-alias-double.h>.
20657         (lrint): Define using libm_alias_double.
20658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20659         Include <libm-alias-double.h>.
20660         (lround): Define using libm_alias_double.
20661         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20662         <libm-alias-double.h>.
20663         (llrint): Define using libm_alias_double.
20664         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20665         <libm-alias-double.h>.
20666         (llround): Define using libm_alias_double.
20667         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20668         <libm-alias-double.h>.
20669         (llround): Define using libm_alias_double.
20670         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20671         <libm-alias-double.h>.
20672         (lround): Define using libm_alias_double.
20673         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20674         <libm-alias-double.h>.
20675         (copysign): Define using libm_alias_double.
20676         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20677         <libm-alias-double.h>.
20678         (llrint): Define using libm_alias_double.
20679         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20680         <libm-alias-double.h>.
20681         (llround): Define using libm_alias_double.
20682         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20683         <libm-alias-double.h>.
20684         (lrint): Define using libm_alias_double.
20685         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20686         <libm-alias-double.h>.
20687         (lround): Define using libm_alias_double.
20688         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20689         <libm-alias-double.h>.
20690         (copysign): Define using libm_alias_double.
20691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20692         <libm-alias-double.h>.
20693         (llrint): Define using libm_alias_double.
20694         (lrint): Likewise.
20695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20696         <libm-alias-double.h>.
20697         (llround): Define using libm_alias_double.
20698         (lround): Likewise.
20699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20700         <libm-alias-double.h>.
20701         (logb): Define using libm_alias_double.
20702         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20703         <libm-alias-double.h>.
20704         (copysign): Define using libm_alias_double.
20705         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20706         <libm-alias-double.h>.
20707         (llrint): Define using libm_alias_double.
20708         (lrint): Likewise.
20709         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20710         <libm-alias-double.h>.
20711         (llround): Define using libm_alias_double.
20712         (lround): Likewise.
20713         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20714         <libm-alias-double.h>.
20715         (llround): Define using libm_alias_double.
20716         (lround): Likewise.
20717         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20718         <libm-alias-double.h>.
20719         (copysign): Define using libm_alias_double.
20720         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20721         <libm-alias-double.h>.
20722         (llrint): Define using libm_alias_double.
20723         (lrint): Likewise.
20724         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20725         <libm-alias-double.h>.
20726         (llround): Define using libm_alias_double.
20727         (lround): Likewise.
20728         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20729         <libm-alias-double.h>.
20730         (llrint): Define using libm_alias_double.
20731         (lrint): Likewise.
20732         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20733         <libm-alias-double.h>.
20734         (llround): Define using libm_alias_double.
20735         (lround): Likewise.
20736
20737 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
20738
20739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20740         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20741         compat symbol based on llround.
20742
20743         * sysdeps/powerpc/power7/fpu/s_logb.c
20744         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20745         symbol based on __logb, not on logb.
20746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20747         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20749         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20750
20751         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20752         (rint): Define using libm_alias_double.
20753         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20754         <libm-alias-double.h>.
20755         (modf): Define using libm_alias_double.
20756         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20757         <libm-alias-double.h>.
20758         (ceil): Define using libm_alias_double.
20759         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20760         <libm-alias-double.h>.
20761         (floor): Define using libm_alias_double.
20762         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20763         <libm-alias-double.h>.
20764         (nearbyint): Define using libm_alias_double.
20765         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20766         <libm-alias-double.h>.
20767         (rint): Define using libm_alias_double.
20768         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20769         <libm-alias-double.h>.
20770         (round): Define using libm_alias_double.
20771         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20772         <libm-alias-double.h>.
20773         (trunc): Define using libm_alias_double.
20774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20775         <libm-alias-double.h>.
20776         (ceil): Define using libm_alias_double.
20777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20778         Include <libm-alias-double.h>.
20779         (floor): Define using libm_alias_double.
20780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20781         <libm-alias-double.h>.
20782         (modf): Define using libm_alias_double.
20783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20784         Include <libm-alias-double.h>.
20785         (round): Define using libm_alias_double.
20786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20787         Include <libm-alias-double.h>.
20788         (trunc): Define using libm_alias_double.
20789         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20790         <libm-alias-double.h>.
20791         (ceil): Define using libm_alias_double.
20792         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20793         <libm-alias-double.h>.
20794         (floor): Define using libm_alias_double.
20795         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20796         <libm-alias-double.h>.
20797         (round): Define using libm_alias_double.
20798         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20799         <libm-alias-double.h>.
20800         (trunc): Define using libm_alias_double.
20801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20802         <libm-alias-double.h>.
20803         (ceil): Define using libm_alias_double.
20804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20805         <libm-alias-double.h>.
20806         (floor): Define using libm_alias_double.
20807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20808         <libm-alias-double.h>.
20809         (modf): Define using libm_alias_double.
20810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20811         <libm-alias-double.h>.
20812         (round): Define using libm_alias_double.
20813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20814         <libm-alias-double.h>.
20815         (trunc): Define using libm_alias_double.
20816         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20817         <libm-alias-double.h>.
20818         (ceil): Define using libm_alias_double.
20819         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20820         <libm-alias-double.h>.
20821         (floor): Define using libm_alias_double.
20822         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20823         <libm-alias-double.h>.
20824         (nearbyint): Define using libm_alias_double.
20825         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20826         <libm-alias-double.h>.
20827         (rint): Define using libm_alias_double.
20828         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20829         <libm-alias-double.h>.
20830         (round): Define using libm_alias_double.
20831         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20832         <libm-alias-double.h>.
20833         (trunc): Define using libm_alias_double.
20834         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20835         <libm-alias-double.h>.
20836         (ceil): Define using libm_alias_double.
20837         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20838         <libm-alias-double.h>.
20839         (floor): Define using libm_alias_double.
20840         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20841         <libm-alias-double.h>.
20842         (round): Define using libm_alias_double.
20843         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20844         <libm-alias-double.h>.
20845         (trunc): Define using libm_alias_double.
20846
20847         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20848         (fabs): Define using libm_alias_double.
20849         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20850         (fma): Define using libm_alias_double.
20851         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20852         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20853         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20854         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20855
20856 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20857
20858         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20859
20860         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20861         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20862         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20863
20864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20865         due redirect macro.
20866
20867 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
20868
20869         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20870
20871 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20872
20873         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20874         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20875         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20876         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20877
20878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20879         (libm-sysdep_routines): Add s_nearbyintf-generic and
20880         s_nearbyint-generic.
20881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20882         New file.
20883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20885         Likewise.
20886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20887         Likewise.
20888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20889         file.
20890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20891         Likewise.
20892
20893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20894         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20896         file.
20897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20899         Likewise.
20900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20903
20904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20905         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20907         file.
20908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20910         Likewise.
20911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20914
20915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20916         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20918         file.
20919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20921         Likewise.
20922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20925
20926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20927         (sysdep_calls): New rule.
20928         (sysdep_routines): Use sysdep_calls as base.
20929         (libm-sysdep_routines): Add generic rule for symbols shared with
20930         libc.  Add s_copysign-generic and s_copysign-generic objects.
20931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20932         New file.
20933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20935         Likewise.
20936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20939
20940 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
20941
20942         [BZ #22519]
20943         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20944         the list of locales to be built for testing.
20945         * localedata/is_IS.UTF-8.in: New file.
20946         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20947         on iso14651_t1.
20948
20949 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
20950
20951         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20952         <libm-alias-float.h>.
20953         (fabsf): Define using libm_alias_float.
20954
20955 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
20956
20957         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20958
20959 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
20960
20961         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20962         <libm-alias-float.h>.
20963         (fabsf): Define using libm_alias_float.
20964         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20965         <libm-alias-float.h>.
20966         (lrintf): Define using libm_alias_float.
20967         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20968         <libm-alias-float.h>.
20969         (rintf): Define using libm_alias_float.
20970
20971         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20972         <libm-alias-double.h>.
20973         (fabs): Define using libm_alias_double.
20974         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20975         <libm-alias-double.h>.
20976         (lrint): Define using libm_alias_double.
20977         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20978         <libm-alias-double.h>.
20979         (rint): Define using libm_alias_double.
20980
20981         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20982         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20983         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20984         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20985         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20986         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20987         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20988         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20989         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20990         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20991         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20992         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20993         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20994         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20995         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20996         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20997         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20998         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20999         s_atan_template.c.
21000         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
21001         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
21002         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
21003         s_ceil_template.c.
21004         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
21005         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
21006         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
21007         s_cos_template.c.
21008         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
21009         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
21010         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
21011         s_expm1_template.c.
21012         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
21013         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
21014         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
21015         s_fabs_template.c.
21016         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
21017         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
21018         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
21019         s_floor_template.c.
21020         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
21021         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
21022         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
21023         s_frexp_template.c.
21024         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
21025         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
21026         s_lrint_template.c.
21027         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
21028         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
21029         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
21030         s_modf_template.c.
21031         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
21032         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
21033         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
21034         s_nearbyint_template.c.
21035         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
21036         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
21037         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
21038         s_remquo_template.c.
21039         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
21040         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
21041         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
21042         s_rint_template.c.
21043         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
21044         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
21045         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
21046         s_sin_template.c.
21047         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
21048         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
21049         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
21050         s_sincos_template.c.
21051         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
21052         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
21053         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
21054         s_tan_template.c.
21055         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
21056         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
21057         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
21058         s_tanh_template.c.
21059         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
21060         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
21061         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
21062         s_trunc_template.c.
21063         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
21064         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
21065         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
21066         s_atan.c instead of including s_atan.c.
21067         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
21068         s_atanf.c instead of including s_atanf.c.
21069         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
21070         s_atanl.c instead of including s_atanl.c.
21071         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
21072         instead of s_atan.c.
21073         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
21074         instead of s_atanf.c.
21075         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
21076         instead of s_atanl.c.
21077
21078         * scripts/update-copyrights: Do not handle intl/plural.c
21079         specially.
21080
21081 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
21082
21083         [BZ #22432]
21084         * configure.ac (BISON): Require to be present.
21085         * configure: Regenerated.
21086         * intl/Makefile (generated): Add plural.c.
21087         [$(BISON) != no]: Make code unconditional.
21088         (plural.c): Change rule to $(objpfx)plural.c.
21089         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
21090         * intl/plural.c: Remove.
21091         * manual/install.texi (Tools for Compilation): Document bison as
21092         required.
21093         * INSTALL: Regenerated.
21094
21095 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
21096
21097         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
21098         <libm-alias-double.h>.
21099         (llrint): Define using libm_alias_double.
21100         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
21101         <libm-alias-float.h>.
21102         (llrintf): Define using libm_alias_float.
21103         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
21104         <libm-alias-ldouble.h>.
21105         (llrintl): Define using libm_alias_ldouble.
21106
21107         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
21108         declare_mgen_alias instead of weak_alias.
21109         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
21110         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
21111         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
21112
21113 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21114
21115         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21116         Add add_n-generic.
21117         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
21118         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
21119         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
21120
21121         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21122         Add submul_1-generic.
21123         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
21124         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
21125         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
21126
21127         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21128         Add addmul_1-generic.
21129         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
21130         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
21131         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
21132
21133         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21134         Add sub_n-generic.
21135         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
21136         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
21137         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
21138
21139         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
21140         Add mul_1-generic.
21141         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
21142         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
21143         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
21144
21145 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21146
21147         According to CLDR, collation rules for Serbian and Bosnian
21148         should be the same as for Croatian.
21149
21150         [BZ #22534]
21151         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
21152         and to the list of locales to be built for testing.
21153         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21154         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
21155         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
21156         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
21157
21158 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21159
21160         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
21161         to make test case pass.
21162         * localedata/hr_HR.UTF-8.in: Add more test strings.
21163
21164 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
21165
21166         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
21167
21168 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
21169
21170         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
21171         the list of locales to built for testing.
21172         * localedata/hr_HR.UTF-8.in: New file.
21173
21174 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
21175
21176         [BZ #10580]
21177         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
21178         iso14651_t1.
21179         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
21180         CLDR (except use ligatures for the digraphs, CLDR does not use
21181         the ligatures), add first_workday, some fixes in the date and time
21182         formats.
21183         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
21184         for Đ and đ.
21185         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
21186         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
21187         Add int_p_cs_precedes and int_n_cs_precedes.
21188         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
21189         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
21190         LC_MONETARY now).
21191         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
21192         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
21193         name_miss.
21194         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
21195         and lang_lib. Change postal_fmt.
21196
21197 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
21198
21199         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
21200         <setjmp.h>.
21201         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21202         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
21203         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
21204         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
21205         * sysdeps/generic/setjmpP.h: New file.
21206         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
21207         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
21208         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
21209         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
21210         Add jmp_buf-ssp.sym.
21211         (tests): Add tst-saved_mask-1.
21212
21213 2017-11-30  Arjun Shankar  <arjun@redhat.com>
21214
21215         [BZ #22375]
21216         CVE-2017-17426
21217         * malloc/malloc.c (__libc_malloc): Use checked_request2size
21218         instead of request2size.
21219
21220 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
21221
21222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
21223         (__lllrint): Remove alias.
21224         (lllrint): Likewise.
21225         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
21226         (__lllrintf): Likewise.
21227         (lllrintf): Likewise.
21228
21229         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
21230         <libm-alias-float.h>.
21231         (copysignf): Define using libm_alias_float.
21232         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
21233         <libm-alias-float.h>.
21234         (fabsf): Define using libm_alias_float.
21235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
21236         Include <libm-alias-float.h>.
21237         (copysignf): Define using libm_alias_float.
21238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
21239         <libm-alias-float.h>.
21240         (fabsf): Define using libm_alias_float.
21241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
21242         <libm-alias-float.h>.
21243         (fdimf): Define using libm_alias_float.
21244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
21245         <libm-alias-float.h>.
21246         (fmaf): Define using libm_alias_float.
21247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
21248         <libm-alias-float.h>.
21249         (llrintf): Define using libm_alias_float.
21250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
21251         Include <libm-alias-float.h>.
21252         (nearbyintf): Define using libm_alias_float.
21253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
21254         <libm-alias-float.h>.
21255         (rintf): Define using libm_alias_float.
21256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
21257         <libm-alias-float.h>.
21258         (llrintf): Define using libm_alias_float.
21259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
21260         <libm-alias-float.h>.
21261         (lrintf): Define using libm_alias_float.
21262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
21263         <libm-alias-float.h>.
21264         (nearbyintf): Define using libm_alias_float.
21265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
21266         <libm-alias-float.h>.
21267         (rintf): Define using libm_alias_float.
21268         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
21269         <libm-alias-float.h>.
21270         (ceilf): Define using libm_alias_float.
21271         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
21272         <libm-alias-float.h>.
21273         (floorf): Define using libm_alias_float.
21274         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
21275         <libm-alias-float.h>.
21276         (fmaf): Define using libm_alias_float.
21277         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
21278         <libm-alias-float.h>.
21279         (lrintf): Define using libm_alias_float.
21280         (llrintf): Likewise.
21281         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
21282         <libm-alias-float.h>.
21283         (nearbyintf): Define using libm_alias_float.
21284         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
21285         <libm-alias-float.h>.
21286         (rintf): Define using libm_alias_float.
21287         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
21288         <libm-alias-float.h>.
21289         (truncf): Define using libm_alias_float.
21290         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
21291         <libm-alias-float.h>.
21292         (copysignf): Define using libm_alias_float.
21293         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
21294         <libm-alias-float.h>.
21295         (fabsf): Define using libm_alias_float.
21296         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
21297         <libm-alias-float.h>.
21298         (lrintf): Define using libm_alias_float.
21299         (llrintf): Likewise.
21300         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21301         <libm-alias-float.h>.
21302         (nearbyintf): Define using libm_alias_float.
21303         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21304         <libm-alias-float.h>.
21305         (rintf): Define using libm_alias_float.
21306
21307 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21308
21309         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21310         <libm-alias-double.h>.
21311         (copysign): Define using libm_alias_double.
21312         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21313         <libm-alias-double.h>.
21314         (fabs): Define using libm_alias_double.
21315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21316         Include <libm-alias-double.h>.
21317         (copysign): Define using libm_alias_double.
21318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21319         <libm-alias-double.h>.
21320         (fabs): Define using libm_alias_double.
21321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21322         <libm-alias-double.h>.
21323         (fdim): Define using libm_alias_double.
21324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21325         <libm-alias-double.h>.
21326         (fma): Define using libm_alias_double.
21327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21328         <libm-alias-double.h>.
21329         (llrint): Define using libm_alias_double.
21330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21331         Include <libm-alias-double.h>.
21332         (nearbyint): Define using libm_alias_double.
21333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21334         <libm-alias-double.h>.
21335         (rint): Define using libm_alias_double.
21336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21337         <libm-alias-double.h>.
21338         (fabs): Define using libm_alias_double.
21339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21340         <libm-alias-double.h>.
21341         (llrint): Define using libm_alias_double.
21342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21343         <libm-alias-double.h>.
21344         (nearbyint): Define using libm_alias_double.
21345         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21346         <libm-alias-double.h>.
21347         (rint): Define using libm_alias_double.
21348         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21349         <libm-alias-double.h>.
21350         (ceil): Define using libm_alias_double.
21351         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21352         <libm-alias-double.h>.
21353         (floor): Define using libm_alias_double.
21354         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21355         <libm-alias-double.h>.
21356         (fma): Define using libm_alias_double.
21357         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21358         <libm-alias-double.h>.
21359         (lrint): Define using libm_alias_double.
21360         (llrint): Likewise.
21361         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21362         <libm-alias-double.h>.
21363         (nearbyint): Define using libm_alias_double.
21364         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21365         <libm-alias-double.h>.
21366         (rint): Define using libm_alias_double.
21367         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21368         <libm-alias-double.h>.
21369         (trunc): Define using libm_alias_double.
21370         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21371         <libm-alias-double.h>.
21372         (copysign): Define using libm_alias_double.
21373         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21374         <libm-alias-double.h>.
21375         (fabs): Define using libm_alias_double.
21376         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21377         <libm-alias-double.h>.
21378         (lrint): Define using libm_alias_double.
21379         (llrint): Likewise.
21380         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21381         <libm-alias-double.h>.
21382         (nearbyint): Define using libm_alias_double.
21383         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21384         <libm-alias-double.h>.
21385         (rint): Define using libm_alias_double.
21386
21387         [BZ #22229]
21388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21389         <math_ldbl_opt.h>.
21390         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21391
21392         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21393         SPARC --disable-multi-arch glibc variants.
21394
21395         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21396         <libm-alias-float.h>.
21397         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21398         if [SHARED].
21399         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21400         <libm-alias-float.h>.
21401         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21402         if [SHARED].
21403         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21404         <libm-alias-float.h>.
21405         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21406         if [SHARED].
21407         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21408         <libm-alias-float.h>.
21409         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21410         if [SHARED].
21411         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21412         <libm-alias-float.h>.
21413         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21414         if [SHARED].
21415         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21416         <libm-alias-float.h>.
21417         (ceilf): Define using libm_alias_float.
21418         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21419         <libm-alias-float.h>.
21420         (floorf): Define using libm_alias_float.
21421         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21422         <libm-alias-float.h>.
21423         (fmaf): Define using libm_alias_float.
21424         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21425         <libm-alias-float.h>.
21426         (nearbyintf): Define using libm_alias_float.
21427         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21428         <libm-alias-float.h>.
21429         (rintf): Define using libm_alias_float.
21430         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21431         <libm-alias-float.h>.
21432         (truncf): Define using libm_alias_float.
21433         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21434         (copysignf): Define using libm_alias_float.
21435         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21436         (cosf): Define using libm_alias_float.
21437         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21438         (fabsf): Define using libm_alias_float.
21439         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21440         (fmaxf): Define using libm_alias_float.
21441         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21442         (fminf): Define using libm_alias_float.
21443         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21444         (llrintf): Define using libm_alias_float.
21445         [!__ILP32__] (lrintf): Likewise.
21446         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21447         (sincosf): Define using libm_alias_float.
21448         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21449         (sinf): Define using libm_alias_float.
21450         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21451         (lrintf): Define using libm_alias_float.
21452
21453         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21454         <libm-alias-double.h>.
21455         (atan): Define using libm_alias_double.
21456         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21457         <libm-alias-double.h>.
21458         (ceil): Define using libm_alias_double.
21459         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21460         <libm-alias-double.h>.
21461         (floor): Define using libm_alias_double.
21462         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21463         <libm-alias-double.h>.
21464         (fma): Define using libm_alias_double.
21465         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21466         <libm-alias-double.h>.
21467         (nearbyint): Define using libm_alias_double.
21468         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21469         <libm-alias-double.h>.
21470         (rint): Define using libm_alias_double.
21471         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21472         <libm-alias-double.h>.
21473         (sin): Define using libm_alias_double.
21474         (cos): Likewise.
21475         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21476         <libm-alias-double.h>.
21477         (tan): Define using libm_alias_double.
21478         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21479         <libm-alias-double.h>.
21480         (trunc): Define using libm_alias_double.
21481         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21482         (copysign): Define using libm_alias_double.
21483         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21484         (fabs): Define using libm_alias_double.
21485         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21486         (fmax): Define using libm_alias_double.
21487         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21488         (fmin): Define using libm_alias_double.
21489         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21490         (llrint): Define using libm_alias_double.
21491         [!__ILP32__] (lrint): Likewise.
21492         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21493         (lrint): Define using libm_alias_double.
21494
21495 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21496
21497         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21498         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21499         objects.
21500         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21501         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21502         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21503         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21504         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21505         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21506
21507         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21508         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21509         objects.
21510         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21511         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21512         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21513         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21514         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21515         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21516
21517         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21518         (libm-sysdep_routines): Add s_nearbyint-generic and
21519         s_nearbyintf-generic objects.
21520         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21521         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21522         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21523         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21524         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21525         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21526
21527         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21528         Add s_finitef-generic and s_finite-generic objects.
21529         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21530         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21531         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21532         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21533         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21534         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21535
21536         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21537         Add s_isinff-generic and s_isinf-generic objects.
21538         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21542         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21543         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21544
21545         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21546         Add s_isnanf-generic and s_isnan-generic objects.
21547         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21548         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21549         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21550         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21551         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21552         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21553
21554         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21555         macro.
21556         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21557         rule.
21558         (sysdep_routines): Use sysdep_calls as base.
21559         (libm-sysdep_routines): Add generic rule for symbols shared with
21560         libc.  Add s_signbit-generic and s_signbitf-generic objects.
21561         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21562         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21563         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21564         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21565         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21566         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21567
21568 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21569
21570         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21571         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21572         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21573         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21574         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21575         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21576         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21577         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21578         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21579         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21580         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21581         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21582         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21583         libm_alias_float_r.
21584         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21585         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21586         (logf): Likewise.
21587         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21588         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21589         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21590         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21591         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21592         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21593         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21594         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21595         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21596         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21597         libm_alias_float.
21598         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21599         (cosf): Likewise.
21600         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21601         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21602         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21603         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21604         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21605         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21606         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21607         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21608         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21609         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21610         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21611         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21612         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21613         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21614         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21615         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21616         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21617         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21618         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21619         libm_alias_float.
21620         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21621         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21622         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21623         * sysdeps/ia64/fpu/w_lgammaf_main.c
21624         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21625         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21626
21627 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
21628             Alexandre Oliva  <aoliva@redhat.com>
21629
21630         [BZ #17750]
21631         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21632         * localedata/fr_CA.UTF-8.in: New file with test data for backward
21633         accents sorting.
21634         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21635         sorting.
21636         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21637         * localedata/locales/de_DE (LC_COLLATE): Likewise.
21638         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21639         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21640         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21641         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21642         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21643         instead of “ifdef DIACRIT_BACKWARD”.
21644
21645 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21646
21647         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21648         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21649         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21650         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21651         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21652         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21653         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21654         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21655         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21656         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21657         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21659         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21660         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21661         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21662         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21663         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21664         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21666         ($(have-as-vis3) == yes): Remove conditional.
21667         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21668         Likewise.
21669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21670         file.
21671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21672         file.
21673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21674         file.
21675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21676         file.
21677         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21678         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21679         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21680         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21683         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21684         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21685
21686 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
21687
21688         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21689         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21690         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21691         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21692         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21693         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21694         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21695         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21696         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21697         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21698         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21699         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21700         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21701         libm_alias_double_r.
21702         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21703         (log): Likewise.
21704         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21705         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21706         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21707         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21708         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21709         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21710         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21711         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21712         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21713         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21714         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21715         libm_alias_double.
21716         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21717         (cos): Likewise.
21718         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21719         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21720         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21721         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21722         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21723         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21724         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21725         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21726         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21727         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21728         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21729         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21730         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21731         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21732         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21733         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21734         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21735         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21736         libm_alias_double.
21737         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21738         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21739         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21740         * sysdeps/ia64/fpu/w_lgamma_main.c
21741         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21742         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21743
21744 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
21745
21746         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
21747         address of $global$ into %dp register earlier.  Use pc-relative
21748         instruction sequence for PIC case.
21749
21750 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21751
21752         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21753         (asinhf): Define using libm_alias_float.
21754         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21755         (atanf): Define using libm_alias_float.
21756         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21757         (cbrtf): Define using libm_alias_float.
21758         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21759         (ceilf): Define using libm_alias_float.
21760         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21761         (copysignf): Define using libm_alias_float.
21762         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21763         (expm1f): Define using libm_alias_float.
21764         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21765         (fabsf): Define using libm_alias_float.
21766         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21767         (floorf): Define using libm_alias_float.
21768         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21769         (fmaxf): Define using libm_alias_float.
21770         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21771         (fminf): Define using libm_alias_float.
21772         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21773         (frexpf): Define using libm_alias_float.
21774         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21775         (llrintf): Define using libm_alias_float.
21776         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21777         (logbf): Define using libm_alias_float.
21778         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21779         (lrintf): Define using libm_alias_float.
21780         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21781         (nearbyintf): Define using libm_alias_float.
21782         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21783         (remquof): Define using libm_alias_float.
21784         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21785         (rintf): Define using libm_alias_float.
21786         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21787         (truncf): Define using libm_alias_float.
21788         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21789         <libm-alias-float.h>.
21790         (exp2f): Define using libm_alias_float, or libm_alias_float_other
21791         if [SHARED].
21792         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21793         <libm-alias-float.h>.
21794         (expf): Define using libm_alias_float, or libm_alias_float_other
21795         if [SHARED].
21796         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21797         <libm-alias-float.h>.
21798         (log2f): Define using libm_alias_float, or libm_alias_float_other
21799         if [SHARED].
21800         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21801         <libm-alias-float.h>.
21802         (logf): Define using libm_alias_float, or libm_alias_float_other
21803         if [SHARED].
21804         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21805         <libm-alias-float.h>.
21806         (powf): Define using libm_alias_float, or libm_alias_float_other
21807         if [SHARED].
21808         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21809         <libm-alias-float.h>.
21810         (cosf): Define using libm_alias_float.
21811         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21812         <libm-alias-float.h>.
21813         (sincosf): Define using libm_alias_float.
21814         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21815         <libm-alias-float.h>.
21816         (sinf): Define using libm_alias_float.
21817         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21818         (fmaxf): Define using libm_alias_float.
21819         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21820         (fminf): Define using libm_alias_float.
21821         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21822         <libm-alias-float.h>.
21823         (fmaf): Define using libm_alias_float.
21824
21825         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21826         (asinh): Define using libm_alias_double.
21827         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21828         (atan): Define using libm_alias_double.
21829         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21830         (cbrt): Define using libm_alias_double.
21831         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21832         (ceil): Define using libm_alias_double.
21833         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21834         (copysign): Define using libm_alias_double.
21835         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21836         (expm1): Define using libm_alias_double.
21837         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21838         (fabs): Define using libm_alias_double.
21839         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21840         (fdim): Define using libm_alias_double.
21841         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21842         (floor): Define using libm_alias_double.
21843         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21844         (fmax): Define using libm_alias_double.
21845         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21846         (fmin): Define using libm_alias_double.
21847         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21848         (frexp): Define using libm_alias_double.
21849         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21850         (llrint): Define using libm_alias_double.
21851         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21852         (logb): Define using libm_alias_double.
21853         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21854         (lrint): Define using libm_alias_double.
21855         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21856         (nearbyint): Define using libm_alias_double.
21857         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21858         (remquo): Define using libm_alias_double.
21859         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21860         (rint): Define using libm_alias_double.
21861         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21862         (trunc): Define using libm_alias_double.
21863         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21864         (fmax): Define using libm_alias_double.
21865         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21866         (fmin): Define using libm_alias_double.
21867         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21868         (fma): Define using libm_alias_double.
21869
21870 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
21871
21872         [BZ #22370]
21873         * elf/dl-hwcaps.c (ROUND): Removed.
21874         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21875         and ELF_NOTE_NEXT_OFFSET.
21876         * elf/dl-load.c (ROUND): Removed.
21877         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21878         * elf/readelflib.c (ROUND): Removed.
21879         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21880         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21881         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21882         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21883
21884 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21885
21886         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21887         [!__fmaf] (fmaf): Define using libm_alias_float.
21888
21889         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21890         [!__fma] (fma): Define using libm_alias_double.
21891         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21892
21893 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
21894
21895         [BZ #22336]
21896         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21897         and implement the collation rules for cs from CLDR on top of that.
21898         * Makefile: Add cs_CZ.UTF-8 to test-input.
21899         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21900
21901 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
21902
21903         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21904
21905 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
21906             Icarus Sparry  <icarus.w.sparry@intel.com>
21907
21908         * benchtests/Makefile:Add BENCHSET to allow subsets of
21909         benchmarks to be run.
21910         * benchtests/README: Add documentation for: Running subsets of
21911         benchmarks.
21912
21913 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
21914
21915         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21916         range of tests names.
21917
21918         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21919         result from property and remove "max", min" and "mean" from
21920         required properties based on benchtests/bench-skeleton.c.
21921
21922 2017-11-28  Florian Weimer  <fweimer@redhat.com>
21923
21924         [BZ #20826]
21925         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21926         due to Internet requirement.
21927         * posix/Makefile (tests): Remove tst-getaddrinfo4,
21928         tst-getaddrinfo5.
21929         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21930
21931 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21932
21933         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21934         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21935         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21936         (sysdep_routines): Add memset-ultra1.
21937         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21938         file.
21939         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21940         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21941         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21942         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21943         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21944         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21945         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21946         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21947
21948         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21949         file.
21950         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21951         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21952         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21953         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21954         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21955         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21956         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21957         macro.
21958         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21959         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21960         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21961         (sysdep_routines): Add memcpy-ultra1.
21962         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21963         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21964
21965 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
21966
21967         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21968         (cfloat_versions): Take function argument without trailing 'f'.
21969         Call libm_alias_float_other.
21970         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21971         * sysdeps/alpha/fpu/cargf.c: Likewise.
21972         * sysdeps/alpha/fpu/cimagf.c: Likewise.
21973         * sysdeps/alpha/fpu/conjf.c: Likewise.
21974         * sysdeps/alpha/fpu/crealf.c: Likewise.
21975         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21976         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21977         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21978         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21979         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21980         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21981         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21982         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21983         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21984         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21985         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21986         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21987         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21988         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21989         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21990         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21991         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21992         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21993         (clog10f): Use libm_alias_float_other.
21994         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21995         (ceilf): Define using libm_alias_float.
21996         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21997         (copysignf): Define using libm_alias_float.
21998         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21999         (fabsf): Define using libm_alias_float.
22000         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
22001         (floorf): Define using libm_alias_float.
22002         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
22003         (fmaxf): Define using libm_alias_float.
22004         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
22005         (fminf): Define using libm_alias_float.
22006         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22007         (lrintf): Define using libm_alias_float.
22008         (llrintf): Likewise.
22009         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22010         (lroundf): Define using libm_alias_float.
22011         (llroundf): Likewise.
22012         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
22013         (rintf): Define using libm_alias_float.
22014         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
22015         (truncf): Define using libm_alias_float.
22016
22017         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
22018         (ceilf): Define using libm_alias_float.
22019         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
22020         (floorf): Define using libm_alias_float.
22021         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
22022         (fmaf): Define using libm_alias_float.
22023         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
22024         (fmaxf): Define using libm_alias_float.
22025         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
22026         (fminf): Define using libm_alias_float.
22027         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
22028         (llrintf): Define using libm_alias_float.
22029         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
22030         (llroundf): Define using libm_alias_float.
22031         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
22032         (lrintf): Define using libm_alias_float.
22033         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
22034         (lroundf): Define using libm_alias_float.
22035         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
22036         <libm-alias-float.h>.
22037         (nearbyintf): Define using libm_alias_float.
22038         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
22039         (rintf): Define using libm_alias_float.
22040         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
22041         (roundf): Define using libm_alias_float.
22042         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
22043         (truncf): Define using libm_alias_float.
22044
22045         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
22046         (ceil): Define using libm_alias_double.
22047         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
22048         (copysign): Define using libm_alias_double.
22049         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
22050         (fabs): Define using libm_alias_double.
22051         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
22052         (floor): Define using libm_alias_double.
22053         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
22054         (fmax): Define using libm_alias_double.
22055         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
22056         (fmin): Define using libm_alias_double.
22057         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
22058         (lrint): Define using libm_alias_double.
22059         (llrint): Likewise.
22060         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
22061         (lround): Define using libm_alias_double.
22062         (llround): Likewise.
22063         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
22064         (rint): Define using libm_alias_double.
22065         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
22066         (trunc): Define using libm_alias_double.
22067
22068         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22069         (libm_alias_double_r): Add semicolon after weak_alias call.
22070
22071 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
22072
22073         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
22074         (ceil): Define using libm_alias_double.
22075         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
22076         (floor): Define using libm_alias_double.
22077         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
22078         (fma): Define using libm_alias_double.
22079         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
22080         (fmax): Define using libm_alias_double.
22081         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
22082         (fmin): Define using libm_alias_double.
22083         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
22084         (llrint): Define using libm_alias_double.
22085         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
22086         (llround): Define using libm_alias_double.
22087         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
22088         (lrint): Define using libm_alias_double.
22089         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
22090         (lround): Define using libm_alias_double.
22091         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
22092         (nearbyint): Define using libm_alias_double.
22093         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
22094         (rint): Define using libm_alias_double.
22095         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
22096         (round): Define using libm_alias_double.
22097         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
22098         (trunc): Define using libm_alias_double.
22099
22100 2017-11-27  Florian Weimer  <fweimer@redhat.com>
22101
22102         * sysdeps/unix/sysv/linux/mlock2.c: New file.
22103         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
22104         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
22105         (tests): Add tst-mlock2.
22106         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
22107         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
22108         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
22109         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
22110         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
22111         for mlock.  Document mlock2.
22112
22113 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
22114
22115         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
22116         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
22117         Likewise.
22118         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
22119         Likewise.
22120         * sysdeps/x86/Makeconfig: New file.
22121         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
22122         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22123         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
22124         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22125         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22126         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22127         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
22128         Likewise.
22129         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22130         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22131         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22132         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22133         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22134         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
22135         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
22136         * manual/math.texi (Mathematics): Document support for _Float64x.
22137         * math/Versions (GLIBC_2.27): Add _Float64x functions.
22138         * stdlib/Versions (GLIBC_2.27): Likewise.
22139         * wcsmbs/Versions (GLIBC_2.27): Likewise.
22140         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22141         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22142         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22143         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22144         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22145         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22146         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22147         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22148         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22149         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22150         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22152         Likewise.
22153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22154         Likewise.
22155         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22156         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22157         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22158         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22159         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22160         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22161         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22162         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22163         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22164         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22165         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22166         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22167         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22168         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22169
22170 2017-11-27  Andreas Schwab  <schwab@suse.de>
22171
22172         * elf/Makefile (dl-routines): Add dl-sort-maps.
22173         * elf/dl-sort-maps.c: New file.
22174         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
22175         (_dl_sort_maps): Declare.
22176         * elf/dl-fini.c (_dl_sort_fini): Remove.
22177         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
22178         * elf/dl-close.c (_dl_close_worker): Likewise.
22179         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
22180         open-coding it.
22181         * elf/dl-open.c (dl_open_worker): Likewise.
22182
22183 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
22184
22185         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
22186         using libm_alias_float128.
22187         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
22188         Likewise.
22189         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
22190         Likewise.
22191         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
22192         (setpayloadsigf128): Likewise.
22193         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
22194         Likewise.
22195         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
22196         Likewise.
22197
22198         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
22199         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
22200         -mfloat128 to CFLAGS.
22201         ($(foreach
22202         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
22203         Likewise.
22204         (CFLAGS-libm-test-support-float64x.c): New variable.
22205         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
22206         $(f128-loader-link) to gnulib-tests.
22207
22208         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
22209         (libm_alias_float128_other_r): If
22210         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
22211         alias.
22212         (libm_alias_float128_r): Add semicolon after weak_alias call.
22213         * sysdeps/generic/libm-alias-ldouble.h
22214         (libm_alias_ldouble_other_r_f128): New macro.
22215         (libm_alias_ldouble_other_r_f64x): Likewise.
22216         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22217         and libm_alias_ldouble_other_r_f64x.
22218         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
22219         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22220         (libm_alias_ldouble_other_r_f128): New macro.
22221         (libm_alias_ldouble_other_r_f64x): Likewise.
22222         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
22223         and libm_alias_ldouble_other_r_f64x.
22224
22225         * stdlib/strfroml.c: Always include <stdlib.h>.
22226         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
22227         undefine as macro and define as weak alias.
22228         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
22229         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
22230         <stdlib.h>.
22231         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
22232         Define and later undefine as macro and define as weak alias.
22233
22234         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22235         Define and later undefine as macro.  Define as weak alias if
22236         [!USE_WIDE_CHAR].
22237         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
22238         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22239         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
22240         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
22241         Define and later undefine as macro.  Define as weak alias if
22242         [!USE_WIDE_CHAR].
22243         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
22244         Define and later undefine as macro.  Define as weak alias if
22245         [USE_WIDE_CHAR].
22246         * sysdeps/ieee754/float128/strtof128_l.c
22247         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
22248         Define and later undefine as macro.  Define as weak alias if
22249         [!USE_WIDE_CHAR].
22250         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
22251         Define and later undefine as macro.  Define as weak alias if
22252         [USE_WIDE_CHAR].
22253         * sysdeps/ieee754/ldbl-128/strtold_l.c
22254         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22255         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22256         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22257         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22258         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
22259         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22260         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22261         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22262         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22263         * sysdeps/ieee754/ldbl-96/strtold_l.c
22264         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
22265         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
22266         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
22267         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
22268
22269         * math/test-float64x.h: New file.
22270         * math/Makefile (type-float64x-yes): New variable.
22271         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
22272
22273         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
22274         function-like macro.
22275         (min_of_type_): Likewise.
22276         (min_of_type_l): Likewise.
22277         (min_of_type_f128): Likewise.
22278         (min_of_type): Pass () as last argument of __MATH_TG.
22279
22280         * stdlib/tst-strtod-round-skeleton.c
22281         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
22282         headers.
22283
22284         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
22285         for combinations of long double with _Float64 and _Float64x.
22286
22287         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
22288         (__DECL_SIMD_cosf32): Likewise.
22289         (__DECL_SIMD_cosf64): Likewise.
22290         (__DECL_SIMD_cosf32x): Likewise.
22291         (__DECL_SIMD_cosf64x): Likewise.
22292         (__DECL_SIMD_cosf128x): Likewise.
22293         (__DECL_SIMD_sinf16): Likewise.
22294         (__DECL_SIMD_sinf32): Likewise.
22295         (__DECL_SIMD_sinf64): Likewise.
22296         (__DECL_SIMD_sinf32x): Likewise.
22297         (__DECL_SIMD_sinf64x): Likewise.
22298         (__DECL_SIMD_sinf128x): Likewise.
22299         (__DECL_SIMD_sincosf16): Likewise.
22300         (__DECL_SIMD_sincosf32): Likewise.
22301         (__DECL_SIMD_sincosf64): Likewise.
22302         (__DECL_SIMD_sincosf32x): Likewise.
22303         (__DECL_SIMD_sincosf64x): Likewise.
22304         (__DECL_SIMD_sincosf128x): Likewise.
22305         (__DECL_SIMD_logf16): Likewise.
22306         (__DECL_SIMD_logf32): Likewise.
22307         (__DECL_SIMD_logf64): Likewise.
22308         (__DECL_SIMD_logf32x): Likewise.
22309         (__DECL_SIMD_logf64x): Likewise.
22310         (__DECL_SIMD_logf128x): Likewise.
22311         (__DECL_SIMD_expf16): Likewise.
22312         (__DECL_SIMD_expf32): Likewise.
22313         (__DECL_SIMD_expf64): Likewise.
22314         (__DECL_SIMD_expf32x): Likewise.
22315         (__DECL_SIMD_expf64x): Likewise.
22316         (__DECL_SIMD_expf128x): Likewise.
22317         (__DECL_SIMD_powf16): Likewise.
22318         (__DECL_SIMD_powf32): Likewise.
22319         (__DECL_SIMD_powf64): Likewise.
22320         (__DECL_SIMD_powf32x): Likewise.
22321         (__DECL_SIMD_powf64x): Likewise.
22322         (__DECL_SIMD_powf128x): Likewise.
22323
22324         * stdlib/Versions (libc): Move entries for wcstof128 and
22325         wcstof128_l to ....
22326         * wcsmbs/Versions (libc): ... here.
22327         Include <float128-abi.h>.
22328
22329 2017-11-24  Florian Weimer  <fweimer@redhat.com>
22330
22331         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22332         bits/mman-shared.h.
22333         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22334         <bits/mman-shared.h>.
22335         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22336         to ...
22337         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22338         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22339         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22340         <bits/mman-shared.h>.
22341
22342 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22343
22344         [BZ #22457]
22345         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22346         posix_memalign/free.
22347         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22348
22349 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
22350
22351         [BZ #22469]
22352         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22353         and implement the collation rules for pl from CLDR on top of that.
22354         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22355         of locales to be built for testing.
22356         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22357
22358 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
22359
22360         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22361         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22362         libm_alias_ldouble_other.
22363         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22364         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22365         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22366         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22367         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22368         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22369         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22370         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22371         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22372         libm_alias_ldouble_r.
22373         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22374         libm_alias_ldouble_other.
22375         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22376         (log10l): Likewise.
22377         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22378         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22379         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22380         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22381         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22382         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22383         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22384         (atan2l): Likewise.
22385         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22386         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22387         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22388         libm_alias_ldouble.
22389         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22390         (cosl): Likewise.
22391         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22392         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22393         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22394         (expl): Likewise.
22395         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22396         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22397         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22398         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22399         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22400         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22401         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22402         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22403         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22404         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22405         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22406         libm_alias_ldouble.
22407         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22408         libm_alias_ldouble_other.
22409         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22410         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22411         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22412         libm_alias_ldouble.
22413         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22414         libm_alias_ldouble_other.
22415         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22416         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22417         * sysdeps/ia64/fpu/w_lgammal_main.c
22418         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22419         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22420
22421 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22422
22423         * malloc/malloc.c (tcache_thread_shutdown): Rename from
22424         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
22425         alike.  Remove freeres marker.
22426         * malloc/arena.c (arena_thread_freeres): Call
22427         tcache_thread_shutdown.
22428
22429 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22430
22431         [BZ #22459]
22432         Export nscd hash function as __nss_hash.
22433         * include/nss.h (__nss_hash): Declare.
22434         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
22435         symbol.
22436         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22437         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22438         of __nscd_hash.
22439         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22440         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22441         * nss/Makefiles (routines): Add nss_hash.
22442         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22443         * nss/nss_hash.c: Rename from nis/nis_hash.c.
22444         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
22445         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22446
22447 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22448
22449         [BZ #22478]
22450         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22451         Return error code, not -1.
22452         * signal/tst-sigwait-eintr.c: New file.
22453         * signal/Makefile (tests): Add tst-sigwait-eintr.
22454
22455 2017-11-23  Florian Weimer  <fweimer@redhat.com>
22456
22457         Linux: Add memfd_create system call wrapper
22458         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22459         tst-memfd_create.
22460         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22461         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22462         [__USE_GNU] (memfd_create): Declare.
22463         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22464         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22465         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22466         * sysdeps/unix/sysv/linux/**.abilist: Update.
22467         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22468
22469 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
22470
22471         * localedata/gen-locale.sh: Fix typo in variable name.
22472
22473         * resolv/res_debug.c (p_secstodate): Condition definition on
22474         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
22475         directly as __p_secstodate, and as a compat symbol.  Do not use
22476         libresolv_hidden_def.
22477         * resolv/resolv.h (p_secstodate): Remove macro and function
22478         declaration.
22479         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22480         using p_secstodate.
22481         * include/resolv.h (__p_secstodate): Do not use
22482         libresolv_hidden_proto.
22483         * resolv/Makefile (tests): Move tst-p_secstodate to ....
22484         (tests-internal): ... here.
22485         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
22486         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22487         and declare and use __p_secstodate and use compat_symbol_reference
22488         in that case.
22489         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22490         implementation returning 77.
22491
22492         [BZ #22463]
22493         * resolv/res_debug.c: Include <libc-diag.h>.
22494         (p_secstodate): Assert time_t at least as wide as u_long.  On
22495         overflow, use integer seconds since the epoch as output, or use
22496         "<overflow>" as output and set errno to EOVERFLOW if integer
22497         seconds since the epoch would be 14 or more characters.
22498         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22499         for sprintf call.
22500         * resolv/tst-p_secstodate.c: New file.
22501         * resolv/Makefile (tests): Add tst-p_secstodate.
22502         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22503
22504         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22505         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22506         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22507
22508 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
22509
22510         * posix/regcomp.c (init_word_char): Add comments.
22511
22512 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
22513
22514         [BZ #22447]
22515         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22516         strlen to compute length of ut_user and set trailing NUL byte of
22517         result explicitly.
22518
22519 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
22520
22521         [BZ #15537]
22522         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22523         using “copy "iso14651_t1"” and then implementing the
22524         collation rules for lv from CLDR on top of that.
22525         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22526         of locales to be built for testing.
22527         * lv_LV.UTF-8.in: New file with test data to test the Latvian
22528         sorting.
22529
22530 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
22531
22532         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22533         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22534         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22535         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22536         [__USE_MISC] (MADV_HWPOISON): New macro.
22537         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22538
22539 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22540
22541         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22542         -Wmissing-braces on GCC 4.9.
22543
22544 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
22545
22546         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22547         * sysdeps/s390/s390-32/start.S (_start): Likewise
22548         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22549         (thread_start): Likewise.
22550         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22551         (thread_start): Likewise.
22552         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22553         (__makecontext_ret): Likewise.
22554         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22555         (__makecontext_ret): Likewise.
22556
22557 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
22558
22559         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22560         __wcschrnul): Remove attribute_hidden.
22561
22562 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22563
22564         regex: don't assume uint64_t or uint32_t
22565         This avoids -Werror=overflow errors for 32-bit systems in
22566         the 64-bit case.  Problem reported by Joseph Myers in:
22567         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22568         Also, when this code is used in Gnulib it ports to platforms
22569         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
22570         them, and on some 32-bit compilers there is no uint64_t.
22571         Problem reported by Gianluigi Tiesi in:
22572         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22573         * posix/regcomp.c (init_word_char): Don't assume that the types
22574         uint64_t and uint32_t exist.  Adapted from Gnulib patch
22575         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
22576         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22577
22578 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22579
22580         * sysdeps/aarch64/memset-reg.h: New file.
22581         * sysdeps/aarch64/memset.S: Use it.
22582         (__memset): Rename to MEMSET macro.
22583         [ZVA_MACRO]: Use zva_macro.
22584         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22585         Add memset_generic and memset_falkor.
22586         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22587         (__libc_ifunc_impl_list): Add memset ifuncs.
22588         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22589         local variable zva_size.
22590         * sysdeps/aarch64/multiarch/memset.c: New file.
22591         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22592         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22593         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22594         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22595         (DCZID_DZP_MASK): New macro.
22596         (DCZID_BS_MASK): Likewise.
22597         (init_cpu_features): Read and set zva_size.
22598         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22599         (struct cpu_features): New member zva_size.
22600
22601         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22602         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22603         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22604
22605         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22606         backwards.  Fix timing computation.
22607         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22608         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22609         on memset by N at a time.  Fix timing computation.
22610
22611 2017-11-20  Florian Weimer  <fweimer@redhat.com>
22612
22613         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22614         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22615
22616 2017-11-19  Florian Weimer  <fweimer@redhat.com>
22617
22618         manual: Document mprotect
22619         * manual/memory.texi (Memory Protection): New section.
22620         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22621         documentation of PROT_* flags and reference the Memory Protection
22622         section instead.
22623
22624 2017-11-19  Florian Weimer  <fweimer@redhat.com>
22625
22626         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22627         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22628         (Scatter-Gather): ... to here.  Remove misleading comment.
22629
22630 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
22631
22632         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22633         style.
22634
22635         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22636         when /proc/<pid>/setgroups does not exist.
22637
22638 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22639
22640         * sysdeps/unix/sysv/linux/tst-ttyname.c
22641         (become_root_in_mount_ns): Remove.
22642         (do_in_chroot_1): Call support_enter_mount_namespace.
22643         (do_in_chroot_2): Likewise.
22644         (do_test): Call support_become_root early.
22645
22646 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22647
22648         * support/namespace.h (support_enter_mount_namespace): Declare.
22649         * support/support_enter_mount_namespace.c: New file.
22650         * support/Makefile (libsupport-routines): Add
22651         support_enter_mount_namespace.
22652
22653 2017-11-18  Florian Weimer  <fweimer@redhat.com>
22654
22655         * support/temp_file.c (support_create_temp_directory): Use
22656         test_dir and do not rely on the presence of the XXXXXX suffix.
22657         * support/temp_file.h (support_create_temp_directory): Update
22658         comment.
22659         * support/tst-xreadlink.c (do_test): Adjust.
22660         * support/support_chroot.c (support_chroot_create): Likewise.
22661
22662 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22663
22664         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22665         macro.
22666         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22667         htm-no-suspend.
22668
22669 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
22670
22671         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22672         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22673         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22674         (ceill): Define using libm_alias_ldouble.
22675         * sysdeps/x86_64/fpu/s_copysignl.S: Include
22676         <libm-alias-ldouble.h>.
22677         (copysignl): Define using libm_alias_ldouble.
22678         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22679         (fabsl): Define using libm_alias_ldouble.
22680         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22681         (floorl): Define using libm_alias_ldouble.
22682         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22683         (fmaxl): Define using libm_alias_ldouble.
22684         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22685         (fminl): Define using libm_alias_ldouble.
22686         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22687         (llrintl): Define using libm_alias_ldouble.
22688         (lrintl): Likewise.
22689         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22690         <libm-alias-ldouble.h>.
22691         (nearbyintl): Define using libm_alias_ldouble.
22692         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22693         (truncl): Define using libm_alias_ldouble.
22694         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22695         <libm-alias-ldouble.h>.
22696         (lrintl): Define using libm_alias_ldouble.
22697
22698         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22699         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22700         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22701         (asinhl): Define using libm_alias_ldouble.
22702         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22703         (atanl): Define using libm_alias_ldouble.
22704         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22705         (cbrtl): Define using libm_alias_ldouble.
22706         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22707         (ceill): Define using libm_alias_ldouble.
22708         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22709         (copysignl): Define using libm_alias_ldouble.
22710         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22711         (fabsl): Define using libm_alias_ldouble.
22712         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22713         (floorl): Define using libm_alias_ldouble.
22714         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22715         (fmaxl): Define using libm_alias_ldouble.
22716         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22717         (fminl): Define using libm_alias_ldouble.
22718         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22719         (frexpl): Define using libm_alias_ldouble.
22720         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22721         (llrintl): Define using libm_alias_ldouble.
22722         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22723         (logbl): Define using libm_alias_ldouble.
22724         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22725         (lrintl): Define using libm_alias_ldouble.
22726         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22727         (nearbyintl): Define using libm_alias_ldouble.
22728         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22729         (nextafterl): Define using libm_alias_ldouble.
22730         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22731         (remquol): Define using libm_alias_ldouble.
22732         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22733         (rintl): Define using libm_alias_ldouble.
22734         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22735         (truncl): Define using libm_alias_ldouble.
22736         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22737         (fmaxl): Define using libm_alias_ldouble.
22738         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22739         (fminl): Define using libm_alias_ldouble.
22740
22741         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22742         to C syntax instead of availability and properties of types.
22743         * bits/floatn.h [!__ASSEMBLER]: Likewise.
22744         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22745         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22746         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22747         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22748         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22749
22750 2017-11-17  Florian Weimer  <fweimer@redhat.com>
22751
22752         support_become_root: Enable file creation in namespaces.
22753         * support/support_become_root.c (setup_mapping): New function.
22754         (support_become_root): Call it.
22755
22756 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
22757
22758         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22759         macro.
22760
22761 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22762
22763         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22764         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22765
22766 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
22767
22768         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22769
22770         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22771         version to 4.14.
22772
22773 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22774
22775         * INSTALL: Fix botched up regeneration.
22776
22777         * NEWS: Update sourceare link to https.
22778         * configure.ac: Likewise.
22779         * crypt/md5test-giant.c: Likewise.
22780         * dlfcn/bug-atexit1.c: Likewise.
22781         * dlfcn/bug-atexit2.c: Likewise.
22782         * localedata/README: Likewise.
22783         * malloc/tst-mallocfork.c: Likewise.
22784         * manual/install.texi: Likewise.
22785         * nptl/tst-pthread-getattr.c: Likewise.
22786         * stdio-common/tst-fgets.c: Likewise.
22787         * stdio-common/tst-fwrite.c: Likewise.
22788         * sunrpc/Makefile: Likewise.
22789         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22790         * wcsmbs/tst-mbrtowc2.c: Likewise.
22791         * configure: Regenerate.
22792         * INSTALL: Regenerate.
22793
22794 2017-11-15  Martin Sebor  <msebor@redhat.com>
22795
22796         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22797         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22798         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22799
22800 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
22801
22802         [BZ #22145]
22803         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22804         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22805
22806         [BZ #22145]
22807         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22808         Defer is_pty check until end of the function.
22809         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22810
22811         [BZ #22145]
22812         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22813         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22814         (ttyname): Likewise.
22815         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22816         (__ttyname_r): Likewise.
22817
22818         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22819         int to bool.
22820
22821         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22822
22823         * manual/terminal.texi (Is It a Terminal):
22824         Mention ENODEV for ttyname and ttyname_r.
22825
22826 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22827
22828         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22829         constant and macro.
22830
22831         * sysdeps/unix/sysv/linux/bits/mman-linux.h
22832         [__USE_MISC] (MADV_WIPEONFORK): New macro.
22833         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22834         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22835         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22836         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22837
22838 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22839
22840         * signal/sigrelse.c (sigrelse): Optimize implementation.
22841
22842         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22843         (__sigpause): Rely on __sigsuspend to implement single thread
22844         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
22845
22846 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22847
22848         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22849         kernel version to 4.14.
22850
22851 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
22852
22853         [BZ #22442]
22854         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22855         Check if ifname is too long.
22856
22857 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
22858
22859         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22860
22861 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
22862
22863         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22864         was accidentally lost.
22865
22866 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
22867
22868         * localedata/locales/az_IR: Add standard copyright header.
22869
22870 2017-11-15  Florian Weimer  <fweimer@redhat.com>
22871
22872         [BZ #22439]
22873         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22874         not just the top one.  Output a new "subheaps" statistic.
22875
22876 2017-11-15  Florian Weimer  <fweimer@redhat.com>
22877
22878         [BZ #22408]
22879         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22880         under the per-arena lock.
22881         * malloc/Makefile (tests): Add tst-malloc_info.
22882         (tst-malloc_info): Link with libpthread.
22883         * malloc/tst-malloc_info.c: New file.
22884
22885 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
22886
22887         [BZ #21660]
22888         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22889         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22890         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22891         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22892         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22893         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22894         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22895         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22896         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22897         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22898         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22899         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22900         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22901         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22902         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22903         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22904         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22905         (__floating_type): Likewise.
22906         (__real_integer_type): Likewise.
22907         (__complex_integer_type): Likewise.
22908         (__expr_is_real): Likewise.
22909         (__tgmath_real_type_sub): Likewise.
22910         (__tgmath_real_type): Likewise.
22911         (__tgmath_complex_type_sub): Likewise.
22912         (__tgmath_complex_type): Likewise.
22913         (__TGMATH_F128): Likewise.
22914         (__TGMATH_CF128): Likewise.
22915         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22916         new macros.
22917         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22918         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22919         Likewise.
22920         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22921         Likewise.
22922         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22923         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22924         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22925         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22926         Likewise.
22927         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22928         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22929         Likewise.
22930         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22931         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22932         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22933         Likewise.
22934         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22935         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22936         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22937         (cimag): Likewise.
22938         (creal): Likewise.
22939
22940 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
22941
22942         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22943         for stpncpy calls for GCC 8.
22944         (test_strncat): Disable -Wstringop-truncation warning for strncat
22945         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
22946         strncat call for GCC 7.
22947         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22948         calls for GCC 8.
22949         (test_memcmp): Use memcpy instead of strncpy for calls not copying
22950         trailing NUL.
22951
22952         * string/bug-strncat1.c: Include <libc-diag.h>.
22953         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22954
22955 2017-11-13  Claude Paroz  <claude@2xlibre.net>
22956
22957         [BZ #22387]
22958         * localedata/locales/aa_DJ: Improved readibility by replacing
22959         <Uxxxx> sequences in the ASCII printable range by their ASCII
22960         character equivalents.
22961         * localedata/locales/aa_ER: Likewise.
22962         * localedata/locales/aa_ER@saaho: Likewise.
22963         * localedata/locales/aa_ET: Likewise.
22964         * localedata/locales/af_ZA: Likewise.
22965         * localedata/locales/agr_PE: Likewise.
22966         * localedata/locales/ak_GH: Likewise.
22967         * localedata/locales/am_ET: Likewise.
22968         * localedata/locales/anp_IN: Likewise.
22969         * localedata/locales/ar_AE: Likewise.
22970         * localedata/locales/ar_BH: Likewise.
22971         * localedata/locales/ar_DZ: Likewise.
22972         * localedata/locales/ar_EG: Likewise.
22973         * localedata/locales/ar_IN: Likewise.
22974         * localedata/locales/ar_IQ: Likewise.
22975         * localedata/locales/ar_JO: Likewise.
22976         * localedata/locales/ar_KW: Likewise.
22977         * localedata/locales/ar_LB: Likewise.
22978         * localedata/locales/ar_LY: Likewise.
22979         * localedata/locales/ar_MA: Likewise.
22980         * localedata/locales/ar_OM: Likewise.
22981         * localedata/locales/ar_QA: Likewise.
22982         * localedata/locales/ar_SA: Likewise.
22983         * localedata/locales/ar_SD: Likewise.
22984         * localedata/locales/ar_SS: Likewise.
22985         * localedata/locales/ar_SY: Likewise.
22986         * localedata/locales/ar_TN: Likewise.
22987         * localedata/locales/ar_YE: Likewise.
22988         * localedata/locales/as_IN: Likewise.
22989         * localedata/locales/ast_ES: Likewise.
22990         * localedata/locales/ayc_PE: Likewise.
22991         * localedata/locales/az_AZ: Likewise.
22992         * localedata/locales/az_IR: Likewise.
22993         * localedata/locales/be_BY: Likewise.
22994         * localedata/locales/be_BY@latin: Likewise.
22995         * localedata/locales/bem_ZM: Likewise.
22996         * localedata/locales/ber_DZ: Likewise.
22997         * localedata/locales/ber_MA: Likewise.
22998         * localedata/locales/bg_BG: Likewise.
22999         * localedata/locales/bhb_IN: Likewise.
23000         * localedata/locales/bho_IN: Likewise.
23001         * localedata/locales/bi_VU: Likewise.
23002         * localedata/locales/bn_BD: Likewise.
23003         * localedata/locales/bn_IN: Likewise.
23004         * localedata/locales/bo_CN: Likewise.
23005         * localedata/locales/bo_IN: Likewise.
23006         * localedata/locales/br_FR: Likewise.
23007         * localedata/locales/brx_IN: Likewise.
23008         * localedata/locales/bs_BA: Likewise.
23009         * localedata/locales/byn_ER: Likewise.
23010         * localedata/locales/ca_AD: Likewise.
23011         * localedata/locales/ca_ES: Likewise.
23012         * localedata/locales/ca_FR: Likewise.
23013         * localedata/locales/ca_IT: Likewise.
23014         * localedata/locales/ce_RU: Likewise.
23015         * localedata/locales/chr_US: Likewise.
23016         * localedata/locales/cmn_TW: Likewise.
23017         * localedata/locales/crh_UA: Likewise.
23018         * localedata/locales/cs_CZ: Likewise.
23019         * localedata/locales/csb_PL: Likewise.
23020         * localedata/locales/cv_RU: Likewise.
23021         * localedata/locales/cy_GB: Likewise.
23022         * localedata/locales/da_DK: Likewise.
23023         * localedata/locales/de_AT: Likewise.
23024         * localedata/locales/de_BE: Likewise.
23025         * localedata/locales/de_CH: Likewise.
23026         * localedata/locales/de_DE: Likewise.
23027         * localedata/locales/de_IT: Likewise.
23028         * localedata/locales/de_LI: Likewise.
23029         * localedata/locales/de_LU: Likewise.
23030         * localedata/locales/doi_IN: Likewise.
23031         * localedata/locales/dv_MV: Likewise.
23032         * localedata/locales/dz_BT: Likewise.
23033         * localedata/locales/el_CY: Likewise.
23034         * localedata/locales/el_GR: Likewise.
23035         * localedata/locales/en_AG: Likewise.
23036         * localedata/locales/en_AU: Likewise.
23037         * localedata/locales/en_BW: Likewise.
23038         * localedata/locales/en_CA: Likewise.
23039         * localedata/locales/en_DK: Likewise.
23040         * localedata/locales/en_GB: Likewise.
23041         * localedata/locales/en_HK: Likewise.
23042         * localedata/locales/en_IE: Likewise.
23043         * localedata/locales/en_IL: Likewise.
23044         * localedata/locales/en_IN: Likewise.
23045         * localedata/locales/en_NG: Likewise.
23046         * localedata/locales/en_NZ: Likewise.
23047         * localedata/locales/en_PH: Likewise.
23048         * localedata/locales/en_SG: Likewise.
23049         * localedata/locales/en_US: Likewise.
23050         * localedata/locales/en_ZA: Likewise.
23051         * localedata/locales/en_ZM: Likewise.
23052         * localedata/locales/en_ZW: Likewise.
23053         * localedata/locales/eo: Likewise.
23054         * localedata/locales/es_AR: Likewise.
23055         * localedata/locales/es_BO: Likewise.
23056         * localedata/locales/es_CL: Likewise.
23057         * localedata/locales/es_CO: Likewise.
23058         * localedata/locales/es_CR: Likewise.
23059         * localedata/locales/es_CU: Likewise.
23060         * localedata/locales/es_DO: Likewise.
23061         * localedata/locales/es_EC: Likewise.
23062         * localedata/locales/es_ES: Likewise.
23063         * localedata/locales/es_GT: Likewise.
23064         * localedata/locales/es_HN: Likewise.
23065         * localedata/locales/es_MX: Likewise.
23066         * localedata/locales/es_NI: Likewise.
23067         * localedata/locales/es_PA: Likewise.
23068         * localedata/locales/es_PE: Likewise.
23069         * localedata/locales/es_PR: Likewise.
23070         * localedata/locales/es_PY: Likewise.
23071         * localedata/locales/es_SV: Likewise.
23072         * localedata/locales/es_US: Likewise.
23073         * localedata/locales/es_UY: Likewise.
23074         * localedata/locales/es_VE: Likewise.
23075         * localedata/locales/et_EE: Likewise.
23076         * localedata/locales/eu_ES: Likewise.
23077         * localedata/locales/eu_ES@euro: Likewise.
23078         * localedata/locales/fa_IR: Likewise.
23079         * localedata/locales/ff_SN: Likewise.
23080         * localedata/locales/fi_FI: Likewise.
23081         * localedata/locales/fil_PH: Likewise.
23082         * localedata/locales/fo_FO: Likewise.
23083         * localedata/locales/fr_BE: Likewise.
23084         * localedata/locales/fr_CA: Likewise.
23085         * localedata/locales/fr_CH: Likewise.
23086         * localedata/locales/fr_FR: Likewise.
23087         * localedata/locales/fr_LU: Likewise.
23088         * localedata/locales/fur_IT: Likewise.
23089         * localedata/locales/fy_DE: Likewise.
23090         * localedata/locales/fy_NL: Likewise.
23091         * localedata/locales/ga_IE: Likewise.
23092         * localedata/locales/gd_GB: Likewise.
23093         * localedata/locales/gez_ER: Likewise.
23094         * localedata/locales/gez_ET: Likewise.
23095         * localedata/locales/gl_ES: Likewise.
23096         * localedata/locales/gu_IN: Likewise.
23097         * localedata/locales/gv_GB: Likewise.
23098         * localedata/locales/ha_NG: Likewise.
23099         * localedata/locales/hak_TW: Likewise.
23100         * localedata/locales/he_IL: Likewise.
23101         * localedata/locales/hi_IN: Likewise.
23102         * localedata/locales/hif_FJ: Likewise.
23103         * localedata/locales/hne_IN: Likewise.
23104         * localedata/locales/hr_HR: Likewise.
23105         * localedata/locales/hsb_DE: Likewise.
23106         * localedata/locales/ht_HT: Likewise.
23107         * localedata/locales/hu_HU: Likewise.
23108         * localedata/locales/hy_AM: Likewise.
23109         * localedata/locales/i18n: Likewise.
23110         * localedata/locales/ia_FR: Likewise.
23111         * localedata/locales/id_ID: Likewise.
23112         * localedata/locales/ig_NG: Likewise.
23113         * localedata/locales/ik_CA: Likewise.
23114         * localedata/locales/is_IS: Likewise.
23115         * localedata/locales/it_CH: Likewise.
23116         * localedata/locales/it_IT: Likewise.
23117         * localedata/locales/iu_CA: Likewise.
23118         * localedata/locales/ja_JP: Likewise.
23119         * localedata/locales/ka_GE: Likewise.
23120         * localedata/locales/kk_KZ: Likewise.
23121         * localedata/locales/kl_GL: Likewise.
23122         * localedata/locales/kn_IN: Likewise.
23123         * localedata/locales/ko_KR: Likewise.
23124         * localedata/locales/kok_IN: Likewise.
23125         * localedata/locales/ks_IN: Likewise.
23126         * localedata/locales/ks_IN@devanagari: Likewise.
23127         * localedata/locales/ku_TR: Likewise.
23128         * localedata/locales/kw_GB: Likewise.
23129         * localedata/locales/ky_KG: Likewise.
23130         * localedata/locales/lb_LU: Likewise.
23131         * localedata/locales/lg_UG: Likewise.
23132         * localedata/locales/li_BE: Likewise.
23133         * localedata/locales/li_NL: Likewise.
23134         * localedata/locales/lij_IT: Likewise.
23135         * localedata/locales/ln_CD: Likewise.
23136         * localedata/locales/lo_LA: Likewise.
23137         * localedata/locales/lt_LT: Likewise.
23138         * localedata/locales/lv_LV: Likewise.
23139         * localedata/locales/lzh_TW: Likewise.
23140         * localedata/locales/mag_IN: Likewise.
23141         * localedata/locales/mai_IN: Likewise.
23142         * localedata/locales/mg_MG: Likewise.
23143         * localedata/locales/mhr_RU: Likewise.
23144         * localedata/locales/mi_NZ: Likewise.
23145         * localedata/locales/mk_MK: Likewise.
23146         * localedata/locales/ml_IN: Likewise.
23147         * localedata/locales/mn_MN: Likewise.
23148         * localedata/locales/mni_IN: Likewise.
23149         * localedata/locales/mr_IN: Likewise.
23150         * localedata/locales/ms_MY: Likewise.
23151         * localedata/locales/mt_MT: Likewise.
23152         * localedata/locales/my_MM: Likewise.
23153         * localedata/locales/nan_TW: Likewise.
23154         * localedata/locales/nan_TW@latin: Likewise.
23155         * localedata/locales/nb_NO: Likewise.
23156         * localedata/locales/nds_DE: Likewise.
23157         * localedata/locales/nds_NL: Likewise.
23158         * localedata/locales/ne_NP: Likewise.
23159         * localedata/locales/nhn_MX: Likewise.
23160         * localedata/locales/niu_NU: Likewise.
23161         * localedata/locales/niu_NZ: Likewise.
23162         * localedata/locales/nl_AW: Likewise.
23163         * localedata/locales/nl_BE: Likewise.
23164         * localedata/locales/nl_NL: Likewise.
23165         * localedata/locales/nn_NO: Likewise.
23166         * localedata/locales/nr_ZA: Likewise.
23167         * localedata/locales/nso_ZA: Likewise.
23168         * localedata/locales/oc_FR: Likewise.
23169         * localedata/locales/om_ET: Likewise.
23170         * localedata/locales/om_KE: Likewise.
23171         * localedata/locales/or_IN: Likewise.
23172         * localedata/locales/os_RU: Likewise.
23173         * localedata/locales/pa_IN: Likewise.
23174         * localedata/locales/pa_PK: Likewise.
23175         * localedata/locales/pap_AW: Likewise.
23176         * localedata/locales/pap_CW: Likewise.
23177         * localedata/locales/pl_PL: Likewise.
23178         * localedata/locales/ps_AF: Likewise.
23179         * localedata/locales/pt_BR: Likewise.
23180         * localedata/locales/pt_PT: Likewise.
23181         * localedata/locales/quz_PE: Likewise.
23182         * localedata/locales/raj_IN: Likewise.
23183         * localedata/locales/ro_RO: Likewise.
23184         * localedata/locales/ru_RU: Likewise.
23185         * localedata/locales/ru_UA: Likewise.
23186         * localedata/locales/rw_RW: Likewise.
23187         * localedata/locales/sa_IN: Likewise.
23188         * localedata/locales/sat_IN: Likewise.
23189         * localedata/locales/sc_IT: Likewise.
23190         * localedata/locales/sd_IN: Likewise.
23191         * localedata/locales/sd_IN@devanagari: Likewise.
23192         * localedata/locales/se_NO: Likewise.
23193         * localedata/locales/sgs_LT: Likewise.
23194         * localedata/locales/shs_CA: Likewise.
23195         * localedata/locales/si_LK: Likewise.
23196         * localedata/locales/sid_ET: Likewise.
23197         * localedata/locales/sk_SK: Likewise.
23198         * localedata/locales/sl_SI: Likewise.
23199         * localedata/locales/sm_WS: Likewise.
23200         * localedata/locales/so_DJ: Likewise.
23201         * localedata/locales/so_ET: Likewise.
23202         * localedata/locales/so_KE: Likewise.
23203         * localedata/locales/so_SO: Likewise.
23204         * localedata/locales/sq_AL: Likewise.
23205         * localedata/locales/sq_MK: Likewise.
23206         * localedata/locales/sr_ME: Likewise.
23207         * localedata/locales/sr_RS: Likewise.
23208         * localedata/locales/sr_RS@latin: Likewise.
23209         * localedata/locales/ss_ZA: Likewise.
23210         * localedata/locales/st_ZA: Likewise.
23211         * localedata/locales/sv_FI: Likewise.
23212         * localedata/locales/sv_SE: Likewise.
23213         * localedata/locales/sw_KE: Likewise.
23214         * localedata/locales/sw_TZ: Likewise.
23215         * localedata/locales/szl_PL: Likewise.
23216         * localedata/locales/ta_IN: Likewise.
23217         * localedata/locales/ta_LK: Likewise.
23218         * localedata/locales/tcy_IN: Likewise.
23219         * localedata/locales/te_IN: Likewise.
23220         * localedata/locales/tg_TJ: Likewise.
23221         * localedata/locales/th_TH: Likewise.
23222         * localedata/locales/the_NP: Likewise.
23223         * localedata/locales/ti_ER: Likewise.
23224         * localedata/locales/ti_ET: Likewise.
23225         * localedata/locales/tig_ER: Likewise.
23226         * localedata/locales/tk_TM: Likewise.
23227         * localedata/locales/tl_PH: Likewise.
23228         * localedata/locales/tn_ZA: Likewise.
23229         * localedata/locales/to_TO: Likewise.
23230         * localedata/locales/tpi_PG: Likewise.
23231         * localedata/locales/tr_CY: Likewise.
23232         * localedata/locales/tr_TR: Likewise.
23233         * localedata/locales/ts_ZA: Likewise.
23234         * localedata/locales/tt_RU: Likewise.
23235         * localedata/locales/tt_RU@iqtelif: Likewise.
23236         * localedata/locales/ug_CN: Likewise.
23237         * localedata/locales/uk_UA: Likewise.
23238         * localedata/locales/unm_US: Likewise.
23239         * localedata/locales/ur_IN: Likewise.
23240         * localedata/locales/ur_PK: Likewise.
23241         * localedata/locales/uz_UZ: Likewise.
23242         * localedata/locales/uz_UZ@cyrillic: Likewise.
23243         * localedata/locales/ve_ZA: Likewise.
23244         * localedata/locales/vi_VN: Likewise.
23245         * localedata/locales/wa_BE: Likewise.
23246         * localedata/locales/wae_CH: Likewise.
23247         * localedata/locales/wal_ET: Likewise.
23248         * localedata/locales/wo_SN: Likewise.
23249         * localedata/locales/xh_ZA: Likewise.
23250         * localedata/locales/yi_US: Likewise.
23251         * localedata/locales/yo_NG: Likewise.
23252         * localedata/locales/yue_HK: Likewise.
23253         * localedata/locales/yuw_PG: Likewise.
23254         * localedata/locales/zh_CN: Likewise.
23255         * localedata/locales/zh_HK: Likewise.
23256         * localedata/locales/zh_SG: Likewise.
23257         * localedata/locales/zh_TW: Likewise.
23258         * localedata/locales/zu_ZA: Likewise.
23259
23260 2017-11-13  Florian Weimer  <fweimer@redhat.com>
23261
23262         * support/next_to_fault.h, support/next_to_fault.c: New files.
23263         * support/Makefile (libsupport-routines): Add next_to_fault.
23264         * resolv/tst-inet_pton.c (struct next_to_fault)
23265         (next_to_fault_allocate, next_to_fault_free): Remove.
23266         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
23267
23268 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
23269
23270         * elf/dl-support.c: Include <dl-procruntime.c>.
23271         * include/link.h: Include <link_map.h>.
23272         * sysdeps/generic/dl-procruntime.c: New file.
23273         * sysdeps/generic/link_map.h: Likewise.
23274         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
23275         the writable ld.so namespace.
23276
23277 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23278
23279         timezone: pacify GCC -Wstringop-truncation
23280         Problem reported by Martin Sebor in:
23281         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
23282         * timezone/zic.c (writezone): Use memcpy, not strncpy.
23283
23284 2017-11-12  Florian Weimer  <fweimer@redhat.com>
23285
23286         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
23287         tst-xreadlink.
23288         (tests): Add tst-xreadlink.
23289         * support/support.h (xstrndup): Declare.
23290         * support/xunistd.h (xunlink, xreadlink): Declare.
23291         * support/temp_file.h (support_create_temp_directory): Declare.
23292         * support/temp_file.c (support_create_temp_directory): New function.
23293         * support/support_chroot.c (support_chroot_create): Use it.
23294         * support/xreadlink.c: New file.
23295         * support/xstrndup.c: Likewise.
23296         * support/xunlink.c: Likewise.
23297         * support/tst-xreadlink.c: Likewise.
23298
23299 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
23300
23301         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23302
23303 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23304
23305         [BZ #22409]
23306         [BZ #22412]
23307         * resolv/res_comp.c (printable_string, binary_hnok)
23308         (binary_leading_dash): New functions.
23309         (res_hnok): Reimplement using these functions and ns_name_pton.
23310         (res_ownok): Likewise.
23311         (res_mailok): Reimplement using printable_string, ns_name_pton and
23312         binary_hnok.
23313         (res_dnok): Reimplement using printable_string and ns_name_pton.
23314         * resolv/tst-res_hnok.c (tests): Add additional tests.
23315         (LETTERDIGITS, PRINTABLE): Define.
23316         (do_test): Adjust one_char results.
23317
23318 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23319
23320         [BZ #22413]
23321         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23322         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23323
23324 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23325
23326         * resolv/tst-ns_name_pton.c: New file.
23327         * resolv/Makefile (tests): Add tst-ns_name_pton.
23328         (tst-ns_name_pton): Link against libresolv.
23329
23330 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23331
23332         * resolv/tst-res_hnok.c: New file.
23333         * resolv/Makefile (tests): Add tst-res_hnok.
23334         (tst-res_hnok): Link against libresolv.
23335
23336 2017-11-11  Florian Weimer  <fweimer@redhat.com>
23337
23338         * resolv/tst-resolv-network.c: Use test framework instead explicit
23339         main function.
23340
23341 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
23342
23343         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23344         <jmp_buf-macros.h>.
23345         [!_ISOMAC] (STR_HELPER): New.
23346         [!_ISOMAC] (STR): Likewise.
23347         [!_ISOMAC] (TEST_SIZE): Likewise.
23348         [!_ISOMAC] (TEST_ALIGN): Likewise.
23349         [!_ISOMAC] (TEST_OFFSET): Likewise.
23350         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23351         field offsets of jmp_buf as well as sigjmp_buf.
23352         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23353         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23354         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23355         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23356         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23357         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23358         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23359         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23360         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23361         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23362         Likewise.
23363         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23364         Likewise.
23365         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23367         Likewise.
23368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23369         Likewise.
23370         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23371         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23372         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23373         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23374         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23376         Likewise.
23377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23378         Likewise.
23379         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23380         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23381         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23382
23383 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
23384
23385         * include/float.h
23386         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23387         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23388         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23389         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23390         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23391         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23392         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23393         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23394         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23395         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23396         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23397         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23398         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23399         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23400         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23401         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23402         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23403         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23404         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23406         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23407         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23408         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23410         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23411         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23412         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23413         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23414         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23415         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23416         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23417         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23418         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23419         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23420         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23421         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23422         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23423         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23424         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23425         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23426         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23427         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23428         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23429         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23430         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23431         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23432         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23433         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23434         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23435         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23436         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23437         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23438         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23439         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23440         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23441         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23442         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23443         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23444         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23445         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23446         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23447         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23448         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23449         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23450         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23451         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23452         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23453         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23454         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23455         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23456         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23457         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23458         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23459         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23460         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23461         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23462         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23463         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23464         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23465         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23466         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23467         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23468         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23469         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23470         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23471         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23472         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23473         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23474
23475         * stdlib/tst-strtod.h (F16): New macro.
23476         (F32): Likewise.
23477         (F64): Likewise.
23478         (F32X): Likewise.
23479         (F64X): Likewise.
23480         (F128X): Likewise.
23481         (IF_FLOAT16): Likewise.
23482         (IF_FLOAT32): Likewise.
23483         (IF_FLOAT64): Likewise.
23484         (IF_FLOAT32X): Likewise.
23485         (IF_FLOAT64X): Likewise.
23486         (IF_FLOAT128X): Likewise.
23487         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23488         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23489         (STRTOD_TEST_FOREACH): Likewise.
23490         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23491         (CHOOSE_f64): Likewise.
23492         (CHOOSE_f32x): Likewise.
23493         (CHOOSE_f64x): Likewise.
23494
23495 2017-11-07  Andreas Schwab  <schwab@suse.de>
23496
23497         * nptl/Makefile (tests-internal): Remove tst-typesizes.
23498
23499 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
23500
23501         [BZ #22403]
23502         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23503         to be escaped.
23504         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23505         to be escaped.
23506
23507 2017-11-07  Claude Paroz  <claude@2xlibre.net>
23508
23509         [BZ #22403]
23510         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23511         to be escaped.
23512         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23513         to be escaped.
23514         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23515         to be escaped.
23516
23517 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23518
23519         [BZ #22298]
23520         * nptl/allocatestack.c (allocate_stack): Check if
23521         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23522         __PTHREAD_MUTEX_HAVE_PREV is defined.
23523         * nptl/descr.h (pthread): Likewise.
23524         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23525         Likewise.
23526         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23527         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23528         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23529         * sysdeps/nptl/bits/thread-shared-types.h
23530         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23531         defines.
23532         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23533         of __WORDSIZE for internal layout.
23534         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23535         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23536         instead of __WORDSIZE whether to use an union for __spins and __list
23537         fields.
23538         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23539         case.
23540         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23541         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23542         defines.
23543         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23544         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23545         Likewise.
23546         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23547         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23548         Likewise.
23549         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23550         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23551         Likewise.
23552         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23553         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23554         Likewise.
23555         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23556         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23557         Likewise.
23558         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23559         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23560         Likewise.
23561         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23562         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23563         Likewise.
23564         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23565         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23566         Likewise.
23567         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23568         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23569         Likewise.
23570         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23571         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23572         Likewise.
23573         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23574         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23575         Likewise.
23576         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23577         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23578         Likewise.
23579         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23580         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23581         Likewise.
23582         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23583         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23584         Likewise.
23585
23586         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23587         New macros.
23588         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23589         checks for expected input type size.
23590         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23591         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23592         Likewise.
23593         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23594         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23595         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23596         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23597         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23598         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23599         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23600         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23601         superflous runtime assert check.
23602         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23603         Likewise.
23604         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23605         Likewise.
23606         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23607         Likewise.
23608         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23609         Likewise.
23610         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23611         Likewise.
23612         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23613         Likewise.
23614         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23615         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23616         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23617         Likewise.
23618         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23619         Likewise.
23620         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23621         Likewise.
23622         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23623         Likewise.
23624         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23625         Likewise.
23626         * nptl/pthread_attr_setinheritsched.c
23627         (__pthread_attr_setinheritsched): Likewise.
23628         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23629         Likewise.
23630         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23631         Likewise.
23632         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23633         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23634         __old_pthread_attr_setstack): Likewise.
23635         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23636         Likewise.
23637         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23638         Likewise.
23639         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23640         Likewise.
23641         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23642         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23643         Likewise.
23644         * nptl/tst-typesizes.c: Remove file.
23645
23646         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23647         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23648         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23649         checks for internal pthread_mutex_t offsets.
23650         * sysdeps/aarch64/nptl/pthread-offsets.h
23651         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23652         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23653         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23654         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23655         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23656         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23657         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23658         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23659         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23660         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23661         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23662         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23663         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23664         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23665         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23666         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23667         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23668         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23669
23670 2017-11-07  Florian Weimer  <fweimer@redhat.com>
23671
23672         * bits/mman-linux.h: Move ...
23673         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
23674         comment.
23675         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23676         outdated comment.
23677
23678 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
23679
23680         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23681         Redefine STRNLEN as __strnlen_power8.
23682
23683 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23684
23685         * signal/sighold.c (sighold): Optimize implementation.
23686
23687         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23688         __NR_rt_sigqueueinfo.
23689
23690         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23691         __sigtimedwait.
23692         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23693         assume __NR_rt_sigtimedwait.
23694         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23695         and add LIBC_CANCEL_HANDLED for cancellation marking.
23696         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23697
23698         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23699         (sysdeps_routines): Add memchr_noneon.
23700         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23701         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23702         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23703         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23704         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23705         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23706         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23707
23708         * sysdeps/arm/arm-ifunc.h: New file.
23709         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23710         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23711         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23712         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23713         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23714         (__memcpy_neon): Avoid create hidden alias.
23715         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23716         (__memcpy_vfp): Likewise.
23717         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23718         (sysdep_routines): Add memcpy_arm.
23719         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23720
23721 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
23722
23723         [BZ #22362]
23724         * Makerules (make-link-multidir): New.
23725         * config.make.in (multidir): New.
23726         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
23727         * configure: Regenerated.
23728         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23729         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23730         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23731         New target.
23732
23733 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
23734
23735         [BZ #22402]
23736         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23737         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23738
23739 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
23740
23741         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23742         to be escaped.
23743
23744 2017-11-04  Florian Weimer  <fweimer@redhat.com>
23745
23746         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23747
23748 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
23749
23750         * math/math.h [__HAVE_DISTINCT_FLOAT16
23751         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23752         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23753         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23754         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23755         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23756         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23757         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23758         (__MATH_TG_F32): New macro.
23759         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23760         (__MATH_TG_F64X): Likewise.
23761         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23762         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23763
23764 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
23765
23766         * po/de.po: Update translations.
23767         * po/ru.po: Likewise.
23768
23769 2017-11-03  Florian Weimer  <fweimer@redhat.com>
23770
23771         * manual/filesys.texi (Hard Links): Document linkat.
23772
23773 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
23774
23775         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23776         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23777         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23778         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23779         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23780         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23781         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23782         the same as _Float128.
23783         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23784         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23785         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23786
23787         * stdlib/stdlib.h
23788         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23789         Declare.
23790         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23791         Likewise.
23792         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23793         Likewise.
23794         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23795         (strtof32x): Likewise.
23796         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23797         (strtof64x): Likewise.
23798         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23799         (strtof128x): Likewise.
23800         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23801         (strfromf16): Likewise.
23802         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23803         (strfromf32): Likewise.
23804         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23805         (strfromf64): Likewise.
23806         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23807         (strfromf32x): Likewise.
23808         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23809         (strfromf64x): Likewise.
23810         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23811         (strfromf128x): Likewise.
23812         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23813         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23814         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23815         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23816         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23817         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23818
23819 2017-11-03  Richard Henderson  <rth@twiddle.net>
23820
23821         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23822
23823 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23824
23825         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23826
23827 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23828
23829         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23830         DT_TLSDESC_GOT initialization.
23831         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23832         (_dl_tlsdesc_resolve_hold): Likewise.
23833         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23834         (_dl_tlsdesc_resolve_hold): Likewise.
23835         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23836         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23837
23838 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23839
23840         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23841
23842 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23843
23844         [BZ #18572]
23845         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23846         non-lazily for R_ARM_TLS_DESC.
23847
23848 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23849
23850         [BZ #17078]
23851         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23852         R_ARM_TLS_DESC case.
23853         (elf_machine_lazy_rel): Remove the prelink check.
23854
23855 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23856
23857         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23858         DT_TLSDESC_GOT initialization.
23859         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23860         (_dl_tlsdesc_resolve_rela): Likewise.
23861         (_dl_tlsdesc_resolve_hold): Likewise.
23862         (_dl_tlsdesc_undefweak): Remove ldar.
23863         (_dl_tlsdesc_dynamic): Likewise.
23864         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23865         (_dl_tlsdesc_resolve_rela): Likewise.
23866         (_dl_tlsdesc_resolve_hold): Likewise.
23867         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23868         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23869         (_dl_tlsdesc_resolve_rela): Likewise.
23870         (_dl_tlsdesc_resolve_hold): Likewise.
23871
23872 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23873
23874         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23875         binding and initialization non-lazily for R_AARCH64_TLSDESC.
23876
23877 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23878
23879         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23880         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23881
23882 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
23883
23884         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23885         Declare.
23886         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23887         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23888         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23889         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23890         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23891         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23892         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23893         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23894         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23895         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23896         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23897
23898 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
23899
23900         [BZ #22382]
23901         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23902         * localedata/locales/tpi_PG: Add standard header.
23903
23904 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23905
23906         test-errno-linux: quotactl can fail with EPERM in containers.
23907         * sysdeps/unix/sysv/linux/test-errno-linux.c
23908         (LIST, LIST_FORWARD): New macros.
23909         (check_error_in_list): New function.
23910         (test_wrp_rv): Accept list of permitted error codes.
23911         (test_wrp_rv2): Remove.
23912         (test_wrp): Call test_wrp_rv with list of error codes.
23913         (test_wrp2): Accept list of error codes.
23914         (do_test): Adjust.  Allow EPERM for quotactl.
23915
23916 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23917
23918         * stdio-common/bug16.c (do_test): Use array_length.
23919         * stdio-common/errlist.c (_sys_nerr): Likewise.
23920         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23921         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23922         * stdio-common/psiginfo.c (psiginfo): Use array_length.
23923         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23924         (do_test): Use array_length.
23925         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23926         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23927         * stdio-common/tst-printf-round.c (do_test): Likewise.
23928         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23929         (CHECK): Use array_length.
23930         * stdio-common/tstdiomisc.c (t3, F): Likewise.
23931         * stdio-common/tstscanf.c (main): Likewise.
23932         * stdio-common/vfprintf.c (process_string_arg): Likewise.
23933
23934 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23935
23936         Add array_length and array_end macros.
23937         * include/array_length.h: New file.
23938
23939 2017-11-02  Florian Weimer  <fweimer@redhat.com>
23940
23941         [BZ #22332]
23942         * posix/tst-glob-tilde.c (do_noescape): New variable.
23943         (one_test): Process it.
23944         (do_test): Set do_noescape.  Add unescaping test case.
23945
23946 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
23947
23948         * math/complex.h
23949         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23950         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23951         with appropriate macros defined and undefined.
23952         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23953         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23954         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23955         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23956         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23957         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23958         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23959         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23960         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23961         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23962
23963         * math/complex.h
23964         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23965         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23966         that for long double.  Do not condition define and undefine of
23967         _Mdouble_complex_ on [__CFLOAT128].
23968
23969 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
23970
23971         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23972         of <sysdeps/generic/sysdep.h>.
23973         (ALIGNARG): Removed.
23974         (ASM_SIZE_DIRECTIVE): Likewise.
23975         (ENTRY): Likewise.
23976         (END): Likewise.
23977         (ENTRY_CHK): Likewise.
23978         (END_CHK): Likewise.
23979         (syscall_error): Likewise.
23980         (mcount): Likewise.
23981         (PSEUDO_END): Likewise.
23982         (L): Likewise.
23983         (atom_text_section): Likewise.
23984         * sysdeps/x86/sysdep.h: New file.
23985         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23986         of <sysdeps/generic/sysdep.h>.
23987         (ALIGNARG): Removed.
23988         (ASM_SIZE_DIRECTIVE): Likewise.
23989         (ENTRY): Likewise.
23990         (END): Likewise.
23991         (ENTRY_CHK): Likewise.
23992         (END_CHK): Likewise.
23993         (syscall_error): Likewise.
23994         (mcount): Likewise.
23995         (PSEUDO_END): Likewise.
23996         (L): Likewise.
23997         (atom_text_section): Likewise.
23998
23999 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
24000
24001         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
24002         category of LC_CTYPE set to "i18n:2012".
24003         * localedata/locales/i18n_ctype: Regenerate.
24004
24005 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
24006
24007         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
24008         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
24009         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
24010         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
24011
24012         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
24013         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
24014         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
24015         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
24016
24017 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
24018
24019         * math/complex.h
24020         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
24021         New macro.
24022         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
24023         Likewise.
24024         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
24025         Likewise.
24026         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24027         (CMPLXF32X): Likewise.
24028         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24029         (CMPLXF64X): Likewise.
24030         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24031         (CMPLXF128X): Likewise.
24032
24033         * math/math.h
24034         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
24035         (__MATH_EVAL_FMT2): Define to add 0.0f.
24036
24037 2017-10-31  Alan Modra  <amodra@gmail.com>
24038
24039         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
24040         include sysdep.h.
24041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
24042         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
24043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
24044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
24045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
24046         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
24047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
24048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
24049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
24050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
24051         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
24052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
24053         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
24054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
24055         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
24056         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
24057         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
24058         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
24059         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
24060         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
24061         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
24062         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
24063         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
24064         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
24065         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24066         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
24067         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
24068         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
24069         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
24070         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
24071         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
24072         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
24073         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
24074         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
24075         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
24076         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
24077         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
24078         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
24079         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
24080         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
24081         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
24082         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
24083         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
24084         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
24085         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
24086         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
24087         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
24088         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
24089         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24090         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24091         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
24092         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
24093         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
24094         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
24095         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24096         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
24097         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
24098         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
24099         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24100         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24101         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24102         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
24103         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
24104         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
24105         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
24106         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
24107         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
24108         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
24109         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
24110
24111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
24112         include sysdep.h and math_ldbl_opt.h.
24113
24114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
24115         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
24116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
24117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
24118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
24119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
24120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
24121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
24122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
24123         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
24124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
24125         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
24126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
24127         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
24128         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
24129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
24130         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
24131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
24132         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
24133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
24134         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
24135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
24136         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
24137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
24138         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
24139         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
24140
24141 2017-10-31  Alan Modra  <amodra@gmail.com>
24142
24143         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
24144         string/strncase_l.c, not string/strncase.c.
24145         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
24146         (libc_hidden_def): Redefine.
24147
24148 2017-10-31  Alan Modra  <amodra@gmail.com>
24149
24150         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
24151         (__STRCMP, STRCMP, __strcasecmp_l): Define.
24152         (__strcasecmp): Don't define.
24153
24154 2017-10-31  Alan Modra  <amodra@gmail.com>
24155
24156         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
24157         IS_IN (libc).
24158         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
24159         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
24160         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
24161
24162 2017-10-31  Alan Modra  <amodra@gmail.com>
24163
24164         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
24165         USE_AS_STPNCPY.
24166
24167 2017-10-31  Alan Modra  <amodra@gmail.com>
24168
24169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
24170         Redefine only when SHARED.
24171
24172 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
24173
24174         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24175         Include <bits/math-finite.h> with appropriate macros defined and
24176         undefined.
24177         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24178         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24179         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24180         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24181         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24182
24183         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
24184         [!_Mlong_double_] (_Mlong_double_): Likewise.
24185         [!_Mfloat16_] (_Mfloat16_): Likewise.
24186         [!_Mfloat32_] (_Mfloat32_): Likewise.
24187         [!_Mfloat64_] (_Mfloat64_): Likewise.
24188         [!_Mfloat128_] (_Mfloat128_): Likewise.
24189         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
24190         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
24191         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
24192         (_Mdouble_): Define without indirection through those macros.
24193         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
24194         [!_Mfloat128_] (_Mfloat128_): Likewise.
24195         [_Mlong_double_] (_Mlong_double_): Likewise.
24196         (_Mdouble_): Define without indirection through those macros.
24197         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
24198         not add -D_Mlong_double_=double.
24199         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
24200         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
24201
24202 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24203
24204         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
24205
24206 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24207
24208         * sysdeps/x86/libc-start.c: Reformat.
24209
24210 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
24211
24212         [BZ #22353]
24213         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
24214         (1): Renamed to ...
24215         (L(Src0)): This.
24216         (L(Src1)): New.
24217         (L(Src2)): Likewise.
24218         (L(1)): Renamed to ...
24219         (L(Src3)): This.
24220
24221 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
24222
24223         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
24224         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
24225         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
24226         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
24227         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
24228         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
24229         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
24230         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
24231         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
24232         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24233         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
24234         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
24235         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
24236         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
24237         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
24238         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
24239         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
24240         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
24241         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
24242         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
24243         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
24244         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
24245         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
24246         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
24247         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
24248         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
24249         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
24250         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
24251         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
24252         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
24253         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
24254         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
24255         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
24256         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
24257         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
24258         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
24259         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
24260         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
24261         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
24262         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
24263         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
24264         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
24265         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
24266         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
24267         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
24268         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
24269         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
24270         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
24271         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
24272         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
24273         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
24274         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
24275         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
24276         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
24277         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
24278         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
24279         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
24280         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
24281         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
24282         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
24283         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
24284         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
24285         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
24286         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
24287         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
24288         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
24289
24290 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24291
24292         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
24293         always defined.
24294         * io/tst-mkdirat.c (do_test): Likewise.
24295         * io/tst-mkfifoat.c (do_test): Likewise.
24296         * io/tst-mknodat.c (do_test): Likewise.
24297         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
24298         * locale/programs/locale.c (select_dirs): Likewise.
24299         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
24300         * posix/bug-glob2.c (my_readdir): Likewise.
24301         * posix/tst-dir.c (main): Likewise.
24302         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24303         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24304
24305 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24306
24307         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24308         just __USE_GNU.
24309
24310 2017-10-30  Florian Weimer  <fweimer@redhat.com>
24311
24312         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24313         Convert to support/test-driver.c.
24314         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24315         New macro parameters.
24316         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
24317         * posix/tst-gnuglob.c: New file.
24318         * posix/tst-gnuglob64.c: Likewise.
24319         * posix/Makefile (tests): Add tst-gnuglob64.
24320
24321 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
24322
24323         [BZ #19485]
24324         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24325         and use a better translation for March in “mon”.
24326         * localedata/locales/csb_PL: Use more ASCII to improve the
24327         readability of the source.
24328
24329 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
24330
24331         [BZ #13953]
24332         * localedata/locales/km_KH: Use ASCII as much
24333         as possible for better readability of the source and
24334         remove useless comments.
24335         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24336         was commented out and apparently wrong anyway because it was
24337         using Lao characters. If Buddhist era should be used
24338         for km_KH, a native speaker should write the correct formaat
24339         for Khmer.
24340         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24341         (According to CLDR, the first weekday for Cambodia is Sunday).
24342         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24343         (These were using Lao characters which must be wrong. If we get
24344         the correct data from a native speaker, we could add it back, until
24345         then it is better not to have name_mr and name_mrs at all than
24346         having it wrong).
24347
24348 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
24349
24350         * locale/loadlocale.c: Correct size of
24351         _nl_value_type_LC_<category> arrays.
24352
24353 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
24354
24355         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24356         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24357         with appropriate macros defined and undefined.
24358         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24359         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24360         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24361         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24362         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24363
24364 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
24365
24366         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24367         "-O2 -march=i586".
24368
24369 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
24370
24371         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24372         with lowercase letters to make it agree with CLDR.
24373
24374 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
24375
24376         [BZ #15260]
24377         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24378         first letters of yesstr and nostr in yesexpr and noexpr,
24379         not for the full words.
24380         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24381         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24382         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24383         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24384         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24385         first letters of yesstr and nostr in yesexpr and noexpr,
24386         until now only English was matched in yesexpr and noexpr.
24387         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24388         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24389         fil but not for tl. As tl and fil are very similar, using fil
24390         is probably better than using English.
24391
24392 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
24393
24394         [BZ #21706]
24395         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24396         in yesstr and nostr.
24397
24398 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
24399
24400         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24401         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24402         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24403         Likewise.
24404         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24405         Likewise.
24406         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24407         Likewise.
24408         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24409         Likewise.
24410         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24411         (SNANF128X): Likewise.
24412
24413         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24414         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24415         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24416         (HUGE_VAL_F32): Likewise.
24417         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24418         (HUGE_VAL_F64): Likewise.
24419         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24420         (HUGE_VAL_F32X): Likewise.
24421         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24422         (HUGE_VAL_F64X): Likewise.
24423         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24424         (HUGE_VAL_F128X): Likewise.
24425
24426 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
24427
24428         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24429         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24430         for the br_FR locale.
24431
24432 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
24433
24434         [BZ #21706]
24435         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24436
24437 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
24438
24439         * locale/programs/record-status.h: Define globals, and function
24440         prototypes. Move function bodies...
24441         * locale/programs/record-status.c: ... to here. New file.
24442         * iconv/Makefile (iconv_prog-modules): Add record-status.
24443         * locale/Makefile (lib-modules): Likewise.
24444         * iconv/iconv_prog.c: Remove verbose.
24445         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24446         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24447         record a warning about ASCII compatibility.
24448         * locale/programs/ld-monetary.c (monetary_finish): If
24449         warn_int_curr_symbol is true then record a warning about the symbol
24450         not being in our ISO 4217 list.
24451         * locale/programs/locale.c: Include record-status.h. Remove verbose.
24452         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24453         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24454         (OPT_NO_WARN): Define.
24455         (OPT_WARN): Define.
24456         (options): Add entry for --no-warnings, and --warnings.
24457         (set_warnings): New function to enable/disable warnings.
24458         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24459         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24460         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24461         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24462         Pass flags to generate_locale.
24463         (generate_locale): Accept new flag argument and pass it to localedef
24464         invocation.
24465         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24466         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24467
24468         * localedata/Makefile (test-input-data): Use full file name.
24469         * localedata/da_DK.in: Rename to...
24470         * localedata/da_DK.ISO-8859-1.in: ...this.
24471         * localedata/de_DE.in: Rename to...
24472         * localedata/de_DE.ISO-8859-1.in: ...this.
24473         * localedata/en_US.in: Rename to...
24474         * localedata/en_US.ISO-8859-1.in: ...this.
24475         * localedata/fr_FR.in: Rename to...
24476         * localedata/fr_FR.UTF-8.in: ... this.
24477         * localedata/hr_HR.in: Rename to...
24478         * localedata/hr_HR.ISO-8859-2.in: ...this.
24479         * localedata/hu_HU.in: Rename to...
24480         * localedata/hu_HU.UTF-8.in: ...this.
24481         * localedata/si_LK.in: Rename to...
24482         * localedata/si_LK.UTF-8.in: ...this.
24483         * localedata/sv_SE.in: Rename to...
24484         * localedata/sv_SE.ISO-8859-1.in: ...this.
24485         * localedata/tr_TR.in: Rename to...
24486         * localedata/tr_TR.UTF-8.in: ...this.
24487         * localedata/uk_UA.in: Rename to...
24488         * localedata/uk_UA.UTF-8.in: ...this.
24489         * localedata/sort-test.sh: Test file is locale name with the
24490         suffix.
24491
24492         * localedata/unicode-gen/Makefile (check_i18n): Rename to
24493         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24494         file.
24495         * localedata/locales/i18n_ctype: Regenerate.
24496         * localedata/locales/tr_TR: Likewise.
24497         * localedata/locales/translit_circle: Likewise.
24498         * localedata/locales/translit_cjk_compat: Likewise.
24499         * localedata/locales/translit_combining: Likewise.
24500         * localedata/locales/translit_compat: Likewise.
24501         * localedata/locales/translit_font: Likewise.
24502         * localedata/locales/translit_fraction: Likewise.
24503
24504 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
24505
24506         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24507         lxvd2x/stxvd2x with lvx/stvx.
24508         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24509
24510 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
24511
24512         * include/alloc_buffer.h: Replace "if if " with "if " in
24513         comments.
24514         * sysdeps/mips/memcpy.S: Likkewise.
24515         * sysdeps/mips/memset.S: Likewise.
24516         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24517         Likewise.
24518         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24519         Likewise.
24520         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24521         Likewise.
24522
24523 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24524
24525         [BZ #15261]
24526         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24527         yesexpr and noexpr.
24528         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24529         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24530         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24531         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24532         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24533         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24534         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24535
24536 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24537
24538         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24539         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24540         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24541         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24542         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24543         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24544         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24545         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24546         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24547         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24548         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24549         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24550
24551 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24552
24553         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24554         as possible for better readability of the source.
24555         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24556         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24557         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24558         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24559         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24560         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24561         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24562         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24563         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24564         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24565         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24566         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24567         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24568         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24569         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24570         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24571         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24572         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24573         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24574         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24575         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24576         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24577         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24578         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24579         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24580         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24581         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24582         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24583         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24584         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24585         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24586         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24587         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24588         * localedata/locales/en_US (LC_MESSAGES): Likewise.
24589         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24590         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24591         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24592         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24593         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24594         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24595         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24596         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24597         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24598         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24599         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24600         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24601         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24602         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24603         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24604         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24605         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24606         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24607         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24608         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24609         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24610         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24611         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24612         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24613         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24614         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24615         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24616         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24617         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24618         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24619         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24620         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24621         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24622         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24623         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24624         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24625         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24626         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24627         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24628         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24629         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24630         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24631         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24632         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24633         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24634         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24635         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24636         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24637         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24638         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24639         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24640         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24641         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24642         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24643         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24644         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24645         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24646         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24647         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24648         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24649         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24650         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24651         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24652         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24653         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24654         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24655         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24656         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24657         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24658         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24659         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24660         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24661         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24662         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24663         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24664         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24665         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24666         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24667         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24668         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24669         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24670         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24671         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24672         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24673         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24674         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24675         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24676         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24677         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24678         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24679         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24680         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24681         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24682         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24683         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24684         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24685         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24686         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24687         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24688         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24689         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24690         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24691         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24692         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24693         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24694         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24695         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24696         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24697         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24698         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24699         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24700         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24701         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24702         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24703         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24704         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24705         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24706         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24707         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24708         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24709         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24710         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24711         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24712         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24713         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24714         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24715         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24716         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24717         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24718         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24719         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24720         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24721         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24722         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24723         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24724         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24725         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24726         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24727         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24728         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24729
24730 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24731
24732         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24733         (Use first letters of yesstr and nostr correctly instead of using
24734         full words).
24735
24736 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24737
24738         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24739         (Use first letters of yesstr and nostr correctly).
24740
24741 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24742
24743         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24744         also check for the first characters of yesstr and nostr.
24745         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24746         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24747
24748 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24749
24750         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24751         also check for Chinese characters.
24752
24753 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24754
24755         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24756         match also for the contents of yesstr and nostr. As the first letter
24757         of yesstr and nostr is equal, checking only for the first letter
24758         is not enough.
24759
24760 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24761
24762         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24763         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
24764
24765 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24766
24767         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24768         of main contributor.
24769
24770 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24771
24772         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24773         instead of using English.
24774
24775 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24776
24777         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24778         by including the first letters of nostr and yesexpr in the regexp.
24779         Also make it more readable by using ASCII where possible.
24780
24781 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
24782
24783         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24784         the first letter of nostr in the regexp. It agrees with CLDR now.
24785         Also make it more readable by using ASCII where possible.
24786
24787 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24788
24789         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24790         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24791         these strings contain a U+17D6 (which somewhat looks like a colon)
24792         instead of a real colon to separate the full words for “yes”
24793         and “no” from the single letter responses.
24794
24795 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24796
24797         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24798         it agree with CLDR (include the first letter of yesstr).
24799         Also make it more readable by using ASCII where possible.
24800
24801 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24802
24803         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24804         and improve yesexpr and noexpr. The yesstr and nostr apparently
24805         came from CLDR. And CLDR has a bug there: these strings contain
24806         a U+0903 (which looks like a colon) instead of a real colon
24807         to separate the full words for “yes” and “no” from the single
24808         letter responses.
24809
24810 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24811
24812         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24813         letters of the full yesstr and nostr in yesexpr and noexpr.
24814
24815 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24816
24817         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24818         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24819         * localedata/locales/an_ES: Make source more readable by using ASCII
24820         where possible.
24821
24822 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
24823
24824         [BZ #20952]
24825         * localedata/locales/yuw_PG: New file.
24826         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24827         * locale/iso-639.def: Add Yau (Uruwa).
24828
24829 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
24830
24831         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24832
24833 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
24834
24835         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24836         (__libc_realloc): Likewise.
24837         (_mid_memalign): Likewise.
24838         (__libc_calloc): Likewise.
24839
24840 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
24841
24842         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24843         by adding the generic +1 and -0 as in all other locales.
24844         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24845         day names and make it more readable by using ASCII where possible.
24846
24847 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
24848
24849         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24850         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24851
24852 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24853
24854         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24855         WNOHANG in waitpid call.
24856
24857 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
24858
24859         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24860         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24861
24862         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24863         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24864         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24865         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24866         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24867         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24868         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24869         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24870         variables.
24871
24872 2017-10-23  Michael Collison  <michael.collison@arm.com>
24873
24874         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24875         with __builtin_sqrt.
24876         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24877         with __builtin_sqrtf.
24878         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24879         with __builtin_ceil.
24880         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24881         with __builtin_ceilf.
24882         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24883         with __builtin_floor.
24884         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24885         with __builtin_floorf.
24886         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24887         with __builtin_fma.
24888         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24889         with __builtin_fmaf.
24890         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24891         with __builtin_fmax.
24892         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24893         with __builtin_fmaxf.
24894         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24895         with __builtin_fmin.
24896         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24897         with __builtin_fminf.
24898         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24899         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24900         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24901         with builtin_rint and conversion to int.
24902         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24903         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24904         with builtin_llround.
24905         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24906         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24907         with builtin_rint and conversion to long int.
24908         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24909         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24910         with builtin_lround.
24911         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24912         with builtin_lroundf.
24913         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24914         statements with __builtin_nearbyint.
24915         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24916         statements with __builtin_nearbyintf.
24917         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24918         with __builtin_rint.
24919         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24920         with __builtin_rintf.
24921         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24922         with __builtin_round.
24923         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24924         with __builtin_roundf.
24925         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24926         with __builtin_trunc.
24927         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24928         with __builtin_truncf.
24929         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24930         and s_l[l]round[f].c too.
24931
24932 2017-10-23  Alan Modra  <amodra@gmail.com>
24933
24934         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24935         Adjust stack after restoring regs.  Add missing LR cfi_restore.
24936
24937 2017-10-23  Alan Modra  <amodra@gmail.com>
24938
24939         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24940         Move LR save and frame setup/teardown and LR restore to
24941         immediately around memset call.  Provide cfi.
24942
24943 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24944
24945         * sysdeps/i386/fpu/e_powf.S: Removed.
24946         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24947         * sysdeps/i386/fpu/w_powf.c: Likewise.
24948         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24949         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24950         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24951         Add e_powf-sse2.
24952         (CFLAGS-e_powf-sse2.c): New.
24953         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24954         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24955
24956 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24957
24958         * sysdeps/i386/fpu/e_log2f.S: Removed.
24959         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24960         * sysdeps/i386/fpu/w_log2f.c: Likewise.
24961         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24962         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24963         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24964         Add e_log2f-sse2.
24965         (CFLAGS-e_log2f-sse2.c): New.
24966         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24967         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24968
24969 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24970
24971         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24972         Add e_powf-fma.
24973         (CFLAGS-e_powf-fma.c): New.
24974         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24975         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24976
24977 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24978
24979         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24980         Add e_log2f-fma.
24981         (CFLAGS-e_log2f-fma.c): New.
24982         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24983         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24984
24985 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24986
24987         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24988         Add e_logf-fma.
24989         (CFLAGS-e_logf-fma.c): New.
24990         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24991         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24992
24993 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
24994
24995         * sysdeps/i386/fpu/e_logf.S: Removed.
24996         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24997         * sysdeps/i386/fpu/w_logf.c: Likewise.
24998         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24999         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
25000         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25001         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25002         Add e_logf-sse2.
25003         (CFLAGS-e_logf-sse2.c): New.
25004         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
25005         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
25006
25007 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
25008
25009         * sysdeps/i386/fpu/e_exp2f.S: Removed.
25010         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
25011         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
25012         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25013         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25014         Add e_exp2f-sse2.
25015         (CFLAGS-e_exp2f-sse2.c): New.
25016         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
25017         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
25018
25019 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
25020
25021         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25022         Add e_exp2f-fma.
25023         (CFLAGS-e_exp2f-fma.c): New.
25024         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
25025         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
25026
25027 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
25028
25029         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
25030         * sysdeps/i386/fpu/e_expf.S: Likewise.
25031         * sysdeps/i386/fpu/math_errf.c: Likewise.
25032         * sysdeps/i386/fpu/w_expf.c: Likewise.
25033         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
25034         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
25035         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
25036         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
25037         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25038         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
25039         Remove e_expf-ia32.
25040         (CFLAGS-e_expf-sse2.c): New.
25041         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
25042         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
25043
25044 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
25045
25046         * sysdeps/x86_64/fpu/e_expf.S: Removed.
25047         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
25048         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
25049         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
25050         e_expf.c.
25051         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
25052         New.
25053         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
25054         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
25055         Renamed to ...
25056         (__redirect_expf): This.
25057         (SYMBOL_NAME): Changed to expf.
25058         (__ieee754_expf): Renamed to ...
25059         (__expf): This.
25060         (__GI___expf): This.
25061         (__ieee754_expf): Add strong_alias.
25062         (__expf_finite): Likewise.
25063         (__expf): New.
25064         Include <sysdeps/ieee754/flt-32/e_expf.c>.
25065
25066 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
25067
25068         [BZ #22332]
25069         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
25070         unescaping.
25071
25072 2017-10-21  Florian Weimer  <fweimer@redhat.com>
25073
25074         * posix/Makefile (tests): Add tst-glob-tilde.
25075         (tests-special): Add tst-glob-tilde-mem.out
25076         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
25077         (tst-glob-tilde-mem.out): Add mtrace check.
25078         * posix/tst-glob-tilde.c: New file.
25079
25080 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
25081
25082         * bits/floatn-common.h: New file.
25083         * math/Makefile (headers): Add bits/floatn-common.h.
25084         * bits/floatn.h: Include <bits/floatn-common.h>.
25085         * sysdeps/ia64/bits/floatn.h: Likewise.
25086         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25087         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
25088         * sysdeps/powerpc/bits/floatn.h: Likewise.
25089         * sysdeps/x86/bits/floatn.h: Likewise.
25090
25091 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25092
25093         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
25094         indicates whether compiler emits an warning for alias for
25095         functions with incompatible types.
25096
25097         [BZ #22273]
25098         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
25099         the auxiliary process is terminated by a signal before calling _exit
25100         or execve.
25101
25102 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25103
25104         [BZ #21265]
25105         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
25106         New.
25107         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
25108         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
25109         and bit_arch_XSAVEC_Usable if needed.
25110         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
25111         and bit_arch_Use_dl_runtime_resolve_opt.
25112         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
25113         Removed.
25114         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
25115         (bit_arch_Prefer_No_AVX512): Updated.
25116         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
25117         (bit_arch_XSAVEC_Usable): New.
25118         (STATE_SAVE_OFFSET): Likewise.
25119         (STATE_SAVE_MASK): Likewise.
25120         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
25121         (cpu_features): Add xsave_state_size and xsave_state_full_size.
25122         (index_arch_Use_dl_runtime_resolve_opt): Removed.
25123         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
25124         (index_arch_XSAVEC_Usable): New.
25125         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25126         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
25127         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
25128         is enabled.
25129         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
25130         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
25131         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
25132         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
25133         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
25134         _dl_runtime_resolve_xsavec.
25135         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
25136         Removed.
25137         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
25138         instead of VEC_SIZE.
25139         (REGISTER_SAVE_BND0): Removed.
25140         (REGISTER_SAVE_BND1): Likewise.
25141         (REGISTER_SAVE_BND3): Likewise.
25142         (REGISTER_SAVE_RAX): Always defined to 0.
25143         (VMOV): Removed.
25144         (_dl_runtime_resolve_avx): Likewise.
25145         (_dl_runtime_resolve_avx_slow): Likewise.
25146         (_dl_runtime_resolve_avx_opt): Likewise.
25147         (_dl_runtime_resolve_avx512): Likewise.
25148         (_dl_runtime_resolve_avx512_opt): Likewise.
25149         (_dl_runtime_resolve_sse): Likewise.
25150         (_dl_runtime_resolve_sse_vex): Likewise.
25151         (USE_FXSAVE): New.
25152         (_dl_runtime_resolve_fxsave): Likewise.
25153         (USE_XSAVE): Likewise.
25154         (_dl_runtime_resolve_xsave): Likewise.
25155         (USE_XSAVEC): Likewise.
25156         (_dl_runtime_resolve_xsavec): Likewise.
25157         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
25158         Removed.
25159         (_dl_runtime_resolve_avx512_opt): Likewise.
25160         (_dl_runtime_resolve_avx): Likewise.
25161         (_dl_runtime_resolve_avx_opt): Likewise.
25162         (_dl_runtime_resolve_sse): Likewise.
25163         (_dl_runtime_resolve_sse_vex): Likewise.
25164         (_dl_runtime_resolve_fxsave): New.
25165         (_dl_runtime_resolve_xsave): Likewise.
25166         (_dl_runtime_resolve_xsavec): Likewise.
25167
25168 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25169
25170         [BZ #22320]
25171         CVE-2017-15670
25172         * posix/glob.c (__glob): Fix one-byte overflow.
25173
25174 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
25175
25176         * malloc/malloc.c (sysdep-cancel.h): Add include.
25177
25178 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
25179
25180         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
25181
25182 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
25183
25184         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
25185         (tests): Remove $(objpfx)ga_test depdendency.
25186         * resolv/ga_test.c: Remove file.
25187
25188 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
25189
25190         [BZ #18812]
25191         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25192         * localedata/locales/kab_DZ: New file.
25193
25194 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25195
25196         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
25197         _dl_relocate_static_pie instead of _dl_start to compute load
25198         address in static PIE.
25199
25200 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25201
25202         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
25203
25204 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
25205
25206         [BZ #13605]
25207         * localedata/SUPPORTED: Add shn_MM/UTF-8.
25208         * localedata/locales/shn_MM: New file.
25209
25210 2017-10-20  Florian Weimer  <fweimer@redhat.com>
25211
25212         [BZ #22321]
25213         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
25214         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
25215         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
25216         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
25217         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
25218         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
25219
25220 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
25221
25222         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
25223
25224 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
25225
25226         * sysdeps/mips/ieee754/bits/floatn.h: New file.
25227
25228         [BZ #22322]
25229         * sysdeps/mips/bits/long-double.h: Move to ....
25230         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
25231
25232 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
25233
25234         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
25235
25236 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
25237             H.J. Lu  <hongjiu.lu@intel.com>
25238
25239         [BZ #22299]
25240         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
25241         GLRO(dl_platform) to NULL.
25242         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
25243         (modules-names): Add tst-platformmod-1 and
25244         x86_64/tst-platformmod-2.
25245         (CFLAGS-tst-platform-1.c): New.
25246         (CFLAGS-tst-platformmod-1.c): Likewise.
25247         (CFLAGS-tst-platformmod-2.c): Likewise.
25248         (LDFLAGS-tst-platformmod-2.so): Likewise.
25249         ($(objpfx)tst-platform-1): Likewise.
25250         ($(objpfx)tst-platform-1.out): Likewise.
25251         (tst-platform-1-ENV): Likewise.
25252         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
25253         * sysdeps/x86_64/tst-platform-1.c: New file.
25254         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
25255         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
25256
25257 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
25258
25259         [BZ #13994]
25260         * locale/iso-639.def: Add Karbi.
25261         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
25262         * localedata/locales/mjw_IN: New file.
25263
25264 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
25265
25266         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
25267         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
25268         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
25269         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
25270         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25271         (libm_alias_ldouble_other_r): Also create _Float128 alias.
25272         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
25273         <bits/floatn.h>.
25274         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
25275         (libm_alias_ldouble_other_r): Also create _Float128 alias.
25276         * manual/math.texi (Mathematics): Document additional architecture
25277         support for _Float128.
25278         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25279         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25280         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25281         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25282         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25283         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25284         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25285         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25286         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25287         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25288         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25289         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25290         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25291         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25292         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25293
25294 2017-10-18  Renlin Li  <renlin.li@arm.com>
25295
25296         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
25297         _DYNAMIC symbol to calculate load address.
25298
25299 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
25300
25301         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25302         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25303         summary bits.
25304         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25305         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25306
25307 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
25308
25309         [BZ #16777]
25310         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25311         and improve readability by using more ASCII.
25312         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25313         and improve readability by using more ASCII.
25314
25315 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
25316
25317         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25318         not all targets support atomics on bool.
25319
25320 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
25321
25322         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25323         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25324         __f128.
25325         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25326         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25327         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25328         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25329         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25330         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25331
25332 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25333
25334         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25335         defines.
25336
25337 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25338
25339         [BZ #22159]
25340         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25341         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25342         (do_check_remalloced_chunk): Fix build bug.
25343         (do_check_malloc_state): Add assert that checks arena->top.
25344         (malloc_consolidate): Remove initialization.
25345         (int_mallinfo): Remove call to malloc_consolidate.
25346          (__libc_mallopt): Clarify why malloc_consolidate is needed.
25347
25348 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25349
25350         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25351         (have_fastchunks): Remove.
25352         (clear_fastchunks): Remove.
25353         (set_fastchunks): Remove.
25354         (malloc_state): Add have_fastchunks.
25355         (malloc_init_state): Use have_fastchunks.
25356         (do_check_malloc_state): Remove incorrect invariant checks.
25357         (_int_malloc): Use have_fastchunks.
25358         (_int_free): Likewise.
25359         (malloc_consolidate): Likewise.
25360
25361 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
25362
25363         * malloc/malloc.c (tcache_put): Inline.
25364         (tcache_get): Inline.
25365
25366 2017-10-17  Jordi Mallach  <jordi@gnu.org>
25367
25368         Aurelien Jarno  <aurelien@aurel32.net>
25369         [BZ #2522]
25370         * localedata/locales/ca_ES@valencia: New file.
25371         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25372
25373 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
25374
25375         [BZ #22296]
25376         * math/math.h: Let signbit use the builtin in C++ mode with gcc
25377         < 6.x
25378
25379 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25380
25381         * scripts/build-many-glibcs.py (Context.add_all_configs):
25382         Add arm-linux-gnueabihf multiarch extra_glibcs.
25383
25384         * sysdeps/generic/ifunc-init.h: New file.
25385         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25386
25387 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
25388
25389         [BZ #22019]
25390         * localedata/locales/el_GR: Set n_cs_precedes to 0.
25391         * localedata/locales/el_CY: copy "el_GR" because it is identical.
25392         * stdlib/tst-strfmon_l.c: adapt test case.
25393
25394 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
25395
25396         * sysdeps/generic/float128-abi.h: New file.
25397         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25398         non-__prefixed symbols to ....
25399         * math/Versions: ... here.  Include <float128-abi.h>.
25400         * stdlib/Versions ... and here.  Include <float128-abi.h>
25401
25402 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25403
25404         * version.h (VERSION): Switch to ".9000" as the development
25405         version suffix.
25406
25407 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25408
25409         [BZ #22050]
25410         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25411         compat_symbol_reference to access non-default version.
25412
25413 2017-10-16  Florian Weimer  <fweimer@redhat.com>
25414
25415         * malloc/Makefile (others-extras): Set to mcheck-init.o.
25416
25417 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
25418
25419         * include/shlib-compat.h (compat_symbol_reference): Update
25420         comment.
25421
25422 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
25423
25424         * math/Makefile (test-types): Add
25425         $(type-float128-$(float128-alias-fcts)).
25426         * math/test-float128.h (TYPE_STR): Define conditional on
25427         [FLT128_MANT_DIG == LDBL_MANT_DIG].
25428         (ULP_IDX): Likewise.
25429         (ULP_I_IDX): Likewise.
25430
25431         * stdlib/strtold.c: Include <bits/floatn.h>
25432         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25433         and later undefine as macro.  Define as weak alias if
25434         [!USE_WIDE_CHAR].
25435         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25436         and later undefine as macro.  Define as weak alias if
25437         [USE_WIDE_CHAR].
25438         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25439         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25440         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
25441         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25442         Define and later undefine as macro.  Define as weak alias if
25443         [USE_WIDE_CHAR].
25444         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25445         <bits/floatn.h>.
25446         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25447         Define and later undefine as macro.  Define as weak alias if
25448         [!USE_WIDE_CHAR].
25449         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25450         Define and later undefine as macro.  Define as weak alias if
25451         [USE_WIDE_CHAR].
25452
25453 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
25454
25455         * localedata/collate-test.c (allocate_arrays): Don't use \n in
25456         record_verbose messages.
25457
25458 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
25459
25460         [BZ #22052]
25461         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25462         to silence -O3 -Wall warning with GCC 7.
25463
25464 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
25465
25466         * Makeconfig (+link-static-before-libc): Use the first of
25467         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25468         * gmon/Makefile (tests): Add tst-gmon-static.
25469         (tests-static): Likewise.
25470         (CFLAGS-tst-gmon-static.c): New.
25471         (CRT-tst-gmon-static): Likewise.
25472         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25473         (tst-gmon-static-ENV): Likewise.
25474         (tests-special): Likewise.
25475         ($(objpfx)tst-gmon-static.out): Likewise.
25476         (clean-tst-gmon-static-data): Likewise.
25477         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25478         * gmon/tst-gmon-static-gprof.sh: New file.
25479         * gmon/tst-gmon-static.c: Likewise.
25480
25481 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
25482
25483         [BZ #22295]
25484         * locale/programs/linereader.c (get_string): Don't warn on
25485         non-symbolic character.
25486
25487         [BZ #22294]
25488         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25489         int_curr_symbol.
25490
25491         [BZ #22292]
25492         * locale/programs/record-status.h: New file
25493         * locale/programs/locale.c: Add comment.
25494         * locale/programs/charmap-dir.c: Don't include error.h.
25495         (charmap_opendir): Use record_error.
25496         * locale/programs/charmap.c: Don't include error.h.
25497         (charmap_read): Use record_error, and record_warning.
25498         (parse_charmap): Likewise.
25499         * locale/programs/ld-address.c: Don't include error.h.
25500         (address_finish): Use record_error, and record_warning.
25501         * locale/programs/ld-collate.c: Don't include error.h.
25502         (collate_finish): Use record_error, and record_error_at_line.
25503         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25504         (ctype_class_new): Likewise.
25505         (ctype_map_new): Likewise.
25506         (set_one_default): Likewise.
25507         (set_class_defaults): Likewise.
25508         (translit_flatten): Likewise.
25509         (allocate_arrays): Use record_error, and record_verbose.
25510         * locale/programs/ld-identification.c: Don't include error.h.
25511         (indentation_finish): Use record_error and record_warning.
25512         * locale/programs/ld-measurement.c: Don't include error.h.
25513         (measurement_finish): Use record_error.
25514         * locale/programs/ld-messages.c
25515         (message_finish): Likewise.
25516         * locale/programs/ld-monetary.c
25517         (monetary_finish): Likewise.
25518         * locale/programs/ld-name.c (name_finish): Use record_error
25519         and record_warning.
25520         * locale/programs/ld-numeric.c
25521         (numeric_finish): Use record_error.
25522         * locale/programs/ld-paper.c: Don't include error.h.
25523         (paper_finish): Use record_error.
25524         * locale/programs/ld-telephone.c: Don't include error.h.
25525         (telephone_finish): Use record_error.
25526         * locale/programs/ld-time.c (time_finish): Likewise.
25527         * locale/programs/linereader.h (lr_error): Make inline func.
25528         * locale/programs/localedef.c: Define recorded_warning_count,
25529         and recorded_error_count.
25530         (main): Use record_error. Use recorded_error_count and
25531         recorded_warning_count to issue correct error returns.
25532         (add_to_readlist): Use record_error.
25533         (find_locale): Likewise.
25534         (load_locale): Likewise.
25535         * locale/programs/localedef.h: Remove be_quiet
25536         and WITH_CUR_LOCALE.
25537         * locale/programs/locarchive.c (compare_from_file): Use
25538         record_error.
25539         * locale/programs/locfile.c (write_locale_data): Use
25540         record_error.
25541         * locale/programs/repertoire.c: Dont include error.h.
25542         (repertoire_complain): Use record_error.
25543         * localedata/tst-fmon.sh: Expect failures from localedef.
25544         * localedata/tst-locale.sh: Likewise.
25545         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25546
25547         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25548         (REPORTS): Likewise.
25549         (check): Likewise.
25550         (i18n): Rename to...
25551         (i18n_ctype): ...this.
25552         (i18n-report): Rename to...
25553         (i18n_ctype-report): ...this.
25554         * localedata/locales/i18n_ctype: Regenerate.
25555         * localedata/locales/i18n: copy i18n_ctype.
25556
25557 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
25558
25559         * stdlib/strfroml.c: Include <bits/floatn.h>.
25560         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25561         Define before include of <stdlib.h> and undefine afterwards, then
25562         define as weak alias.
25563
25564         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25565         Undefine and restore default definition.  Use
25566         libm_alias_ldouble_other.
25567
25568 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
25569
25570         [BZ #22153]
25571         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25572         in coredumps.
25573
25574 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
25575
25576         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25577         Assign sym_map to be map for local symbols, as TLS relocations
25578         use sym_map to determine whether the symbol is defined and to
25579         extract the TLS information.
25580         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25581         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25582
25583 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25584
25585         [BZ #22189]
25586         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25587         (math_force_eval): Add powerpc version.
25588
25589         [BZ #22142]
25590         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25591         -DBL_MAX.
25592         (do_test): Likewise.
25593         * stdio-common/tst-printf.sh: Likewise.
25594         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25595         ifdef clause in order to set the carry bit right.  Replace r0 by
25596         0 without changing the behavior.
25597
25598 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
25599
25600         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25601         <libm-alias-ldouble.h>.
25602         (fabsl): Define using libm_alias_ldouble.
25603         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25604         <libm-alias-ldouble.h>.
25605         (fabsl): Define using libm_alias_ldouble.
25606
25607         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25608         Remove conditional code.
25609
25610         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25611         Rename to __clog10_internal_l.
25612         (__clog10_internal_l): Define aliases using
25613         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25614         with __clog10.
25615
25616 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
25617
25618         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
25619         * benchtests/sincosf-inputs: New file.
25620         * benchtests/cosf-inputs: New file.
25621         * benchtests/sinf-inputs: New file.
25622
25623 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25624
25625         * posix/tst-spawn.c (do_test): Wait for both children.
25626
25627 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
25628
25629         [BZ #22284]
25630         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25631         tests-pie): Add tst-gmon-pie.
25632         (CFLAGS-tst-gmon-pie.c): New.
25633         (CRT-tst-gmon-pie): Likewise.
25634         (tst-gmon-pie-ENV): Likewise.
25635         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25636         ($(objpfx)tst-gmon-pie.out): Likewise.
25637         (clean-tst-gmon-pie-data): Likewise.
25638         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25639         * gmon/gmon.c [PIC]: Include <link.h>.
25640         [PIC] (callback): New function.
25641         (write_hist): Add an argument for load address.  Subtract load
25642         address from PCs.
25643         (write_call_graph): Likewise.
25644         (write_gmon): Call __dl_iterate_phdr to get load address, pass
25645         it to write_hist and write_call_graph.
25646         * gmon/tst-gmon-pie.c: New file.
25647
25648 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
25649
25650         * math/Makefile (test-types-basic): New variable.
25651         (test-types): Likewise.
25652         (libm-test-support): Use $(test-types) instead of $(types).
25653         (libm-tests-base-normal): Likewise.
25654         (libm-tests-base-finite): Likewise.
25655         (libm-tests-base-inline): Likewise.
25656         (generated): Likewise.
25657         ($(objpfx)libm-test-support-$(t).c): Likewise.
25658         (libm-tests-for-type iterator): Likewise.
25659         (libm-test-support iterator): Likewise.
25660         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25661         (ulp_idx): Use ULP_IDX.
25662         * math/test-ldouble.h: Include <float.h>.
25663         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25664         (ULP_IDX): New macro.
25665         (ULP_I_IDX): Likewise.
25666         * math/test-double.h (ULP_IDX): Likewise.
25667         (ULP_I_IDX): Likewise.
25668         * math/test-float.h (ULP_IDX): Likewise.
25669         (ULP_I_IDX): Likewise.
25670         * math/test-float128.h (ULP_IDX): Likewise.
25671         (ULP_I_IDX): Likewise.
25672
25673 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25674
25675         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25676         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25677         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25678         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25679         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25680         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25681         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25682         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25683         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25684         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25685         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25686         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25687         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25688         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25689         (SINGLE_THREAD_BY_GLOBAL): Define.
25690         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25691         Likewise.
25692         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25693         Likewise.
25694         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25695         Likewise.
25696         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25697         Likewise.
25698         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25699         (SINGLE_THREAD_BY_GLOBAL): Likewise.
25700         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25701         Likewise.
25702
25703 2017-10-11  Andreas Schwab  <schwab@suse.de>
25704
25705         * nis/Makefile (aux): Remove.
25706         * nscd/Makefile (aux): Add nscd_hash.
25707         (nscd-modules): Likewise.
25708         ($(objpfx)nscd): Don't depend on libnsl.
25709         * nscd/nscd_hash.c: New file.
25710         * nscd/nscd_hash.h: Likewise.
25711         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25712         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25713         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25714         instead of <nis/rpcsvc/nis.h>.
25715         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25716
25717 2017-10-11  Florian Weimer  <fweimer@redhat.com>
25718
25719         [BZ #22078]
25720         Avoid large NSS buffers with many addresses, aliases.
25721         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25722         using dynarrays and struct alloc_buffer.
25723         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25724         (tst-nss-files-hosts-multi): Link with -ldl.
25725         * nss/tst-nss-files-hosts-multi.c: New file.
25726
25727 2017-10-11  Florian Weimer  <fweimer@redhat.com>
25728
25729         [BZ #18023]
25730         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25731         scratch_buffer.  Eliminate gotos.
25732
25733 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
25734
25735         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25736         libm_alias_ldouble_other.
25737         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25738         undefine and redefine.
25739         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25740         (exp10l): Do not define here.
25741         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25742         (weak_alias): Undefine and redefine.
25743         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25744         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25745         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25746         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25747
25748         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25749         [!__fma] (fma): Define using libm_alias_double.
25750         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25751         [!__fmaf] (fmaf): Define using libm_alias_float.
25752         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25753         (fmal): Define using libm_alias_ldouble.
25754
25755 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
25756
25757         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25758         New macro.
25759         (libm_alias_double_other): Likewise.
25760         (libm_alias_double_r): Use libm_alias_double_other_r.
25761         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25762         New macro.
25763         (libm_alias_float_other): Likewise.
25764         (libm_alias_float_r): Use libm_alias_float_other_r.
25765         * sysdeps/generic/libm-alias-float128.h
25766         (libm_alias_float128_other_r): New macro.
25767         (libm_alias_float128_other): Likewise.
25768         (libm_alias_float128_r): Use libm_alias_float128_other_r.
25769         * sysdeps/generic/libm-alias-ldouble.h
25770         (libm_alias_ldouble_other_r): New macro.
25771         (libm_alias_ldouble_other): Likewise.
25772         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25773         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25774         (libm_alias_double_other_r): New macro.
25775         (libm_alias_double_other): Likewise.
25776         (libm_alias_double_r): Use libm_alias_double_other_r.
25777         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25778         (libm_alias_ldouble_other_r): New macro.
25779         (libm_alias_ldouble_other): Likewise.
25780         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25781         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25782         [!USE_AS_COMPAT]: Use libm_alias_double_other.
25783         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25784         [!USE_AS_COMPAT]: Use libm_alias_float_other.
25785         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25786         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25787         * math/w_exp2f.c: Use libm_alias_float_other.
25788         * math/w_expf.c: Likewise.
25789         * math/w_log2f.c: Likewise.
25790         * math/w_logf.c: Likewise.
25791         * math/w_powf.c: Likewise.
25792         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25793         [!__exp2f]: Use libm_alias_float_other.
25794         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25795         [!__expf]: Use libm_alias_float_other.
25796         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25797         [!__log2f]: Use libm_alias_float_other.
25798         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25799         [!__logf]: Use libm_alias_float_other.
25800         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25801         [!__powf]: Use libm_alias_float_other.
25802
25803 2017-10-10  Florian Weimer  <fweimer@redhat.com>
25804
25805         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25806         function.
25807         (_nss_files_gethostbyname3_r): Call it.
25808
25809 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
25810
25811         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25812         error.  Remove default definition of declare_mgen_alias.
25813         [!declare_mgen_alias_r]: Likewise.
25814         * sysdeps/generic/math-type-macros-double.h
25815         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25816         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25817         (declare_mgen_alias_r): Likewise.
25818         * sysdeps/generic/math-type-macros-float128.h
25819         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25820         * sysdeps/generic/math-type-macros-ldouble.h
25821         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25822         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25823         macro.
25824         (declare_mgen_alias_r_s): Likewise.
25825         (declare_mgen_alias_r): Likewise.
25826         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25827         (lgamma_r): Define using libm_alias_double_r.
25828         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25829         (lgammaf_r): Define using libm_alias_float_r.
25830         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25831         (lgammal_r): Define using libm_alias_ldouble_r.
25832         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25833         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25834
25835 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25836
25837         * lib/glob.c (__glob_pattern_type): Remove now-spurious
25838         extern declaration.
25839
25840 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
25841
25842         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25843
25844 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
25845
25846         [BZ #21326]
25847         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25848         [__cplusplus >= 201103] (__USE_ISOC99): Define.
25849         * math/Makefile (test-math-cxx11): New test.
25850         * math/test-math-cxx11.cc: New file.
25851
25852 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
25853
25854         * login/openpty.c (openpty): Close slave pty file descriptor on error.
25855
25856         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25857         call to allocate the slave pty file descriptor.
25858
25859 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
25860
25861         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25862         [!__fma] (fma): Define using libm_alias_double.
25863         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25864         [!__fma] (fma): Define using libm_alias_double.
25865
25866         * sysdeps/ieee754/float128/float128_private.h: Include
25867         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25868         (libm_alias_ldouble_r): Undefine and redefine.
25869         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25870         <libm-alias-ldouble.h>.
25871         (asinhl): Define using libm_alias_ldouble.
25872         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25873         <libm-alias-ldouble.h>.
25874         (atanl): Define using libm_alias_ldouble.
25875         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25876         <libm-alias-ldouble.h>.
25877         (cbrtl): Define using libm_alias_ldouble.
25878         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25879         <libm-alias-ldouble.h>.
25880         (ceill): Define using libm_alias_ldouble.
25881         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25882         <libm-alias-ldouble.h>.
25883         (copysignl): Define using libm_alias_ldouble.
25884         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25885         <libm-alias-ldouble.h>.
25886         (cosl): Define using libm_alias_ldouble.
25887         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25888         <libm-alias-ldouble.h>.
25889         (erfl): Define using libm_alias_ldouble.
25890         (erfcl): Likewise.
25891         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25892         <libm-alias-ldouble.h>.
25893         (expm1l): Define using libm_alias_ldouble.
25894         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25895         <libm-alias-ldouble.h>.
25896         (fabsl): Define using libm_alias_ldouble.
25897         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25898         <libm-alias-ldouble.h>.
25899         (floorl): Define using libm_alias_ldouble.
25900         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25901         <libm-alias-ldouble.h>.
25902         (fmal): Define using libm_alias_ldouble.
25903         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25904         <libm-alias-ldouble.h>.
25905         (frexpl): Define using libm_alias_ldouble.
25906         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25907         libm_alias_ldouble.
25908         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25909         <libm-alias-ldouble.h>.
25910         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25911         libm_alias_ldouble.
25912         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25913         <libm-alias-ldouble.h>.
25914         (getpayloadl): Define using libm_alias_ldouble.
25915         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25916         <libm-alias-ldouble.h>.
25917         (llrintl): Define using libm_alias_ldouble.
25918         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25919         <libm-alias-ldouble.h>.
25920         (llroundl): Define using libm_alias_ldouble.
25921         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25922         <libm-alias-ldouble.h>.
25923         (logbl): Define using libm_alias_ldouble.
25924         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25925         <libm-alias-ldouble.h>.
25926         (lrintl): Define using libm_alias_ldouble.
25927         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25928         <libm-alias-ldouble.h>.
25929         (lroundl): Define using libm_alias_ldouble.
25930         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25931         <libm-alias-ldouble.h>.
25932         (modfl): Define using libm_alias_ldouble.
25933         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25934         <libm-alias-ldouble.h>.
25935         (nearbyintl): Define using libm_alias_ldouble.
25936         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25937         <libm-alias-ldouble.h>.
25938         (nextafterl): Define using libm_alias_ldouble.
25939         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25940         <libm-alias-ldouble.h>.
25941         (nextupl): Define using libm_alias_ldouble.
25942         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25943         <libm-alias-ldouble.h>.
25944         (remquol): Define using libm_alias_ldouble.
25945         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25946         <libm-alias-ldouble.h>.
25947         (rintl): Define using libm_alias_ldouble.
25948         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25949         <libm-alias-ldouble.h>.
25950         (roundevenl): Define using libm_alias_ldouble.
25951         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25952         <libm-alias-ldouble.h>.
25953         (roundl): Define using libm_alias_ldouble.
25954         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25955         using libm_alias_ldouble.
25956         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25957         <libm-alias-ldouble.h>.
25958         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25959         Define using libm_alias_ldouble.
25960         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25961         <libm-alias-ldouble.h>.
25962         (sincosl): Define using libm_alias_ldouble.
25963         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25964         <libm-alias-ldouble.h>.
25965         (sinl): Define using libm_alias_ldouble.
25966         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25967         <libm-alias-ldouble.h>.
25968         (tanhl): Define using libm_alias_ldouble.
25969         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25970         <libm-alias-ldouble.h>.
25971         (tanl): Define using libm_alias_ldouble.
25972         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25973         <libm-alias-ldouble.h>.
25974         (totalorderl): Define using libm_alias_ldouble.
25975         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25976         <libm-alias-ldouble.h>.
25977         (totalordermagl): Define using libm_alias_ldouble.
25978         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25979         <libm-alias-ldouble.h>.
25980         (truncl): Define using libm_alias_ldouble.
25981         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25982         libm_alias_ldouble.
25983         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25984         libm_alias_ldouble.
25985         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25986         <libm-alias-ldouble.h>.
25987         (weak_alias): Do not undefine and redefine.
25988         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25989         (copysignl): Define with long_double_symbol only if [IS_IN
25990         (libc)].
25991         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25992         <libm-alias-ldouble.h>.
25993         (weak_alias): Do not undefine and redefine.
25994         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25995         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25996         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25997         <libm-alias-ldouble.h>.
25998         (weak_alias): Do not undefine and redefine.
25999         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
26000         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
26001         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
26002         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
26003         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
26004         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
26005         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
26006         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
26007         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
26008         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
26009         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
26010         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
26011         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
26012         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
26013         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
26014         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
26015         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
26016         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
26017         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
26018         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
26019         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
26020         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
26021         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
26022         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
26023         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
26024         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
26025
26026 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
26027
26028         [BZ #22111]
26029         * malloc/malloc.c (tcache_shutting_down): Use bool type.
26030         (tcache_thread_freeres): Set tcache_shutting_down before
26031         freeing the tcache.
26032         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
26033         * malloc/tst-malloc-tcache-leak.c: New file.
26034
26035 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26036
26037         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
26038         back to powerpc32 file.
26039         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26040         (memrchr): Add __memrchr_power8 to ifunc list.
26041         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
26042         extra bytes for unaligned inputs.
26043
26044 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
26045
26046         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
26047         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
26048         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
26049         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
26050         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
26051
26052 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
26053
26054         * sysdeps/arm/libm-test-ulps: Update.
26055
26056         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
26057         <libm-alias-ldouble.h>.
26058         (asinhl): Define using libm_alias_ldouble.
26059         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
26060         <libm-alias-ldouble.h>.
26061         (cbrtl): Define using libm_alias_ldouble.
26062         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
26063         <libm-alias-ldouble.h>.
26064         (copysignl): Define using libm_alias_ldouble.
26065         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
26066         <libm-alias-ldouble.h>.
26067         (cosl): Define using libm_alias_ldouble.
26068         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
26069         <libm-alias-ldouble.h>.
26070         (erfl): Define using libm_alias_ldouble.
26071         (erfcl): Likewise.
26072         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
26073         <libm-alias-ldouble.h>.
26074         (fmal): Define using libm_alias_ldouble.
26075         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
26076         <libm-alias-ldouble.h>.
26077         (frexpl): Define using libm_alias_ldouble.
26078         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
26079         libm_alias_ldouble.
26080         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
26081         <libm-alias-ldouble.h>.
26082         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
26083         libm_alias_ldouble.
26084         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
26085         <libm-alias-ldouble.h>.
26086         (getpayloadl): Define using libm_alias_ldouble.
26087         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
26088         <libm-alias-ldouble.h>.
26089         (llrintl): Define using libm_alias_ldouble.
26090         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
26091         <libm-alias-ldouble.h>.
26092         (llroundl): Define using libm_alias_ldouble.
26093         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
26094         <libm-alias-ldouble.h>.
26095         (lrintl): Define using libm_alias_ldouble.
26096         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
26097         <libm-alias-ldouble.h>.
26098         (lroundl): Define using libm_alias_ldouble.
26099         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
26100         <libm-alias-ldouble.h>.
26101         (modfl): Define using libm_alias_ldouble.
26102         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
26103         <libm-alias-ldouble.h>.
26104         (nextupl): Define using libm_alias_ldouble.
26105         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
26106         <libm-alias-ldouble.h>.
26107         (remquol): Define using libm_alias_ldouble.
26108         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
26109         <libm-alias-ldouble.h>.
26110         (roundevenl): Define using libm_alias_ldouble.
26111         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
26112         <libm-alias-ldouble.h>.
26113         (roundl): Define using libm_alias_ldouble.
26114         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
26115         using libm_alias_ldouble.
26116         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
26117         <libm-alias-ldouble.h>.
26118         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
26119         <libm-alias-ldouble.h>.
26120         (setpayloadsigl): Define using libm_alias_ldouble.
26121         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
26122         <libm-alias-ldouble.h>.
26123         (sincosl): Define using libm_alias_ldouble.
26124         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
26125         <libm-alias-ldouble.h>.
26126         (sinl): Define using libm_alias_ldouble.
26127         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
26128         <libm-alias-ldouble.h>.
26129         (tanhl): Define using libm_alias_ldouble.
26130         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
26131         <libm-alias-ldouble.h>.
26132         (tanl): Define using libm_alias_ldouble.
26133         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
26134         <libm-alias-ldouble.h>.
26135         (totalorderl): Define using libm_alias_ldouble.
26136         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
26137         <libm-alias-ldouble.h>.
26138         (totalordermagl): Define using libm_alias_ldouble.
26139         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
26140         libm_alias_ldouble.
26141         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
26142         libm_alias_ldouble.
26143
26144 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26145
26146         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26147         memmove_falkor.
26148         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
26149         (__libc_ifunc_impl_list): Likewise.
26150         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
26151         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
26152
26153         * benchtests/bench-memmove-walk.c: New file.
26154         * benchtests/Makefile (string-benchset): Add it.
26155
26156         * benchtests/bench-memset-walk.c: New file.
26157         * benchtests/Makefile (string-benchset): Add it.
26158
26159         * benchtests/bench-memcpy-walk.c: New file.
26160         * benchtests/Makefile (string-benchset): Add it.
26161
26162 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26163
26164         nscd: Eliminate compilation time dependency in the build output.
26165         * nscd/nscd_stat.c (STATDATA_VERSION)
26166         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
26167         (STATDATA_VERSION_FULL): New macro definitions.
26168         (compilation): Remove.
26169         (struct statdata): Adjust version member.
26170         (send_stats): Set version from STATDATA_VERSION_FULL.
26171         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
26172
26173 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
26174
26175         * configure.ac (--enable-add-ons): Remove option.
26176         (machine): Do not mention add-ons in comment.
26177         (LIBC_PRECONFIGURE): Likewise.
26178         (add_ons): Remove variable and sanity checks and logic to locate
26179         add-ons.
26180         (add_ons_automatic): Remove variable.
26181         (configured_add_ons): Likewise.
26182         (add_ons_sfx): Likewise.
26183         (add_ons_pfx): Likewise.
26184         (add_on_subdirs): Likewise.
26185         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
26186         consideration of add-ons in Implies handling.
26187         (sysdeps_add_ons): Likewise.
26188         * configure: Regenerated.
26189         * libidn/configure.ac: Remove.
26190         * libidn/configure: Likewise.
26191         * sysdeps/unix/inet/configure.ac: New file.
26192         * sysdeps/unix/inet/configure: New generated file.
26193         * sysdeps/unix/inet/Subdirs: Add libidn.
26194         * Makeconfig (sysdeps-srcdirs): Remove variable.
26195         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
26196         ($(common-objpfx)config.status): Do not depend on add-on files.
26197         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
26198         comment.
26199         (all-subdirs): Do not include $(add-on-subdirs).
26200         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
26201         * config.make.in (add-ons): Remove variable.
26202         (add-on-subdirs): Likewise.
26203         (sysdeps-add-ons): Likewise.
26204         * manual/Makefile (add-chapters): Remove.
26205         ($(objpfx)texis): Do not depend on $(add-chapters).
26206         (nonexamples): Do not handle $(add-chapters).
26207         (examples): Do not handle $(add-ons).
26208         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
26209         libc-texinfo.sh.
26210         * manual/install.texi (Installation): Do not mention add-ons.
26211         (--enable-add-ons): Do not document configure option.
26212         * INSTALL: Regenerated.
26213         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
26214         * manual/maint.texi (Hierarchy Conventions): Do not mention
26215         add-ons.
26216         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
26217         --enable-add-ons.
26218         * scripts/gen-sorted.awk: Do not handle Subdirs files from
26219         add-ons.
26220         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
26221         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
26222
26223 2017-10-05  Andreas Schwab  <schwab@suse.de>
26224
26225         [BZ #15142]
26226         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
26227         (_IO_flush_all_lockp): Always lock list_all_lock.
26228         (_IO_flush_all_linebuffered): Likewise.
26229         (_IO_unbuffer_all): Likewise.
26230
26231 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26232
26233         [BZ #15436]
26234         Do not flush stdio streams on abort.
26235         * stdlib/abort.c (fflush): Remove macro definition.
26236         (abort): Remove stages related to stdio flushing.
26237
26238 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26239
26240         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
26241
26242 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
26243
26244         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
26245
26246 2017-10-05  Florian Weimer  <fweimer@redhat.com>
26247
26248         * support/support_format_hostent.c (support_format_hostent): Add
26249         more error information for NETDB_INTERNAL.
26250
26251 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26252
26253         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
26254         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
26255         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
26256         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
26257         AC_DEFINE if multi-arch is enabled.
26258         * sysdeps/i386/configure: Regenerated.
26259
26260 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26261
26262         * Makeconfig (+link-static-before-libc): Use
26263         $(DEFAULT-LDFLAGS-$(@F)).
26264         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
26265         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
26266         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
26267
26268 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26269
26270         * elf/Makefile (tests): Add tst-main1.
26271         (modules-names): Add tst-main1mod.
26272         ($(objpfx)tst-main1): New.
26273         (CRT-tst-main1): Likewise.
26274         (LDFLAGS-tst-main1): Likewise.
26275         (LDLIBS-tst-main1): Likewise.
26276         (tst-main1mod.so-no-z-defs): Likewise.
26277         * elf/tst-main1.c: New file.
26278         * elf/tst-main1mod.c: Likewise.
26279
26280 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
26283
26284 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
26285
26286         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
26287         (fma): Define using libm_alias_double.
26288         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
26289         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
26290         <math_ldbl_opt.h>.
26291         (fmal): Do not define as compat symbol here.
26292         * sysdeps/alpha/fpu/s_fma.c: New file.
26293
26294 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26295
26296         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
26297
26298 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
26299
26300         [BZ #22229]
26301         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26302         <math_ldbl_opt.h>
26303         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26304         and libc.
26305         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26306         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26307         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26308         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26310         Include <math_ldbl_opt.h>
26311         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26312         and libc.
26313         (compat_symbol): Undefine and redefine.
26314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26315         <math_ldbl_opt.h>
26316         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26317         (compat_symbol): Undefine and redefine.
26318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26319         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26320         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26321         GLIBC_2_1 for libm.
26322         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26323         GLIBC_2.0 copysignl symbol.
26324         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26325         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26326
26327         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26328
26329 2017-10-04  Florian Weimer  <fweimer@redhat.com>
26330
26331         * scripts/check-local-headers.sh: Ignore nspr4 header file
26332         directory in addition to nspr.
26333
26334 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
26335
26336         [BZ #17956]
26337         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26338         * configure: Regenerate.
26339         * crypt/Makefile (nss-cpp-flags): New variable.
26340         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26341         (CPPFLAGS-md5-crypt.c): Use it.
26342         * scripts/check-local-headers.sh: Ignore nspr header file
26343         directory.
26344
26345 2017-10-04  Andreas Schwab  <schwab@suse.de>
26346
26347         * nis/Makefile (services): Remove compat.
26348         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26349         ($(objpfx)libnss_compat.so): Remove rule.
26350         * nis/Versions (libnss_compat): Remove.
26351         * nss/Makefile (services): Add compat.
26352         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26353         * nss/Versions (libnss_compat): Define.
26354         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26355         Don't include <rpc/types.h>.  Replace bool_t by bool.
26356         * nss/nss_compat/compat-initgroups.c: Likewise.
26357         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
26358         instead of <rpcsrv/ypclnt.h>.
26359         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26360         yp_get_default_domain.
26361         * nss/nss_compat/compat-pwd.c: Likewise.
26362         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26363         yp_get_default_domain.
26364         * nss/nss_compat/nisdomain.c: New file.
26365         * nss/nss_compat/nisdomain.h: Likewise.
26366
26367 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26368
26369         [BZ #22244]
26370         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26371         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26372
26373 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26374
26375         [BZ #22243]
26376         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26377         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26378
26379 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26380
26381         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26382         "movl main@GOTOFF(%ebx), %eax".
26383
26384 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26385
26386         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26387         allow undefined _DYNAMIC in PIE libc.a.
26388         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26389         Likewse.
26390
26391 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26392
26393         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26394         check _DYNAMIC.
26395
26396 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26397
26398         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26399         check _DYNAMIC.
26400
26401 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26402
26403         * math/test-math-iscanonical.cc (error): Replace bool with int.
26404
26405 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26406
26407         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26408         (modf): Define using libm_alias_double, only if [!__modf].
26409         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26410         <libm-alias-double.h>.
26411         (modf): Define using libm_alias_double, only if [!__modf].
26412         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26413         compat symbol here.
26414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26415         (weak_alias): Do not undefine and redefine.
26416         (strong_alias): Likewise.
26417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26418         (weak_alias): Likewise.
26419         (strong_alias): Likewise.
26420
26421         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26422         (logb): Define using libm_alias_double, only if [!__logb].
26423         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26424         <libm-alias-double.h>.
26425         (logb): Define using libm_alias_double, only if [!__logb].
26426         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26428         (weak_alias): Do not undefine and redefine.
26429         (strong_alias): Likewise.
26430         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26431         (weak_alias): Likewise.
26432         (strong_alias): Likewise.
26433
26434 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26435
26436         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26437         Check SHARED instead PIC.
26438
26439 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26440
26441         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26442         [!__fmaf] (fmaf): Define using libm_alias_float.
26443
26444         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26445         (frexp): Define using libm_alias_double.
26446         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26447         <libm-alias-double.h>.
26448         (frexp): Define using libm_alias_double.
26449         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26450         compat symbol here.
26451
26452 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
26453
26454         [BZ #22235]
26455         * math/math.h: Trivial fix for unbalanced parentheses in comment.
26456         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26457         (CFLAGS-test-math-iscanonical.cc): New variable.
26458         * math/test-math-iscanonical.cc: New file.
26459         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26460         Provide a C++ implementation based on function overloading,
26461         rather than using __MATH_TG, which uses C-only builtins.
26462         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26463         Likewise.
26464         * sysdeps/powerpc/powerpc64le/Makefile
26465         (CFLAGS-test-math-iscanonical.cc): New variable.
26466
26467 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
26468
26469         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26470         (ceil): Define using libm_alias_double.
26471         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26472         (floor): Define using libm_alias_double.
26473         * sysdeps/ieee754/dbl-64/s_llround.c: Include
26474         <libm-alias-double.h>.
26475         (llround): Define using libm_alias_double.
26476         * sysdeps/ieee754/dbl-64/s_lround.c: Include
26477         <libm-alias-double.h>.
26478         (lround): Define using libm_alias_double.
26479         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26480         <libm-alias-double.h>.
26481         (nearbyint): Define using libm_alias_double.
26482         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26483         <libm-alias-double.h>.
26484         (remquo): Define using libm_alias_double.
26485         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26486         (rint): Define using libm_alias_double.
26487         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26488         (round): Define using libm_alias_double.
26489         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26490         (trunc): Define using libm_alias_double.
26491         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26492         <libm-alias-double.h>.
26493         (ceil): Define using libm_alias_double.
26494         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26495         <libm-alias-double.h>.
26496         (floor): Define using libm_alias_double.
26497         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26498         <libm-alias-double.h>.
26499         (llround): Define using libm_alias_double.
26500         [_LP64] (lround): Likewise.
26501         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26502         <libm-alias-double.h>.
26503         [!_LP64] (lround): Define using libm_alias_double.
26504         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26505         <libm-alias-double.h>.
26506         (nearbyint): Define using libm_alias_double.
26507         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26508         <libm-alias-double.h>.
26509         (remquo): Define using libm_alias_double.
26510         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26511         <libm-alias-double.h>.
26512         (rint): Define using libm_alias_double.
26513         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26514         <libm-alias-double.h>.
26515         (round): Define using libm_alias_double.
26516         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26517         <libm-alias-double.h>.
26518         (trunc): Define using libm_alias_double.
26519         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26520         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26521         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26522         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26523         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26524         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26525         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26526         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26527         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26528
26529 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26530
26531         * math/w_remainder.c: New file.
26532         * math/w_remainderf.c: New file.
26533         * math/w_remainderl.c: New file.
26534
26535 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
26536
26537         * elf/rtld.c (BOOTSTRAP_MAP): New.
26538         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26539         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26540         Likewise.
26541         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26542         Likewise.
26543         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26544         Likewise.
26545
26546 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26547
26548         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26549         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26550         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26551         rtld_hidden_data_ver): Define to empty.
26552         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26553         __assert_perror_fail): Likewise.
26554         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26555         (__rewinddir): Likewise.
26556         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26557         (__profile_frequency): Likewise.
26558         * include/setjmp.h (__sigsetjmp): Likewise.
26559         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26560         __libc_sigaction): Likewise.
26561         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26562         not set hidden attribute.
26563         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26564         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26565         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26566         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26567         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26568         __fxstatat64): Likewise.
26569         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26570         (__uname): Likewise.
26571         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26572         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26573         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26574         (NO_RTLD_HIDDEN): Set.
26575         * sysdeps/mach/hurd/configure: Refresh.
26576         * config.h.in: Refresh.
26577
26578 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
26579
26580         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26581         (atan): Define using libm_alias_double.
26582         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26583         (tan): Define using libm_alias_double.
26584         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26585         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26586
26587         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26588         define as weak alias of __atan.  Do not define any aliases if
26589         [__atan].
26590         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26591         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26592         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26593         as weak alias of __tan.  Do not define any aliases if [__tan].
26594         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26595         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26596         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26597         __atan.
26598         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26599         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26600         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26601         and define as weak alias of __atan.
26602         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26603         __atan.
26604         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26605         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26606         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26607         define as weak alias of __tan.
26608
26609 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26610
26611         * math/w_lgamma.c: New file.
26612         * math/w_lgammaf.c: New file.
26613         * math/w_lgammal.c: New file.
26614
26615 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26616
26617         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26618         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26619         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26620         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26621         * sysdeps/ieee754/flt-32/w_logf.c: New file.
26622         * sysdeps/ieee754/flt-32/w_powf.c: New file.
26623         * sysdeps/i386/fpu/w_log2f.c: New file.
26624         * sysdeps/i386/fpu/w_logf.c: New file.
26625         * sysdeps/i386/fpu/w_powf.c: New file.
26626         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26627         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26628         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26629
26630 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26631             H.J. Lu  <hongjiu.lu@intel.com>
26632
26633         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26634         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26635         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26636         * sysdeps/ieee754/flt-32/w_expf.c: New file.
26637         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26638         the new expf code.
26639         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26640         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26641         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26642         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26643         * sysdeps/i386/fpu/w_exp2f.c: New file.
26644         * sysdeps/i386/fpu/w_expf.c: New file.
26645         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26646         * sysdeps/x86_64/fpu/w_expf.c: New file.
26647
26648 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
26649
26650         * math/Versions (logf): New libm symbol at GLIBC_2.27.
26651         (log2f): Likewise.
26652         (powf): Likewise.
26653         * math/w_log2f.c: New file.
26654         * math/w_logf.c: New file.
26655         * math/w_powf.c: New file.
26656         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26657         * math/w_logf_compat.c (__logf_compat): Likewise.
26658         * math/w_powf_compat.c (__powf_compat): Likewise.
26659         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26660         * sysdeps/ia64/fpu/e_logf.S: Likewise.
26661         * sysdeps/ia64/fpu/e_powf.S: Likewise.
26662         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26663         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26664         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26665         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26666         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26667         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26668         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26669         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26670         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26671         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26672         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26673         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26675         Likewise.
26676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26677         Likewise.
26678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26679         Likewise.
26680         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26681         Likewise.
26682         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26683         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26684         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26685         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26686         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26687         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26688         Likewise.
26689         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26690         Likewise.
26691         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26692         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26693         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26694
26695 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
26696
26697         * sysdeps/powerpc/powerpc64/multiarch/Makefile
26698         (sysdep_routines): Add memrchr_power8.
26699         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26700         (memrchr): Add __memrchr_power8 to list of memrchr functions.
26701         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26702         New file.
26703         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26704         (memrchr): Add __memrchr_power8 to ifunc list.
26705         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26706
26707 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26708
26709         [BZ #18822]
26710         * sysdeps/unix/sysv/linux/posix_fadvise64.c
26711         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26712         libc_hidden_def.
26713         * sysdeps/unix/sysv/linux/posix_fallocate64.c
26714         (__posix_fallocate64_l64): Likewise.
26715
26716 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26717
26718         [BZ #18822]
26719         * sysdeps/unix/sysv/linux/sched_setaffinity.c
26720         (__sched_setaffinity_new): Add libc_hidden_proto and
26721         libc_hidden_def.
26722
26723 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26724
26725         [BZ #18822]
26726         * include/glob.h (__glob64): Add libc_hidden_proto.
26727         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26728         libc_hidden_def.
26729
26730 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26731
26732         [BZ #18822]
26733         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26734         attribute_hidden.
26735
26736 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26737
26738         [BZ #18822]
26739         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26740
26741 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26742
26743         [BZ #18822]
26744         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26745         libc_hidden_def.
26746
26747 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26748
26749         [BZ #18822]
26750         * csu/version.c (__libc_print_version): Add attribute_hidden.
26751
26752 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26753
26754         [BZ #18822]
26755         * include/libc-internal.h (__init_misc): Add attribute_hidden.
26756
26757 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26758
26759         [BZ #18822]
26760         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26761
26762 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26763
26764         [BZ #18822]
26765         * nscd/nscd_helper.c (__nis_hash): New prototype.
26766
26767 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26768
26769         [BZ #18822]
26770         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26771         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26772         libc_hidden_def.
26773         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26774         * termios/tcgetattr.c (__tcgetattr): Likewise.
26775
26776 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26777
26778         [BZ #18822]
26779         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26780         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26781         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26782         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26783         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26784
26785 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26786
26787         [BZ #18822]
26788         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26789
26790 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26791
26792         [BZ #18822]
26793         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26794         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26795
26796 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26797
26798         [BZ #18822]
26799         * intl/hash-string.h (__hash_string): Add attribute_hidden.
26800
26801 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26802
26803         [BZ #18822]
26804         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26805         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26806
26807 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26808
26809         [BZ #18822]
26810         * include/ifreq.h: New file.
26811         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26812         (__ifreq): Likewise.
26813         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26814         (__ifreq): Likewise.
26815
26816 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26817
26818         [BZ #18822]
26819         * include/idna.h: New file.
26820         * inet/getnameinfo.c: Include <idna.h> instead of
26821         <libidn/idna.h>.
26822         (__idna_to_unicode_lzlz): Removed.
26823         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26824         <libidn/idna.h>.
26825         (__idna_to_ascii_lz): Removed.
26826         (__idna_to_unicode_lzlz): Likewise.
26827
26828 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26829
26830         [BZ #18822]
26831         * include/plural-exp.h: New file.
26832         * intl/plural-exp.c: Include <plural-exp.h> instead of
26833         "plural-exp.h".
26834
26835 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26836
26837         [BZ #18822]
26838         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26839         "getsourcefilter.h".
26840         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26841         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26842         "getsourcefilter.h".
26843         (__get_sol): Removed.
26844
26845 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26846
26847         [BZ #18822]
26848         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26849         to ...
26850         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26851
26852 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26853
26854         [BZ #18822]
26855         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26856         attribute_hidden.
26857
26858 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26859
26860         [BZ #18822]
26861         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26862
26863 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26864
26865         [BZ #18822]
26866         * include/search.h (__tdestroy): Add libc_hidden_proto.
26867         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26868
26869 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26870
26871         [BZ #18822]
26872         * include/assert.h (__assert_fail_base): Add attribute_hidden.
26873
26874 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26875
26876         [BZ #18822]
26877         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26878         attribute_hidden.
26879
26880 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26881
26882         [BZ #18822]
26883         * include/signal.h (__kill): Add libc_hidden_proto.
26884         (__sigblock): Likewise.
26885         (__sigprocmask): Likewise.
26886         (__sigaltstack): Likewise.
26887         * signal/kill.c (__kill): Add libc_hidden_def.
26888         * signal/sigblock.c (__sigblock): Likewise.
26889         * signal/sigprocmask.c (__sigprocmask): Likewise.
26890         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26891         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26892         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26893         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26894         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26895         Likewise.
26896         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26897         Likewise.
26898         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26899         (__sigprocmask): Likewise.
26900         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26901         Likewise.
26902         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26903         (__sigprocmask): Likewise.
26904         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26905         Likewise.
26906
26907 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26908
26909         [BZ #18822]
26910         * include/string.h (__strsep): Add libc_hidden_proto.
26911         * string/strsep.c (__strsep): Add libc_hidden_def.
26912
26913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26914
26915         [BZ #18822]
26916         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26917         attribute_hidden.
26918         (__spawni): Likewise.
26919
26920 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26921
26922         [BZ #18822]
26923         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26924         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26925         libc_hidden_def.
26926
26927 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26928
26929         [BZ #18822]
26930         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26931
26932 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26933
26934         [BZ #18822]
26935         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26936         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26937         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26938         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26939         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26940         Likewise.
26941         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26942         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26943
26944 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26945
26946         [BZ #18822]
26947         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26948         (__dcigettext): Likewise.
26949
26950 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26951
26952         [BZ #18822]
26953         * include/sys/sysinfo.h (__get_nprocs_conf): Add
26954         libc_hidden_proto.
26955         (__get_nprocs): Likewise.
26956         (__get_phys_pages): Likewise.
26957         (__get_avphys_pages): Likewise.
26958         (__get_child_max): Add attribute_hidden.
26959         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26960         (__get_nprocs): Likewise.
26961         (__get_phys_pages): Likewise.
26962         (__get_avphys_pages): Likewise.
26963         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26964         libc_hidden_def.
26965         (__get_nprocs): Likewise.
26966         (__get_phys_pages): Likewise.
26967         (__get_avphys_pages): Likewise.
26968         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26969         libc_hidden_def.
26970         (__get_nprocs_conf): Likewise.
26971         (__get_phys_pages): Likewise.
26972         (__get_avphys_pages): Likewise.
26973
26974 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26975
26976         [BZ #18822]
26977         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26978         attribute_hidden.
26979         (__netlink_close): Likewise.
26980         (__netlink_free_handle): Likewise.
26981         (__netlink_request): Likewise.
26982
26983 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26984
26985         [BZ #18822]
26986         * include/rpc/rpc.h (__rpc_thread_variables): Add
26987         attribute_hidden.
26988         (__rpc_thread_svc_cleanup): Likewise.
26989         (__rpc_thread_clnt_cleanup): Likewise.
26990         (__rpc_thread_key_cleanup): Likewise.
26991
26992 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
26993
26994         [BZ #18822]
26995         * include/sys/uio.h (__readv): Add libc_hidden_proto.
26996         (__writev): Likewise.
26997         * misc/readv.c (__readv): Add libc_hidden_def.
26998         * misc/writev.c (__writev): Likewise.
26999         * sysdeps/posix/readv.c (__readv): Likewise.
27000         * sysdeps/posix/writev.c (__writev): Likewise.
27001         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
27002         (__readv): Likewise.
27003         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
27004         (__writev): Likewise.
27005
27006 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27007
27008         [BZ #18822]
27009         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
27010         (__regcomp): Add libc_hidden_proto.
27011         (__regexec): Likewise.
27012         (__regfree): Likewise.
27013         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
27014         (__regfree): Likewise.
27015         * posix/regexec.c (__regexec): Likewise.
27016
27017 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27018
27019         [BZ #18822]
27020         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
27021         (__getutent): Likewise.
27022         (__getutid): Likewise.
27023         (__getutline): Likewise.
27024         (__pututline): Likewise.
27025         (__getutent_r): Likewise.
27026         (__getutid_r): Likewise.
27027         (__getutline_r): Likewise.
27028         (__utmpname): Add attribute_hidden.
27029         (__setutent): Likewise.
27030         (__endutent): Likewise.
27031         * login/getutent.c (__getutent): Add libc_hidden_def.
27032         * login/getutent_r.c (__getutent_r): Likewise.
27033         (__pututline): Likewise.
27034         * login/getutid.c (__getutid): Likewise.
27035         * login/getutid_r.c (__getutid_r): Likewise.
27036         * login/getutline.c (__getutline): Likewise.
27037         * login/getutline_r.c (__getutline_r): Likewise.
27038         * login/updwtmp.c (__updwtmp): Likewise.
27039
27040 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27041
27042         [BZ #18822]
27043         * include/dirent.h (__opendir): Always add attribute_hidden.
27044         (__fdopendir): Likewise.
27045         (__closedir): Likewise.
27046         (__readdir): Likewise.
27047         (__readdir64): Add libc_hidden_proto.
27048         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
27049         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
27050         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
27051         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
27052         New alias.
27053
27054 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27055
27056         [BZ #18822]
27057         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
27058         * include/netdb.h (__gethostbyaddr_r): Likewise.
27059         (__gethostbyname_r): Likewise.
27060         (__gethostbyname2_r): Likewise.
27061         (__getnetbyaddr_r): Likewise.
27062         (__getnetbyname_r): Likewise.
27063         (__getservbyname_r): Likewise.
27064         (__getservbyport_r): Likewise.
27065         (__getprotobyname_r): Likewise.
27066         (__getprotobynumber_r): Likewise.
27067         (__getnetgrent_r): Likewise.
27068         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
27069         (__getrpcbynumber_r): Likewise.
27070         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
27071
27072 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27073
27074         [BZ #18822]
27075         * include/stdio.h (__fcloseall): Add attribute_hidden.
27076         (__getline): Likewise.
27077         (__path_search): Likewise.
27078         (__gen_tempname): Likewise.
27079         (__libc_message): Likewise.
27080         (__flockfile): Likewise.
27081         (__funlockfile): Likewise.
27082         (__fxprintf): Likewise.
27083         (__fxprintf_nocancel): Likewise.
27084
27085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27086
27087         [BZ #18822]
27088         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
27089         (__sgetsgent_r): Likewise.
27090
27091 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27092
27093         [BZ #18822]
27094         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
27095         (__statfs64): Likewise.
27096         (__fstatfs64): Likewise.
27097         * include/sys/statvfs.h (__statvfs64): Likewise.
27098         (__fstatvfs64): Likewise.
27099         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
27100         (__statfs_filesize_max): Likewise.
27101         (__statfs_symlinks): Likewise.
27102         (__statfs_chown_restricted): Likewise.
27103
27104 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27105
27106         [BZ #18822]
27107         * include/time.h (__tzstring): Add attribute_hidden.
27108         (__tzfile_read): Likewise.
27109         (__tzfile_compute): Likewise.
27110         (__tzfile_default): Likewise.
27111         (__tzset_parse_tz): Likewise.
27112         (__offtime): Likewise.
27113         (__asctime_r): Likewise.
27114         (__tzset): Likewise.
27115         (__tz_convert): Likewise.
27116         (__getdate_r): Likewise.
27117         (__getclktck): Likewise.
27118
27119 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27120
27121         [BZ #18822]
27122         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
27123         (__nscd_unmap): Likewise.
27124         (__nscd_cache_search): Likewise.
27125         (__nscd_get_nl_timestamp): Likewise.
27126         (__nscd_getpwnam_r): Likewise.
27127         (__nscd_getpwuid_r): Likewise.
27128         (__nscd_getgrnam_r): Likewise.
27129         (__nscd_getgrgid_r): Likewise.
27130         (__nscd_gethostbyname_r): Likewise.
27131         (__nscd_gethostbyname2_r): Likewise.
27132         (__nscd_gethostbyaddr_r): Likewise.
27133         (__nscd_getai): Likewise.
27134         (__nscd_getgrouplist): Likewise.
27135         (__nscd_getservbyname_r): Likewise.
27136         (__nscd_getservbyport_r): Likewise.
27137         (__nscd_innetgr): Likewise.
27138         (__nscd_setnetgrent): Likewise.
27139
27140 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27141
27142         [BZ #18822]
27143         * include/gmp.h: Declare internal functions only if _ISOMAC is
27144         undefined.
27145         (__mpn_extract_double): Add attribute_hidden.
27146         (__mpn_extract_long_double): Likewise.
27147         (__mpn_extract_float128): Likewise.
27148         (__mpn_construct_float): Likewise.
27149         (__mpn_construct_double): Likewise.
27150         (__mpn_construct_long_double): Likewise.
27151         (__mpn_construct_float128): Likewise.
27152         (mpn_add_1): Likewise.
27153         (mpn_addmul_1): Likewise.
27154         (mpn_add_n): Likewise.
27155         (mpn_cmp): Likewise.
27156         (mpn_divrem): Likewise.
27157         (mpn_lshift): Likewise.
27158         (mpn_mul): Likewise.
27159         (mpn_mul_1): Likewise.
27160         (mpn_rshift): Likewise.
27161         (mpn_sub_1): Likewise.
27162         (mpn_submul_1): Likewise.
27163         (mpn_sub_n): Likewise.
27164
27165 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27166
27167         [BZ #18822]
27168         * include/wchar.h (__wcsnlen): Add attribute_hidden.
27169         (__wcscat): Likewise.
27170         (__btowc): Likewise.
27171         (__wcrtomb): Likewise.
27172         (__mbsrtowcs): Likewise.
27173         (__wcsrtombs): Likewise.
27174         (__mbsnrtowcs): Likewise.
27175         (__wcsnrtombs): Likewise.
27176         (__wcsncpy): Likewise.
27177         (__wcpncpy): Likewise.
27178         (__wmemcpy): Likewise.
27179         (__wmempcpy): Likewise.
27180         (__wmemmove): Likewise.
27181         (__wcschrnul): Likewise.
27182         (__vfwscanf): Likewise.
27183         (__vswprintf): Likewise.
27184         (__fwprintf): Likewise.
27185         (__vfwprintf): Likewise.
27186
27187 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27188
27189         [BZ #18822]
27190         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
27191         (__getgrgid_r): Likewise.
27192         (__getgrnam_r): Likewise.
27193         * include/pwd.h (__getpwuid_r): Likewise.
27194         (__getpwnam_r): Likewise.
27195         (__fgetpwent_r): Likewise.
27196         * include/shadow.h (__getspnam_r): Likewise.
27197         (__sgetspent_r): Likewise.
27198         (__fgetspent_r): Likewise.
27199
27200 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27201
27202         [BZ #18822]
27203         * include/unistd.h (__access): Add attribute_hidden.
27204         (__lseek64): Likewise.
27205         (__libc_pread64): Likewise.
27206         (__pipe2): Likewise.
27207         (__sleep): Likewise.
27208         (__chdir): Likewise.
27209         (__fchdir): Likewise.
27210         (__getcwd): Likewise.
27211         (__rmdir): Likewise.
27212         (__execvpe): Likewise.
27213         (__execve): Likewise.
27214         (__setsid): Likewise.
27215         (__getuid): Likewise.
27216         (__geteuid): Likewise.
27217         (__getgid): Likewise.
27218         (__getegid): Likewise.
27219         (__getgroups): Likewise.
27220         (__group_member): Likewise.
27221         (__ttyname_r): Likewise.
27222         (__isatty): Likewise.
27223         (__readlink): Likewise.
27224         (__unlink): Likewise.
27225         (__gethostname): Likewise.
27226         (__profil): Likewise.
27227         (__getdtablesize): Likewise.
27228         (__brk): Likewise.
27229         (__ftruncate): Likewise.
27230         (__ftruncate64): Likewise.
27231
27232 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27233
27234         [BZ #18822]
27235         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
27236         * argp/argp-fs-xinl.c: Likewise.
27237         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
27238         * argp/argp-parse.c: Include <argp.h>.
27239         * argp/argp-xinl.c: Likewise.
27240         * include/argp-fmtstream.h: New file.
27241         * include/argp.h (__argp_error): Add attribute_hidden.
27242         (__argp_failure): Likewise.
27243         (__argp_input): Likewise.
27244         (__argp_state_help): Likewise.
27245
27246 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27247
27248         [BZ #18822]
27249         * include/wchar.h (____wcstof_l_internal): New prototype.
27250         (____wcstod_l_internal): Likewise.
27251         (____wcstold_l_internal): Likewise.
27252         (____wcstol_l_internal): Likewise.
27253         (____wcstoul_l_internal): Likewise.
27254         (____wcstoll_l_internal): Likewise.
27255         (____wcstoull_l_internal): Likewise.
27256         (____wcstof128_l_internal): Likewise.
27257         * sysdeps/ieee754/float128/wcstof128.c
27258         (____wcstof128_l_internal): Removed.
27259         * sysdeps/ieee754/float128/wcstof128_l.c
27260         (____wcstof128_l_internal): Likewise.
27261         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
27262         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
27263         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
27264         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
27265         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
27266         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
27267         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
27268         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
27269         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
27270         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
27271
27272 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27273
27274         [BZ #18822]
27275         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
27276         instead of <sys/statvfs.h>.
27277         (__internal_statvfs): Removed.
27278         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
27279         instead of <sys/statvfs.h>.
27280         (__internal_statvfs64): Removed.
27281         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
27282         "internal_statvfs.h" instead of <sys/statvfs.h>.
27283         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
27284         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
27285         instead of <sys/statvfs.h>.
27286         (__internal_statvfs): Removed.
27287         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
27288         instead of <sys/statvfs.h>.
27289         (__internal_statvfs64): Removed.
27290
27291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27292
27293         [BZ #18822]
27294         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
27295         (__gconv_close): Likewise.
27296         (__gconv): Likewise.
27297         (__gconv_find_transform): Likewise.
27298         (__gconv_lookup_cache): Likewise.
27299         (__gconv_compare_alias_cache): Likewise.
27300         (__gconv_load_cache): Likewise.
27301         (__gconv_get_path): Likewise.
27302         (__gconv_close_transform): Likewise.
27303         (__gconv_release_cache): Likewise.
27304         (__gconv_find_shlib): Likewise.
27305         (__gconv_release_shlib): Likewise.
27306         (__gconv_get_builtin_trans): Likewise.
27307         (__gconv_compare_alias): Likewise.
27308         * include/dlfcn.h (_dlerror_run): Likewise.
27309         * include/stdio.h (__fortify_fail_abort): Likewise.
27310         * include/time.h (__tz_compute): Likewise.
27311         (__strptime_internal): Likewise.
27312         * intl/gettextP.h (_nl_find_domain): Likewise.
27313         (_nl_load_domain): Likewise.
27314         (_nl_find_msg): Likewise.
27315         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27316         (EXTRACT_PLURAL_EXPRESSION): Likewise.
27317         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27318         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27319         (__gai_find_request): Likewise.
27320         (__gai_remove_request): Likewise.
27321         (__gai_notify): Likewise.
27322         (__gai_notify_only): Likewise.
27323         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27324         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27325         (_dl_non_dynamic_init): Likewise.
27326         (_dl_aux_init): Likewise.
27327         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27328         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27329         Likewise.
27330         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27331         (__wcsmbs_clone_conv): Likewise.
27332         (__wcsmbs_named_conv): Likewise.
27333
27334 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27335
27336         [BZ #18822]
27337         * include/stdlib.h (__random): Add attribute_hidden.
27338         (__random_r): Likewise.
27339         (__srandom_r): Likewise.
27340         (__initstate_r): Likewise.
27341         (__setstate_r): Likewise.
27342         (__erand48_r): Likewise.
27343         (__nrand48_r): Likewise.
27344         (__jrand48_r): Likewise.
27345         (__srand48_r): Likewise.
27346         (__seed48_r): Likewise.
27347         (__lcong48_r): Likewise.
27348         (__drand48_iterate): Likewise.
27349         (__setenv): Likewise.
27350         (__unsetenv): Likewise.
27351         (__clearenv): Likewise.
27352         (__ptsname_r): Likewise.
27353         (__posix_openpt): Likewise.
27354         (__add_to_environ): Likewise.
27355         (__realpath): Add libc_hidden_proto.
27356         (__ecvt_r): Likewise.
27357         (__fcvt_r): Likewise.
27358         (__qecvt_r): Likewise.
27359         (__qfcvt_r): Likewise.
27360         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27361         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27362
27363 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
27364
27365         [BZ #18822]
27366         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27367         * include/time.h (__mktime_internal): Likewise.
27368         * libio/iolibio.h (__fopen_internal): Likewise.
27369
27370 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
27371
27372         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27373         pointer in frame.
27374         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27375         Correct offset used to restore PIC register.
27376
27377 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
27378
27379         [BZ libc/22165]
27380         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27381         code to load address of __getcontext_ret when generating PIC code.
27382
27383 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
27384
27385         * elf/Makefile (tests-static-internal): Add
27386         tst-tls1-static-non-pie.
27387         (LDFLAGS-tst-tls1-static-non-pie): New.
27388         * elf/tst-tls1-static-non-pie.c: New file.
27389
27390 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
27391
27392         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27393         (asinh): Define using libm_alias_double.
27394         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27395         (cbrt): Define using libm_alias_double.
27396         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27397         <libm-alias-double.h>.
27398         (copysign): Define using libm_alias_double.
27399         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27400         (erf): Define using libm_alias_double.
27401         (erfc): Likewise.
27402         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27403         (expm1): Define using libm_alias_double.
27404         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27405         (fabs): Define using libm_alias_double.
27406         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27407         libm_alias_double.
27408         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27409         <libm-alias-double.h>.
27410         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27411         libm_alias_double.
27412         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27413         <libm-alias-double.h>.
27414         (getpayload): Define using libm_alias_double.
27415         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27416         <libm-alias-double.h>.
27417         (llrint): Define using libm_alias_double.
27418         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27419         (lrint): Define using libm_alias_double.
27420         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27421         <libm-alias-double.h>.
27422         (nextup): Define using libm_alias_double.
27423         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27424         <libm-alias-double.h>.
27425         (roundeven): Define using libm_alias_double.
27426         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27427         libm_alias_double.
27428         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27429         <libm-alias-double.h>.
27430         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27431         using libm_alias_double.
27432         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27433         (cos): Define using libm_alias_double.
27434         (sin): Likewise.
27435         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27436         <libm-alias-double.h>.
27437         (sincos): Define using libm_alias_double.
27438         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27439         (tanh): Define using libm_alias_double.
27440         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27441         <libm-alias-double.h>.
27442         (totalorder): Define using libm_alias_double.
27443         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27444         <libm-alias-double.h>.
27445         (totalordermag): Define using libm_alias_double.
27446         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27447         libm_alias_double.
27448         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27449         libm_alias_double.
27450         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27451         <libm-alias-double.h>.
27452         (getpayload): Define using libm_alias_double.
27453         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27454         <libm-alias-double.h>.
27455         (roundeven): Define using libm_alias_double.
27456         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27457         <libm-alias-double.h>.
27458         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27459         <libm-alias-double.h>.
27460         (totalorder): Define using libm_alias_double.
27461         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27462         <libm-alias-double.h>.
27463         (totalordermag): Define using libm_alias_double.
27464         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27465         libc compat symbol here.
27466         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27467         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27468         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27469         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27470         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27471         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27472         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27473         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27474         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27475         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27476
27477 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27478
27479         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27480         _dl_relocate_static_pie instead of _dl_start to compute load
27481         address in static PIE.  Return 0 if _DYNAMIC is undefined for
27482         static executable.
27483
27484 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27485
27486         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27487         _DYNAMIC is undefined for static executable.
27488
27489 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
27490
27491         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27492
27493 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
27494
27495         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27496
27497 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
27498
27499         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27500         (__ieee754_lgamma_r): Use fabs rather than __fabs.
27501         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27502         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27503         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27504         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27505         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27506         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27507         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27508         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27509         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27510         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27511         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27512         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27513         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27514         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27515         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27516
27517 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
27518
27519         * math/bits/cmathcalls.h (cimag): Remove inline.
27520         (creal): Remove inline.
27521         (conj): Remove inline.
27522
27523 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27524
27525         * math/Makefile (type-float-routines): Add e_powf_log2_data.
27526         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27527         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27528         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27529         (issignalingf_inline): Likewise.
27530         (POWF_LOG2_TABLE_BITS): Likewise.
27531         (POWF_LOG2_POLY_ORDER): Likewise.
27532         (POWF_SCALE_BITS): Likewise.
27533         (POWF_SCALE): Likewise.
27534         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27535         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27536         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27537
27538 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27539
27540         * math/Makefile (type-float-routines): Add e_log2f_data.
27541         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27542         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27543         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27544         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27545         * sysdeps/i386/fpu/e_log2f_data.c: New file.
27546         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27547         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27548
27549 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27550
27551         * math/Makefile (type-float-routines): Add e_logf_data.
27552         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27553         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27554         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27555         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27556         * sysdeps/i386/fpu/e_logf_data.c: New file.
27557         * sysdeps/ia64/fpu/e_logf_data.c: New file.
27558         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27559
27560 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27561
27562         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27563         undefined _DYNAMIC in PIE libc.a.
27564         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27565         Likewse.
27566
27567 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
27568
27569         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27570         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27571         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27572         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27573         (__signbit): Remove.
27574         (__signbitl): Remove.
27575         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27576         (__signbit): Remove.
27577         (__signbitl): Remove.
27578         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27579         (__signbit): Remove.
27580         (__signbitl): Remove.
27581         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27582         (__signbit): Remove.
27583         (__signbitl): Remove.
27584         * sysdeps/tile/bits/mathinline.h: Delete file.
27585         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27586         (__signbit): Remove.
27587         (__signbitl): Remove.
27588
27589 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
27590
27591         * math/math.h: Improve handling of C99 isgreater macros.
27592         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27593         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27594         * sysdeps/powerpc/bits/mathinline.h: Likewise.
27595         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27596         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27597
27598 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27599
27600         * sysdeps/aarch64/libm-test-ulps: Update.
27601
27602 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
27603
27604         [BZ #22225]
27605         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27606         math_opt_barrier on argument when doing arithmetic on it.
27607         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27608         Likewise.  Use math_force_eval not math_opt_barrier after
27609         arithmetic.
27610         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27611         math_opt_barrier on argument when doing arithmetic on it.
27612         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27613         Likewise.
27614
27615 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27616
27617         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27618         libc_hidden_def.
27619         (__freeifaddrs): Likewise.
27620
27621 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27622
27623         * include/dirent.h (__dirfd): New declaration.
27624         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27625         alias.
27626         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27627         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27628         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27629         * include/unistd.h (__revoke): New declaration.
27630         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27631         alias.
27632         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27633         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27634         revoke.
27635         * include/dirent.h (__seekdir): New declaration.
27636         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27637         redefine as weak alias.
27638         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27639         of seekdir.
27640         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27641         and use libc_hidden_def on them.
27642         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27643         them.
27644         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27645         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27646         instead of getifaddrs and freeifaddrs.
27647
27648 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
27649
27650         [BZ #18822]
27651         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27652         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27653         (__dso_handle): Remove declaration.
27654         * dlfcn/tstatexit.c (__dso_handle): Removed.
27655         (main): Don't check __dso_handle.
27656         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27657         (main): Don't check __dso_handle.
27658         * include/dso_handle.h: New file.
27659         * malloc/mtrace.c: Include <dso_handle.h>.
27660         (mtrace): Pass __dso_handle directly.
27661         * nptl/pthread_atfork.c: Include <dso_handle.h>.
27662         (__dso_handle): Remove declaration.
27663         (__pthread_atfork): Pass __dso_handle directly.
27664         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27665         (__dso_handle): Removed.
27666         * posix/wordexp-test.c: Include <dso_handle.h>.
27667         (__dso_handle): Remove declaration.
27668         (__app_register_atfork): Pass __dso_handle directly.
27669         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27670         (__dso_handle): Remove declaration.
27671         (at_quick_exit): Pass __dso_handle directly.
27672         * stdlib/atexit.c: Include <dso_handle.h>.
27673         (__dso_handle): Remove declaration.
27674         (atexit): Pass __dso_handle directly.
27675         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27676         (__dso_handle): Removed.
27677
27678 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27679
27680         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27681         using VDSO.
27682
27683 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
27684
27685         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27686         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27687         values to correct default value for given type.
27688
27689 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
27690
27691         [BZ #22101]
27692         * elf/Makefile (tests): Add tst-debug1.
27693         ($(objpfx)tst-debug1): New.
27694         ($(objpfx)tst-debug1.out): Likewise.
27695         ($(objpfx)tst-debug1mod1.so): Likewise.
27696         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27697         with p_filesz == 0.
27698         * elf/tst-debug1.c: New file.
27699
27700 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27701
27702         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27703         Define using __ifunc.
27704
27705 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27706
27707         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27708         exp2f() values.
27709
27710 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
27711
27712         [BZ #22156]
27713         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27714
27715 2017-09-26  Florian Weimer  <fweimer@redhat.com>
27716
27717         * resolv/Makefile (tests-internal): Fix typo in comment.
27718
27719 2017-09-26  Florian Weimer  <fweimer@redhat.com>
27720
27721         * resolv/nss_dns/dns-host.c: Fix typo in comment.
27722
27723 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27724
27725         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27726         Use an union instead of a max_align_t array for __space,
27727         so that __space is the same size on all platforms.
27728         * malloc/scratch_buffer_grow_preserve.c
27729         (__libc_scratch_buffer_grow_preserve): Likewise.
27730
27731         [BZ #22183]
27732         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27733         version to 2.
27734         * posix/Makefile (routines): Add glob-lstat-compat and
27735         glob64-lstat-compat.
27736         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27737         * posix/glob-lstat-compat.c: New file.
27738         * posix/glob64-lstat-compat.c: Likewise.
27739         * posix/tst-glob_lstat_compat.c: Likewise.
27740         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27741         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27742         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27743         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27744         Likewise.
27745         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27746         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27747         * posix/glob.c (glob_lstat): New function.
27748         (glob): Rename to __glob and add versioned symbol to 2.27.
27749         (glob_in_dir): Use glob_lstat.
27750         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27751         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27752         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27753         2.27.
27754         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27755         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27756         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27757         gl_lstat on glob call.
27758         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27759         and glob64 symbols.
27760         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27761         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27762         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27763         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27764         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27765         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27766         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27767         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27768         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27769         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27770         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27771         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27773         Likewise.
27774         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27776         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27777         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27778         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27779         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27780         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27782         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27783         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27784         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27785         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27786
27787 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
27788
27789         * configure.ac (AS): Require binutils 2.25 or later.
27790         * configure: Regenerated.
27791
27792 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
27793
27794         [BZ #22207]
27795         * stdlib/test-atexit-race-common.c (do_test): Minimize required
27796         VM size.
27797
27798 2017-09-25  DJ Delorie  <dj@redhat.com>
27799
27800         [BZ #22161]
27801         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27802         resetting timeout.
27803
27804 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
27805
27806         * sysdeps/ieee754/dbl-64/sincos32.h
27807         [SINCCOS32_H]: Remove define.
27808         [SINCOS32_H]: Define.
27809
27810 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27811
27812         * math/Versions (expf): New libm symbol at GLIBC_2.27.
27813         (exp2f): Likewise.
27814         * math/w_exp2f.c: New file.
27815         * math/w_expf.c: New file.
27816         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27817         * math/w_expf_compat.c (__expf_compat): Likewise.
27818         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27819         * sysdeps/ia64/fpu/e_expf.S: Likewise.
27820         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27821         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27822         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27823         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27824         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27825         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27826         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27827         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27828         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27829         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27830         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27831         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27833         Likewise.
27834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27835         Likewise.
27836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27837         Likewise.
27838         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27839         Likewise.
27840         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27841         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27842         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27843         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27844         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27846         Likewise.
27847         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27848         Likewise.
27849         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27850         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27851         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27852
27853 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
27854
27855         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27856         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27857         (roundtoint, converttoint): Likewise.
27858         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27859         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27860         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27861         * sysdeps/ieee754/flt-32/math_config.h: New file.
27862         * sysdeps/ieee754/flt-32/math_errf.c: New file.
27863         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27864         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27865         * sysdeps/i386/fpu/math_errf.c: New file.
27866         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27867         * sysdeps/ia64/fpu/math_errf.c: New file.
27868         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27869         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27870
27871 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27872
27873         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27874         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27875         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27876         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27877         to make sure that these symbols are defined.
27878         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27879         of <limits.h>
27880         (__need_NULL): Do not define.
27881         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27882         alignment.
27883         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27884         CMGROUP_MAX, cmsgcred): Do not define.
27885         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27886         NULL.
27887         * bits/socket.h: Likewise.
27888         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27889         __gettimeofday instead of gettimeofday.
27890         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27891         instead of settimeofday.
27892
27893 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
27894
27895         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27896         (asinhf): Define using libm_alias_float.
27897         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27898         (atanf): Define using libm_alias_float.
27899         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27900         (cbrtf): Define using libm_alias_float.
27901         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27902         (ceilf): Define using libm_alias_float.
27903         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27904         <libm-alias-float.h>.
27905         (copysignf): Define using libm_alias_float.
27906         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27907         (cosf): Define using libm_alias_float.
27908         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27909         (erff): Define using libm_alias_float.
27910         (erfcf): Likewise.
27911         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27912         (expm1f): Define using libm_alias_float.
27913         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27914         (fabsf): Define using libm_alias_float.
27915         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27916         (floorf): Define using libm_alias_float.
27917         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27918         (frexpf): Define using libm_alias_float.
27919         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27920         libm_alias_float.
27921         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27922         <libm-alias-float.h>.
27923         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27924         libm_alias_float.
27925         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27926         <libm-alias-float.h>.
27927         (getpayloadf): Define using libm_alias_float.
27928         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27929         <libm-alias-float.h>.
27930         (llrintf): Define using libm_alias_float.
27931         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27932         <libm-alias-float.h>.
27933         (llroundf): Define using libm_alias_float.
27934         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27935         (logbf): Define using libm_alias_float.
27936         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27937         (lrintf): Define using libm_alias_float.
27938         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27939         (lroundf): Define using libm_alias_float.
27940         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27941         (modff): Define using libm_alias_float.
27942         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27943         <libm-alias-float.h>.
27944         (nearbyintf): Define using libm_alias_float.
27945         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27946         <libm-alias-float.h>.
27947         (nextafterf): Define using libm_alias_float.
27948         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27949         <libm-alias-float.h>.
27950         (nextupf): Define using libm_alias_float.
27951         * sysdeps/ieee754/flt-32/s_remquof.c: Include
27952         <libm-alias-float.h>.
27953         (remquof): Define using libm_alias_float.
27954         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27955         (rintf): Define using libm_alias_float.
27956         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27957         <libm-alias-float.h>.
27958         (roundevenf): Define using libm_alias_float.
27959         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27960         (roundf): Define using libm_alias_float.
27961         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27962         using libm_alias_float.
27963         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27964         <libm-alias-float.h>.
27965         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27966         Define using libm_alias_float.
27967         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27968         <libm-alias-float.h>.
27969         (sincosf): Define using libm_alias_float.
27970         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27971         (sinf): Define using libm_alias_float.
27972         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27973         (tanf): Define using libm_alias_float.
27974         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27975         (tanhf): Define using libm_alias_float.
27976         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27977         <libm-alias-float.h>.
27978         (totalorderf): Define using libm_alias_float.
27979         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27980         <libm-alias-float.h>.
27981         (totalordermagf): Define using libm_alias_float.
27982         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27983         (truncf): Define using libm_alias_float.
27984         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27985         libm_alias_float.
27986         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27987         libm_alias_float.
27988
27989 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
27990
27991         [BZ #22146]
27992         math/math.h: Let fpclassify use the builtin in C++ mode, even
27993         when optimazing for size.
27994
27995 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
27996
27997         * csu/Makefile (generated): Do not add version-info.h.
27998         (before-compile): Likewise.
27999         (all-Banner-files): Remove variable.
28000         ($(objpfx)version-info.h): Remove rule.
28001         * csu/version.c (banner): Do not include "version-info.h".
28002         * libidn/Banner: Remove.
28003         * manual/contrib.texi (Simon Josefsson): New entry.
28004
28005 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28006
28007         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
28008         Remove conditionals on LDBL_MANT_DIG.
28009         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
28010         (__ieee754_lgammal_r): Likewise.
28011
28012 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28013
28014         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
28015         _Float128 and L().
28016         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
28017         _Float128 and L(). Replace _Float128 with long double and L(x)
28018         with xL, throughout the file.
28019         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28020         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28021         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28022         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28023
28024 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28025
28026         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
28027         sysdeps/ieee754/ldbl-128ibm.
28028         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
28029         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
28030         of including it.  Keep _Float128 and L() intact.  These will be
28031         reviewed by a separate patch.
28032         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
28033         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
28034         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
28035         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
28036
28037 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28038
28039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
28040         (__finitef128): Define to __redirect___finitef128.
28041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
28042         (__isinff128): Define to __redirect___isinff128.
28043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
28044         (__isnanf128): Define to __redirect___isnanf128.
28045
28046 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28047
28048         * sysdeps/powerpc/powerpc64le/Makefile
28049         (CFLAGS-tst-strtod-nan-locale.c): New variable.
28050         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
28051
28052 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
28053             Carlos O'Donell  <carlos@redhat.com>
28054
28055         [BZ #22180]
28056         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
28057         * stdlib/test-dlclose-exit-race.c: New file.
28058         * stdlib/test-dlclose-exit-race-helper.c: New file.
28059         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
28060
28061 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
28062
28063         * crypt/Banner: Remove file.
28064         * nptl/Banner: Likewise.
28065         * resolv/Banner: Likewise.
28066         * soft-fp/Banner: Likewise.
28067         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
28068         ($(objpfx)version.d): Remove dependency on banner.h.
28069         ($(objpfx)version.os): Likewise.
28070         * nptl/version.c (banner): Do not include banner.h.
28071         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
28072         Jelinek and BIND code.
28073
28074 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
28075             Carlos O'Donell  <carlos@redhat.com>
28076
28077         * support/xdlfcn.h: New file.
28078         * support/xdlfcn.c: New file.
28079         * support/Makefile (libsupport-routines): Add xdlfcn.
28080         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
28081
28082 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
28083
28084         [BZ #20142]
28085         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28086         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
28087         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
28088         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
28089         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
28090         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
28091         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
28092         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
28093
28094 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
28095             Ricky Zhou  <rickyz@google.com>
28096             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
28097
28098         [BZ #14333]
28099         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
28100         Remove atomics.
28101         (__new_exitfn): Fail registration when we finished at_exit processing.
28102         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
28103         * stdlib/on_exit.c (__on_exit): Likewise.
28104         * stdlib/exit.c (__exit_funcs_done): New variable.
28105         (__run_exit_handlers): Use __exit_funcs_lock.
28106         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
28107         declarations.
28108         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
28109         (test-cxa_atexit-race, test-on_exit-race): New tests.
28110         * stdlib/test-atexit-race-common.c: New file.
28111         * stdlib/test-atexit-race.c: New file.
28112         * stdlib/test-at_quick_exit-race.c: New file.
28113         * stdlib/test-cxa_atexit-race.c: New file.
28114         * stdlib/test-on_exit-race.c: New file.
28115
28116 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28117
28118         * benchtests/Makefile: Add exp2f and log2f benchmarks.
28119         * benchtests/exp2f-inputs: Copy of expf-inputs.
28120         * benchtests/log2f-inputs: Copy of logf-inputs.
28121
28122 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
28123
28124         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
28125         Explicitly take address of first element of array arguments in
28126         call to INLINE_SYSCALL.
28127
28128 2017-09-19  Andreas Schwab  <schwab@suse.de>
28129
28130         [BZ #22134]
28131         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
28132         execveat first.
28133         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
28134         unimplemented.
28135         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
28136         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
28137         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
28138         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
28139         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
28140         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28141         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28142         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
28143         * posix/Makefile (tests): Add tst-fexecve.
28144         * posix/tst-fexecve.c: New file.
28145
28146 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28147
28148         * benchtests/Makefile: Add logf benchmark.
28149         * benchtests/logf-inputs: Add reduced trace from wrf_r.
28150
28151 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28152
28153         * benchtests/Makefile: Add expf benchmark.
28154         * benchtests/expf-inputs: Add reduced trace from wrf_r.
28155
28156 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
28157
28158         * csu/Makefile: Add -funwind-tables to libc-start.c.
28159         * debug/Makefile: Add -funwind-tables to backtrace.c.
28160         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
28161         * sysdeps/arm/Makefile: Likewise.
28162         * sysdeps/i386/Makefile: Likewise.
28163         * sysdeps/m68k/Makefile: Likewise.
28164         * sysdeps/mips/Makefile: Likewise.
28165         * sysdeps/nios2/Makefile: Likewise.
28166         * sysdeps/sh/Makefile: Likewise.
28167         * sysdeps/sparc/Makefile: Likewise.
28168
28169 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
28170
28171         * benchtests/Makefile (bench-math): Add trunc and truncf.
28172         (CFLAGS-bench-trunc.c): New variable.
28173         (CFLAGS-bench-truncf.c): Likewise.
28174         * benchtests/trunc-inputs: New file.
28175         * benchtests/truncf-inputs: Likewise.
28176
28177 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28178
28179         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
28180
28181 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
28182
28183         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
28184         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
28185         redefine.
28186         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
28187         (exp10l): Define as weak alias.
28188         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
28189         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
28190         and redefine.
28191         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
28192         (remainderl): Define as weak alias.
28193
28194         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
28195         (fmal): Define using libm_alias_ldouble.
28196         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
28197         (acoshl): Define using libm_alias_ldouble.
28198         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
28199         (acosl): Define using libm_alias_ldouble.
28200         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
28201         (asinl): Define using libm_alias_ldouble.
28202         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
28203         (atan2l): Define using libm_alias_ldouble.
28204         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
28205         (atanhl): Define using libm_alias_ldouble.
28206         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
28207         (coshl): Define using libm_alias_ldouble.
28208         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
28209         (exp10l): Define using libm_alias_ldouble.
28210         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
28211         (exp2l): Define using libm_alias_ldouble.
28212         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
28213         (expl): Define using libm_alias_ldouble.
28214         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
28215         (fmodl): Define using libm_alias_ldouble.
28216         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
28217         (hypotl): Define using libm_alias_ldouble.
28218         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
28219         (j0l): Define using libm_alias_ldouble.
28220         (y0l): Likewise.
28221         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
28222         (j1l): Define using libm_alias_ldouble.
28223         (y1l): Likewise.
28224         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
28225         (jnl): Define using libm_alias_ldouble.
28226         (ynl): Likewise.
28227         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
28228         (log10l): Define using libm_alias_ldouble.
28229         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
28230         (log2l): Define using libm_alias_ldouble.
28231         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
28232         (logl): Define using libm_alias_ldouble.
28233         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
28234         (powl): Define using libm_alias_ldouble.
28235         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
28236         (remainderl): Define using libm_alias_ldouble.
28237         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
28238         (sinhl): Define using libm_alias_ldouble.
28239         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
28240         (sqrtl): Define using libm_alias_ldouble.
28241         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
28242         (tgammal): Define using libm_alias_ldouble.
28243         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
28244         (exp10l): Do not use long_double_symbol here.
28245         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
28246         [LIBM_SVID_COMPAT] (remainderl): Likewise.
28247         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
28248         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28249         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28250         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28251         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28252         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28253         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28254         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28255         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28256         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28257         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28258         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28259         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28260         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28261         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28262         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28263         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28264         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28265         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28266         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28267
28268 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
28269
28270         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
28271         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
28272
28273 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28274
28275         * io/read.c (read): Add libc_hidden_weak.
28276         * sysdeps/mach/hurd/read.c (read): Likewise.
28277         * io/write.c (write): Likewise.
28278         * sysdeps/mach/hurd/write.c (write): Likewise.
28279         * io/pread64.c (__pread64): Likewise.
28280         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
28281         * posix/pread64.c (__pread64): Add libc_hidden_def.
28282
28283 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28284
28285         * benchtests/scripts/compare_strings.py: New option -g.
28286         (draw_graph): Print a message that a graph is being generated.
28287         (process_results): Generate graph only if -g is passed.
28288         (main): Process option -g.
28289
28290         * benchtests/scripts/compare_strings.py (process_results):
28291         Better spacing for output.
28292
28293         * benchtests/scripts/compare_strings.py: Use argparse.
28294         * benchtests/README: Document existence of compare_strings.py.
28295
28296 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
28297
28298         * math/s_fma.c: Include <libm-alias-double.h>.
28299         (fma): Define using libm_alias_double.
28300         * math/s_nextafter.c: Include <libm-alias-double.h>.
28301         (nextafter): Define using libm_alias_double.
28302         * math/w_acos_compat.c: Include <libm-alias-double.h>.
28303         (acos): Define using libm_alias_double.
28304         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28305         (aocsh): Define using libm_alias_double.
28306         * math/w_asin_compat.c: Include <libm-alias-double.h>.
28307         (asin): Define using libm_alias_double.
28308         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28309         (atan2): Define using libm_alias_double.
28310         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28311         (atanh): Define using libm_alias_double.
28312         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28313         (cosh): Define using libm_alias_double.
28314         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28315         (exp10): Define using libm_alias_double.
28316         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28317         (exp2): Define using libm_alias_double.
28318         * math/w_exp_compat.c: Include <libm-alias-double.h>.
28319         (exp): Define using libm_alias_double.
28320         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28321         (fmod): Define using libm_alias_double.
28322         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28323         (hypot): Define using libm_alias_double.
28324         * math/w_j0_compat.c: Include <libm-alias-double.h>.
28325         (j0): Define using libm_alias_double.
28326         (y0): Likewise.
28327         * math/w_j1_compat.c: Include <libm-alias-double.h>.
28328         (j1): Define using libm_alias_double.
28329         (y1): Likewise.
28330         * math/w_jn_compat.c: Include <libm-alias-double.h>.
28331         (jn): Define using libm_alias_double.
28332         (yn): Likewise.
28333         * math/w_log10_compat.c: Include <libm-alias-double.h>.
28334         (log10): Define using libm_alias_double.
28335         * math/w_log2_compat.c: Include <libm-alias-double.h>.
28336         (log2): Define using libm_alias_double.
28337         * math/w_log_compat.c: Include <libm-alias-double.h>.
28338         (log): Define using libm_alias_double.
28339         * math/w_pow_compat.c: Include <libm-alias-double.h>.
28340         (pow): Define using libm_alias_double.
28341         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28342         (remainder): Define using libm_alias_double.
28343         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28344         (sinh): Define using libm_alias_double.
28345         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28346         (sqrt): Define using libm_alias_double.
28347         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28348         (tgamma): Define using libm_alias_double.
28349         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28350         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28351         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28352         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28353         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28354         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28355         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28356         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28357         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28358         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28359         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28360         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28361         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28362         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28363         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28364         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28365         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28366         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28367         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28368         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28369         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28370         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28371         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28372         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28373         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28374
28375         * math/e_acoshl.c: Remove.
28376         * math/e_acosl.c: Likewise.
28377         * math/e_asinl.c: Likewise.
28378         * math/e_atan2l.c: Likewise.
28379         * math/e_atanhl.c: Likewise.
28380         * math/e_coshl.c: Likewise.
28381         * math/e_expl.c: Likewise.
28382         * math/e_fmodl.c: Likewise.
28383         * math/e_gammal_r.c: Likewise.
28384         * math/e_hypotl.c: Likewise.
28385         * math/e_j0l.c: Likewise.
28386         * math/e_j1l.c: Likewise.
28387         * math/e_jnl.c: Likewise.
28388         * math/e_lgammal_r.c: Likewise.
28389         * math/e_log10l.c: Likewise.
28390         * math/e_log2l.c: Likewise.
28391         * math/e_logl.c: Likewise.
28392         * math/e_powl.c: Likewise.
28393         * math/e_rem_pio2l.c: Likewise.
28394         * math/e_sinhl.c: Likewise.
28395         * math/e_sqrtf128.c: Likewise.
28396         * math/e_sqrtl.c: Likewise.
28397         * math/k_cosl.c: Likewise.
28398         * math/k_sinl.c: Likewise.
28399         * math/k_tanl.c: Likewise.
28400         * math/s_asinhl.c: Likewise.
28401         * math/s_atanl.c: Likewise.
28402         * math/s_cbrtl.c: Likewise.
28403         * math/s_erfl.c: Likewise.
28404         * math/s_expm1l.c: Likewise.
28405         * math/s_log1pl.c: Likewise.
28406         * math/s_tanhl.c: Likewise.
28407
28408 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28409
28410         [BZ #21745]
28411         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28412         [$(subdir) = math] (sysdep_calls): New variable.  Has the
28413         previous contents of sysdep_routines, but re-sorted..
28414         [$(subdir) = math] (sysdep_routines): Re-use the contents from
28415         sysdep_calls.
28416         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28417         defined in sysdep_calls and replace by the respective m_* names.
28418         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28419         (compat_symbol): Undefine to avoid duplicated compat symbols in
28420         libc.
28421
28422 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
28423
28424         * math/s_fmaf.c: Include <libm-alias-float.h>.
28425         (fmaf): Define using libm_alias_float.
28426         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28427         (acosf): Define using libm_alias_float.
28428         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28429         (acoshf): Define using libm_alias_float.
28430         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28431         (asinf): Define using libm_alias_float.
28432         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28433         (atan2f): Define using libm_alias_float.
28434         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28435         (atanhf): Define using libm_alias_float.
28436         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28437         (coshf): Define using libm_alias_float.
28438         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28439         (exp10f): Define using libm_alias_float.
28440         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28441         (fmodf): Define using libm_alias_float.
28442         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28443         (hypotf): Define using libm_alias_float.
28444         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28445         (j0f): Define using libm_alias_float.
28446         (y0f): Likewise.
28447         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28448         (j1f): Define using libm_alias_float.
28449         (y1f): Likewise.
28450         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28451         (jnf): Define using libm_alias_float.
28452         (ynf): Likewise.
28453         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28454         (log10f): Define using libm_alias_float.
28455         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28456         (log2f): Define using libm_alias_float.
28457         * math/w_logf_compat.c: Include <libm-alias-float.h>.
28458         (logf): Define using libm_alias_float.
28459         * math/w_powf_compat.c: Include <libm-alias-float.h>.
28460         (powf): Define using libm_alias_float.
28461         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28462         (remainderf): Define using libm_alias_float.
28463         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28464         (sinhf): Define using libm_alias_float.
28465         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28466         (sqrtf): Define using libm_alias_float.
28467         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28468         (tgammaf): Define using libm_alias_float.
28469
28470 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
28471
28472         * include/math.h (roundeven): Change hidden_proto call to
28473         __roundeven.
28474         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28475         alias.
28476         [NO_LONG_DOUBLE] (__j0l): New strong alias.
28477         (y0): Rename to __y0 and define as weak alias.
28478         [NO_LONG_DOUBLE] (__y0l): New strong alias.
28479         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28480         alias.
28481         (y0f): Rename to __y0f and define as weak alias.
28482         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28483         alias.
28484         [NO_LONG_DOUBLE] (__j1l): New strong alias.
28485         (y1): Rename to __y1 and define as weak alias.
28486         [NO_LONG_DOUBLE] (__y1l): New strong alias.
28487         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28488         alias.
28489         (y1f): Rename to __y1f and define as weak alias.
28490         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28491         alias.
28492         [NO_LONG_DOUBLE] (__jnl): New strong alias.
28493         (yn): Rename to __yn and define as weak alias.
28494         [NO_LONG_DOUBLE] (__ynl): New strong alias.
28495         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28496         alias.
28497         (ynf): Rename to __ynf and define as weak alias.
28498         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28499         (fromfp): Define as weak alias.
28500         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28501         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28502         (fromfpx): Define as weak alias.
28503         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28504         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28505         __getpayload and define as weak alias.
28506         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28507         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28508         __roundeven and define as weak alias.
28509         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28510         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28511         __setpayload.
28512         (setpayload): Define as weak alias.
28513         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28514         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28515         __setpayloadsig.
28516         (setpayloadsig): Define as weak alias.
28517         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28518         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28519         __totalorder and define as weak alias.
28520         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28521         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28522         to __totalordermag and define as weak alias.
28523         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28524         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28525         (ufromfp): Define as weak alias.
28526         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28527         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28528         __ufromfpx.
28529         (ufromfpx): Define as weak alias.
28530         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28531         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28532         Rename to __getpayload and define as weak alias.
28533         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28534         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28535         Rename to __roundeven and define as weak alias.
28536         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28537         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28538         Rename to __totalorder and define as weak alias.
28539         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28540         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28541         (totalordermag): Rename to __totalordermag and define as weak
28542         alias.
28543         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28544         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28545         macro.
28546         (__roundevenl): Likewise.
28547         (__totalorderl): Likewise.
28548         (__totalordermagl): Likewise
28549         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28550         __fromfpf128.
28551         (fromfpf128): Define as weak alias.
28552         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28553         __fromfpxf128.
28554         (fromfpxf128): Define as weak alias.
28555         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28556         __setpayloadf128.
28557         (setpayloadf128): Define as weak alias.
28558         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28559         __setpayloadsigf128.
28560         (setpayloadsigf128): Define as weak alias.
28561         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28562         __ufromfpf128.
28563         (ufromfpf128): Define as weak alias.
28564         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28565         __ufromfpxf128.
28566         (ufromfpxf128): Define as weak alias.
28567         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28568         (fromfpf): Define as weak alias.
28569         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28570         __fromfpxf.
28571         (fromfpxf): Define as weak alias.
28572         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28573         __getpayloadf and define as weak alias.
28574         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28575         __roundevenf and define as weak alias.
28576         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28577         __setpayloadf.
28578         (setpayloadf): Define as weak alias.
28579         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28580         __setpayloadsigf.
28581         (setpayloadsigf): Define as weak alias.
28582         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28583         __totalorderf and define as weak alias.
28584         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28585         Rename to __totalordermagf and define as weak alias.
28586         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28587         __ufromfpf.
28588         (ufromfpf): Define as weak alias.
28589         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28590         __ufromfpxf.
28591         (ufromfpxf): Define as weak alias.
28592         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28593         __fromfpl.
28594         (fromfpl): Define as weak alias.
28595         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28596         __fromfpxl.
28597         (fromfpxl): Define as weak alias.
28598         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28599         to __getpayloadl and define as weak alias.
28600         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28601         __roundevenl and define as weak alias.
28602         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28603         __setpayloadl.
28604         (setpayloadl): Define as weak alias.
28605         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28606         __setpayloadsigl.
28607         (setpayloadsigl): Define as weak alias.
28608         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28609         to __totalorderl and define as weak alias.
28610         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28611         Rename to __totalordermagl and define as weak alias.
28612         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28613         __ufromfpl.
28614         (ufromfpl): Define as weak alias.
28615         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28616         __ufromfpxl.
28617         (ufromfpxl): Define as weak alias.
28618         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28619         __fromfpl.
28620         (fromfpl): Define as weak alias.
28621         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28622         __fromfpxl.
28623         (fromfpxl): Define as weak alias.
28624         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28625         Rename to __getpayloadl and define as weak alias.
28626         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28627         to __roundevenl and define as weak alias.  Call __roundeven
28628         instead of roundeven.
28629         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28630         __setpayloadl.
28631         (setpayloadl): Define as weak alias.
28632         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28633         __setpayloadsigl.
28634         (setpayloadsigl): Define as weak alias.
28635         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28636         Rename to __totalorderl and define as weak alias.
28637         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28638         Rename to __totalordermagl and define as weak alias.
28639         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28640         __ufromfpl.
28641         (ufromfpl): Define as weak alias.
28642         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28643         __ufromfpxl.
28644         (ufromfpxl): Define as weak alias.
28645         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28646         __fromfpl.
28647         (fromfpl): Define as weak alias.
28648         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28649         __fromfpxl.
28650         (fromfpxl): Define as weak alias.
28651         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28652         __getpayloadl and define as weak alias.
28653         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28654         __roundevenl and define as weak alias.
28655         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28656         __setpayloadl.
28657         (setpayloadl): Define as weak alias.
28658         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28659         __setpayloadsigl.
28660         (setpayloadsigl): Define as weak alias.
28661         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28662         __totalorderl and define as weak alias.
28663         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28664         Rename to __totalordermagl and define as weak alias.
28665         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28666         __ufromfpl.
28667         (ufromfpl): Define as weak alias.
28668         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28669         __ufromfpxl.
28670         (ufromfpxl): Define as weak alias.
28671
28672 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28673
28674         * benchtests/bench-string.h (realloc_bufs): New function.
28675         (test_init): Call it.
28676         * benchtests/bench-memset-large.c (do_test): Likewise.
28677         * benchtests/bench-memset.c (do_test): Likewise.
28678
28679         * benchtests/bench-memset-large.c: Print output in JSON
28680         format.
28681         * benchtests/bench-memset.c: Likewise.
28682
28683 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
28684
28685         [BZ #21084]
28686         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28687         * iconvdata/Makefile: Add IBM858.
28688         * iconvdata/gconv-modules: Likewise.
28689         * iconvdata/tst-tables.sh: Likewise.
28690         * iconvdata/ibm858.c: New file.
28691         * localedata/charmaps/IBM858: Likewise.
28692
28693 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
28694
28695         [BZ #22023]
28696         * locales/niu_NZ (LC_TIME): copy "niu_NU".
28697         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28698
28699 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
28700
28701         [BZ #22112]
28702         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28703         and add tel_int_fmt.
28704
28705 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
28706
28707         * sysdeps/generic/libm-alias-float128.h: New file.
28708         * sysdeps/generic/math-type-macros-float128.h: Include
28709         <libm-alias-float128.h>.
28710         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28711
28712 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28713
28714         * sysdeps/generic/libm-alias-ldouble.h: New file.
28715         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28716         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28717         * sysdeps/generic/math-type-macros-ldouble.h: Include
28718         <libm-alias-ldouble.h>.
28719         [!declare_mgen_alias] (declare_mgen_alias): Define to use
28720         libm_alias_ldouble.
28721
28722 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28723
28724         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28725         * math/w_exp_compat.c: ... here.
28726         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28727         * math/w_expf_compat.c: ... here.
28728         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28729         * math/w_expl_compat.c: ... here.
28730         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28731         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28732         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28733         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28734
28735 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28736
28737         * math/w_scalbln_template.c (strong_alias): Do not undefine and
28738         redefine.
28739         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28740         macro.
28741         (ldexpl): Only define as compat symbol for libc, not libm.
28742         (scalbnl): Define as compat symbol for libc here.
28743         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28744         define for [IS_IN (libc)].
28745         (__ldexpl_2): Remove alias.
28746         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28747         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
28748         name in long_double_symbol call.
28749         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28750         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28751         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28752         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28753         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28754         Remove macro.
28755         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28756         Define as compat symbol.
28757
28758 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28759
28760         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28761         * sysdeps/unix/sysv/linux/alpha/Makefile
28762         [$(subdir) = csu] (sysdep_routines): Remove rule.
28763
28764 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
28765
28766         * sysdeps/generic/libm-alias-double.h: New file.
28767         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28768         * sysdeps/generic/math-type-macros-double.h: Include
28769         <libm-alias-double.h>.
28770         [declare_mgen_alias] (declare_mgen_alias): Define to use
28771         libm_alias_double.
28772         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28773         (M_LIBM_NEED_COMPAT): Remove macro.
28774         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28775         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28776         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28777         code.
28778         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28779         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28780         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28781         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28782         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28783         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28784         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28785         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28786         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28787         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28788         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28789         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28790         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28791         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28792         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28793         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28794         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28795         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28796         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28797         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28798         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28799         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28800         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28801         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28802         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28803         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28804         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28805         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28806         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28807         macro.
28808         (declare_mgen_alias): New macro.
28809         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28810         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28812         (M_LIBM_NEED_COMPAT): Remove macro.
28813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28814         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28815         <first-versions.h>.
28816         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28817         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28818
28819 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
28820
28821         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28822         (declare_mgen_alias_2): Remove.
28823         * sysdeps/generic/math-type-macros-double.h
28824         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28825         Likewise.
28826         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28827         alias.
28828         (ldexp): Define with declare_mgen_alias.
28829         (scalbn): Likewise.
28830
28831 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
28832
28833         * grp/initgroups.c: Include config.h.
28834         (DEFAULT_CONFIG): New macro.
28835         (internal_getgrouplist): Use DEFAULT_CONFIG.
28836         * nscd/initgrcache.c (addinitgroupsX): Likewise.
28837         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28838         (DEFAULT_DEFCONFIG): New macro.
28839         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28840         * nss/grp-lookup.c: Include config.h
28841         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28842         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28843         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28844         * manual/nss.texi: Update default values section.
28845
28846 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
28847
28848         [BZ #21967]
28849         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28850         New.
28851         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28852         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28853         Handle MathVec_Prefer_No_AVX512.
28854         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28855         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28856         is set.
28857
28858 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28859
28860         * posix/sched_primax.c (__sched_get_priority_max): Add
28861         libc_hidden_def.
28862         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28863         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28864         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28865         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28866         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28867         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28868         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28869         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28870         Add aliases.
28871
28872 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
28873
28874         * sysdeps/generic/libm-alias-float.h: New file.
28875         * sysdeps/generic/math-type-macros-float.h: Include
28876         <libm-alias-float.h>.
28877         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28878
28879 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28880
28881         [BZ #22093]
28882         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28883         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28884         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28885         (HWCAP_IMPORTANT): Likewise.
28886         (HWCAP_X86_64): New enum.
28887         (HWCAP_X86_AVX512_1): Updated.
28888         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28889         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28890         (modules-names): Add x86_64/tst-x86_64mod-1.
28891         (LDFLAGS-tst-x86_64mod-1.so): New.
28892         ($(objpfx)tst-x86_64-1): Likewise.
28893         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28894         (tst-x86_64-1-clean): Likewise.
28895         * sysdeps/x86_64/tst-x86_64-1.c: New file.
28896         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28897
28898 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
28899
28900         * po/sv.po: Update translations.
28901         * po/fr.po: Likewise.
28902
28903 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28904
28905         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28906         seconds.
28907         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28908         seconds.
28909         * elf/rtld-Rules: Fix $(error) use.
28910
28911 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
28912
28913         [BZ #14925]
28914         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28915         * locale/iso-639.def: Change “Bengali” to “Bangla”.
28916         * localedata/locales/bn_BD: “Bengali” was still used in some
28917         comments. Change it to “Bangla”.
28918
28919 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
28920
28921         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28922
28923 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
28924
28925         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28926         thunderx2t99p1 to list of cpu names.
28927         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28928         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28929
28930 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
28931
28932         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28933         Use strcmp instead of tunable_is_name.
28934
28935 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
28936
28937         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28938         (F_GET_RW_HINT): New macro.
28939         [__USE_GNU] (F_SET_RW_HINT): Likewise.
28940         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28941         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28942         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28943         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28944         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28945         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28946         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28947         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28948
28949         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28950         (F_ADD_SEALS): New macro.
28951         [__USE_GNU] (F_GET_SEALS): Likewise.
28952         [__USE_GNU] (F_SEAL_SEAL): Likewise.
28953         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28954         [__USE_GNU] (F_SEAL_GROW): Likewise.
28955         [__USE_GNU] (F_SEAL_WRITE): Likewise.
28956
28957 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28958
28959         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28960         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28961         * posix/glob_internal.h (__glob_pattern_type):
28962         * posix/glob.c (glob):
28963         * posix/glob_pattern_p.c (__glob_pattern_p):
28964         Use them.
28965
28966         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28967         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28968         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28969         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28970         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28972         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28973         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28974         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28975         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28976         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28977         * sysdeps/wordsize-64/glob.c: Likewise.
28978         * sysdeps/wordsize-64/glob64.c: Likewise.
28979         * sysdeps/wordsize-64/globfree.c: Likewise.
28980         * sysdeps/wordsize-64/globfree64.c: Likewise.
28981         * sysdeps/unix/sysv/linux/glob.c: New file.
28982         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28983         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28984         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28985         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28986         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28987         adds !GLOB_NO_OLD_VERSION as an extra condition.
28988         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28989         using relative path instead of absolute one.
28990         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28991         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28992         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28993         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28994         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28995         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28996
28997         [BZ #1062]
28998         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28999         (glob): Use the same scratch buffer for both getlogin_r and
29000         getpwnam_r.  Don’t require preallocation of the login name.  This
29001         simplifies storage allocation, and corrects the handling of
29002         long login names.
29003
29004         [BZ #1062]
29005         * posix/glob.c (glob): Port recent patches to platforms
29006         lacking getpwnam_r.
29007         (glob): Fix longstanding misuse of errno after getpwnam_r, which
29008         returns an error number rather than setting errno.
29009
29010         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
29011         instead of GCC extension.
29012         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
29013         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
29014         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
29015
29016         [BZ #866]
29017         [BZ #1062]
29018         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
29019         * posix/bug-glob1.c: Remove file.
29020         * posix/tst-glob_symlinks.c: New file.
29021         * posix/glob.c (__lstat64): New macro.
29022         (is_dir): New function.
29023         (glob, glob_in_dir): Match symlinks even if they are dangling.
29024         (link_stat, link_exists_p): Remove.  All uses removed.
29025
29026         [BZ #1062]
29027         [BZ #19971]
29028         * posix/glob.c (struct readdir_result): Remove skip_entry member.
29029         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
29030         All uses removed.
29031
29032         [BZ #1062]
29033         CVE-2017-15671
29034         * posix/Makefile (routines): Add globfree, globfree64, and
29035         glob_pattern_p.
29036         * posix/flexmember.h: New file.
29037         * posix/glob_internal.h: Likewise.
29038         * posix/glob_pattern_p.c: Likewise.
29039         * posix/globfree.c: Likewise.
29040         * posix/globfree64.c: Likewise.
29041         * sysdeps/gnu/globfree64.c: Likewise.
29042         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
29043         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
29044         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
29045         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
29046         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
29047         * sysdeps/wordsize-64/globfree.c: Likewise.
29048         * sysdeps/wordsize-64/globfree64.c: Likewise.
29049         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
29050         [NDEBUG): Remove comments.
29051         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
29052         (dirent_type): New type.  Use uint_fast8_t not
29053         uint8_t, as C99 does not require uint8_t.
29054         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
29055         (struct readdir_result): Use dirent_type.  Do not define skip_entry
29056         unless it is needed; this saves a byte on platforms lacking d_ino.
29057         (readdir_result_type, readdir_result_skip_entry):
29058         New functions, replacing ...
29059         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
29060          these functions, which were removed.  This makes the callers
29061         easier to read.  All callers changed.
29062         (D_INO_TO_RESULT): Now empty if there is no d_ino.
29063         (size_add_wrapv, glob_use_alloca): New static functions.
29064         (glob, glob_in_dir): Check for size_t overflow in several places,
29065         and fix some size_t checks that were not quite right.
29066         Remove old code using SHELL since Bash no longer
29067         uses this.
29068         (glob, prefix_array): Separate MS code better.
29069         (glob_in_dir): Remove old Amiga and VMS code.
29070         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
29071         separate files.
29072         (glob_in_dir): Do not rely on undefined behavior in accessing
29073         struct members beyond their bounds.  Use a flexible array member
29074         instead
29075         (link_stat): Rename from link_exists2_p and return -1/0 instead of
29076         0/1.  Caller changed.
29077         (glob): Fix memory leaks.
29078         * posix/glob64 (globfree64): Move to separate file.
29079         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
29080         (globfree64): Remove hidden alias.
29081         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
29082         oldglob.
29083         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
29084         separate file.
29085         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
29086         define.
29087         Move compat code to separate file.
29088         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
29089         separate file.
29090
29091 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
29092
29093         * resolv/tst-resolv-qtypes.c (domain): Changed to
29094         "const char domain[] =".
29095
29096 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
29097
29098         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
29099         version to 3.1.6.
29100
29101         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
29102         (TCP_MD5SIG_EXT): Likewise.
29103         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
29104         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
29105         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
29106
29107         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
29108
29109 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
29110
29111         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
29112
29113 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
29114
29115         [BZ #22100]
29116         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
29117
29118 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29119
29120         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
29121         before assuming that the file is empty.  Avoid testing buffer content
29122         when nread == 0.
29123
29124 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29125
29126         [BZ #18858]
29127         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29128         Remove define.
29129         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
29130         Likewise.
29131         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
29132         Likewise.
29133         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
29134         Likewise.
29135         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
29136         Likewise.
29137         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
29138         Likewise.
29139         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
29140         Likewise.
29141
29142 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29143
29144         * malloc/dynarray_emplace_enlarge.c
29145         (__libc_dynarray_emplace_enlarge): Add missing else.
29146
29147 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29148
29149         [BZ #22096]
29150         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
29151         case of failure to obtain the global conf object.
29152
29153 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29154
29155         [BZ #22095]
29156         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
29157         dynarray allocation failure.
29158
29159 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29160
29161         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
29162         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
29163         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
29164         New functions.
29165         (response): Call them.  Add 'p', '6' flag processing.
29166         (test_reverse): New function.
29167         (test_get2_any): Call it.
29168         (test_no_inet6): Add 'p' test.
29169         (test_inet6): Likewise.
29170
29171 2017-09-06  Florian Weimer  <fweimer@redhat.com>
29172
29173         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
29174         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
29175         the QNAME.
29176         (test_gai): Adjust query names.  Add additional tests.
29177         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
29178         test_get2.  Adjust query names.  Add additional tests.
29179         (test_no_inet6): New function, extracted from threadfunc.
29180         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
29181         Add additional tests.
29182
29183 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
29184
29185         [BZ #22070]
29186         * localedata/unicode-gen/utf8_gen.py: Set the width for
29187         characters with Prepended_Concatenation_Mark property to 1
29188         * localedata/charmaps/UTF-8: Updated using the improved script.
29189
29190 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
29191
29192         [BZ #21750]
29193         * localedata/unicode-gen/utf8_gen.py: Improve the script to
29194         use the range notation for all ranges of neighbouring characters
29195         with the same width.
29196
29197 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
29198
29199         * sysdeps/generic/math-type-macros-double.h: Include
29200         <math-svid-compat.h>.
29201         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29202         * sysdeps/generic/math-type-macros-float.h: Include
29203         <math-svid-compat.h>.
29204         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29205         * sysdeps/generic/math-type-macros-ldouble.h: Include
29206         <math-svid-compat.h>.
29207         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
29208         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
29209         condition.
29210         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
29211         * math/w_acosf_compat.c: Likewise.
29212         * math/w_acosh_compat.c: Likewise.
29213         * math/w_acoshf_compat.c: Likewise.
29214         * math/w_acoshl_compat.c: Likewise.
29215         * math/w_acosl_compat.c: Likewise.
29216         * math/w_asin_compat.c: Likewise.
29217         * math/w_asinf_compat.c: Likewise.
29218         * math/w_asinl_compat.c: Likewise.
29219         * math/w_atan2_compat.c: Likewise.
29220         * math/w_atan2f_compat.c: Likewise.
29221         * math/w_atan2l_compat.c: Likewise.
29222         * math/w_atanh_compat.c: Likewise.
29223         * math/w_atanhf_compat.c: Likewise.
29224         * math/w_atanhl_compat.c: Likewise.
29225         * math/w_cosh_compat.c: Likewise.
29226         * math/w_coshf_compat.c: Likewise.
29227         * math/w_coshl_compat.c: Likewise.
29228         * math/w_exp10_compat.c: Likewise.
29229         * math/w_exp10f_compat.c: Likewise.
29230         * math/w_exp10l_compat.c: Likewise.
29231         * math/w_exp2_compat.c: Likewise.
29232         * math/w_exp2f_compat.c: Likewise.
29233         * math/w_exp2l_compat.c: Likewise.
29234         * math/w_fmod_compat.c: Likewise.
29235         * math/w_fmodf_compat.c: Likewise.
29236         * math/w_fmodl_compat.c: Likewise.
29237         * math/w_hypot_compat.c: Likewise.
29238         * math/w_hypotf_compat.c: Likewise.
29239         * math/w_hypotl_compat.c: Likewise.
29240         * math/w_j0_compat.c: Likewise.
29241         * math/w_j0f_compat.c: Likewise.
29242         * math/w_j0l_compat.c: Likewise.
29243         * math/w_j1_compat.c: Likewise.
29244         * math/w_j1f_compat.c: Likewise.
29245         * math/w_j1l_compat.c: Likewise.
29246         * math/w_jn_compat.c: Likewise.
29247         * math/w_jnf_compat.c: Likewise.
29248         * math/w_jnl_compat.c: Likewise.
29249         * math/w_lgamma_r_compat.c: Likewise.
29250         * math/w_lgammaf_r_compat.c: Likewise.
29251         * math/w_lgammal_r_compat.c: Likewise.
29252         * math/w_log10_compat.c: Likewise.
29253         * math/w_log10f_compat.c: Likewise.
29254         * math/w_log10l_compat.c: Likewise.
29255         * math/w_log2_compat.c: Likewise.
29256         * math/w_log2f_compat.c: Likewise.
29257         * math/w_log2l_compat.c: Likewise.
29258         * math/w_log_compat.c: Likewise.
29259         * math/w_logf_compat.c: Likewise.
29260         * math/w_logl_compat.c: Likewise.
29261         * math/w_pow_compat.c: Likewise.
29262         * math/w_powf_compat.c: Likewise.
29263         * math/w_powl_compat.c: Likewise.
29264         * math/w_remainder_compat.c: Likewise.
29265         * math/w_remainderf_compat.c: Likewise.
29266         * math/w_remainderl_compat.c: Likewise.
29267         * math/w_sinh_compat.c: Likewise.
29268         * math/w_sinhf_compat.c: Likewise.
29269         * math/w_sinhl_compat.c: Likewise.
29270         * math/w_sqrt_compat.c: Likewise.
29271         * math/w_sqrtf_compat.c: Likewise.
29272         * math/w_sqrtl_compat.c: Likewise.
29273         * math/w_tgamma_compat.c: Likewise.
29274         * math/w_tgammaf_compat.c: Likewise.
29275         * math/w_tgammal_compat.c: Likewise.
29276         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
29277         [LIBM_SVID_COMPAT].
29278         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
29279         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
29280         [LIBM_SVID_COMPAT].
29281         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
29282         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
29283         [LIBM_SVID_COMPAT].
29284         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
29285         * sysdeps/i386/fpu/w_sqrt.c: New file.
29286         * sysdeps/ia64/fpu/w_acos.c: Likewise.
29287         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
29288         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
29289         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
29290         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
29291         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
29292         * sysdeps/ia64/fpu/w_asin.c: Likewise.
29293         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
29294         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
29295         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
29296         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
29297         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
29298         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
29299         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
29300         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29301         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29302         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29303         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29304         * sysdeps/ia64/fpu/w_exp.c: Likewise.
29305         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29306         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29307         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29308         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29309         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29310         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29311         * sysdeps/ia64/fpu/w_expf.c: Likewise.
29312         * sysdeps/ia64/fpu/w_expl.c: Likewise.
29313         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29314         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29315         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29316         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29317         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29318         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29319         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29320         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29321         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29322         * sysdeps/ia64/fpu/w_log.c: Likewise.
29323         * sysdeps/ia64/fpu/w_log10.c: Likewise.
29324         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29325         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29326         * sysdeps/ia64/fpu/w_log2.c: Likewise.
29327         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29328         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29329         * sysdeps/ia64/fpu/w_logf.c: Likewise.
29330         * sysdeps/ia64/fpu/w_logl.c: Likewise.
29331         * sysdeps/ia64/fpu/w_pow.c: Likewise.
29332         * sysdeps/ia64/fpu/w_powf.c: Likewise.
29333         * sysdeps/ia64/fpu/w_powl.c: Likewise.
29334         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29335         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29336         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29337         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29338         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29339         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29340         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29341         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29342         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29343         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29344         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29345         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29346         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29347         [LIBM_SVID_COMPAT].
29348         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29349         * sysdeps/ieee754/k_standard.c: Likewise.
29350         * sysdeps/ieee754/k_standardf.c: Likewise.
29351         * sysdeps/ieee754/k_standardl.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29354         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29355         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29356         long_double_symbol call on [LIBM_SVID_COMPAT].
29357         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29358         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29359         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29360         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29361         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29362         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29363         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29364         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29365         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29366         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29367         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29368         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29369         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29370         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29371         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29372         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29373         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29374         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29375         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29376         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29377         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29378         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29379
29380 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
29381
29382         * include/shlib-compat.h (TEST_COMPAT): New Macro.
29383         * malloc/tst-mallocstate.c: Convert from test-skeleton
29384         to test-driver.  Ifdef code using TEST_COMPAT macro.
29385         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29386         * math/test-matherr.c: Likewise.
29387
29388 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
29389
29390         [BZ #22086]
29391         * debug/pcprofiledump.c (main): Use byte-swapped mask when
29392         comparing word with byte-swapped constant.
29393
29394 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
29395
29396         [BZ #20498]
29397         * locale/iso-639.def: add Miskito.
29398         * localedata/SUPPORTED: Add miq_NI/UTF-8.
29399         * localedata/locales/miq_NI: New file.
29400
29401 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
29402
29403         [BZ #18822]
29404         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29405         (__mkdir): Likewise.
29406         * io/chmod.c (__chmod): Add libc_hidden_def.
29407         * io/mkdir.c (__mkdir): Likewise.
29408         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29409         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29410         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29411         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29412
29413 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
29414
29415         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29416         version to 4.13.
29417
29418         [BZ #22082]
29419         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29420         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29421
29422 2017-09-04  Florian Weimer  <fweimer@redhat.com>
29423
29424         * math/math.h: Issue warning if log is defined.
29425
29426 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
29427
29428         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29429         kernel version to 4.13.
29430
29431 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29432
29433         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29434         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29435         parameter.
29436         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29437         just <bits/types.h>.
29438         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29439         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29440         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29441         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29442         * misc/preadv2.c: Include <errno.h>.
29443         * misc/preadv64v2.c: Include <errno.h>.
29444         * misc/pwritev2.c: Include <errno.h>.
29445         * misc/pwritev64v2.c: Include <errno.h>.
29446         * sysdeps/posix/preadv2.c: Include <errno.h>.
29447         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29448         Fix <unistd.h> inclusion.
29449         * sysdeps/posix/pwritev2.c: Include <errno.h>.
29450         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29451         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29452         __strtoul_internal): New functions.
29453         * sysdeps/posix/pause.c: Include <sigsetops.h>.
29454         * sysdeps/posix/system.c: Include <sigsetops.h>.
29455         * sysdeps/mach/hurd/i386/Makefile
29456         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29457         [$(subdir) = csu] (sysdep-only-routines): Likewise.
29458         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29459         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29460         __feraiseexcept_renamed to feraiseexcept instead of
29461         __GI_feraiseexcept.
29462         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29463         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29464         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29465         RWF_NOWAIT): Define to 0 if undefined already.
29466         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29467         boils down to 0.
29468         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29469         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29470
29471 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
29472
29473         * manual/math.texi (pow10): Do not document.
29474         (pow10f): Likewise.
29475         (pow10l): Likewise.
29476         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29477         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29478         * math/libm-test-exp10.inc (pow10_test): Remove.
29479         (do_test): Do not call pow10.
29480         * math/w_exp10_compat.c (pow10): Make into compat symbol.
29481         [NO_LONG_DOUBLE] (pow10l): Likewise.
29482         * math/w_exp10f_compat.c (pow10f): Likewise.
29483         * math/w_exp10l_compat.c (pow10l): Likewise.
29484         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29485         (pow10): Make into compat symbol.
29486         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29487         (pow10f): Make into compat symbol.
29488         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29489         (pow10l): Make into compat symbol.
29490         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29491         pow10.
29492         (CFLAGS-nldbl-pow10.c): Remove variable..
29493         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29494         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29495         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29496         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29497         Undefine and redefine.
29498         (pow10l): Make into compat symbol.
29499         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29500         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29501         * sysdeps/arm/libm-test-ulps: Likewise.
29502         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29503         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29504         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29505         * sysdeps/microblaze/libm-test-ulps: Likewise.
29506         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29507         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29508         * sysdeps/nios2/libm-test-ulps: Likewise.
29509         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29510         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29511         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29512         * sysdeps/sh/libm-test-ulps: Likewise.
29513         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29514         * sysdeps/tile/libm-test-ulps: Likewise.
29515         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29516
29517 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29518
29519         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29520
29521 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29522
29523         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29524         "../ChangeLog.old/ChangeLog.8".
29525         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29526         "../ChangeLog.old/ChangeLog.14".
29527
29528 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29529
29530         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29531         Threads Library.
29532
29533 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
29534
29535         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29536
29537 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
29538
29539         * csu/version.c (banner): Remove "by Roland McGrath et al.".
29540         * nptl/Banner: Remove "by Ulrich Drepper et al.".
29541
29542 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
29543
29544         * stdlib/tst-atexit-common.c (do_test): Test support for at least
29545         32 atexit handlers.
29546
29547 2017-09-01  Zack Weinberg  <zackw@panix.com>
29548
29549         * math/math.h (HUGE_VAL): Improve commentary.
29550
29551 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29552             Andreas Schwab  <schwab@suse.de>
29553
29554         [BZ #21530]
29555         * include/stdio.h (__gen_tempfd): New function.
29556         * stdio-common/Makefile (routines): Add gentempfd.
29557         * stdio-common/gentempfd.c: New file.
29558         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29559         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29560         unnamed file first.
29561
29562 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29563
29564         [BZ #21915]
29565         [BZ #21922]
29566         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29567         result to determine success or failure, not the errno value.
29568         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29569         (tst-nss-files-hosts-erange): Link with -ldl.
29570         * nss/tst-nss-files-hosts-erange.c: New file.
29571         * nss/tst-resolv-basic.c (response): Handle nodata.example.
29572         (do_test): Add NO_DATA tests.
29573         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29574         (do_test): Call it.
29575
29576 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29577
29578         [BZ #21922]
29579         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29580         coming from gethostbyname2_r.
29581
29582 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29583
29584         * support/namespace.h (struct support_chroot_configuration): Add
29585         hosts, host_conf.
29586         (struct support_chroot): Add path_hosts, path_host_conf.
29587         * support/support_chroot.c (write_file): New function.
29588         (support_chroot_create): Call it to process /etc/resolv.conf,
29589         /etc/hosts, /etc/host.conf.
29590         (support_chroot_free): Update.
29591
29592 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29593
29594         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29595         status indicates it is set.
29596
29597 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29598
29599         [BZ #20532]
29600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29601         function lookup failures more reliable.
29602
29603 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29604
29605         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29606         (getcanonname): Likewise.
29607         (gaih_inet): Likewise.
29608
29609 2017-09-01  Florian Weimer  <fweimer@redhat.com>
29610
29611         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29612         (getcanonname): Likewise.
29613         (gaih_inet): Likewise.
29614
29615 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
29616             Richard Henderson <rth@twiddle.net>
29617
29618         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29619         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29620         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29621         (IREG_SIZE, OREG_SIZE): New macros.
29622         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29623         (IREG_SIZE, OREG_SIZE): New macros.
29624         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29625         (IREG_SIZE): New macro.
29626         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29627         (IREG_SIZE): New macro.
29628         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29629         New includes.
29630         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29631         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29632         (__CONCATX): Handle exceptions correctly on large values that may
29633         set FE_INVALID.
29634         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29635         Initialize if not already set.
29636         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29637
29638 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29639
29640         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29641         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29642         Likewise.
29643         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29644         Likewise.
29645         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29646         Likewise.
29647         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29648         Likewise.
29649         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29650         Likewise.
29651         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29652         Likewise.
29653         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29654         Likewise.
29655         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29656         (NO_CANCELLATION): Likewise.
29657         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29658         Likewise.
29659         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29660         Likewise.
29661         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29662         Likewise.
29663         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29664         (NO_CANCELLATION): Likewise.
29665         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29666         (NO_CANCELLATION): Likewise.
29667         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29668         Likewise
29669         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29670         Likewise.
29671         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29672         Likewise.
29673         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29674         Likewise.
29675         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29676         hidden prototype.
29677         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29678         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29679
29680 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
29681
29682         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29683         in resolver call.
29684
29685 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29686
29687         * include/libc-symbols.h (internal_function): Remove.
29688
29689 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29690
29691         * stdlib/fmtmsg.c (internal_addseverity): Remove
29692         internal_function.
29693
29694 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29695
29696         * stdio-common/printf_fp.c (group_number): Remove
29697         internal_function.
29698         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29699
29700 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29701
29702         * posix/fnmatch.c (internal_function): Remove definition.
29703         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29704         * posix/regcomp.c (peek_token, init_word_char)
29705         (duplicate_node_closure, fetch_token, peek_token)
29706         (peek_token_bracket, build_range_exp, build_collating_symbol):
29707         Likewise.
29708         * posix/regex_internal.c (re_string_construct_common)
29709         (create_ci_newstate, create_cd_newstate, re_string_allocate)
29710         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29711         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29712         (re_string_translate_buffer, re_string_reconstruct)
29713         (re_string_peek_byte_case, re_string_fetch_byte_case)
29714         (re_string_destruct, re_string_context_at, re_node_set_alloc)
29715         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29716         (re_node_set_add_intersect, re_node_set_init_union)
29717         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29718         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29719         (re_dfa_add_node, calc_state_hash, re_acquire_state)
29720         (re_acquire_state_context): Likewise.
29721         * posix/regex_internal.h (internal_function): Remove definition.
29722         (re_string_realloc_buffers, build_wcs_buffer)
29723         (build_wcs_upper_buffer, build_upper_buffer)
29724         (re_string_translate_buffer, re_string_context_at)
29725         (re_string_char_size_at, re_string_wchar_at)
29726         (re_string_elem_size_at): Likewise.
29727         * posix/regexec.c (match_ctx_init, match_ctx_clean)
29728         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29729         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29730         (re_search_internal, re_search_2_stub, re_search_stub)
29731         (re_copy_regs, prune_impossible_nodes, check_matching)
29732         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29733         (free_fail_stack_return, sift_states_iter_mb)
29734         (sift_states_backward, build_sifted_states)
29735         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29736         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29737         (check_subexp_limits, sift_states_bkref, merge_state_array)
29738         (find_recover_state, transit_state, merge_state_with_log)
29739         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29740         (transit_state_mb, transit_state_bkref, get_subexp)
29741         (get_subexp_sub, find_subexp_node, check_arrival)
29742         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29743         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29744         (check_node_accept_bytes, find_collation_sequence_value)
29745         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29746         (acquire_init_state_context, check_halt_node_context)
29747         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29748         (sub_epsilon_src_nodes): Likewise.
29749         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29750         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29751         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29752         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29753         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29754         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29755         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29756         * sysdeps/posix/ttyname.c (getttyname): Likewise.
29757         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29758         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29759         (PREADV): Likewise.
29760         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29761         (PREADV): Likewise.
29762         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29763         (PWRITEV): Likewise.
29764         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29765         (PWRITEV): Likewise.
29766         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29767         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29768
29769 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29770
29771         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29772         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29773         Remove internal_function.
29774         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29775         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29776         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29777         (__deallocate_stack, __libc_pthread_init)
29778         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29779         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29780         (__libc_disable_asynccancel, __librt_disable_asynccancel):
29781         Likewise.
29782         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29783         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29784         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29785         Likewise.
29786         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29787         (__pthread_mutex_unlock_usercnt): Likewise.
29788
29789 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29790
29791         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29792         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29793         (fts_safe_changedir): Remove internal_function.
29794         * io/ftw.c (internal_function): Remove definition.
29795         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29796
29797 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29798
29799         * inet/deadline.c (__deadline_current_time)
29800         (__deadline_from_timeval, __deadline_to_ms): Remove
29801         internal_function.
29802         * inet/getnameinfo.c (nrl_domainname): Likewise.
29803         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29804         * inet/inet6_option.c (add_pad): Likewise.
29805         * inet/net-internal.h (__deadline_current_time)
29806         (__deadline_from_timeval, __deadline_to_ms): Likewise.
29807         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29808         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29809         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29810
29811 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
29812
29813         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
29814         include <bits/nan.h>.
29815         * math/Makefile (headers): Remove bits/nan.h.
29816         * bits/nan.h: Remove.
29817         * sysdeps/ieee754/bits/nan.h: Likewise.
29818         * sysdeps/mips/bits/nan.h: Likewise.
29819
29820         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
29821         not include <bits/inf.h>.
29822         * math/Makefile (headers): Remove bits/inf.h.
29823         * bits/inf.h: Remove.
29824         * sysdeps/ieee754/bits/inf.h: Likewise.
29825
29826         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29827         bits/huge_vall.h or bits/huge_val_flt128.h.
29828         (HUGE_VAL): Define directly here.
29829         [__USE_ISOC99] (HUGE_VALF): Likewise.
29830         [__USE_ISOC99] (HUGE_VALL): Likewise.
29831         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29832         (HUGE_VAL_F128): Likewise.
29833         * math/Makefile (headers): Remove bits/huge_val.h,
29834         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29835         * bits/huge_val.h: Remove.
29836         * bits/huge_val_flt128.h: Likewise.
29837         * bits/huge_valf.h: Likewise.
29838         * bits/huge_vall.h: Likewise.
29839         * sysdeps/ia64/bits/huge_vall.h: Likewise.
29840         * sysdeps/ieee754/bits/huge_val.h: Likewise.
29841         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29842         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29843         * sysdeps/sh/bits/huge_val.h: Likewise.
29844         * sysdeps/sparc/bits/huge_vall.h: Likewise.
29845         * sysdeps/x86/bits/huge_vall.h: Likewise.
29846
29847 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29848
29849         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29850         internal_function.
29851         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29852         Likewise.
29853         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29854         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29855         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29856         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29857         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29858         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29859         * elf/dl-libc.c (dlerror_run): Likewise.
29860         * elf/dl-load.c (add_name_to_object, decompose_rpath)
29861         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29862         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29863         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29864         Likewise.
29865         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29866         (_dl_higher_prime_number, _dl_strtoul): Likewise.
29867         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29868         * elf/dl-profile.c (_dl_start_profile): Likewise.
29869         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29870         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29871         Likewise.
29872         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29873         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29874         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29875         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29876         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29877         (_dl_allocate_tls_storage): Likewise.
29878         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29879         (_dl_check_all_versions): Likewise.
29880         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29881         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29882         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29883         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29884         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29885         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29886         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29887         internal_function from __dl_start.
29888         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29889         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29890         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29891         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29892         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29893         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29894         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29895         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29896         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29897         (_dl_next_ld_env_entry, _dl_important_hwcaps)
29898         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29899         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29900         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29901         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29902         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29903         Likewise.
29904         (struct rtld_global_ro): Remove internal_function from the
29905         _dl_lookup_symbol_x member.
29906         (_dl_symbol_value): Remove.  No longer defined anywhere.
29907         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29908         internal_function.
29909         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29910         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29911         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29912         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29913         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29914         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29915         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29916         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29917         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29918         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29919         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29920         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29921
29922 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29923
29924         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29925         Remove internal_function.
29926         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29927         Likewise.
29928         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29929         Likewise.
29930
29931 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29932
29933         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29934         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29935         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29936
29937 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29938
29939         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29940         (__gai_enqueue_request): Remove internal_function.
29941         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29942         (__gai_remove_request, __gai_notify, __gai_notify_only)
29943         (__gai_sigqueue): Likewise.
29944         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29945         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29946         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29947         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29948         Likewise.
29949
29950 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29951
29952         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29953         * include/dirent.h (__opendirat, __getdents, __getdents64)
29954         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29955         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29956         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29957         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29958         Likewise.
29959         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29960
29961 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29962
29963         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29964         internal_function.
29965         (GETCWD_RETURN_TYPE): Likewise.
29966
29967 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29968
29969         * include/time.h (__tz_compute, __strptime_internal): Remove
29970         internal_function.
29971         * time/strptime_l.c (__strptime_internal): Likewise.
29972         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29973
29974 2017-08-31  Florian Weimer  <fweimer@redhat.com>
29975
29976         * iconv/gconv.c (__gconv): Remove internal_function.
29977         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29978         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29979         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29980         (__gconv_release_cache): Likewise.
29981         * iconv/gconv_close.c (__gconv_close): Likewise.
29982         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29983         (read_conf_file, __gconv_get_path): Likewise.
29984         * iconv/gconv_db.c (derivation_lookup, add_derivation)
29985         (__gconv_release_step, gen_steps, increment_counter)
29986         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29987         (__gconv_close_transform, free_modules_db): Likewise.
29988         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29989         Likewise.
29990         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29991         (__gconv_find_transform, __gconv_lookup_cache)
29992         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29993         (__gconv_close_transform, __gconv_release_cache)
29994         (__gconv_loaded_object, __gconv_release_shlib)
29995         (__gconv_compare_alias): Likewise.
29996         * iconv/gconv_open.c (__gconv_open): Likewise.
29997         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29998         * iconv/iconvconfig.c (add_module): Likewise.
29999         * intl/dcigettext.c (plural_lookup, guess_category_value)
30000         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
30001         * intl/eval-plural.h (plural_eval): Likewise.
30002         * intl/finddomain.c (_nl_find_domain): Likewise.
30003         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
30004         (_nl_load_domain, _nl_find_msg): Likewise.
30005         (internal_function): Remove definition.
30006         * intl/loadinfo.h (internal_function): Likewise.
30007         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
30008         internal_function.
30009         * intl/localealias.c (internal_function): Remove definition.
30010         (read_alias_file): Remove internal_function.
30011         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
30012         * intl/plural-exp.h (internal_function): Remove definition.
30013         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
30014         internal_function.
30015         * intl/plural.c: Regenerate.
30016         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
30017         * locale/coll-lookup.c (__collidx_table_lookup)
30018         (__collseq_table_lookup): Likewise.
30019         * locale/coll-lookup.h (__collidx_table_lookup)
30020         (__collseq_table_lookup): Likewise.
30021         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
30022         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30023         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
30024         (_nl_unload_locale): Likewise.
30025         * locale/localeinfo.h (struct __locale_data): Remove
30026         internal_function from cleanup member.
30027         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
30028         (_nl_remove_locale, _nl_load_locale_from_archive)
30029         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
30030         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
30031         (_nl_cleanup_time): Remove internal_function.
30032         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
30033         (_nl_parse_alt_digit): Likewise.
30034         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
30035         (_nl_select_era_entry): Likewise.
30036         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
30037         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30038         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30039         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
30040         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
30041
30042 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30043
30044         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
30045         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
30046         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
30047         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
30048         Likewise.
30049         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
30050         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
30051         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
30052         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30053         Likewise.
30054         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
30055
30056 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30057
30058         * misc/getttyent.c (skip, value): Remove internal_function.
30059         * misc/syslog.c (openlog_internal): Likewise.
30060         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
30061
30062 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30063
30064         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
30065         (__nss_rewrite_field): Remove internal_function.
30066         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30067         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30068         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30069         * nss/nsswitch.c (nss_parse_file, nss_getline)
30070         (nss_parse_service_list, nss_new_service): Likewise.
30071         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
30072         * nss/valid_field.c (__nss_valid_field): Likewise.
30073         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
30074
30075 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30076
30077         * malloc/arena.c (__malloc_fork_lock_parent)
30078         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
30079         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
30080         internal_function from defintions.
30081         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
30082         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
30083         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
30084         internal_function from declarations.
30085         * malloc/malloc.c (internal_function): Do not define.
30086         (mem2mem_check): Remove internal_function from declaration.
30087         (munmap_chunk, mremap_chunk): Remove internal_function.
30088         * malloc/mtrace.c (tr_where): Likewise.
30089
30090 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30091
30092         * include/rpc/pmap_clnt.h (__get_socket): Remove
30093         internal_function.
30094         * sunrpc/auth_des.c (synchronize): Likewise.
30095         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
30096         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
30097         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
30098         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
30099         (key_call): Likewise.
30100         * sunrpc/pm_getport.c (__get_socket): Likewise.
30101         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
30102         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
30103         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
30104         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
30105         (invalidate): Likewise.
30106         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
30107         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
30108         (set_input_fragment, get_input_bytes): Likewise.
30109
30110 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30111
30112         * malloc/malloc.c (_int_free): Remove locked variable and related
30113         asserts.
30114
30115 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
30116
30117         [BZ #22051]
30118         * Makerules (build-module-helper-objlist): Filter out
30119         $(elf-objpfx)sofini.os.
30120         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
30121         needed.
30122
30123 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30124
30125         * libio/fcloseall.c: Assume weak_alias is defined.
30126         * libio/feof.c: Likewise.
30127         * libio/fileno.c: Likewise.
30128         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
30129         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30130         definitions.
30131         (_IO_file_open): Call __open directly.
30132         (_IO_new_file_sync): Assume ESPIPE is defined.
30133         (_IO_file_seekoff_maybe_mmap): Call __read directly.
30134         (_IO_new_file_write): Call __write directly.
30135         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
30136         * libio/ftello64.c (__ftello64): Assume EIO is defined.
30137         * libio/genops.c: Assume _LIBC is defined.
30138         (save_for_backup): Remove internal_function.
30139         * libio/getc.c: Assume weak_alias is defined.
30140         * libio/getwc.c: Likewise.
30141         * libio/iofclose.c: Assume _LIBC is defined.
30142         * libio/iofdopen.c: Likewise.
30143         (_IO_fcntl): Remove macro definition.
30144         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
30145         Call __fcntl directly.
30146         * libio/iofflush.c: Assume weak_alias is defined.
30147         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
30148         defined.
30149         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
30150         * libio/iofgets.c: Likewise.
30151         * libio/iofopen.c: Assume _LIBC is defined.
30152         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
30153         * libio/iofputs.c: Assume weak_alias is defined.
30154         * libio/iofread.c: Likewise.
30155         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
30156         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
30157         * libio/ioftell.c: Assume weak_alias is defined.
30158         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
30159         * libio/iofwide.c: Assume _LIBC is defined.
30160         (_IO_fwide): Drop SHARED conditional because it is implied by
30161         SHLIB_COMPAT.
30162         * libio/iofwrite.c: Assume weak_alias is defined.
30163         * libio/iogetdelim.c: Likewise.
30164         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
30165         * libio/iogetwline.c (wmemcpy): Remove macro definition.
30166         (_IO_getwline): Call __wmemcpy directly.
30167         * libio/iopopen.c: Assume _LIBC is defined.
30168         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30169         (_IO_close): Remove macro definitions.
30170         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
30171         _exit directly.
30172         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
30173         directly.
30174         * libio/ioputs.c: Assume weak_alias is defined.
30175         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
30176         * libio/iosetbuffer.c: Assume weak_alias is defined.
30177         * libio/iosetvbuf.c: Likewise.
30178         * libio/ioungetc.c: Likewise.
30179         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
30180         libc_hidden_def, libc_hidden_weak, NULL are defined.
30181         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
30182         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
30183         defined.
30184         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
30185         definitions.
30186         (_IO_old_file_init_internal): Drop SHARED conditional because it
30187         is implied by SHLIB_COMPAT.
30188         (_IO_old_file_fopen): Call __open directly.
30189         (_IO_old_file_sync): Assume ESPIPE is defined.
30190         (_IO_old_file_write): Call __write directly.
30191         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
30192         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
30193         Call __fcntl directly.
30194         * libio/oldiofgetpos.c: Assume weak_alias is defined.
30195         (_IO_old_fgetpos): Assume EIO is defined.
30196         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
30197         (_IO_old_fgetpos64): Assume EIO is defined.
30198         * libio/oldiofsetpos.c: Assume weak_alias is defined.
30199         (_IO_old_fsetpos): Assume EIO is defined.
30200         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
30201         (_IO_old_fsetpos64): Assume EIO is defined.
30202         * libio/oldiopopen.c:  Assume _LIBC is defined.
30203         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
30204         (_IO_close): Remove macro definitions.
30205         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
30206         directly.
30207         (_IO_old_proc_close): Call __close, __waitpid directly.
30208         * libio/put.c: Assume weak_alias is defined.
30209         * libio/stdfiles.c: Assume _LIBC is defined.
30210         * libio/stdio.c: Likewise.
30211         * libio/wfileops.c: Likewise.
30212         (_IO_wfile_sync): Assume ESPIPE is defined.
30213         * libio/wgenops.c: Assume _LIBC is defined.
30214         (save_for_wbackup): Remove internal_function.
30215
30216 2017-08-31  Florian Weimer  <fweimer@redhat.com>
30217
30218         * malloc/malloc.c (top_check): Change return type to void.  Remove
30219         internal_function.
30220         * malloc/hooks.c (top_check): Likewise.
30221         (malloc_check, realloc_check, memalign_check): Adjust.
30222
30223 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
30224
30225         [BZ #21457]
30226         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30227         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
30228         sigcontext and namespace requirements.
30229         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
30230         * sysdeps/m68k/sys/ucontext.h: Likewise.
30231         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
30232         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
30233         <bits/sigcontext.h>.
30234         (__ctx): Define earlier.
30235         (mcontext_t): Define structure contents rather than using struct
30236         sigcontext.
30237         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
30238         __glibc_reserved1 instead of __reserved.
30239         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
30240         <bits/sigcontext.h>.
30241         (__ctx): Define earlier.
30242         (mcontext_t): Define structure contents rather than using struct
30243         sigcontext.
30244         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
30245         mcontext_t instead of struct sigcontext.
30246         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
30247         <bits/sigcontext.h>.
30248         (__ctx): Define earlier.
30249         (mcontext_t): Define structure contents rather than using struct
30250         sigcontext.
30251         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
30252         <bits/sigcontext.h>.
30253         (__ctx): Define earlier.
30254         (mcontext_t): Define structure contents rather than using struct
30255         sigcontext.
30256         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
30257         mcontext_t instead of struct sigcontext.
30258         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
30259         mcontext_t instead of struct sigcontext.
30260         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
30261         <bits/sigcontext.h>.
30262         (__ctx): New macro.
30263         (struct __ia64_fpreg_mcontext): New type.
30264         (mcontext_t): Define structure contents rather than using struct
30265         sigcontext.
30266         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
30267         (uc_sigmask): Define using __ctx.
30268         (uc_stack): Likewise.
30269         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
30270         <bits/sigcontext.h>.
30271         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
30272         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
30273         <bits/sigcontext.h>.
30274         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
30275         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
30276         <bits/sigcontext.h>.
30277         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
30278         <bits/sigcontext.h>.
30279         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
30280         <bits/sigcontext.h>.
30281         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
30282         <bits/sigcontext.h>.
30283         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
30284         <bits/sigcontext.h>.
30285         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
30286         <bits/sigcontext.h>.
30287         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
30288         <bits/sigcontext.h>.
30289         (__ctx): Define earlier.
30290         (mcontext_t): Define structure contents rather than using struct
30291         sigcontext.
30292         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
30293         <bits/sigcontext.h>.  Include <bits/types.h>.
30294         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
30295         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
30296         (test-xfail-XPG42/ucontext.h/conform): Likewise.
30297         (test-xfail-UNIX98/signal.h/conform): Likewise.
30298         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
30299         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
30300         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30301         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30302         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30303         (test-xfail-POSIX2008/signal.h/conform): Likewise.
30304         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30305         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30306         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30307
30308 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30309
30310         * malloc/dynarray_emplace_enlarge.c
30311         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30312         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30313         * malloc/tst-dynarray.c (test_long_overflow): New function.
30314         (do_test): Call it.
30315
30316 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30317
30318         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30319         (set_arena_corrupt): Remove definitions.
30320         (mtrim): Do not check for corrupt arena.
30321         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30322         Likewise.
30323
30324 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30325
30326         [BZ #21754]
30327         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30328         check_action.
30329         (ptmalloc_init): Do not set or use check_action.
30330         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30331         call to malloc_printerr.  Remove return statement.
30332         (free_check): Likewise.  Remove arena unlock.
30333         (top_check): Update comment.  Adjust call to malloc_printerr.
30334         Remove heap repair code.
30335         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30336         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30337         (sysmalloc): Adjust call to malloc_printerr.
30338         (munmap_chunk, __libc_realloc): Likewise.  Remove return
30339         statement.
30340         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
30341         Remove errout label and corresponding gotos.
30342         (_int_free): Likewise.  Remove arena unlock.
30343         (do_set_mallopt_check): Do not set check_action.
30344         (malloc_printerr): Adjust parameter list.  Do not mark arena as
30345         corrupt.
30346         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30347         comment.
30348         * manual/probes.texi (Memory Allocation Probes): Remove
30349         memory_mallopt_check_action.
30350
30351 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
30352
30353         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30354         Use pointer to uint64_t instead of long int for sp.
30355
30356 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30357
30358         [BZ #21754]
30359         * malloc/malloc.c (malloc_printerr): Always terminate the process,
30360         without printing a backtrace.  Do not leak any information in the
30361         error message.
30362         * manual/memory.texi (Heap Consistency Checking): Update.
30363         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30364
30365 2017-08-30  Florian Weimer  <fweimer@redhat.com>
30366
30367         Do not scale NPTL tests with available number of CPUs.
30368         * nptl/tst-cond16.c (count): Set to constant value of 8.
30369         * nptl/tst-cond18.c (count): Likewise.
30370
30371 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
30372
30373         [BZ #22035]
30374         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30375         Define to take a second argument that is a macro that
30376         concatentates a suffix, not the suffix itself.
30377         (__CONCAT_d): New macro.
30378         (__CONCAT_f): Likewise.
30379         (__CONCAT_l): Likewise.
30380
30381 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
30382
30383         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30384         by child.
30385
30386 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30387             Aurelien Jarno  <aurelien@aurel32.net>
30388             Maciej W. Rozycki  <macro@imgtec.com>
30389
30390         [BZ #21956]
30391         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30392         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30393         `mips16-syscall6' and `mips16-syscall7'.
30394         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30395         (CFLAGS-mips16-syscall7.c): Remove.
30396         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30397         Remove `__mips16_syscall5', `__mips16_syscall6' and
30398         `__mips16_syscall7'.
30399         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30400         (__mips16_syscall0): Rename `__mips16_syscall_return' to
30401         `__mips_syscall_return'.
30402         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30403         (__mips16_syscall1): Likewise.
30404         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30405         (__mips16_syscall2): Likewise.
30406         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30407         (__mips16_syscall3): Likewise.
30408         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30409         (__mips16_syscall4): Likewise.
30410         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30411         Remove.
30412         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30413         Remove.
30414         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30415         Remove.
30416         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30417         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30418         `__mips16_syscall5'.  Remove prototype.
30419         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30420         `__mips16_syscall6'.  Remove prototype.
30421         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30422         `__mips16_syscall7'.  Remove prototype.
30423         (__nomips16, __mips16_syscall_return): Move to...
30424         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30425         (__nomips16, __mips_syscall_return): ... here.
30426         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30427         `__mips16_syscall_return' to `__mips_syscall_return'.
30428         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30429         `internal_syscall##nr'.
30430         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30431         `internal_syscall##nr'.
30432         (FORCE_FRAME_POINTER): Remove.
30433         (__mips_syscall5): New prototype.
30434         (internal_syscall5): Rewrite to call `__mips_syscall5'.
30435         (__mips_syscall6): New prototype.
30436         (internal_syscall6): Rewrite to call `__mips_syscall6'.
30437         (__mips_syscall7): New prototype.
30438         (internal_syscall7): Rewrite to call `__mips_syscall7'.
30439         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30440         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30441         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30442         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30443         (sysdep_routines): Add libc-do-syscall.
30444         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30445         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30446
30447 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30448
30449         [BZ #21672]
30450         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30451         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30452         (advise_stack_range): New function.
30453         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30454         stack non required to advise_stack_range at allocatestack.c
30455
30456 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30457
30458         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30459
30460 2017-08-29  Florian Weimer  <fweimer@redhat.com>
30461
30462         [BZ #22026]
30463         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30464         __end_fct.  Mangle __end_fct after setting it to NULL.
30465         * iconv/Makefile (tests): Add tst-gconv-init-failure.
30466         (modules-names, modules-names-tests): Add
30467         tst-gconv-init-failure-mod.
30468         (gconv-modules): New target.
30469         (tst-gconv-init-failure-mod.so): Link against libsupport.
30470         (tst-gconv-init-failure): Depend on gconv-modules,
30471         tst-gconv-init-failure-mod.so.
30472         * iconv/tst-gconv-init-failure-mod.c: New file.
30473         * iconv/tst-gconv-init-failure.c: Likewise.
30474         * iconv/test-gconv-modules: Likewise.
30475
30476 2017-08-29  Florian Weimer  <fweimer@redhat.com>
30477
30478         [BZ #22025]
30479         * iconv/gconv_db.c (free_derivation): Remove redundant
30480         parentheses.
30481         (gen_steps): Unconditionally mangle __btowc_fct after
30482         initialization.
30483         (increment_counter): Likewise.  Do not call init_fct for internal
30484         modules.
30485
30486 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
30487
30488         [BZ #22028]
30489         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30490         (_MSUF_): Remove macro.
30491         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30492         Likewise.
30493         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30494         (__REDIRFROM_X): New macro.
30495         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30496         Likewise.
30497         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30498         (__REDIRTO_X): Likewise.
30499         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30500         arguments.
30501         (__MATH_REDIRCALL_2): Likewise.
30502         (__MATH_REDIRCALL_INTERNAL): Likewise.
30503         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30504         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30505         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30506         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30507         * math/test-finite-macros.c: New file.
30508         * math/Makefile (tests): Add test-finite-macros.
30509         (CFLAGS-test-finite-macros.c): New variable.
30510
30511 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
30512             Jeff Law  <law@redhat.com>
30513
30514         [BZ #22025]
30515         Mangle NULL pointers in iconv/gconv.
30516         * iconv/gconv_cache.c (find_module): Demangle init_fct before
30517         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30518         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30519         is non-NULL before demangling the end_fct.  Check for NULL
30520         end_fct after demangling.
30521         (__gconv_release_step): Demangle the end_fct before checking
30522         it for NULL.   Remove assert on __shlibc_handle != NULL.
30523         (gen_steps): Don't check btowc_fct for NULL before mangling.
30524         Demangle init_fct before checking for NULL.
30525         (increment_counter): Likewise.
30526         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30527         end_fct for NULL before mangling.
30528         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30529         for NULL.
30530
30531 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
30532
30533         [BZ #21971]
30534         * locale/iso-639.def: add Morisyen.
30535
30536 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30537
30538         [BZ #21930]
30539         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30540         (iszero): New C++ implementation that does not use
30541         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30542         signaling nans are enabled, since __builtin_types_compatible_p
30543         is a C-only feature.
30544         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30545         defined, include ieee754_float128.h for access to the union and
30546         member ieee854_float128.ieee.
30547         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30548         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30549         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30550         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30551         options of test-math-zero on powerpc64le.
30552
30553 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
30554
30555         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30556         Change double to float.
30557
30558 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
30559
30560         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30561         unconditional.
30562         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30563         conditional code; define contents only for [LIBM_SVID_COMPAT].
30564
30565 2017-08-28  Florian Weimer  <fweimer@redhat.com>
30566
30567         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30568         (abi-lp64_be-options): Remove.
30569         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30570         (abi-hard-options): Likewise.
30571         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30572         (abi-o32_hard-options, abi-o32_soft_2008-options)
30573         (abi-o32_hard_2008-options, abi-n32_soft-options)
30574         (abi-n32_hard-options, abi-n32_soft_2008-options)
30575         (abi-n32_hard_2008-options, abi-n64_soft-options)
30576         (abi-n64_hard-options, abi-n64_soft_2008-options)
30577         (abi-n64_hard_2008-options): Likewise.
30578         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30579         (abi-64-v1-options, abi-64-v2-options): Likewise.
30580         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30581         (abi-64-options): Likewise.
30582         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30583         (abi-64-options): Likewise.
30584         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30585         (abi-64-options): Likewise.
30586         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30587         (abi-64-options, abi-x32-options): Likewise.
30588
30589 2017-08-28  Florian Weimer  <fweimer@redhat.com>
30590
30591         Store supported list of SYS_* system calls in the source tree.
30592         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30593         (bits/syscall.h): Generate from list file.
30594         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30595         [$(subdir) = misc] (tests): Add tst-syscall-list.
30596         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30597         [$(subdir) = misc] (tst-syscall-list-macros.list)
30598         [$(subdir) = misc] (tst-syscall-list-nr.list)
30599         (tst-syscall-list-sys.list): Helper targets for new
30600         tst-syscall-list test.
30601         [$(subdir) = misc] (tst-syscall-list.out): Run test script
30602         tst-syscall-list.sh.
30603         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30604         target. Do not include bits/syscall.d.
30605         [$(subdir) = misc] (generated): Do not update.
30606         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30607         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30608         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30609         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30610
30611 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
30612
30613         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30614         (tst-cxa_atexit, tst-on_exit): Likewise.
30615         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30616         tst-cxa_atexit, and tst-on_exit.
30617         * stdlib/tst-atexit-common.c: New file.
30618         * stdlib/tst-atexit.c: New file.
30619         * stdlib/tst-at_quick_exit.c: New file.
30620         * stdlib/tst-cxa_atexit.c: New file.
30621         * stdlib/tst-on_exit.c: New file.
30622
30623 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30624
30625         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30626         * mach/stack_chk_fail_local.c: New file.
30627         * hurd/stack_chk_fail_local.c: New file.
30628         * mach/Machrules ($(interface-library)-routines): Add
30629         stack_chk_fail_local.
30630         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30631         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30632         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30633         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30634         * hurd/Makefile (CFLAGS-hurdstartup.o,
30635         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30636
30637 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
30638
30639         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30640         (index_cpu_*, index_arch_*): Removed.
30641
30642 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30643
30644         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30645         Use uint64_t instead of unsigned long.
30646
30647 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
30648
30649         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30650         [__HAVE_DISTINCT_FLOAT128].
30651
30652         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30653         of <bits/math-finite.h>.
30654         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30655         inclusion of <bits/math-finite.h>.
30656         * math/bits/math-finite.h (__REDIRTO_X): Do not define
30657         conditionally on [__MATH_DECLARING_LDOUBLE && defined
30658         __NO_LONG_DOUBLE_MATH].
30659         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30660         (__MATH_REDIRCALL_2): Likewise.
30661         (__MATH_REDIRCALL_INTERNAL): Likewise.
30662         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30663         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30664         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30665
30666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30667         Remove file.
30668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30669         Likewise.
30670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30671         Likewise.
30672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30673         Likewise.
30674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30675         Likewise.
30676         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30677         Likewise.
30678         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30679         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30680         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30681         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30683         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30684         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30685         w_sqrtf_compat-ppc32.
30686
30687 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30688
30689         * math/math.h [defined __cplusplus] (issignaling): In the long
30690         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30691         is not defined.  Call __issignaling, otherwise.
30692
30693 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30694
30695         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30696         syscall definitions and replace __builtin_expect with __glibc_likely.
30697         * sysdeps/unix/syscall-template.S: Update comment about cancellable
30698         syscall.
30699          (SYSCALL_CANCELLABLE): Removedefinition
30700         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30701         definition.
30702         (PSEUDO_END): Likewise.
30703         [IS_IN (libpthread)] (CENABLE): Likewise.
30704         [IS_IN (libpthread)] (CDISABLE): Likewise.
30705         [IS_IN (libc)] (CENABLE): Likewise.
30706         [IS_IN (libc)] (CENABLE): Likewise.
30707         [IS_IN (librt)] (CDISABLE): Likewise.
30708         [IS_IN (librt)] (CDISABLE): Likewise.
30709         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30710         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30711         definition.
30712         (PSEUDO_END): Likewise.
30713         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30714         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30715         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30716         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30717         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30718         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30719         (CENABLE): Likewise.
30720         (CDISABLE): Likewise.
30721         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30722         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30723         defintion.
30724         (PSEUDO_END): Likewise.
30725         [IS_IN (libpthread)] (CENABLE): Likewise.
30726         [IS_IN (libpthread)] (CDISABLE): Likewise.
30727         [IS_IN (libc)] (CENABLE): Likewise.
30728         [IS_IN (libc)] (CENABLE): Likewise.
30729         [IS_IN (librt)] (CDISABLE): Likewise.
30730         [IS_IN (librt)] (CDISABLE): Likewise.
30731         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30732         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30733         definition.
30734         (PSEUDO_END): Likewise.
30735         [IS_IN (libpthread)] (CENABLE): Likewise.
30736         [IS_IN (libpthread)] (CDISABLE): Likewise.
30737         [IS_IN (libc)] (CENABLE): Likewise.
30738         [IS_IN (libc)] (CENABLE): Likewise.
30739         [IS_IN (librt)] (CDISABLE): Likewise.
30740         [IS_IN (librt)] (CDISABLE): Likewise.
30741         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30742         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30743         definition.
30744         (PSEUDO_END): Likewise.
30745         [IS_IN (libpthread)] (CENABLE): Likewise.
30746         [IS_IN (libpthread)] (CDISABLE): Likewise.
30747         [IS_IN (libc)] (CENABLE): Likewise.
30748         [IS_IN (libc)] (CENABLE): Likewise.
30749         [IS_IN (librt)] (CDISABLE): Likewise.
30750         [IS_IN (librt)] (CDISABLE): Likewise.
30751         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30752         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30753         definition.
30754         (PSEUDO_END): Likewise.
30755         [IS_IN (libpthread)] (CENABLE): Likewise.
30756         [IS_IN (libpthread)] (CDISABLE): Likewise.
30757         [IS_IN (libc)] (CENABLE): Likewise.
30758         [IS_IN (libc)] (CENABLE): Likewise.
30759         [IS_IN (librt)] (CDISABLE): Likewise.
30760         [IS_IN (librt)] (CDISABLE): Likewise.
30761         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30762         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30763         definition.
30764         (PSEUDO_END): Likewise.
30765         [IS_IN (libpthread)] (CENABLE): Likewise.
30766         [IS_IN (libpthread)] (CDISABLE): Likewise.
30767         [IS_IN (libc)] (CENABLE): Likewise.
30768         [IS_IN (libc)] (CENABLE): Likewise.
30769         [IS_IN (librt)] (CDISABLE): Likewise.
30770         [IS_IN (librt)] (CDISABLE): Likewise.
30771         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30772         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30773         definition.
30774         (PSEUDO_END): Likewise.
30775         [IS_IN (libpthread)] (CENABLE): Likewise.
30776         [IS_IN (libpthread)] (CDISABLE): Likewise.
30777         [IS_IN (libc)] (CENABLE): Likewise.
30778         [IS_IN (libc)] (CENABLE): Likewise.
30779         [IS_IN (librt)] (CDISABLE): Likewise.
30780         [IS_IN (librt)] (CDISABLE): Likewise.
30781         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30782         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30783         Remove definition.
30784         (PSEUDO_END): Likewise.
30785         [IS_IN (libpthread)] (CENABLE): Likewise.
30786         [IS_IN (libpthread)] (CDISABLE): Likewise.
30787         [IS_IN (libc)] (CENABLE): Likewise.
30788         [IS_IN (libc)] (CENABLE): Likewise.
30789         [IS_IN (librt)] (CDISABLE): Likewise.
30790         [IS_IN (librt)] (CDISABLE): Likewise.
30791         (SINGLE_THREAD_P): Likewise.
30792         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30793         definition.
30794         (PSEUDO_END): Likewise.
30795         [IS_IN (libpthread)] (CENABLE): Likewise.
30796         [IS_IN (libpthread)] (CDISABLE): Likewise.
30797         [IS_IN (libc)] (CENABLE): Likewise.
30798         [IS_IN (libc)] (CENABLE): Likewise.
30799         [IS_IN (librt)] (CDISABLE): Likewise.
30800         [IS_IN (librt)] (CDISABLE): Likewise.
30801         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30802         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30803         definition.
30804         (PSEUDO_END): Likewise.
30805         [IS_IN (libpthread)] (CENABLE): Likewise.
30806         [IS_IN (libpthread)] (CDISABLE): Likewise.
30807         [IS_IN (libc)] (CENABLE): Likewise.
30808         [IS_IN (libc)] (CENABLE): Likewise.
30809         [IS_IN (librt)] (CDISABLE): Likewise.
30810         [IS_IN (librt)] (CDISABLE): Likewise.
30811         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30812         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30813         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30814         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30815         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30816         definition.
30817         (PSEUDO_END): Likewise.
30818         [IS_IN (libpthread)] (CENABLE): Likewise.
30819         [IS_IN (libpthread)] (CDISABLE): Likewise.
30820         [IS_IN (libc)] (CENABLE): Likewise.
30821         [IS_IN (libc)] (CENABLE): Likewise.
30822         [IS_IN (librt)] (CDISABLE): Likewise.
30823         [IS_IN (librt)] (CDISABLE): Likewise.
30824         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30825         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30826         definition.
30827         (PSEUDO_END): Likewise.
30828         [IS_IN (libpthread)] (CENABLE): Likewise.
30829         [IS_IN (libpthread)] (CDISABLE): Likewise.
30830         [IS_IN (libc)] (CENABLE): Likewise.
30831         [IS_IN (libc)] (CENABLE): Likewise.
30832         [IS_IN (librt)] (CDISABLE): Likewise.
30833         [IS_IN (librt)] (CDISABLE): Likewise.
30834         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30835         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30836         definition.
30837         (PSEUDO_END): Likewise.
30838         [IS_IN (libpthread)] (CENABLE): Likewise.
30839         [IS_IN (libpthread)] (CDISABLE): Likewise.
30840         [IS_IN (libc)] (CENABLE): Likewise.
30841         [IS_IN (libc)] (CENABLE): Likewise.
30842         [IS_IN (librt)] (CDISABLE): Likewise.
30843         [IS_IN (librt)] (CDISABLE): Likewise.
30844         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30845         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30846         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30847         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30848         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30849         definition.
30850         (PSEUDO_END): Likewise.
30851         [IS_IN (libpthread)] (CENABLE): Likewise.
30852         [IS_IN (libpthread)] (CDISABLE): Likewise.
30853         [IS_IN (libc)] (CENABLE): Likewise.
30854         [IS_IN (libc)] (CENABLE): Likewise.
30855         [IS_IN (librt)] (CDISABLE): Likewise.
30856         [IS_IN (librt)] (CDISABLE): Likewise.
30857         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30858         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30859         definition.
30860         (PSEUDO_END): Likewise.
30861         [IS_IN (libpthread)] (CENABLE): Likewise.
30862         [IS_IN (libpthread)] (CDISABLE): Likewise.
30863         [IS_IN (libc)] (CENABLE): Likewise.
30864         [IS_IN (libc)] (CENABLE): Likewise.
30865         [IS_IN (librt)] (CDISABLE): Likewise.
30866         [IS_IN (librt)] (CDISABLE): Likewise.
30867         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30868
30869 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30870
30871         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30872
30873 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30874
30875         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30876
30877 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30878
30879         [BZ #21982]
30880         * string/stratcliff.c (do_test): Declare size, nchars, inner,
30881         middle and outer with size_t instead of int.  Repleace %d and
30882         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
30883         "MAX (outer, nchars - 64)" to support unsigned outer and
30884         nchars.  Also exit loop when outer == 0.
30885
30886 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30887
30888         * include/fcntl.h (__fcntl_nocancel): Remove definition.
30889         * include/signal.h (__sigsuspend_nocancel): Likewise.
30890         * include/time.h (__nanosleep_nocancel): Likewise.
30891         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30892         * login/utmp_file.c: Include non cancellable syscall header.
30893         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30894         prototype.
30895
30896 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
30897
30898         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30899         .byte sequences with AVX512F instructions.
30900         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30901         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30902         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30903         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30904         Likewise.
30905         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30906         Likewise.
30907
30908 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30909             Steve Ellcey  <sellcey@cavium.com>
30910
30911         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30912         Use PTR_REG macro in cmp instruction.
30913
30914 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30915
30916         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30917         Change the return type of the ifunc resolver to match the return
30918         type of the target function.
30919
30920 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30921
30922         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30923         (preadv64): Likewise.
30924         (pwrite64(: Likewise.
30925         (pwritev64): Likewise.
30926
30927         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30928         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30929         (LOAD_ARGS_0): Likewise.
30930         (LOAD_ARGS_1): Likewise.
30931         (LOAD_ARGS_2): Likewise.
30932         (LOAD_ARGS_3): Likewise.
30933         (LOAD_ARGS_4): Likewise.
30934         (LOAD_ARGS_5): Likewise.
30935         (LOAD_ARGS_6): Likewise.
30936         (LOAD_REGS_0): Likewise.
30937         (LOAD_REGS_1): Likewise.
30938         (LOAD_REGS_2): Likewise.
30939         (LOAD_REGS_3): Likewise.
30940         (LOAD_REGS_4): Likewise.
30941         (LOAD_REGS_5): Likewise.
30942         (LOAD_REGS_6): Likewise.
30943         (ASM_ARGS_0): Likewise.
30944         (ASM_ARGS_1): Likewise.
30945         (ASM_ARGS_2): Likewise.
30946         (ASM_ARGS_3): Likewise.
30947         (ASM_ARGS_4): Likewise.
30948         (ASM_ARGS_5): Likewise.
30949         (ASM_ARGS_6): Likewise.
30950         (LOAD_ARGS_TYPES_1): Likewise.
30951         (LOAD_ARGS_TYPES_2): Likewise.
30952         (LOAD_ARGS_TYPES_3): Likewise.
30953         (LOAD_ARGS_TYPES_4): Likewise.
30954         (LOAD_ARGS_TYPES_5): Likewise.
30955         (LOAD_ARGS_TYPES_6): Likewise.
30956         (LOAD_REGS_TYPES_1): Likewise.
30957         (LOAD_REGS_TYPES_2): Likewise.
30958         (LOAD_REGS_TYPES_3): Likewise.
30959         (LOAD_REGS_TYPES_4): Likewise.
30960         (LOAD_REGS_TYPES_5): Likewise.
30961         (LOAD_REGS_TYPES_6): Likewise.
30962         (TYPEFY): New define.
30963         (ARGIFY): Likewise.
30964         (internal_syscall0): Likewise.
30965         (internal_syscall1): Likewise.
30966         (internal_syscall2): Likewise.
30967         (internal_syscall3): Likewise.
30968         (internal_syscall4): Likewise.
30969         (internal_syscall5): Likewise.
30970         (internal_syscall6): Likewise.
30971         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30972         (INTERNAL_SYSCALL_NCS): Remove define.
30973         (internal_syscall1): Add define.
30974
30975 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30976
30977         * math/w_remainder_compat.c: Remove duplicate inclusion of
30978         math-svid-compat.h.
30979         * math/w_remainderf_compat.c: Likewise.
30980         * math/w_remainderl_compat.c: Likewise.
30981
30982 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
30983
30984         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30985
30986 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
30987
30988         [BZ #21684]
30989         * math/tgmath.h (__floating_type): Simplify definitions.
30990         (__real_integer_type): New macro.
30991         (__complex_integer_type): Likewise.
30992         (__expr_is_real): Likewise.
30993         (__tgmath_real_type_sub): Update comment to describe handling of
30994         complex types.
30995         (__tgmath_complex_type_sub): New macro.
30996         (__tgmath_complex_type): Likewise.
30997         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30998         (__TGMATH_CF128): Use __expr_is_real.
30999         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
31000         __expr_is_real.
31001         (__TGMATH_BINARY_REAL_IMAG): Likewise.
31002         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
31003         * math/gen-tgmath-tests.py (Type.create_type): Create complex
31004         integer types.
31005
31006 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31007
31008         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
31009         macro.
31010         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
31011         alias.
31012         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
31013         Likewise.
31014
31015         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
31016         nanosleep_not_cancel with __nanosleep_nocancel.
31017         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
31018         (__nanosleep_nocancel): New macro.
31019         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
31020         function.
31021         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
31022         macro.
31023         (__nanosleep_nocancel): New prototype.
31024
31025         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
31026         pause_not_cancel with __pause_nocancel.
31027         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
31028         (__pause_nocancel): New macro.
31029         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
31030         macro.
31031         (__pause_nocancel): New prototype.
31032         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
31033
31034 2017-08-22  Martin Sebor  <msebor@redhat.com>
31035
31036         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
31037         to return a pointer to the same type as the target function.
31038
31039 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
31040
31041         [BZ #18822]
31042         [BZ #21986]
31043         * include/printf.h (__printf_fphex): Add attribute_hidden.
31044         (__guess_grouping): New prototype.
31045         * stdio-common/printf_fp.c (__guess_grouping): Removed.
31046         * stdio-common/reg-printf.c (__register_printf_specifier): Add
31047         libc_hidden_proto and libc_hidden_def.
31048         * stdlib/strfmon_l.c (__guess_grouping): Removed.
31049         (__vstrfmon_l): Remove the third argument passed to
31050         __guess_grouping.
31051
31052 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31053
31054         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
31055         definition for issignaling that does not rely on __MATH_TG,
31056         since __MATH_TG uses __builtin_types_compatible_p, which is only
31057         available in C mode.
31058         (CFLAGS-test-math-issignaling.cc): New variable.
31059         * math/Makefile [CXX] (tests): Add test-math-issignaling.
31060         * math/test-math-issignaling.cc: New test for C++ implementation
31061         of type-generic issignaling.
31062         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
31063         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
31064         options of test-math-issignaling on powerpc64le.
31065
31066 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
31067
31068         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31069         building libc.a.
31070         (hidden_proto): Likewise.
31071         (hidden_tls_proto): Likewise.
31072         (__hidden_proto): Likewise.
31073
31074 2017-08-22  Florian Weimer  <fweimer@redhat.com>
31075
31076         math: Statically link tests of internal functionality.
31077         * math/Makefile (tests): Remove atest-exp, atest-sincos,
31078         atest-exp2.
31079         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
31080         (gmp-objs): Remove assignment.
31081         (atest-exp, atest-sincos, atest-exp2): Remove targets.
31082
31083 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
31084
31085         [BZ #21987]
31086         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
31087         and copy to ...
31088         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
31089         ... here.
31090         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
31091         ... and here.
31092
31093         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
31094         variable definitions above inclusion of ../Rules.
31095
31096 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
31097
31098         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
31099         case calling __builtin_unreachable.
31100
31101 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31102
31103         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
31104         __waitpid_nocancel.
31105         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
31106         (__waitpid_nocancel): New macro.
31107         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
31108         macro.
31109         (__waitpid_nocancel): Replace macro with a function.
31110         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
31111         function.
31112
31113         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
31114         __fcntl_nocancel.
31115         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
31116         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
31117
31118         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
31119         __writev_nocancel_nostatus.
31120         (write_call_graph): Likewise.
31121         (write_bb_counts): Likewise.
31122         * resolv/herror.c (herror): Likewise.
31123         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
31124         macro.
31125         (__writev_nocancel_nostatus): New macro.
31126         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
31127         Remove macro.
31128         (__writev_nocancel_nostatus): New function.
31129
31130 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
31131
31132         Revert:
31133         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31134
31135         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31136         building libc.a.
31137         (hidden_proto): Likewise.
31138         (hidden_tls_proto): Likewise.
31139         (__hidden_proto): Likewise.
31140
31141         [BZ #21973]
31142         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
31143         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31145         Likewise.
31146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
31147         Likewise.
31148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31149         Likewise.
31150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
31151         Likewise.
31152         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
31153         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31154         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31155         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31156         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31157         GLIBC_2.0 sqrtl symbol.
31158
31159         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
31160         [__USE_MISC] (_LIB_VERSION): Likewise.
31161         [__USE_MISC] (struct exception): Likewise.
31162         [__USE_MISC] (matherr): Likewise.
31163         [__USE_MISC] (DOMAIN): Likewise.
31164         [__USE_MISC] (SING): Likewise.
31165         [__USE_MISC] (OVERFLOW): Likewise.
31166         [__USE_MISC] (UNDERFLOW): Likewise.
31167         [__USE_MISC] (TLOSS): Likewise.
31168         [__USE_MISC] (PLOSS): Likewise.
31169         [__USE_MISC] (HUGE): Likewise.
31170         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
31171         * math/math-svid-compat.h: New file.
31172         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
31173         and matherrl.
31174         * include/math.h [!_ISOMAC] (__matherr): Remove.
31175         * manual/arith.texi (FP Exceptions): Do not document matherr.
31176         * math/Makefile (tests): Change test-matherr to test-matherr-3.
31177         (tests-internal): New variable.
31178         (install-lib): Do not add libieee.a.
31179         (non-lib.a): Likewise.
31180         (extra-objs): Do not add libieee.a and ieee-math.o.
31181         (CPPFLAGS-s_lib_version.c): Remove variable.
31182         ($(objpfx)libieee.a): Remove rule.
31183         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
31184         * math/ieee-math.c: Remove.
31185         * math/libm-test-support.c (matherr): Remove.
31186         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
31187         and license notices.  Include <math-svid-compat.h> and
31188         <shlib-compat.h>.
31189         (matherr): Undefine as macro.  Use compat_symbol_reference.
31190         (_LIB_VERSION): Likewise.
31191         * math/test-matherr-2.c: New file.
31192         * math/test-matherr-3.c: Likewise.
31193         * sysdeps/generic/math_private.h (__kernel_standard): Remove
31194         declaration.
31195         (__kernel_standard_f): Likewise.
31196         (__kernel_standard_l): Likewise.
31197         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
31198         <math_private.h>.  Include <math-svid-compat.h>.
31199         (_LIB_VERSION): Undefine as macro.
31200         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
31201         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
31202         [LIBM_SVID_COMPAT], use compat_symbol.
31203         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
31204         <math_private.h>.  Include <math-svid-compat.h>.
31205         (matherr): Undefine as macro.
31206         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
31207         compat_symbol.
31208         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
31209         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
31210         compat_symbol_reference.
31211         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
31212         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
31213         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
31214         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
31215         (MATHERR_D): Remove declaration.
31216         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
31217         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
31218         [LIBM_BUILD] (pmatherrf): Likewise.
31219         [LIBM_BUILD] (pmatherr): Likewise.
31220         [LIBM_BUILD] (pmatherrl): Likewise.
31221         (DOMAIN): Likewise.
31222         (SING): Likewise.
31223         (OVERFLOW): Likewise.
31224         (UNDERFLOW): Likewise.
31225         (TLOSS): Likewise.
31226         (PLOSS): Likewise.
31227         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
31228         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
31229         compat_symbol.
31230         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
31231         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
31232         compat_symbol.
31233         * math/lgamma-compat.h: Include <math-svid-compat.h>.
31234         * math/w_acos_compat.c: Likewise.
31235         * math/w_acosf_compat.c: Likewise.
31236         * math/w_acosh_compat.c: Likewise.
31237         * math/w_acoshf_compat.c: Likewise.
31238         * math/w_acoshl_compat.c: Likewise.
31239         * math/w_acosl_compat.c: Likewise.
31240         * math/w_asin_compat.c: Likewise.
31241         * math/w_asinf_compat.c: Likewise.
31242         * math/w_asinl_compat.c: Likewise.
31243         * math/w_atan2_compat.c: Likewise.
31244         * math/w_atan2f_compat.c: Likewise.
31245         * math/w_atan2l_compat.c: Likewise.
31246         * math/w_atanh_compat.c: Likewise.
31247         * math/w_atanhf_compat.c: Likewise.
31248         * math/w_atanhl_compat.c: Likewise.
31249         * math/w_cosh_compat.c: Likewise.
31250         * math/w_coshf_compat.c: Likewise.
31251         * math/w_coshl_compat.c: Likewise.
31252         * math/w_exp10_compat.c: Likewise.
31253         * math/w_exp10f_compat.c: Likewise.
31254         * math/w_exp10l_compat.c: Likewise.
31255         * math/w_exp2_compat.c: Likewise.
31256         * math/w_exp2f_compat.c: Likewise.
31257         * math/w_exp2l_compat.c: Likewise.
31258         * math/w_fmod_compat.c: Likewise.
31259         * math/w_fmodf_compat.c: Likewise.
31260         * math/w_fmodl_compat.c: Likewise.
31261         * math/w_hypot_compat.c: Likewise.
31262         * math/w_hypotf_compat.c: Likewise.
31263         * math/w_hypotl_compat.c: Likewise.
31264         * math/w_j0_compat.c: Likewise.
31265         * math/w_j0f_compat.c: Likewise.
31266         * math/w_j0l_compat.c: Likewise.
31267         * math/w_j1_compat.c: Likewise.
31268         * math/w_j1f_compat.c: Likewise.
31269         * math/w_j1l_compat.c: Likewise.
31270         * math/w_jn_compat.c: Likewise.
31271         * math/w_jnf_compat.c: Likewise.
31272         * math/w_jnl_compat.c: Likewise.
31273         * math/w_lgamma_main.c: Likewise.
31274         * math/w_lgamma_r_compat.c: Likewise.
31275         * math/w_lgammaf_main.c: Likewise.
31276         * math/w_lgammaf_r_compat.c: Likewise.
31277         * math/w_lgammal_main.c: Likewise.
31278         * math/w_lgammal_r_compat.c: Likewise.
31279         * math/w_log10_compat.c: Likewise.
31280         * math/w_log10f_compat.c: Likewise.
31281         * math/w_log10l_compat.c: Likewise.
31282         * math/w_log2_compat.c: Likewise.
31283         * math/w_log2f_compat.c: Likewise.
31284         * math/w_log2l_compat.c: Likewise.
31285         * math/w_log_compat.c: Likewise.
31286         * math/w_logf_compat.c: Likewise.
31287         * math/w_logl_compat.c: Likewise.
31288         * math/w_pow_compat.c: Likewise.
31289         * math/w_powf_compat.c: Likewise.
31290         * math/w_powl_compat.c: Likewise.
31291         * math/w_remainder_compat.c: Likewise.
31292         * math/w_remainderf_compat.c: Likewise.
31293         * math/w_remainderl_compat.c: Likewise.
31294         * math/w_scalb_compat.c: Likewise.
31295         * math/w_scalbf_compat.c: Likewise.
31296         * math/w_scalbl_compat.c: Likewise.
31297         * math/w_sinh_compat.c: Likewise.
31298         * math/w_sinhf_compat.c: Likewise.
31299         * math/w_sinhl_compat.c: Likewise.
31300         * math/w_sqrt_compat.c: Likewise.
31301         * math/w_sqrtf_compat.c: Likewise.
31302         * math/w_sqrtl_compat.c: Likewise.
31303         * math/w_tgamma_compat.c: Likewise.
31304         * math/w_tgammaf_compat.c: Likewise.
31305         * math/w_tgammal_compat.c: Likewise.
31306         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31307         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31308         * sysdeps/ieee754/k_standard.c: Likewise.
31309         * sysdeps/ieee754/k_standardf.c: Likewise.
31310         * sysdeps/ieee754/k_standardl.c: Likewise.
31311         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31312         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31313         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31314         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31315         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31316         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31317         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31318         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31319         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31321         Likewise.
31322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31323         Likewise.
31324         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31325         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31326         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31327         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31328
31329 2017-08-21  Florian Weimer  <fweimer@redhat.com>
31330
31331         [BZ #21864]
31332         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31333         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31334         Move before inclusion of ../Rules.
31335
31336 2017-08-21  Florian Weimer  <fweimer@redhat.com>
31337
31338         [BZ #21972]
31339         * assert/assert.h (assert): Use static_cast (bool) for C++.
31340         Use the ternary operator in the warning branch for GNU C.
31341         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31342         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31343         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31344         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31345         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31346
31347 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31348
31349         [BZ #18822]
31350         * sysdeps/unix/sysv/linux/x86_64/init-first.c
31351         (__syscall_clock_gettime): Add attribute_hidden.
31352         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31353         (__start_context): Likewise.
31354
31355 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31356
31357         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31358         building libc.a.
31359         (hidden_proto): Likewise.
31360         (hidden_tls_proto): Likewise.
31361         (__hidden_proto): Likewise.
31362
31363 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31364
31365         * include/libc-symbols.h (attribute_hidden): Enable hidden
31366         visibility in libc.a compiled with PIE.
31367
31368 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31369
31370         [BZ #18822]
31371         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31372         Add attribute_hidden.
31373
31374 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31375
31376         [BZ #21864]
31377         * Makerules (all-nonlib): Add $(others-extras).
31378         * catgets/Makefile (others-extras): New.
31379         * elf/Makefile (others-extras): Likewise.
31380         * nss/Makefile (others-extras): Likewise.
31381
31382 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31383
31384         [BZ #18822]
31385         * csu/libc-start.c (__libc_multiple_libcs): Removed.
31386         * elf/dl-open.c: Include <libc-internal.h>.
31387         (__libc_multiple_libcs): Removed.
31388         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31389         <hp-timing.h>.
31390         * include/libc-internal.h (__libc_multiple_libcs): New.
31391         * misc/sbrk.c: Include <libc-internal.h>.
31392         (__libc_multiple_libcs): Removed.
31393
31394 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
31395
31396         [BZ #18822]
31397         * grp/initgroups.c (__nss_group_database): Removed.
31398         (__nss_initgroups_database): Likewise.
31399         * nscd/gai.c (__nss_hosts_database): Likewise.
31400         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31401         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31402         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31403         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31404         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31405         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31406         attribute_hidden.
31407         * nss/nsswitch.c (__nss_database_custom): Define only if
31408         USE_NSCD is defined.
31409         (__nss_configure_lookup): Use __nss_database_custom only if
31410         USE_NSCD is defined.
31411         * nss/nsswitch.h (__nss_database_custom): Declare only if
31412         USE_NSCD is defined.  Add attribute_hidden.
31413         (__nss_setent): Add attribute_hidden.
31414         (__nss_endent): Likewise.
31415         (__nss_getent_r): Likewise.
31416         (__nss_getent): Likewise.
31417         (DEFINE_DATABASE): Declare __nss_##arg##_database.
31418
31419 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31420
31421         [BZ #18822]
31422         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31423         libc_hidden_proto and libc_hidden_def.
31424
31425 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31426
31427         [BZ #18822]
31428         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31429         Add libc_hidden_proto.
31430         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31431         Add libc_hidden_def.
31432
31433 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31434
31435         [BZ #21974]
31436         * gmon/Makefile (routines): Remove bb_init_func and
31437         bb_exit_func.
31438         (elide-routines.os): Removed.
31439         * gmon/bb_exit_func.c: Likewise.
31440         * gmon/bb_init_func.c: Likewise.
31441         * include/sys/gmon.h (__bb): Likewise.
31442         (__bb_init_func): Likewise.
31443         (__bb_exit_func): Likewise.
31444         * sysdeps/alpha/bb_init_func.S: Likewise.
31445
31446 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
31447
31448         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31449         * include/setjmp.h (____longjmp_chk): Here.  Add
31450         attribute_hidden.
31451
31452 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
31453
31454         [BZ #18822]
31455         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31456         attribute_hidden.
31457         (__strspn_sse2): Likewise.
31458
31459 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31460
31461         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31462         (close_not_cancel_no_status): Likewise.
31463         (__close_nocancel): New macro.
31464         (__close_nocancel_nostatus): Likewise.
31465         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31466         macro.
31467         (close_not_cancel): Likewise.
31468         (close_not_cancel_no_status): Likewise.
31469         (__close_nocancel): New prototype.
31470         (__close_nocancel_nostatus): New function.
31471         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31472         * catgets/open_catalog.c (__open_catalog): Replace
31473         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31474         * gmon/gmon.c (write_gmon): Likewise.
31475         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31476         * intl/loadmsgcat.c (close): Likewise.
31477         * io/ftw.c (open_dir_stream): Likewise.
31478         (ftw_startup): Likewise.
31479         * libio/fileops.c (_IO_file_open): Likewise.
31480         (_IO_file_close_mmap): Likewise.
31481         (_IO_file_close): Likewise.
31482         * libio/iopopen.c (_IO_dup2): Likewise.
31483         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31484         * locale/loadlocale.c (_nl_load_locale): Likewise.
31485         * login/utmp_file.c (pututline_file): Likewise.
31486         (endutent_file): Likewise.
31487         * misc/daemon.c (daemon): Likewise.
31488         * nscd/nscd_getai.c (__nscd_getai): Likewise.
31489         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31490         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31491         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31492         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31493         * nscd/nscd_helper.c (open_socket): Likewise.
31494         (__nscd_open_socket): Likewise.
31495         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31496         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31497         (__nscd_innetgr): Likewise.
31498         * nss/nss_db/db-open.c (internal_setent): Likewise.
31499         * resolv/res-close.c (__res_iclose): Likewise.
31500         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31501         * sysdeps/posix/closedir.c (__closedir): Likewise.
31502         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31503         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31504         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31505         (opendir_tail): Likewise.
31506         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31507         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31508         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31509         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31510         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31511         (gethostid): Likewise.
31512         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31513         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31514         Likewise.
31515         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31516         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31517         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31518         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31519         Likewise.
31520         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31521         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31522         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31523         Likewise.
31524         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31525         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31526         Likewise.
31527         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31528         Likewise.
31529         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31530         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31531         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31532         __close_nocancel.
31533
31534         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31535         (openat_not_cancel_3): Likewise.
31536         (openat64_not_cancel_3): Likewise).
31537         (openat_not_cancel_3): Likewise).
31538         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31539         macro.
31540         (openat_not_cancel_3): Likewise.
31541         (openat64_not_cancel): Likewise.
31542         (openat64_not_cancel_3): Likewise.
31543         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31544         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31545         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31546         __open{64}_nocancel.
31547         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31548         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31549         * sysdeps/posix/opendir.c (__opendirat): Likewise.
31550
31551 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31552
31553         [BZ #18822]
31554         * include/argz.h (__argz_create_sep): New function prototype.
31555         (__argz_append): Likewise.
31556         (__argz_add): Likewise.
31557         (__argz_add_sep): Likewise.
31558         (__argz_delete): Likewise.
31559         (__argz_insert): Likewise.
31560         (__argz_replace): Likewise.
31561         * string/argz.h (__argz_create_sep): Removed.
31562         (__argz_append): Likewise.
31563         (__argz_add): Likewise.
31564         (__argz_add_sep): Likewise.
31565         (__argz_delete): Likewise.
31566         (__argz_insert): Likewise.
31567         (__argz_replace): Likewise.
31568
31569 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31570
31571         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31572         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31573         (GNU_PROPERTY_STACK_SIZE): Likewie.
31574         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31575         (GNU_PROPERTY_LOPROC): Likewise.
31576         (GNU_PROPERTY_HIPROC): Likewise.
31577         (GNU_PROPERTY_LOUSER): Likewise.
31578         (GNU_PROPERTY_HIUSER): Likewise.
31579         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31580         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31581         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31582         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31583         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31584         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31585         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31586         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31587         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31588         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31589         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31590         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31591         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31592         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31593         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31594         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31595         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31596         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31597         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31598         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31599         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31600         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31601         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31602
31603 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31604
31605         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31606         in C++ mode.
31607
31608 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
31609
31610         [BZ #21930]
31611         * math/math.h (isinf): Check if in C or C++ mode before using
31612         __builtin_types_compatible_p, since this is a C mode feature.
31613
31614 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31615
31616         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31617         (__write_nocancel): New macro.
31618         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31619         Rewrite as a function prototype.
31620         (write_not_cancel): Remove macro.
31621         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31622         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31623         (write_gmon): Likewise.
31624         * libio/fileops.c (_IO_new_file_write): Likewise.
31625         * login/utmp_file.c (pututline_file): Likewise.
31626         (updwtmp_file): Likewise.
31627         * stdio-common/psiginfo.c (psiginfo): Likewise.
31628         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31629         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31630         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31631         Likewise.
31632         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31633         Likewise.
31634
31635         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31636         (__read_nocancel): New macro.
31637         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31638         __read_nocancel.
31639         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31640         macro.
31641         (__read_nocancel): New prototype.
31642         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31643         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31644         with __read_nocancel.
31645         * intl/loadmsgcat.c (read): Likewise.
31646         * libio/fileops.c (_IO_file_read): Likewise.
31647         * locale/loadlocale.c (_nl_load_locale): Likewise.
31648         * login/utmp_file.c (getutent_r_file): Likewise.
31649         (internal_getut_r): Likewise.
31650         (getutline_r_file): Likewise.
31651         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31652         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31653         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31654         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31655         Likewise.
31656         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31657         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31658         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31659         Likewise.
31660         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31661         Likewise.
31662         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31663         Likewise.
31664         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31665         Likewise.
31666         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31667
31668 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
31669
31670         [BZ #21966]
31671         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31672         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31673         usable.
31674
31675 2017-08-17  DJ Delorie  <dj@redhat.com>
31676
31677         * bug17079.c: Update to new test harness.
31678         * test-digits-dots.c: Likewise.
31679         * test-netdb.c: Likewise.
31680         * tst-field.c: Likewise.
31681         * tst-nss-getpwent.c: Likewise.
31682         * tst-nss-static.c: Likewise.
31683         * tst-nss-test1.c: Likewise.
31684         * tst-nss-test2.c: Likewise.
31685         * tst-nss-test3.c: Likewise.
31686         * tst-nss-test4.c: Likewise.
31687         * tst-nss-test5.c: Likewise.
31688
31689 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31690
31691         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31692         (open_not_cancel_2): Likewise.
31693         (open_nocancel): New macro.
31694         (open64_nocancel): Likewise.
31695         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31696         (open_not_cancel_2): Likewise.
31697         (__open_nocancel): New prototype.
31698         (__open64_nocancel): Likewise.
31699         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31700         __open_nocancel.
31701         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31702         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31703         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31704         with __open_nocancel.
31705         * csu/check_fds.c (check_one_fd): Likewise.
31706         * gmon/gmon.c (write_gmon): Likewise.
31707         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31708         * intl/loadmsgcat.c (open): Likewise.
31709         * libio/fileops.c (_IO_file_open): Likewise.
31710         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31711         * locale/loadlocale.c (_nl_load_locale): Likewise.
31712         * login/utmp_file.c (setutent_file): Likewise.
31713         * misc/daemon.c (daemon): Likewise.
31714         * nss/nss_db/db-open.c (internal_setent): Likewise.
31715         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31716         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31717         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31718         (__opendir): Likewise.
31719         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31720         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31721         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31722         (gethostid): Likewise.
31723         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31724         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31725         Likewise.
31726         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31727         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31728         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31729         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31730         Likewise.
31731         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31732         Likewise.
31733         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31734         Likewise.
31735         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31736         Likewise.
31737         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31738         Likewise.
31739         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31740         Likewise.
31741         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31742         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31743
31744 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
31745
31746         * benchtests/bench-skeleton.c (main): Add support for
31747         latency benchmarking.
31748         * benchtests/scripts/bench.py: Add support for latency benchmarking.
31749
31750 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
31751
31752         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31753         the startup object.
31754
31755 2017-08-17  Florian Weimer  <fweimer@redhat.com>
31756
31757         * include/sys/socket.h (__opensock): Remove internal_function.
31758         * socket/opensock.c (__opensock): Likewise.
31759         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31760
31761 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
31762
31763         [BZ #21944]
31764         * signal/bits/types/__sigval_t.h: New file.
31765         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31766         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31767         and define sigval_t using __sigval_t.
31768         * include/bits/types/__sigval_t.h: New file.
31769         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31770         instead of <bits/types/__sigval_t.h>.
31771         (struct sigevent): Use __sigval_t instead of sigval_t.
31772         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31773         instead of <bits/types/__sigval_t.h>.
31774         (siginfo_t): Use __sigval_t instead of sigval_t.
31775         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31776         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31777         (struct sigevent): Use __sigval_t instead of sigval_t.
31778         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31779         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31780         (siginfo_t): Use __sigval_t instead of sigval_t.
31781         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31782
31783 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31784
31785         * NEWS: Remove "[Add new features here]" for 2.27.
31786
31787 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
31788
31789         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31790         libc.so.
31791
31792 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31793
31794         * NEWS: Mention x86-64 FMA optimization.
31795
31796 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
31797
31798         [BZ #21912]
31799         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31800         Add e_expf-fma.
31801         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31802         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31803         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31804
31805 2017-08-16  Andreas Schwab  <schwab@suse.de>
31806
31807         [BZ #16750]
31808         CVE-2009-5064
31809         * elf/ldd.bash.in: Never run file directly.
31810
31811 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
31812
31813         [BZ #21955]
31814         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31815         (L(SP_INF_0)): Likewise.
31816
31817 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31818
31819         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31820         run-built-tests.
31821
31822 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31823
31824         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31825         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31826         BROKEN_THREAD_SIGNALS code.
31827         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31828         request_list): Remove caller_pid member used for
31829         BROKEN_THREAD_SIGNALS.
31830         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31831         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31832         Remove BROKEN_THREAD_SIGNALS support.
31833         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31834         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31835
31836 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31837
31838         * gmon/Makefile (tests): Add tst-gmon.
31839         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31840         Set.
31841         (tests-special): Add tst-gmon-prof.out.
31842         (tst-gmon.out): Depend on clean-tst-gmon-data.
31843         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31844         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31845         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31846         startup object.
31847         * aclocal.m4 (GPROF): Set and substitute.
31848         * config.amke.in (GPROF): Set.
31849         * configure: Regenerate.
31850
31851 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
31852
31853         * elf/elf.h A (NT_PPC_TAR): New macro.
31854         (NT_PPC_PPR): Likewise.
31855         (NT_PPC_DSCR): Likewise.
31856         (NT_PPC_EBB): Likewise.
31857         (NT_PPC_PMU): Likewise.
31858         (NT_PPC_TM_CGPR): Likewise.
31859         (NT_PPC_TM_CFPR): Likewise.
31860         (NT_PPC_TM_CVMX): Likewise.
31861         (NT_PPC_TM_CVSX): Likewise.
31862         (NT_PPC_TM_SPR): Likewise.
31863         (NT_PPC_TM_CTAR): Likewise.
31864         (NT_PPC_TM_CPPR): Likewise.
31865         (NT_PPC_TM_CDSCR): Likewise.
31866
31867 2017-08-15  Florian Weimer  <fweimer@redhat.com>
31868
31869         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31870         regparm (2) instead of internal_function.
31871         (_MCOUNT_DECL): Adjust.
31872
31873 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
31874
31875         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31876         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31877
31878 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
31879
31880         * conform/data/sys/wait.h-data (si_value): Do not expect for
31881         XPG42.
31882
31883 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31884
31885         [BZ #21962]
31886         NSS: Create stubs for accidentally exported lookup functions.
31887         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31888         Remove declaration.
31889         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31890         (ether_hostton): Call __nss_ethers_lookup2 instead.
31891         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31892         (ether_ntohost): Call __nss_ethers_lookup2 instead.
31893         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31894         (setup): Call __nss_netgroup_lookup2 instead.
31895         * nss/Makefile (routines): Add compat-lookup.
31896         * nss/Versions (GLIBC_2.27): Add symbol version.
31897         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
31898         (DB_COMPAT_FCT): Remove.
31899         * nss/compat-lookup.c: New file.
31900         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31901         from databases.def.
31902         * nss/service-lookup.c (NO_COMPAT): Remove definition.
31903         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31904         (netname2user): Call __nss_publickey_lookup2 instead.
31905         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31906         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31907         instead.
31908
31909 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31910             Sergei Trofimovich  <slyfox@inbox.ru>
31911
31912         [BZ #21908]
31913         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31914         Rename to MMAP2_PAGE_UNIT.
31915         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31916         __OFF_T_MATCHES_OFF64_T is not defined.
31917         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31918         uint64_t.
31919         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31920         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31921
31922 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31923
31924         i386: Do not set internal_function.
31925         * config.h.in (USE_REGPARMS, internal_function): Remove.
31926         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31927         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31928
31929 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31930
31931         * elf/dl-init.c (_dl_init): Remove internal_function.
31932         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31933         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31934
31935 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31936
31937         * elf/rtld.c (_dl_start): Remove internal_function.
31938         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31939         _dl_start.
31940
31941 2017-08-14  Florian Weimer  <fweimer@redhat.com>
31942
31943         * elf/dl-fini.c (_dl_fini): Remove internal_function
31944         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31945
31946 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
31947
31948         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31949         (bit_cpu_SHSTK): Likewise.
31950         (index_cpu_IBT): Likewise.
31951         (index_cpu_SHSTK): Likewise.
31952         (reg_IBT): Likewise.
31953         (reg_SHSTK): Likewise.
31954         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31955         Handle index_cpu_IBT and index_cpu_SHSTK.
31956
31957 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
31958
31959         [BZ #19982]
31960         * po/fr.po: Fix spelling mistake.
31961
31962 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31963
31964         * elf/dl-addr.c (_dl_addr): Remove internal_function.
31965         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31966         (_dl_catch_error, _dl_receive_error): Likewise.
31967         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31968         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31969         (_dl_deallocate_tls): Likewise.
31970         * include/dlfcn.h (_dl_addr): Likewise.
31971         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31972         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31973         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31974         Likewise.
31975
31976 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31977
31978         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31979         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31980         internal_function.
31981         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31982
31983 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31984
31985         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31986         internal_function.
31987         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31988         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31989         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31990         internal_function from _dl_make_stack_executable_hook member.
31991         (_dl_make_stack_executable): Remove internal_function.
31992         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31993         Likewise.
31994         * sysdeps/unix/sysv/linux/dl-execstack.c
31995         (_dl_make_stack_executable): Likewise.
31996
31997 2017-08-13  Florian Weimer  <fweimer@redhat.com>
31998
31999         * sysdeps/unix/sysv/linux/netlinkaccess.h
32000         (__netlink_assert_response): Remove internal_function.
32001         * sysdeps/unix/sysv/linux/netlink_assert_response.c
32002         (__netlink_assert_response): Likewise.
32003
32004 2017-08-13  Florian Weimer  <fweimer@redhat.com>
32005
32006         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
32007         internal_function.
32008         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
32009
32010 2017-08-13  Florian Weimer  <fweimer@redhat.com>
32011
32012         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
32013         internal_function.
32014         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
32015         * inet/netgroup.h (__internal_setnetgrent)
32016         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32017         * inet/getnetgrent_r.c (__internal_setnetgrent)
32018         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
32019         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
32020         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
32021         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
32022         * nss/nsswitch.h (db_lookup_function): Likewise.
32023
32024 2017-08-13  Florian Weimer  <fweimer@redhat.com>
32025
32026         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
32027         Remove internal_function.
32028         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
32029         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
32030         message argument on the stack.
32031         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
32032         Likeweise.
32033
32034 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
32035
32036         Adapt test case data to the changes in the thousands
32037         separators.
32038
32039         [BZ #20756]
32040         * localedata/tst-langinfo.sh: Adapt test case data.
32041         * stdlib/tst-strfmon_l.c: Likewise.
32042         * stdlib/tst-strtod4.c: Likewise.
32043         * stdlib/tst-strtod5i.c: Likewise.
32044
32045 2017-08-11  Florian Weimer  <fweimer@redhat.com>
32046
32047         [BZ #21242]
32048         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
32049         Suppress pedantic warning resulting from statement expression.
32050         (__ASSERT_FUNCTION): Add missing __extension__.
32051
32052 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32053
32054         * benchtests/bench-memmove-large.c: Print output in JSON
32055         format.
32056         * benchtests/bench-memmove.c: Likewise.
32057
32058         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
32059         * benchtests/bench-memchr.c (do_one_test): Likewise.
32060         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
32061         * benchtests/bench-memcpy.c (do_one_test): Likewise.
32062         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
32063         * benchtests/bench-memmove.c (do_one_test): Likewise.
32064         * benchtests/bench-memset-large.c (do_one_test): Likewise.
32065         * benchtests/bench-memset.c (do_one_test): Likewise.
32066         * benchtests/bench-string.h (test_init): Remove memsets.
32067
32068 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
32069
32070         * manual/lang.texi
32071         (Computing the Width of an Integer Data Type): Rename section to
32072         "Width of an Integer Type".  Remove inaccurate statement regarding
32073         lack of C language facilities for determining width of integer
32074         types, and reorder content to improve flow and context of
32075         discussion.
32076
32077 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
32078
32079         * lang.texi (va_copy): Change standard from ISO to C99.
32080         (__va_copy): Add standard and header annotation.
32081         Update description for clarity of origins and current use.
32082
32083 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
32084
32085         [BZ #21941]
32086         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
32087         xssqrtqp requires operands to be in Vector Registers
32088         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
32089         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
32090         (__ieee754_sqrtf128): Likewise.
32091
32092 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
32093
32094         * sysdeps/aarch64/memcmp.S (memcmp):
32095         Rewrite of optimized memcmp.
32096
32097 2017-08-10  Florian Weimer  <fweimer@redhat.com>
32098
32099         Introduce ld.so exceptions.
32100         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
32101         (_dl_exception_create, _dl_exception_create_format)
32102         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
32103         (_dl_catch_exception): Declare.
32104         (_dl_catch_error): Update comment.
32105         * elf/dl-error-skeleton.c (struct catch): Replace objname,
32106         errstring, malloced members with exception member.
32107         (_dl_out_of_memory): Remove.
32108         (fatal_error): New function, extracted from _dl_signal_error.
32109         (_dl_signal_exception, _dl_signal_cexception): New functions.
32110         (_dl_signal_error): Call _dl_exception_create to allocate an
32111         exception object.
32112         (_dl_catch_exception): New function, based on _dl_catch_error.
32113         (_dl_catch_error): Implement using _dl_catch_exception.
32114         * elf/dl-exception.c: New file.
32115         * elf/Makefile (dl-routines): Add dl-exception.
32116         (elide-routines.os): Likewise.
32117         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
32118         _dl_exception_create_format, _dl_exception_free.
32119         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
32120         _dl_signal_exception.
32121         * elf/dl-lookup.c (make_string): Remove.
32122         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
32123         _dl_signal_cexception, _dl_exception_free.
32124         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
32125         _dl_signal_exception.
32126         * elf/dl-sym.c (do_sym): Likewise.
32127         * elf/dl-version.c (make_string): Remove.
32128         (match_symbol): Use _dl_exception_create_format,
32129         _dl_signal_cexception, _dl_exception_free.
32130         (_dl_check_map_versions): Likewise.
32131         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
32132         _dl_catch_exception.
32133         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
32134         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
32135         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
32136         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
32137         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
32138         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
32139         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
32140         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
32141         Likewise.
32142         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
32143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
32144         (ld.so): Likewise.
32145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
32146         (ld.so): Likewise.
32147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
32148         Likewise.
32149         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
32150         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
32151         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
32152         Likewise.
32153         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
32154         Likewise.
32155         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
32156
32157 2017-08-10  Florian Weimer  <fweimer@redhat.com>
32158
32159         * inet/net-internal.h (__inet6_scopeid_pton): Remove
32160         attribute_hidden, internal_function.
32161         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
32162         internal_function.
32163
32164 2017-08-10  Florian Weimer  <fweimer@redhat.com>
32165
32166         * malloc/malloc.c (get_max_fast): Reimplement as an inline
32167         function which calls __builtin_unreachable.
32168
32169 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
32170
32171         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
32172         Indian monetary formatting
32173         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
32174         test cases.
32175
32176 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
32177
32178         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
32179         Fix typo in comment.
32180
32181         [BZ #21928]
32182         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
32183         PTRACE_SEIZE_DEVEL): Remove.
32184         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
32185         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32186         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
32187         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
32188         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
32189
32190 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
32191
32192         * posix/bits/types.h (__qaddr_t): Remove.
32193
32194         [BZ #21457]
32195         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
32196         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32197         __glibc_reserved1.
32198         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
32199         (ucontext_t): Use __ctx with uc_flags.
32200         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
32201         (__ctxt): Likewise.
32202         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32203         __glibc_reserved1.
32204         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
32205         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32206         __glibc_reserved1.
32207         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
32208         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32209         __glibc_reserved1.
32210         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
32211         macro.
32212         (ucontext_t): Use __ctx with uc_flags.
32213         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
32214         (ucontext_t): Use __ctx with uc_flags.
32215         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
32216         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
32217         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
32218         (ucontext_t): Use __ctx with uc_flags.
32219         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
32220         undefine further down.
32221         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
32222         __glibc_reserved1.
32223         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
32224         undefine further down.
32225         (ucontext_t): Use __ctx with uc_flags.
32226         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
32227         undefine further down.
32228         (ucontext_t): Use __ctx with uc_flags.
32229         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
32230         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
32231         Rename uc_pad to __glibc_reserved1.
32232         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
32233         undefine further down.
32234         (ucontext_t): Use __ctx with uc_flags.
32235         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
32236         further down.
32237         (ucontext_t): Use __ctx with uc_flags.
32238         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
32239         __ctx with uc_flags.
32240         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
32241         (ucontext_t): Use __ctx with uc_flags.
32242         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
32243         __ctx with uc_flags.
32244
32245 2017-08-09  Florian Weimer  <fweimer@redhat.com>
32246
32247         [BZ #21932]
32248         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
32249         before early return.
32250
32251 2017-08-09  Andreas Schwab  <schwab@suse.de>
32252
32253         [BZ #21041]
32254         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
32255         renamed alias.
32256
32257         [BZ #21041]
32258         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
32259         tst-compat-forwarder.
32260         (modules-names): Add tst-compat-forwarder-mod.
32261         ($(objpfx)tst-compat-forwarder): Depend on
32262         $(objpfx)tst-compat-forwarder-mod.so.
32263         * nptl/tst-compat-forwarder.c: New file.
32264         * nptl/tst-compat-forwarder-mod.c: New file.
32265
32266 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32267
32268         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
32269         comments.
32270
32271         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
32272         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
32273         memcpy_falkor.
32274         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
32275         Bump.
32276         (__libc_ifunc_impl_list): Add __memcpy_falkor.
32277         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
32278         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
32279         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
32280         Add falkor.
32281         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
32282         New macro.
32283
32284 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32285
32286         [BZ #759]
32287         * manual/setjmp.texi (getcontex): Document uc_stack value
32288         compatibility differences.
32289
32290 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
32291
32292         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
32293         (old_malloc_hook): Likewise.
32294         (old_memalign_hook): Likewise.
32295         (old_realloc_hook): Likewise.
32296         (struct hdr): Likewise.
32297         (flood): Likewise.
32298         (freehook): Likewise.
32299         (mallochook): Likewise.
32300         (memalignhook): Likewise.
32301         (reallochook): Likewise.
32302         (mprobe): Likewise.
32303         * malloc/mtrace.c (mallwatch): Likewise.
32304         (tr_old_free_hook): Likewise.
32305         (tr_old_malloc_hook): Likewise.
32306         (tr_old_realloc_hook): Likewise.
32307         (tr_old_memalign_hook): Likewise.
32308         (tr_where): Likewise.
32309         (lock_and_info): Likewise.
32310         (tr_freehook): Likewise.
32311         (tr_mallochook): Likewise.
32312         (tr_reallochook): Likewise.
32313         (tr_memalignhook): Likewise.
32314         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32315         * misc/mmap.c (__mmap): Likewise.
32316         * misc/mmap64.c (__mmap64): Likewise.
32317         * misc/mprotect.c (__mprotect): Likewise.
32318         * misc/msync.c (msync): Likewise.
32319         * misc/munmap.c (__munmap): Likewise.
32320         * posix/posix_madvise.c (posix_madvise): Likewise.
32321         * socket/send.c (__send): Likewise.
32322         * socket/sendto.c (__sendto): Likewise.
32323         * socket/setsockopt.c (__setsockopt): Likewise.
32324         * string/memcmp.c (__ptr_t): Remove macro.
32325         (MEMCMP): Use void * instead of ptr_t.
32326         * string/memrchr.c (__ptr_t): Remove macro.
32327         (__memrchr): Use void * instead of ptr_t.
32328         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32329         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32330         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32331         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32332         * sysdeps/mach/msync.c (msync): Likewise.
32333         * sysdeps/mach/munmap.c (__munmap): Likewise.
32334         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32335         Likewise.
32336         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32337         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32338         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32339         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32340         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32341         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32342         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32343         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32344         Likewise.
32345         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32346         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32347         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32348         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32349         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32350         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32351         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32352         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32353         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32354         Likewise.
32355         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32356         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32357         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32358         (MEMCMP): Use void * instead of ptr_t.
32359         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32360         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32361
32362 2017-08-08  Florian Weimer  <fweimer@redhat.com>
32363
32364         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32365         return statement.
32366
32367 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
32368
32369         [BZ #21913]
32370         * csu/libc-tls.c: Include <startup.h> first.
32371         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32372         * elf/dl-tunables.c: Include <startup.h> first.
32373         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32374         * sysdeps/generic/startup.h: New file.
32375         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32376         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32377         (I386_USE_SYSENTER): New.  Defined to 0.
32378
32379 2017-08-08  Andreas Schwab  <schwab@suse.de>
32380
32381         [BZ #21041]
32382         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32383         * nptl/pt-system.c (system): Likewise.
32384
32385 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32386
32387         [BZ #21780]
32388         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32389         EOPNOTSUPP.
32390         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32391         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32392         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32393         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32394         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32395         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32396         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32397
32398 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
32399
32400         [BZ #21899]
32401         * bits/sigaction.h (struct sigaction): Define sa_handler and
32402         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32403         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32404         [__USE_XOPEN_EXTENDED].
32405         (SA_RESTART): Likewise.
32406         (SA_NODEFER): Likewise.
32407         (SA_RESETHAND): Likewise.
32408         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32409         (struct sigaction): Define sa_handler and sa_sigaction using union
32410         also for [__USE_XOPEN_EXTENDED].
32411         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32412         [__USE_XOPEN_EXTENDED].
32413         (SA_RESTART): Likewise.
32414         (SA_NODEFER): Likewise.
32415         (SA_RESETHAND): Likewise.
32416         * sysdeps/unix/sysv/linux/bits/sigaction.h
32417         (struct sigaction): Define sa_handler and sa_sigaction using union
32418         also for [__USE_XOPEN_EXTENDED].
32419         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32420         [__USE_XOPEN_EXTENDED].
32421         (SA_RESTART): Likewise.
32422         (SA_NODEFER): Likewise.
32423         (SA_RESETHAND): Likewise.
32424         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32425         (struct sigaction): Define sa_handler and sa_sigaction using union
32426         also for [__USE_XOPEN_EXTENDED].
32427         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32428         [__USE_XOPEN_EXTENDED].
32429         (SA_RESTART): Likewise.
32430         (SA_NODEFER): Likewise.
32431         (SA_RESETHAND): Likewise.
32432         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32433         (struct sigaction): Define sa_handler and sa_sigaction using union
32434         also for [__USE_XOPEN_EXTENDED].
32435         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32436         [__USE_XOPEN_EXTENDED].
32437         (SA_RESTART): Likewise.
32438         (SA_NODEFER): Likewise.
32439         (SA_RESETHAND): Likewise.
32440         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32441         (struct sigaction): Define sa_handler and sa_sigaction using union
32442         also for [__USE_XOPEN_EXTENDED].
32443         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32444         [__USE_XOPEN_EXTENDED].
32445         (SA_RESTART): Likewise.
32446         (SA_NODEFER): Likewise.
32447         (SA_RESETHAND): Likewise.
32448         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32449         (struct sigaction): Define sa_handler and sa_sigaction using union
32450         also for [__USE_XOPEN_EXTENDED].
32451         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32452         [__USE_XOPEN_EXTENDED].
32453         (SA_RESTART): Likewise.
32454         (SA_NODEFER): Likewise.
32455         (SA_RESETHAND): Likewise.
32456         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32457         (struct sigaction): Define sa_handler and sa_sigaction using union
32458         also for [__USE_XOPEN_EXTENDED].
32459         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32460         [__USE_XOPEN_EXTENDED].
32461         (SA_RESTART): Likewise.
32462         (SA_NODEFER): Likewise.  Define directly rather than as alias.
32463         (SA_RESETHAND): Likewise.
32464         (SA_INTERRUPT): Define only for [__USE_MISC].
32465         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32466         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32467         [__USE_MISC].
32468         (SA_STACK): Define only for [__USE_MISC].
32469         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32470         (struct sigaction): Define sa_handler and sa_sigaction using union
32471         also for [__USE_XOPEN_EXTENDED].
32472         (SA_ONSTACK): Change [__USE_UNIX98] condition to
32473         [__USE_XOPEN_EXTENDED].
32474         (SA_RESTART): Likewise.
32475         (SA_NODEFER): Likewise.
32476         (SA_RESETHAND): Likewise.
32477         (SA_NOPTRACE): Define only for [__USE_MISC].
32478
32479         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32480         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32481         (struct catalog_info): Likewise.
32482         * inet/htontest.c (lo): Likewise.
32483         (foo): Likewise.
32484         * inet/inet_lnaof.c (inet_lnaof): Likewise.
32485         * inet/inet_net.c (inet_network): Likewise.
32486         * inet/inet_netof.c (inet_netof): Likewise.
32487         * inet/rcmd.c (__ivaliduser): Likewise.
32488         (iruserok): Likewise.
32489         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32490         * locale/programs/locale-spec.c (locale_special): Likewise.
32491         * nis/nis_findserv.c (struct findserv_req): Likewise.
32492         (__nis_findfastest_with_timeout): Likewise.
32493         * nss/test-netdb.c (test_network): Likewise.
32494         * resolv/inet_neta.c (inet_neta): Likewise.
32495         * resolv/ns_date.c (ns_datetosecs): Likewise.
32496         (SECS_PER_DAY): Likewise.
32497         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32498         Likewise.
32499         * resolv/res_comp.c (__putlong): Likewise.
32500         (__putshort): Likewise.
32501         (_getlong): Likewise.
32502         (_getshort): Likewise.
32503         * resolv/res_debug.c (p_time): Likewise.
32504         (precsize_ntoa): Likewise.
32505         (precsize_aton): Likewise.
32506         (latlon2ul): Likewise.
32507         (loc_aton): Likewise.
32508         (loc_ntoa): Likewise.
32509         * resolv/res_hconf.c (struct netaddr): Likewise.
32510         (_res_hconf_reorder_addrs): Likewise.
32511         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32512         (clnttcp_control): Likewise.
32513         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32514         (clntudp_control): Likewise.
32515         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32516         (clntunix_control): Likewise.
32517         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32518         * sunrpc/rpc/auth.h (union des_block): Likewise.
32519         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32520         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32521         (xdrrec_create): Likewise.
32522         (xdrrec_endofrecord): Likewise.
32523         (flush_out): Likewise.
32524         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32525         (xdrstdio_putlong): Likewise.
32526         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32527         Likewise.
32528
32529         * misc/sys/cdefs.h (__long_double_t): Remove.
32530         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32531         instead of __long_double_t,
32532         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32533
32534 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
32535
32536         * benchtests/scripts/compare_strings.py: Avoid display error when
32537         running on a text terminal.
32538
32539         * benchtests/scripts/compare_strings.py (main): Add an
32540         optional -base option.
32541         (process_results): New argument base_func.
32542
32543         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32544         hardcoding memcpy.
32545         * benchtests/bench-memcpy-large.c (test_name): Likewise.
32546         * benchtests/bench-memcpy-random.c (test_name): Likewise.
32547
32548 2017-08-07  Andreas Schwab  <schwab@suse.de>
32549
32550         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32551         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32552         * intl/Makefile ($(objpfx)tst-gettext.out)
32553         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32554         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32555         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32556         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32557         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32558         * posix/Makefile ($(objpfx)globtest.out)
32559         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32560         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32561         ($(objpfx)tst-printf.out): Likewise.
32562         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32563         ($(objpfx)tst-setcontext3.out): Likewise.
32564
32565 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
32566
32567         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32568         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32569         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32570         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32571         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32572         and mptan-fma.
32573         (CFLAGS-doasin-fma.c): New.
32574         (CFLAGS-dosincos-fma.c): Likewise.
32575         (CFLAGS-e_asin-fma.c): Likewise.
32576         (CFLAGS-e_atan2-fma.c): Likewise.
32577         (CFLAGS-e_exp-fma.c): Likewise.
32578         (CFLAGS-e_log-fma.c): Likewise.
32579         (CFLAGS-e_pow-fma.c): Likewise.
32580         (CFLAGS-halfulp-fma.c): Likewise.
32581         (CFLAGS-mpa-fma.c): Likewise.
32582         (CFLAGS-mpatan-fma.c): Likewise.
32583         (CFLAGS-mpatan2-fma.c): Likewise.
32584         (CFLAGS-mpexp-fma.c): Likewise.
32585         (CFLAGS-mplog-fma.c): Likewise.
32586         (CFLAGS-mpsqrt-fma.c): Likewise.
32587         (CFLAGS-mptan-fma.c): Likewise.
32588         (CFLAGS-s_atan-fma.c): Likewise.
32589         (CFLAGS-sincos32-fma.c): Likewise.
32590         (CFLAGS-slowexp-fma.c): Likewise.
32591         (CFLAGS-slowpow-fma.c): Likewise.
32592         (CFLAGS-s_sin-fma.c): Likewise.
32593         (CFLAGS-s_tan-fma.c): Likewise.
32594         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32595         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32596         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32597         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32598         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32599         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32600         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32601         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32602         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32603         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32604         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32605         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32606         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32607         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32608         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32609         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32610         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32611         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32612         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32613         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32614         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32615         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32616         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32617         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32618         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32619         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32620         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32621         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32622         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32623         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32624         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32625
32626 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
32627
32628         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32629         (min_of_type_f): New macro.
32630         (min_of_type_): Likewise.
32631         (min_of_type_l): Likewise.
32632         (min_of_type_f128): Likewise.
32633         (min_of_type): Define using __MATH_TG and taking an expression
32634         argument.
32635         (math_check_force_underflow): Pass expression instead of type to
32636         min_of_type.
32637         (math_check_force_underflow_nonneg): Likewise.
32638
32639 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32640
32641         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32642         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32643         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32644
32645 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32646
32647         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32648         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32649         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32650         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32651         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32652         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32653         memcpy_chk-nonshared, mempcpy_chk-nonshared,
32654         memmove_chk-nonshared and memset_chk-nonshared
32655         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32656         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32657         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32658         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32659         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32660         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32661         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32662         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32663         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32664         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32665         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32666         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32667         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32668         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32669         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32670         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32671         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32672         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32673         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32674         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32675         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32676         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32677         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32678         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32679         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32680         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32681         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32682         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32683         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32684         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32685         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32686         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32687         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32688         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32689         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32690         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32691         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32692         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32693         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32694         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32695         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32696         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32697         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32698         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32699         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32700         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32701         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32702         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32703         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32704         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32705         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32706         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32707         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32708         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32709         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32710         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32711         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32712         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32713         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32714         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32715         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32716         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32717         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32718         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32719         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32720         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32721         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32722         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32723         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32724         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32725         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32726         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32727         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32728         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32729         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32730         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32731         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32732         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32733         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32734         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32735         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32736         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32737         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32738         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32739         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32740         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32741         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32742         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32743         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32744         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32745         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32746         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32747         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32748         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32749         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32750         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32751         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32752         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32753         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32754         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32755         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32756         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32757         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32758         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32759         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32760         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32761         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32762         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32763
32764 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
32765
32766         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32767         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32768         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32769         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32770         svml_d_log2_core-sse2, svml_d_log4_core-sse,
32771         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32772         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32773         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32774         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32775         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32776         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32777         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32778         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32779         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32780         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32781         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32782         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32783         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32784         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32785         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32786         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32787         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32788         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32789         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32790         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32791         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32792         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32793         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32794         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32795         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32796         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32797         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32798         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32799         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32800         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32801         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32802         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32803         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32804         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32805         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32806         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32807         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32808         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32809         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32810         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32811         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32812         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32813         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32814         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32815         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32816         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32817         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32818         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32819         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32820         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32821         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32822         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32823         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32824         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
32825         ...
32826         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32827         Don't include <sysdep.h> nor <init-arch.h>.
32828         (_ZGVbN2v_cos): Removed.
32829         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
32830         ...
32831         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32832         Don't include <sysdep.h> nor <init-arch.h>.
32833         (_ZGVdN4v_cos): Removed.
32834         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
32835         ...
32836         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32837         Don't include <sysdep.h> nor <init-arch.h>.
32838         (_ZGVeN8v_cos): Removed.
32839         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
32840         ...
32841         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32842         Don't include <sysdep.h> nor <init-arch.h>.
32843         (_ZGVbN2v_exp): Removed.
32844         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
32845         ...
32846         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32847         Don't include <sysdep.h> nor <init-arch.h>.
32848         (_ZGVdN4v_exp): Removed.
32849         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
32850         ...
32851         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32852         Don't include <sysdep.h> nor <init-arch.h>.
32853         (_ZGVeN8v_exp): Removed.
32854         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
32855         ...
32856         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32857         Don't include <sysdep.h> nor <init-arch.h>.
32858         (_ZGVbN2v_log): Removed.
32859         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
32860         ...
32861         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32862         Don't include <sysdep.h> nor <init-arch.h>.
32863         (_ZGVdN4v_log): Removed.
32864         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
32865         ...
32866         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32867         Don't include <sysdep.h> nor <init-arch.h>.
32868         (_ZGVeN8v_log): Removed.
32869         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
32870         ...
32871         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32872         Don't include <sysdep.h> nor <init-arch.h>.
32873         (_ZGVbN2vv_pow): Removed.
32874         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
32875         ...
32876         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32877         Don't include <sysdep.h> nor <init-arch.h>.
32878         (_ZGVdN4vv_pow): Removed.
32879         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
32880         ...
32881         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32882         Don't include <sysdep.h> nor <init-arch.h>.
32883         (_ZGVeN8vv_pow): Removed.
32884         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
32885         ...
32886         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32887         Don't include <sysdep.h> nor <init-arch.h>.
32888         (_ZGVbN2v_sin): Removed.
32889         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
32890         ...
32891         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32892         Don't include <sysdep.h> nor <init-arch.h>.
32893         (_ZGVbN4v_sin): Removed.
32894         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
32895         ...
32896         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32897         Don't include <sysdep.h> nor <init-arch.h>.
32898         (_ZGVbN8v_sin): Removed.
32899         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
32900         ...
32901         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32902         Don't include <sysdep.h> nor <init-arch.h>.
32903         (_ZGVbN2vvv_sincos): Removed.
32904         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
32905         ...
32906         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32907         Don't include <sysdep.h> nor <init-arch.h>.
32908         (_ZGVdN4vvv_sincos): Removed.
32909         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
32910         ...
32911         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32912         Don't include <sysdep.h> nor <init-arch.h>.
32913         (_ZGVeN8vvv_sincos): Removed.
32914         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
32915         ...
32916         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32917         Don't include <sysdep.h> nor <init-arch.h>.
32918         (_ZGVeN16v_cosf): Removed.
32919         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
32920         ...
32921         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32922         Don't include <sysdep.h> nor <init-arch.h>.
32923         (_ZGVbN4v_cosf): Removed.
32924         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
32925         ...
32926         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32927         Don't include <sysdep.h> nor <init-arch.h>.
32928         (_ZGVdN8v_cosf): Removed.
32929         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
32930         ...
32931         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32932         Don't include <sysdep.h> nor <init-arch.h>.
32933         (_ZGVeN16v_expf): Removed.
32934         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
32935         ...
32936         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32937         Don't include <sysdep.h> nor <init-arch.h>.
32938         (_ZGVbN4v_expf): Removed.
32939         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
32940         ...
32941         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32942         Don't include <sysdep.h> nor <init-arch.h>.
32943         (_ZGVdN8v_expf): Removed.
32944         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
32945         ...
32946         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32947         Don't include <sysdep.h> nor <init-arch.h>.
32948         (_ZGVeN16v_logf): Removed.
32949         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
32950         ...
32951         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32952         Don't include <sysdep.h> nor <init-arch.h>.
32953         (_ZGVbN4v_logf): Removed.
32954         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
32955         ...
32956         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32957         Don't include <sysdep.h> nor <init-arch.h>.
32958         (_ZGVdN8v_logf): Removed.
32959         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
32960         ...
32961         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32962         Don't include <sysdep.h> nor <init-arch.h>.
32963         (_ZGVeN16vv_powf): Removed.
32964         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
32965         ...
32966         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32967         Don't include <sysdep.h> nor <init-arch.h>.
32968         (_ZGVbN4vv_powf): Removed.
32969         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
32970         ...
32971         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32972         Don't include <sysdep.h> nor <init-arch.h>.
32973         (_ZGVdN8vv_powf): Removed.
32974         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
32975         ...
32976         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32977         Don't include <sysdep.h> nor <init-arch.h>.
32978         (_ZGVeN16vvv_sincosf): Removed.
32979         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
32980         ...
32981         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32982         Don't include <sysdep.h> nor <init-arch.h>.
32983         (_ZGVbN4vvv_sincosf): Removed.
32984         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
32985         ...
32986         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32987         Don't include <sysdep.h> nor <init-arch.h>.
32988         (_ZGVdN8vvv_sincosf): Removed.
32989         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
32990         ...
32991         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32992         Don't include <sysdep.h> nor <init-arch.h>.
32993         (_ZGVeN16v_sinf): Removed.
32994         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
32995         ...
32996         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32997         Don't include <sysdep.h> nor <init-arch.h>.
32998         (_ZGVbN4v_sinf): Removed.
32999         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
33000         ...
33001         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
33002         Don't include <sysdep.h> nor <init-arch.h>.
33003         (_ZGVdN8v_sinf): Removed.
33004
33005 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33006
33007         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33008         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
33009         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
33010         s_rint-sse4_1 and s_rintf-sse4_1.
33011         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
33012         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
33013         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
33014         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
33015         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
33016         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
33017         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
33018         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
33019         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
33020         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
33021         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
33022         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33023         (__ceil): Removed.
33024         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
33025         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
33026         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33027         (__ceilf): Removed.
33028         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
33029         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
33030         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33031         (__floor): Removed.
33032         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
33033         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
33034         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33035         (__floorf): Removed.
33036         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
33037         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
33038         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33039         (__nearbyint): Removed.
33040         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
33041         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
33042         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33043         (__nearbyintf): Removed.
33044         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
33045         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
33046         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33047         (__rint): Removed.
33048         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
33049         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
33050         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
33051         (__rintf): Removed.
33052
33053 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33054
33055         * sysdeps/i386/start.S (_start): Check Check PIC instead of
33056         SHARED.  Avoid dynamic relocation against main in static PIE.
33057
33058 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33059
33060         [BZ #21815]
33061         * elf/Makefile (CFLAGS-tst-prelink.c): New.
33062         (LDFLAGS-tst-prelink): Likewise.
33063
33064 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33065
33066         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
33067         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
33068         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
33069         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
33070         (INTERNAL_SYSCALL_NCS): Likewise.
33071         (LOADARGS_1): Likewise.
33072         (LOADARGS_5): Likewise.
33073         (RESTOREARGS_1): Likewise.
33074         (RESTOREARGS_5): Likewise.
33075
33076 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33077
33078         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
33079         (MEMPCPY_SYMBOL): Likewise.
33080         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
33081         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
33082         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
33083         in libc.a.
33084         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33085         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
33086         Likewise.
33087         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
33088         (__hidden_ver1): Don't use in libc.a.
33089         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
33090         (__mempcpy): Don't create a weak alias in libc.a.
33091         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
33092         libc.a.
33093         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
33094         (__hidden_ver1): Don't use in libc.a.
33095
33096 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33097
33098         * config.make.in (have-insert): New.
33099         * configure.ac (libc_cv_insert): New.  Set to yes if linker
33100         supports INSERT in linker script.
33101         (AC_SUBST(libc_cv_insert): New.
33102         * configure: Regenerated.
33103         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
33104         if $(have-insert) == yes.
33105
33106 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33107
33108         * elf/Makefile (tests): Add vismain only if
33109         $(have-protected-data) == yes.
33110         (tests-pie): Likewise.
33111
33112 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33113
33114         [BZ #21871]
33115         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
33116         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
33117
33118 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
33119
33120         [BZ #21790]
33121         * sysdeps/i386/i586/memset.S
33122         (__memset_zero_constant_len_parameter): Removed.
33123         * sysdeps/i386/i686/memset.S
33124         (__memset_zero_constant_len_parameter): Likewise.
33125         * sysdeps/i386/i686/multiarch/memset_chk.S
33126         (__memset_zero_constant_len_parameter): Likewise.
33127         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
33128         Likewise.
33129
33130 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
33131
33132         * stdlib/getentropy.c (getentropy): Change return type to int.
33133
33134 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
33135
33136         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
33137
33138 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
33139
33140         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
33141         u_intN_t.
33142         * math/s_nexttowardf.c (__nexttowardf): Likewise.
33143         * sysdeps/generic/math_private.h (ieee_double_shape_type):
33144         Likewise.
33145         (ieee_float_shape_type): Likewise.
33146         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
33147         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
33148         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
33149         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33150         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
33151         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
33152         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
33153         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
33154         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
33155         Likewise.
33156         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
33157         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
33158         (__ieee754_yn): Likewise.
33159         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
33160         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
33161         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
33162         Likewise.
33163         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
33164         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
33165         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
33166         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
33167         (__erfc): Likewise.
33168         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
33169         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
33170         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
33171         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
33172         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
33173         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
33174         Likewise.
33175         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
33176         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
33177         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
33178         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
33179         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
33180         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
33181         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
33182         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
33183         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
33184         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
33185         (__issignaling): Likewise.
33186         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
33187         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
33188         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
33189         Likewise.
33190         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
33191         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
33192         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
33193         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
33194         Likewise.
33195         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
33196         Likewise.
33197         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
33198         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
33199         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
33200         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
33201         (__erfcf): Likewise.
33202         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
33203         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
33204         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
33205         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
33206         Likewise.
33207         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
33208         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
33209         Likewise.
33210         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
33211         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
33212         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
33213         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
33214         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
33215         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
33216         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
33217         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
33218         Likewise.
33219         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
33220         Likewise.
33221         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
33222         Likewise.
33223         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
33224         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
33225         Likewise.
33226         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
33227         Likewise.
33228         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
33229         (__ieee754_ynl): Likewise.
33230         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
33231         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
33232         Likewise.
33233         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
33234         Likewise.
33235         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
33236         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
33237         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
33238         Likewise.
33239         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
33240         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
33241         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
33242         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
33243         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
33244         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
33245         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
33246         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
33247         Likewise.
33248         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
33249         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
33250         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
33251         Likewise.
33252         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
33253         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
33254         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
33255         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
33256         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
33257         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33258         Likewise.
33259         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
33260         Likewise.
33261         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33262         Likewise.
33263         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33264         Likewise.
33265         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
33266         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
33267         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
33268         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
33269         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
33270         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
33271         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
33272         Likewise.
33273         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
33274         Likewise.
33275         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
33276         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
33277         Likewise.
33278         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
33279         (__ieee754_remainderl): Likewise.
33280         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
33281         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
33282         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
33283         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
33284         Likewise.
33285         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
33286         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33287         Likewise.
33288         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
33289         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
33290         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
33291         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
33292         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
33293         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
33294         Likewise.
33295         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
33296         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
33297         (__ieee754_y0l): Likewise.
33298         (pzero): Likewise.
33299         (qzero): Likewise.
33300         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33301         (__ieee754_y1l): Likewise.
33302         (pone): Likewise.
33303         (qone): Likewise.
33304         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33305         (__ieee754_ynl): Likewise.
33306         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33307         (__ieee754_lgammal_r): Likewise.
33308         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33309         Likewise.
33310         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33311         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33312         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33313         (__erfcl): Likewise.
33314         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33315         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33316         Likewise.
33317         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33318         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33319         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33320         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33321         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33322         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33323         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33324         Likewise.
33325         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33326         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33327         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33328         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33329         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33330         Likewise.
33331         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33332         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33333         Likewise.
33334         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33335         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33336         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33337         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33338         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33339
33340 2017-08-03  Florian Weimer  <fweimer@redhat.com>
33341
33342         [BZ #21885]
33343         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33344         on memory allocation failure.
33345
33346 2017-08-03  Alan Modra  <amodra@gmail.com>
33347
33348         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33349         tst-tlsopt-powerpc.c with function name change and no test harness.
33350         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33351         Call tls_get_addr_opt_test.
33352         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33353         (modules-names): Add mod-tlsopt-powerpc.
33354         (mod-tlsopt-powerpc.so-no-z-defs): Define.
33355         (tst-tlsopt-powerpc): Depend on .so.
33356         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33357         define.  Expand use in TLS_GD and TLS_LD.
33358
33359 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33360
33361         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33362         function.
33363         * sysdeps/posix/shm_open.c: Include <pthread.h>.
33364
33365 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
33366
33367         [BZ #21686]
33368         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33369         comparing size with that of double.
33370         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33371         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33372         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33373         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33374         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33375         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33376         unsigned __int128 types.
33377
33378 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
33379
33380         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33381         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33382         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33383         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33384         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33385
33386 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33387
33388         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33389
33390 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33391
33392         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33393         of SHARED.
33394         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33395         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33396         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33397         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33398         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33399         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33400         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33401
33402 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
33403
33404         [BZ #21685]
33405         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33406         bit-field expressions passed to sizeof or typeof.
33407         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33408         (__TGMATH_F128): Likewise.
33409         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33410         (__TGMATH_CF128): Likewise.
33411         (__TGMATH_UNARY_REAL_ONLY): Likewise.
33412         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33413         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33414         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33415         (__TGMATH_BINARY_REAL_ONLY): Likewise.
33416         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33417         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33418         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33419         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33420         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33421         (__TGMATH_UNARY_REAL_IMAG): Likewise.
33422         (__TGMATH_UNARY_IMAG): Likewise.
33423         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33424         (__TGMATH_BINARY_REAL_IMAG): Likewise.
33425         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33426         type.
33427         (define_vars_for_type): Handle bit_field type specially.
33428         (Tests.__init__): Declare structure with bit-field element.
33429
33430 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
33431
33432         [BZ #21791]
33433         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33434         (MEMCPY_CHK): Define only if SHARED is defined.
33435         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33436         Likewise.
33437         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33438         Likewise.
33439
33440 See ChangeLog.18 for earlier changes.