Add support for GCC 9 attribute copy.
[glibc.git] / ChangeLog
blobe43fd3e9876d0b3332985b840090493a00e39b27
1 2018-11-09  Martin Sebor  <msebor@redhat.com>
3         * include/libc-symbols.h (__attribute_copy__): Define macro unless
4         it's already defined.
5         (_strong_alias): Use __attribute_copy__.
6         (_weak_alias,  __hidden_ver1,  __hidden_nolink2): Same.
7         * misc/sys/cdefs.h (__attribute_copy__): New macro.
8         * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
9         * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
10         * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11         * sysdeps/x86_64/multiarch/memset.c (memset): Same.
12         * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
13         * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
14         * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
15         * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
16         * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
17         * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
18         * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
19         * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
20         * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
21         * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
22         * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
23         * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
24         * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
26 2018-11-09  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
28         * misc/tst-efgcvt.c: Include support/check.h and
29         support/test-driver.c.  Do not include test-skeleton.c.
30         (error_count): Remove.
31         (output_error): Replace increments to error_count with calls to
32         support_record_failure.
33         (output_r_error): Likewise.
34         (special): Likewise.
35         (do_test): Unconditionally return zero.
36         (TEST_FUNCTION): Remove.
38 2018-11-09  Joseph Myers  <joseph@codesourcery.com>
40         * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
41         not $(@D)/scratch.
42         ($(linknamespace-header-tests)): Likewise.
44         * conform/conformtest.py: New file.
45         * conform/conformtest.pl: Remove.
46         * conform/GlibcConform.pm: Likewise.
47         * conform/glibcconform.py (KEYWORDS_C90): New constant.
48         (KEYWORDS_C99): Likewise.
49         (KEYWORDS): Likewise.
50         * conform/Makefile ($(conformtest-header-tests)): Use
51         conformtest.py instead of conformtest.pl.  Do not pass --tmpdir
52         option.  Use --header instead of --headers.
53         * conform/data/arpa/inet.h-data: Remove trailing semicolons on
54         function entries.
55         * conform/data/spawn.h-data: Likewise.
56         * conform/data/fcntl.h-data (openat): Add space after function
57         name.
58         * conform/data/wchar.h-data (wcscasecmp): Likewise.
59         (wcscasecmp_l): Likewise.
60         * conform/data/termios.h-data (c_cc): Add space after element
61         name.
63 2018-11-08  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
65         * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
66         instead of manually comparing and reporting mismatching strings.
67         * misc/tst-ldbl-error.c (do_one_test): Likewise.
68         * misc/tst-ldbl-warn.c (do_one_test): Likewise.
70 2018-11-08  Joseph Myers  <joseph@codesourcery.com>
72         * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
73         __ASSUME_SOCKETCALL.
74         * sysdeps/unix/sysv/linux/i386/kernel-features.h
75         (__ASSUME_SOCKETCALL): Remove.
76         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
77         (__ASSUME_SOCKETCALL): Likewise.
78         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
79         (__ASSUME_SOCKETCALL): Likewise.
80         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
81         (__ASSUME_SOCKETCALL): Likewise.
82         * sysdeps/unix/sysv/linux/s390/kernel-features.h
83         (__ASSUME_SOCKETCALL): Likewise.
84         * sysdeps/unix/sysv/linux/sh/kernel-features.h
85         (__ASSUME_SOCKETCALL): Likewise.
86         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
87         (__ASSUME_SOCKETCALL): Likewise.
89 2018-11-08  H.J. Lu  <hongjiu.lu@intel.com>
91         [BZ #23509]
92         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
93         note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
94         Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
95         Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
96         * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits,  Add
97         lc_unknown.
99 2018-11-08  Alexandra Hájková  <ahajkova@redhat.com>
101         [BZ #17630]
102         * resolv/tst-resolv-network.c: Add test for getnetbyname.
104 2018-11-07  Joseph Myers  <joseph@codesourcery.com>
106         [BZ #23867]
107         * sysdeps/unix/sysv/linux/arm/kernel-features.h
108         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
109         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
110         [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
112 2018-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
114         * support/support_test_compare_string.c
115         (support_test_compare_string): Fix printf format.
117 2018-11-07  Florian Weimer  <fweimer@redhat.com>
119         Implement TEST_COMPARE_STRING.
120         * support/check.h (TEST_COMPARE_STRING): Define.
121         (support_test_compare_string): Declare.
122         * support/Makefile (libsupport-routines): Add
123         support_test_compare_string.
124         (tests): Add tst-test_compare_string.
125         * support/support_test_compare_string.c: New file.
126         * support/tst-test_compare_string.c: Likewise.
128 2018-11-07  Andreas Schwab  <schwab@suse.de>
130         [BZ #23864]
131         * sysdeps/unix/sysv/linux/riscv/kernel-features.h
132         (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
133         Undef.
135 2018-11-06  Joseph Myers  <joseph@codesourcery.com>
137         [BZ #23862]
138         * sysdeps/unix/sysv/linux/sh/kernel-features.h
139         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
140         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
141         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
142         Likewise.
144 2018-11-06  Florian Weimer  <fweimer@redhat.com>
146         [BZ #17405]
147         * posix/Makefile (routines): Add spawn_faction_addchdir.
148         (tests): Add tst-spawn-chdir.
149         * posix/Versions (GLIBC_2.29): Add
150         posix_spawn_file_actions_addchdir_np.
151         * posix/spawn_faction_addchdir.c: New file.
152         * posix/spawn_faction_destroy.c
153         (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
154         * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
155         * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
156         chdir_action.
157         * posix/tst-spawn-chdir.c: New file.
158         * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
159         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
160         * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
161         posix_spawn_file_actions_addchdir_np.
162         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
163         Likewise.
164         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
165         Likewise.
166         * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
167         * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
168         Likewise.
169         * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
170         Likewise.
171         * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
172         Likewise.
173         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
174         Likewise.
175         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
176         Likewise.
177         * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
178         Likewise.
179         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
180         (GLIBC_2.29): Likewise.
181         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
182         (GLIBC_2.29): Likewise.
183         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
184         (GLIBC_2.29): Likewise.
185         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
186         (GLIBC_2.29): Likewise.
187         * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
188         Likewise.
189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
190         (GLIBC_2.29): Likewise.
191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
192         (GLIBC_2.29): Likewise.
193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
194         (GLIBC_2.29): Likewise.
195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
196         (GLIBC_2.29): Likewise.
197         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
198         Likewise.
199         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
200         Likewise.
201         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
202         Likewise.
203         * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
204         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
205         Likewise.
206         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
207         Likewise.
208         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
209         Likewise.
210         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
211         Likewise.
213 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
215         * misc/Makefile (tests): Add tst-ldbl-error.
216         * misc/tst-ldbl-error.c: New file.
218 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
220         * misc/Makefile (tests): Add tst-ldbl-warn.
221         * misc/tst-ldbl-warn.c: New file.
223 2018-11-06  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
225         * argp/Makefile (tests): Add tst-ldbl-argp.
226         * argp/tst-ldbl-argp.c: New file.
228 2018-11-05  Arjun Shankar  <arjun@redhat.com>
230         * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
231         __gconv_path_elem and call __gconv_get_path unconditionally.
233 2018-11-05  Andreas Schwab  <schwab@suse.de>
235         [BZ #22927]
236         * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
237         creating the first helper thread failed.
239 2018-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
241         * sysdeps/mach/hurd/msync.c: New file.
243 2018-11-02  Florian Weimer  <fweimer@redhat.com>
245         * support/shell-container.c (copy_func): Call
246         support_copy_file_range instead of copy_file_range to support
247         cross-device copies.
249 2018-11-02  Florian Weimer  <fweimer@redhat.com>
251         * support/test-container.c: Include <libc-pointer-arith.h> for
252         ALIGN_UP.
254 2018-11-01  Zong Li  <zong@andestech.com>
256         * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
257         (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
258         (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
259         (__FP_FRAC_SET_8): Add implementation for RV32 use.
261         * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
262         variable to avoid overlap arguments.
264 2018-11-01  Joseph Myers  <joseph@codesourcery.com>
266         * posix/bug-regex22.c (main): Use puts with distinct error
267         messages for unexpected success of re_compile_pattern, not printf
268         with NULL argument to %s.
270         * stdio-common/bug22.c: Include <libc-diag.h>.
271         (do_test): Disable -Wformat-overflow= warnings around fprintf
272         calls outputting more than INT_MAX characters.
273         * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
274         around printf call with NULL %s argument.
276         [BZ #23848]
277         * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
278         __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
279         Undefine.
280         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
281         (__ASSUME_RECVMSG_SYSCALL): Likewise.
282         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
283         (__ASSUME_SENDTO_SYSCALL): Likewise.
284         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
285         (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
286         [!__arch64__].
287         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
288         (__ASSUME_CONNECT_SYSCALL): Likewise.
289         [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
290         (__ASSUME_RECVFROM_SYSCALL): Likewise.
291         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
292         Define.
293         [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
294         Likewise.
295         [__LINUX_KERNEL_VERSION >= 0x040400]
296         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
297         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
298         Remove.
299         (listen): Likewise.
300         (setsockopt): Likewise.
302 2018-11-01  Fredrik Noring  <noring@nocrew.org>
304         * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
305         with the ISA override.
307 2018-10-31  Rafael Avila de Espindola  <rafael@espindo.la>
309         * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
310         #endif.
312 2018-10-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
314         * manual/errno.texi (EIEIO): Document how translators should
315         translate the error message.
316         * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d.  Avoid
317         printing trailing whitespaces refused by git.
318         * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
319         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
320         * hurd/Makefile (user-interfaces): Add pci.
322 2018-10-30  Joseph Myers  <joseph@codesourcery.com>
324         * conform/linknamespace.py: New file.
325         * conform/linknamespace.pl: Remove file.
326         * conform/Makefile ($(linknamespace-header-tests)): Use
327         linknamespace.py instead of linknamespace.pl.  Do not use --tmpdir
328         option.
330 2018-10-30  Florian Weimer  <fweimer@redhat.com>
332         * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
333         memory leaks.
335 2018-10-30  Florian Weimer  <fweimer@redhat.com>
337         * support/blob_repeat.c (allocate_big): Call mkstemp directly.
339 2018-10-30  Florian Weimer  <fweimer@redhat.com>
341         * stdlib/tst-strtod-overflow.c (do_test): Switch to
342         support_blob_repeat.
344 2018-10-30  Florian Weimer  <fweimer@redhat.com>
346         Avoid spurious test failures in stdlib/test-bz22786.
347         * support/Makefile (libsupport-routines): Add blob_repeat.
348         (tests): Add tst-support_blob_repeat.
349         * support/blob_repeat.h: New file.
350         * support/blob_repeat.c: Likewise.
351         * support/tst-support_blob_repeat.c: Likewise.
352         * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
353         support_blob_repeat_allocate.
355 2018-10-30  Andreas Schwab  <schwab@suse.de>
357         [BZ #23125]
358         * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
359         Don't use tail call.
360         * elf/tst-unwind-main.c: New file.
361         * elf/Makefile (tests): Add tst-unwind-main.
362         (CFLAGS-tst-unwind-main.c): Define.
364 2018-10-29  Sergi Almacellas Abellana <sergi@koolpi.com>
366         [BZ #23791]
367         * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
368         n_cs_precedes to 0.
369         * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
371 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
373         * conform/glibcconform.py: Do not import shutil.
374         (list_exported_functions): Use tempfile.TemporaryDirectory instead
375         of mkdtemp.
377         * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER.  Set
378         critic_missing for versions before 3.4.
379         * configure: Regenerated.
380         * manual/install.texi (Tools for Compilation): Document
381         requirement for Python to build glibc.
382         * INSTALL: Regenerated.
383         * Rules [PYTHON]: Make code unconditional.
384         * benchtests/Makefile [PYTHON]: Likewise.
385         * conform/Makefile [PYTHON]: Likewise.
386         * manual/Makefile [PYTHON]: Likewise.
387         * math/Makefile [PYTHON]: Likewise.
389 2018-10-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
391         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
392         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
393         answer to interrupt_operation, return EIEIO instead of EINTR.
394         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
395         _hurd_intr_rpc_msg_about_to global point to start of controlled
396         assembly snippet. Make it check canceled flag.
397         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
398         the _hurd_intr_rpc_msg_about_to point.
399         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
400         issue, remove cancel flag check.
402 2018-10-26  Joseph Myers  <joseph@codesourcery.com>
404         * scripts/build-many-glibcs.py: Remove compatibility for missing
405         os.cpu_count and re.fullmatch.
407 2018-10-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
409         [BZ #23822]
410         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
411         * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
412         * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
414 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
416         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
417         macro.
419 2018-10-25  Florian Weimer  <fweimer@redhat.com>
421         [BZ #23562]
422         [BZ #23821]
423         XFAIL siginfo_t si_band conform test on sparc64.
424         * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
425         (__SI_BAND_TYPE): Only override long int default type on sparc64.
426         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
427         (conformtest-xfail-conds): Add sparc64-linux.
428         * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
429         sparc64.
430         * conform/data/sys/wait.h-data (siginfo_t): Likewise.
432 2018-10-25  Joseph Myers  <joseph@codesourcery.com>
434         * elf/elf.h (NT_MIPS_DSP): New macro.
435         (NT_MIPS_FP_MODE): Likewise.
437 2018-10-25  Zong Li  <zong@andestech.com>
439         * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
440         name by adding the file extension (.so).
442 2018-10-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
444         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
445         (test-xfail-ISO11/threads.h/linknamespace,
446         test-xfail-ISO11/threads.h/conform): Add.
448 2018-10-24  Joseph Myers  <joseph@codesourcery.com>
450         * math/gen-libm-test.py: Import os.
451         (ALL_FLOATS_MANUAL): New constant.
452         (ALL_FLOATS_SUFFIX): Likewise.
453         (Ulps.all_functions): New function.
454         (real_all_ulps): Likewise.
455         (generate_err_table_sub): Likewise.
456         (generate_err_table): Likewise.
457         (main): Handle -s and -m options.
458         * manual/libm-err-tab.pl: Remove.
459         * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
460         instead of libm-err-tab.pl.
461         [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
462         != no].
463         * manual/install.texi (Tools for Compilation): Document
464         requirement for Python to build manual.
465         * INSTALL: Regenerated.
467 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
469         * bits/time64.h: New file.
470         * include/time.h: Replace internal_time_t with __time64_t.
471         * posix/bits/types (__time64_t): Add.
472         * stdlib/Makefile: Add bits/time64.h to includes.
473         * time/tzfile.c: Replace internal_time_t with __time64_t.
475 2018-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
477         * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
478         __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
479         __posix_spawn_file_actions_init, __posix_spawnattr_init,
480         __posix_spawnattr_destroy, __posix_spawnattr_setflags,
481         __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
482         prototype.
483         * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
484         * posix/spawn_faction_addclose.c
485         (__posix_spawn_file_actions_addclose): Add hidden definition.
486         * posix/spawn_faction_adddup2.c
487         (__posix_spawn_file_actions_adddup2): Likewise.
488         * posix/spawn_faction_destroy.c
489         (__posix_spawn_file_actions_destroy): Likewise.
490         * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
491         Likewise.
492         * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
493         * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
494         * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
495         Likewise.
496         * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
497         * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
498         Likewise.
500 2018-10-24  Andreas Schwab  <schwab@suse.de>
502         [BZ #18093]
503         * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
504         format cache.
505         * elf/cache.c (print_cache): Likewise.
507 2018-10-24  Albert ARIBAUD <albert.aribaud@3adev.fr>
509         * bits/timesize.h: New file.
510         * stdlib/Makefile (headers): Add bits/timesize.h.
511         * sysdeps/unix/sysv/linux/bits/msq-pad.h
512         (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
513         * sysdeps/unix/sysv/linux/bits/sem-pad.h
514         (__SEM_PAD_AFTER_TIME): Likewise.
515         * sysdeps/unix/sysv/linux/bits/shm-pad.h
516         (__SHM_PAD_AFTER_TIME): Likewise.
517         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
518         (__MSQ_PAD_BEFORE_TIME): Likewise.
519         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
520         (__SEM_PAD_BEFORE_TIME): Likewise.
521         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
522         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
523         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
524         (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
525         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
526         (__MSQ_PAD_BEFORE_TIME): Likewise.
527         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
528         (__SEM_PAD_BEFORE_TIME): Likewise.
529         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
530         (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
531         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
532         (__MSQ_PAD_BEFORE_TIME): Likewise.
533         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
534         (__SEM_PAD_BEFORE_TIME): Likewise.
535         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
536         (__SHM_PAD_BEFORE_TIME): Likewise.
537         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
538         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
539         * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
541 2018-10-24  H.J. Lu  <hongjiu.lu@intel.com>
543         * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
544         USE_RDTSCP is defined.
545         * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
546         USE_RDTSCP is defined.
548 2018-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
550         * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
551         defined.
553         [BZ #23709]
554         * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
555         independently of other flags.
557 2018-10-23  Florian Weimer  <fweimer@redhat.com>
559         * time/tst-mktime2.c (N_STRINGS): Remove.
560         (set_timezone): New function.
561         (spring_forward_gap): Call it.  Use FAIL_EXIT1.
562         (mktime_test1): Report localtime failure and check errno value.
563         Use TEST_COMPARE.
564         (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
565         (do_test): Remove alarm call. Use set_timezone and array_length.
567 2018-10-23  Andreas Schwab  <schwab@suse.de>
569         * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
570         (__start_context): Use END instead of PSEUDO_END.
572 2018-10-22  Joseph Myers  <joseph@codesourcery.com>
574         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
575         version to 4.19.
577         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
578         version to 4.19.
580         [BZ #23793]
581         * wcsmbs/c32rtomb.c: New file.
582         * wcsmbs/mbrtoc32.c: Likewise.
583         * wcsmbs/tst-c32-state.c: Likewise.
584         * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
585         * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
586         * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
587         (tests): Add tst-c32-state.
588         [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
589         $(gen-locales).
591 2018-10-21  H.J. Lu  <hongjiu.lu@intel.com>
593         * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
594         (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
596 2018-10-19  Joseph Myers  <joseph@codesourcery.com>
598         [BZ #23794]
599         * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
600         pair and return 0 in that case, and use saved character to
601         interpret following character.
602         * wcsmbs/tst-c16-surrogate.c: New file.
603         * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
604         [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
605         Depend on $(gen-locales)
607 2018-10-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
609         [BZ #23562]
610         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
611         (struct siginfo_t): Use correct type for si_band.
613 2018-10-19  Florian Weimer  <fweimer@redhat.com>
615         [BZ #23689]
616         * resource/bits/types/struct_rusage.h (struct rusage): Update
617         comment on struct.  Remove extraneous field comment.
619 2018-10-18  David S. Miller  <davem@davemloft.net>
621         * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
622         * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
623         * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
624         sysdep_routines in subdir elf.
625         * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
626         version for __vdso_clock_gettime.
627         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
628         Define.
629         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
630         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
632         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
634 2018-10-17  H.J. Lu  <hongjiu.lu@intel.com>
636         * sysdeps/i386/init-arch.h: Removed.
637         * sysdeps/i386/i586/init-arch.h: Likewise.
638         * sysdeps/i386/i686/init-arch.h: Likewise.
639         * sysdeps/i386/i686/hp-timing.h: Likewise.
640         * sysdeps/x86_64/hp-timing.h: Likewise.
641         * sysdeps/i386/isa.h: New file.
642         * sysdeps/i386/i586/isa.h: Likewise.
643         * sysdeps/i386/i686/isa.h: Likewise.
644         * sysdeps/x86_64/isa.h: Likewise.
645         * sysdeps/x86/hp-timing.h: New file.
646         * sysdeps/x86/init-arch.h: Include <isa.h>.
648 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
650         * math/libm-test-pow.inc (pow_test_data): Do not allow
651         divide-by-zero exception for pow(+/- 0, -Inf).
653 2018-10-17  Zack Weinberg  <zackw@panix.com>
655         * manual/job.texi (Job Control is Optional): Remove node, as
656         job control has not been optional in quite some time.
657         (Job Control): Mention briefly that systems older than
658         POSIX.1-2001 might not support job control.
659         * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
660         defined on systems conforming to POSIX.1-2001.
662 2018-10-17  Arjun Shankar  <arjun@redhat.com>
664         [BZ #22062]
665         * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
666         indentation.
667         * (__gconv_read_conf): Mark function static.
668         * (once): New static variable.
669         * (__gconv_load_conf): New function.
670         * iconv/gconv_int.h (__gconv_load_conf): Likewise.
671         * iconv/gconv_db.c (once): Remove static variable.
672         * (__gconv_compare_alias): Use __gconv_load_conf instead of
673         __gconv_read_conf.
674         * (__gconv_find_transform): Likewise.
675         * iconv/tst-iconv-mt.c: New test.
676         * iconv/Makefile: Add tst-iconv_mt.
678 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
680         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
681         bits/shm-pad.h.
682         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
683         (shmatt_t): Define as __syscall_ulong_t.
684         (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
685         and [__SHM_PAD_AFTER_TIME].
686         (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
687         Define shm_segsz and associated padding based on
688         [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
689         Use __syscall_ulong_t instead of unsigned long int.
690         [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
691         unsigned long int.
692         [__USE_MISC] (struct shm_info): Likewise.
693         * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
694         * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
695         * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
696         * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
697         * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
698         * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
699         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
700         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
701         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
702         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
703         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
705         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
706         bits/shmlba.h.
707         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
708         (SHMLBA): Remove macro.
709         (__getpagesize): Remove function declaration.
710         * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
711         <bits/shmlba.h>.
712         (SHMLBA): Remove macro.
713         * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
714         <bits/shmlba.h>.
715         (SHMLBA): Remove macro.
716         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
717         <bits/shmlba.h>.
718         (SHMLBA): Remove macro.
719         (__getpagesize): Remove function declaration.
720         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
721         <bits/shmlba.h>.
722         (SHMLBA): Remove macro.
723         (__getshmlba): Remove function declaration.
724         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
725         (SHMLBA): Remove macro.
726         (__getpagesize): Remove function declaration.
727         * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
728         * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
729         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
730         * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
731         * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
732         * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
733         * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
734         * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
735         * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
736         * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
738 2018-10-17  Stefan Liebler  <stli@linux.ibm.com>
740         [BZ #23275]
741         * nptl/tst-mutex10.c: New File.
742         * nptl/Makefile (tests): Add tst-mutex10.
743         (tst-mutex10-ENV): New variable.
744         * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
745         Ensure that elision path is used if elision is available.
746         * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
747         Likewise.
748         * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
749         Likewise.
750         * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
751         (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
752         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
753         * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
754         Likewise.
755         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
756         (__pthread_mutex_cond_lock_adjust): Likewise.
757         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
758         Likewise.
759         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
760         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
761         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
762         * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
763         Add comments.
764         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
765         Use atomic_load_relaxed and atomic_store_relaxed.
766         * nptl/pthread_mutex_init.c (__pthread_mutex_init):
767         Use atomic_store_relaxed.
769 2018-10-17  Andreas Schwab  <schwab@suse.de>
771         * benchtests/bench-strtod.c (TIMEOUT): Don't define.
772         * crypt/badsalttest.c (TIMEOUT): Likewise.
773         * crypt/sha256c-test.c (TIMEOUT): Likewise.
774         * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
775         * io/test-lfs.c (TIMEOUT): Likewise.
776         * libio/tst-atime.c (TIMEOUT): Likewise.
777         * localedata/tst-leaks.c (TIMEOUT): Likewise.
778         * nptl/tst-cancel19.c (TIMEOUT): Likewise.
779         * nptl/tst-cancel22.c (TIMEOUT): Likewise.
780         * nptl/tst-cancel25.c (TIMEOUT): Likewise.
781         * nptl/tst-cancel7.c (TIMEOUT): Likewise.
782         * nptl/tst-cond-except.c (TIMEOUT): Likewise.
783         * nptl/tst-cond11.c (TIMEOUT): Likewise.
784         * nptl/tst-cond14.c (TIMEOUT): Likewise.
785         * nptl/tst-cond15.c (TIMEOUT): Likewise.
786         * nptl/tst-cond24.c (TIMEOUT): Likewise.
787         * nptl/tst-cond25.c (TIMEOUT): Likewise.
788         * nptl/tst-kill2.c (TIMEOUT): Likewise.
789         * nptl/tst-kill3.c (TIMEOUT): Likewise.
790         * nptl/tst-mutex4.c (TIMEOUT): Likewise.
791         * nptl/tst-mutex5.c (TIMEOUT): Likewise.
792         * nptl/tst-mutex9.c (TIMEOUT): Likewise.
793         * nptl/tst-once2.c (TIMEOUT): Likewise.
794         * nptl/tst-once3.c (TIMEOUT): Likewise.
795         * nptl/tst-once4.c (TIMEOUT): Likewise.
796         * nptl/tst-robust8.c (TIMEOUT): Likewise.
797         * nptl/tst-robust9.c (TIMEOUT): Likewise.
798         * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
799         * nptl/tst-sem14.c (TIMEOUT): Likewise.
800         * nptl/tst-sem6.c (TIMEOUT): Likewise.
801         * nptl/tst-signal3.c (TIMEOUT): Likewise.
802         * nptl/tst-spin4.c (TIMEOUT): Likewise.
803         * nptl/tst-tls3.c (TIMEOUT): Likewise.
804         * nptl/tst-tls4.c (TIMEOUT): Likewise.
805         * posix/tst-chmod.c (TIMEOUT): Likewise.
806         * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
807         * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
808         * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
809         * posix/tst-regex2.c (TIMEOUT): Likewise.
810         * posix/tst-waitid.c (TIMEOUT): Likewise.
811         * rt/tst-aio.c (TIMEOUT): Likewise.
812         * rt/tst-aio10.c (TIMEOUT): Likewise.
813         * rt/tst-aio4.c (TIMEOUT): Likewise.
814         * rt/tst-aio5.c (TIMEOUT): Likewise.
815         * rt/tst-aio6.c (TIMEOUT): Likewise.
816         * rt/tst-aio64.c (TIMEOUT): Likewise.
817         * rt/tst-aio7.c (TIMEOUT): Likewise.
818         * rt/tst-aio9.c (TIMEOUT): Likewise.
819         * rt/tst-clock.c (TIMEOUT): Likewise.
820         * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
821         * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
822         * rt/tst-mqueue2.c (TIMEOUT): Likewise.
823         * rt/tst-mqueue4.c (TIMEOUT): Likewise.
824         * rt/tst-mqueue5.c (TIMEOUT): Likewise.
825         * rt/tst-timer4.c (TIMEOUT): Likewise.
826         * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
827         * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
828         * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
829         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
830         * time/tst-ftime.c (TIMEOUT): Likewise.
831         * timezone/tst-tzset.c (TIMEOUT): Likewise.
833 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
835         * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
836         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
837         for thunderX2.
839 2018-10-15  Joseph Myers  <joseph@codesourcery.com>
841         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
842         bits/sem-pad.h.
843         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
844         instead of <bits/wordsize.h>.
845         (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
846         and [__SEM_PAD_AFTER_TIME].
847         (struct semid_ds): Define time fields using __SEM_PAD_TIME.  Use
848         __syscall_ulong_t instead of unsigned long int.
849         * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
850         * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
851         * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
852         * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
853         * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
854         * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
855         * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
856         * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
857         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
858         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
859         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
861 2018-10-14  Paul Eggert  <eggert@cs.ucla.edu>
863         regex: simplify by using intprops.h
864         [BZ#23744]
865         * posix/regex_internal.h [_LIBC]: Include intprops.h.
866         (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
867         intprops.h defines them.
869         regex: __builtin_expect → __glibc_unlikely
870         [BZ#23744]
871         This refactoring was prompted by a problem when the regex code is
872         used as part of Gnulib and when the builder’s compiler does not grok
873         __builtin_expect.  Problem reported for Gawk by Nelson H.F. Beebe in:
874         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
875         Although this refactoring does not fix the problem directly,
876         we might as well have Gawk use the now-preferred glibc style for when
877         __builtin_expect is unavailable.
878         * posix/regex_internal.h (BE): Remove.
879         All uses replaced by __glibc_unlikely or __glibc_likely.
881 2018-10-11  Joseph Myers  <joseph@codesourcery.com>
883         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
884         bits/msq-pad.h.
885         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
886         instead of <bits/wordsize.h>.
887         (msgqnum_t): Define as __syscall_ulong_t.
888         (msglen_t): Likewise.
889         (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
890         and [__MSQ_PAD_AFTER_TIME].
891         (struct msqid_ds): Define time fields using __MSQ_PAD_TIME.  Use
892         __syscall_ulong_t instead of unsigned long int.
893         * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
894         * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
895         * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
896         * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
897         * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
898         * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
899         * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
900         * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
901         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
902         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
903         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
905 2018-10-10  Joseph Myers  <joseph@codesourcery.com>
907         * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
908         (struct shmid_ds): Condition padding after time fields on
909         [__WORDSIZE == 32].
910         * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
911         * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
912         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
914         * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
915         (struct semid_ds): Condition padding after time fields on
916         [__WORDSIZE == 32].
917         * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
918         * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
919         * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
920         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
922         * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
923         (struct msqid_ds): Condition padding after time fields on
924         [__WORDSIZE == 32].
925         * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
926         * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
927         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
928         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
930 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
932         * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
934 2018-10-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
936         * libio/tst-readline.c (TIMEOUT): Define.
938 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
940         mktime fix for Gnulib + coreutils
941         [BZ#23745]
942         This fix affects only Gnulib.  Problem discovered when
943         mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
944         * time/mktime.c:
945         (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
946         Do not define since it is not used.  Defining an unused static
947         function prompts a warning from GCC when Coreutils is configured
948         with --enable-gcc-warnings.
950 2018-10-08  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
952         * benchtests/scripts/compare_bench.py (main): set float type on
953         threshold argument.
955 2018-10-08  Rafal Luzynski  <digitalfreak@lingonborough.com>
957         [BZ #23740]
958         * localedata/locales/kl_GL (mon): Update, the relative case.
959         (alt_mon): Add, fill with month names in the nominative case.
960         (d_t_fmt): Set to "%a %b %d %Y %T %Z".
961         (d_fmt): Set to "%b %d %Y".
963 2018-10-04  Joseph Myers  <joseph@codesourcery.com>
965         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
966         <bits/mman-linux.h>.
967         (PROT_READ): Don't define here.
968         (PROT_WRITE): Likewise.
969         (PROT_EXEC): Likewise.
970         (PROT_NONE): Likewise.
971         (PROT_GROWSDOWN): Likewise.
972         (PROT_GROWSUP): Likewise.
973         (MAP_SHARED): Likewise.
974         (MAP_PRIVATE): Likewise.
975         [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
976         [__USE_MISC] (MAP_FILE): Likewise.
977         [__USE_MISC] (MAP_ANONYMOUS): Likewise.
978         [__USE_MISC] (MAP_ANON): Likewise.
979         [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
980         [__USE_MISC] (MAP_HUGE_MASK): Likewise.
981         (MCL_CURRENT): Likewise.
982         (MCL_FUTURE): Likewise.
983         (MCL_ONFAULT): Likewise.
984         [__USE_MISC] (MADV_NORMAL): Likewise.
985         [__USE_MISC] (MADV_RANDOM): Likewise.
986         [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
987         [__USE_MISC] (MADV_WILLNEED): Likewise.
988         [__USE_MISC] (MADV_DONTNEED): Likewise.
989         [__USE_MISC] (MADV_FREE): Likewise.
990         [__USE_MISC] (MADV_REMOVE): Likewise.
991         [__USE_MISC] (MADV_DONTFORK): Likewise.
992         [__USE_MISC] (MADV_DOFORK): Likewise.
993         [__USE_MISC] (MADV_HWPOISON): Likewise.
994         [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
995         [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
996         [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
997         [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
998         [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
999         (__MAP_ANONYMOUS): New macro.
1000         [__USE_MISC] (MAP_TYPE): Undefine and redefine after
1001         <bits/mman-linux.h> inclusion.
1002         (MAP_FIXED): Likewise.
1003         (MS_SYNC): Likewise.
1004         (MS_ASYNC): Likewise.
1005         (MS_INVALIDATE): Likewise.
1006         [__USE_MISC] (MADV_MERGEABLE): Likewise.
1007         [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
1008         [__USE_MISC] (MADV_HUGEPAGE): Likewise.
1009         [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
1010         [__USE_MISC] (MADV_DONTDUMP): Likewise.
1011         [__USE_MISC] (MADV_DODUMP): Likewise.
1012         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
1013         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
1015         [BZ #23735]
1016         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
1017         Define.
1018         * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
1019         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
1020         Add test-nldbl-redirect.
1021         [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
1022         [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
1023         $(objpfx)libnldbl_nonshared.a.
1025 2018-10-04  Stefan Liebler  <stli@linux.ibm.com>
1027         * support/support.h (support_objdir_elf_ldso): New variable.
1028         * support/support_paths.c (support_objdir_elf_ldso): Likewise.
1029         * support/Makefile (CFLAGS-support_paths.c): Add definition
1030         for OBJDIR_ELF_LDSO_PATH.
1031         * support/test-container.c (main): Search for the ld.so
1032         which is also used by the testsuite.
1034 2018-10-02  Rafal Luzynski  <digitalfreak@lingonborough.com>
1036         [BZ #20209]
1037         * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
1038         should be "sap" rather than "sab".
1039         (day): Fix spelling of Sunday, should be "sapaat" rather than
1040         "sabaat".
1042 2018-10-02  Joseph Myers  <joseph@codesourcery.com>
1044         * math/libm-test-fma.inc (fma_test_data): Add more tests.
1046 2018-10-02  Martin Jansa  <Martin.Jansa@gmail.com>
1048         [BZ #19444]
1049         * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
1050         DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
1051         DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
1053 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1055         * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
1057 2018-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1059         * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
1060         Add -mrtm.
1061         (CFLAGS-elision-unlock.c): Likewise.
1062         (CFLAGS-elision-timed.c): Likewise.
1063         (CFLAGS-elision-trylock.c): Likewise.
1064         * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
1066 2018-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1068         [BZ #21037]
1069         * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
1070         * libio/freopen.c (freopen): Sync stream before reopen and adjust to
1071         new fd_to_filename interface.
1072         * libio/freopen64.c (freopen64): Likewise.
1073         * libio/tst-memstream.h: New file.
1074         * libio/tst-memstream4.c: Likewise.
1075         * libio/tst-wmemstream4.c: Likewise.
1076         * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
1077         * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
1078         and remove internal dynamic allocation.
1080 2018-10-01  Joseph Myers  <joseph@codesourcery.com>
1082         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
1083         (MREMAP_MAYMOVE): Do not define here.
1084         [__USE_GNU] (MREMAP_FIXED): Likewise.
1085         * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
1086         (MREMAP_MAYMOVE): Define here instead.
1087         [__USE_GNU] (MREMAP_FIXED): Likewise.
1088         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
1089         (MREMAP_MAYMOVE): Remove.
1090         [__USE_GNU] (MREMAP_FIXED): Likewise.
1092 2018-09-28  Joseph Myers  <joseph@codesourcery.com>
1094         * math/fromfp.h: Do not include <math_private.h>.
1095         * math/s_cacosh_template.c: Likewise.
1096         * math/s_casin_template.c: Likewise.
1097         * math/s_casinh_template.c: Likewise.
1098         * math/s_ccos_template.c: Likewise.
1099         * math/s_cproj_template.c: Likewise.
1100         * math/s_fdim_template.c: Likewise.
1101         * math/s_fmaxmag_template.c: Likewise.
1102         * math/s_fminmag_template.c: Likewise.
1103         * math/s_iseqsig_template.c: Likewise.
1104         * math/s_ldexp_template.c: Likewise.
1105         * math/s_nextdown_template.c: Likewise.
1106         * math/w_log1p_template.c: Likewise.
1107         * math/w_scalbln_template.c: Likewise.
1108         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
1109         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
1110         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
1111         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
1112         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
1113         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
1114         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
1115         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
1116         * sysdeps/i386/fpu/s_atanl.c: Likewise.
1117         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
1118         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
1119         * sysdeps/i386/fpu/s_fdim.c: Likewise.
1120         * sysdeps/i386/fpu/s_logbl.c: Likewise.
1121         * sysdeps/i386/fpu/s_rintl.c: Likewise.
1122         * sysdeps/i386/fpu/s_significandl.c: Likewise.
1123         * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
1124         * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
1125         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1126         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
1127         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
1128         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
1129         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
1130         * sysdeps/ieee754/k_standardf.c: Likewise.
1131         * sysdeps/ieee754/k_standardl.c: Likewise.
1132         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1133         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
1134         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
1135         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
1136         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
1137         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
1138         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
1139         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
1140         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
1141         * sysdeps/ieee754/s_signgam.c: Likewise.
1142         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
1143         * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
1144         * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
1145         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
1146         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
1147         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
1148         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
1149         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
1150         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
1151         * sysdeps/riscv/rvd/s_finite.c: Likewise.
1152         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
1153         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
1154         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
1155         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
1156         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
1157         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
1158         * sysdeps/riscv/rvf/fegetround.c: Likewise.
1159         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
1160         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
1161         * sysdeps/riscv/rvf/fesetround.c: Likewise.
1162         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
1163         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
1164         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
1165         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
1166         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
1167         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
1168         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
1169         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
1170         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
1171         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
1172         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
1173         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
1174         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
1175         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
1176         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
1177         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
1178         * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
1179         <math_private.h>.
1180         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
1182 2018-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1184         [BZ #23716]
1185         * sysdeps/i386/dl-cet.c: Removed.
1186         * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
1187         prototype.
1188         (_dl_runtime_profile_shstk): Likewise.
1189         (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
1190         _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
1192 2018-09-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1194         [BZ #23579]
1195         * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
1196         do_test_with_invalid_iov): New tests.
1197         * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
1198         Call do_test_with_invalid_fd and do_test_with_invalid_iov.
1199         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
1200         errno is ENOSYS.
1201         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
1202         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
1203         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
1205 2018-09-27  Joseph Myers  <joseph@codesourcery.com>
1207         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1208         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
1209         (MATH_REDIRECT_BINARY_ARGS): New macro.
1210         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1211         && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
1212         * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
1213         header inclusion.
1214         * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
1215         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
1216         * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
1217         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1218         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
1219         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1220         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
1221         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
1222         Likewise.
1223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
1224         Likewise.
1225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
1226         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
1227         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
1228         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
1229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
1230         Likewise.
1231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
1232         Likewise.
1233         * sysdeps/generic/math_private_calls.h
1234         [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
1235         Do not declare and define as an inline function.
1236         * math/divtc3.c (__divtc3): Use copysign functions instead of
1237         __copysign variants.
1238         * math/multc3.c (__multc3): Likewise.
1239         * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
1240         * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
1241         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
1242         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
1243         Likewise.
1244         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
1245         (__ieee754_yn): Likewise.
1246         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
1247         * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
1248         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
1249         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
1250         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
1251         (__sin): Likewise.
1252         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
1253         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
1254         Likewise.
1255         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
1256         Likewise.
1257         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
1258         Likewise.
1259         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
1260         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
1261         Likewise.
1262         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
1263         (__ieee754_ynf): Likewise.
1264         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
1265         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
1266         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
1267         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
1268         Likewise.
1269         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1270         (__ieee754_ynl): Likewise.
1271         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
1272         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
1273         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1274         Likewise.
1275         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1276         (__ieee754_ynl): Likewise.
1277         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
1278         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
1279         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
1280         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1281         Likewise.
1282         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1283         (__ieee754_ynl)
1284         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
1285         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
1286         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
1287         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
1288         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
1290         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1291         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
1292         using MATH_REDIRECT.
1293         * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
1294         header inclusion.
1295         * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
1296         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
1297         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
1298         * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
1299         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
1300         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
1301         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
1302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
1303         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
1304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
1305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
1306         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
1307         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
1308         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
1309         (round): Redirect to __round.
1310         (__roundl): Call round instead of __round.
1311         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
1312         Remove macro.
1313         [_ARCH_PWR5X] (__roundf): Likewise.
1314         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
1315         functions instead of __round variants.
1316         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
1317         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
1318         Likewise.
1319         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
1320         Likewise.
1321         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
1322         Likewise.
1323         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
1324         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
1325         __lroundl.
1326         (__ieee754_expl): Call roundl instead of __roundl.
1328 2018-09-27  Andreas Schwab  <schwab@suse.de>
1330         [BZ #23717]
1331         * stdlib/tst-setcontext9.c (f1a): Make st2 static.
1332         (do_test): Make st1 static.
1334 2018-09-26  Andreas Schwab  <schwab@suse.de>
1336         [BZ #23707]
1337         * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
1338         * elf/Makefile (tests): Add tst-unwind-ctor.
1339         (modules-names): Add tst-unwind-ctor-lib.
1340         ($(objpfx)tst-unwind-ctor): Depend on
1341         $(objpfx)tst-unwind-ctor-lib.so.
1343 2018-09-26  Joseph Myers  <joseph@codesourcery.com>
1345         * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
1346         file.  Most contents moved from ....
1347         * sysdeps/unix/sysv/linux/bits/mman.h: ... here.  Move contents to
1348         and include <bits/mman-map-flags-generic.h>.
1349         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1350         (sysdep_headers): Add bits/mman-map-flags-generic.h.
1351         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
1352         <bits/mman-map-flags-generic.h>.
1353         [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
1354         macros defined in <bits/mman-map-flags-generic.h>.
1355         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
1356         <bits/mman-map-flags-generic.h>.
1357         [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
1358         defined in <bits/mman-map-flags-generic.h>.
1360 2018-09-26  Andreas Schwab  <schwab@suse.de>
1362         * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
1363         output.
1365 2018-09-25  Adam J. Richte  <adam_richter2004@yahoo.com>
1366             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1367             Fangrui Song  <maskray@google.com>
1369         [BZ #20480]
1370         * config.make.in (have-textrel_ifunc): New define.
1371         * configure.ac: Add check if linker supports textrel relocation with
1372         ifunc.
1373         * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
1374         tst-ifunc-textrel.
1375         (CFLAGS-tst-ifunc-textrel.c): New rule.
1376         * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
1377         DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
1378         * elf/tst-ifunc-textrel.c: New file.
1380 2018-09-25  Joseph Myers  <joseph@codesourcery.com>
1382         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
1383         <bits/procfs-prregset.h>.
1384         (prgregset_t): Define using __prgregset_t.
1385         (prfpregset_t): Define using __prfpregset_t.
1386         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1387         (sysdep_headers): Add bits/procfs-prregset.h.
1388         * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
1389         * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
1390         * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
1391         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
1393         * sysdeps/unix/sysv/linux/sys/procfs.h: Include
1394         <bits/procfs-id.h> and <bits/procfs-extra.h>.
1395         (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
1396         pr_uid and pr_gid.
1397         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1398         (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
1399         * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
1400         * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
1401         * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
1402         * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
1403         * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
1404         * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
1405         * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
1406         * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
1407         * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
1408         * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
1409         * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
1410         * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
1411         * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
1412         * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
1413         * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
1414         * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
1415         * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
1416         * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
1417         * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
1418         * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
1419         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
1420         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
1422         * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
1423         AArch64 version.  Include <bits/procfs.h>.
1424         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
1425         (sysdep_headers): Add bits/procfs.h.
1426         * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
1427         * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
1428         * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
1429         * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
1430         * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
1431         * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
1432         * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
1433         * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
1434         * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
1435         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
1436         * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
1437         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
1438         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
1439         * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
1440         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
1441         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
1442         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
1444 2018-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1446         * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
1447         Use libsupport.
1449 2018-09-25  Arjun Shankar  <arjun@redhat.com>
1451         * iconv/gconv_int.h (__gconv_path_elem): Remove.
1452         (__gconv_max_path_elem_len): Likewise.
1453         (__gconv_nmodules): Likewise.
1454         (__gconv_get_path): Likewise.
1455         (path_elem): Move to ...
1456         * iconv/gconv_conf.c: ... here.
1457         (__gconv_get_path): Mark function static.
1458         * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
1459         * iconv/gconv_open.c: ... here.
1461 2018-09-24  Andreas Schwab  <schwab@suse.de>
1463         * scripts/haveversions.awk: New file.
1464         * Makerules ($(common-objpfx)Versions.def)
1465         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
1466         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
1467         Move rules ...
1468         * Makeconfig ($(common-objpfx)Versions.def)
1469         ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
1470         ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
1471         ... here.
1472         ($(common-objpfx)Versions.mk): New rule.  Include it.
1473         * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
1474         Emit error if build-obsolete-nsl = yes.
1475         * manual/install.texi (Configuring and compiling): Describe
1476         --enable-obsolete-nsl as unavaiable after version 2.28.
1477         * INSTALL: Regenerate.
1479 2018-09-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1481         * NEWS: Add note about new TLE support on powerpc64le.
1482         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
1483         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
1484         __ununsed1.
1485         (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
1486         (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
1487         * sysdeps/powerpc/powerpc32/sysdep.h,
1488         sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
1489         ABORT_TRANSACTION): Remove macros.
1490         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
1491         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
1492         __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
1493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
1494         sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1495         sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
1496         usage.
1497         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
1499 2018-09-21  Rafal Luzynski  <digitalfreak@lingonborough.com>
1501         [BZ #10425]
1502         * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
1503         (date_fmt): Use "%a %-d %b %Y, %T, %Z".
1504         * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
1505         which is the same as in it_IT.
1506         (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
1507         (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
1509 2018-09-20  Joseph Myers  <joseph@codesourcery.com>
1511         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1512         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
1513         using MATH_REDIRECT.
1514         * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
1515         header inclusion.
1516         * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
1517         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
1518         * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
1519         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
1520         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
1521         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
1523         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
1524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
1525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
1526         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
1527         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
1528         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
1529         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
1530         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
1531         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
1532         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
1533         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
1534         (ceil): Redirect to __ceil.
1535         (floor): Redirect to __floor.
1536         (trunc): Redirect to __trunc.
1537         (__truncl): Call trunc instead of __trunc.
1538         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
1539         Remove macro.
1540         [_ARCH_PWR5X] (__truncf): Likewise.
1541         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
1542         trunc functions instead of __trunc variants.
1543         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
1544         Likewise.
1545         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
1546         Likewise.
1547         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1548         Likewise.
1549         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1550         Likewise.
1552         * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
1553         [__i586__ || __pentium__].
1554         [__i486__]: Handle explicitly.
1555         (HAS_CPUID): Define to 1 if above macros are undefined.
1556         (HAS_I586): Likewise.
1557         (HAS_I686): Likewise.
1559 2018-09-20  Florian Weimer  <fweimer@redhat.com>
1561         * misc/tst-gethostid.c: New file.
1562         * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
1563         (tst-gethostid): Link with -ldl.
1565 2018-09-20  Mingli Yu  <Mingli.Yu@windriver.com>
1567         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
1568         value from gethostbyname_r.
1570 2018-09-19  Carlos O'Donell  <carlos@redhat.com>
1572         * stdlib/tst-setcontext9.c (f1): Rename to...
1573         (f1a): ... this.
1574         (f1b): New function implementing lower half of f1 in alternate stack.
1576 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
1578         Fix mktime localtime offset confusion
1579         [BZ #23603]
1580         * include/time.h (__mktime_internal): The localtime offset is now
1581         of type long int instead of time_t.  This is the longstanding type
1582         in glibc, and it is more than enough to represent difference
1583         between localtime and gmtime even if it is 32 bits and time_t is
1584         64.  Changing it now will let us avoid an unnecessary change when
1585         time_t is widened to 64 bits on 32-bit platforms.
1586         * time/mktime-internal.h (mktime_offset_t): Now long int.
1588         Merge mktime, timegm from upstream Gnulib
1589         [BZ #23603][BZ #16346]
1590         This fixes some obscure problems with integer overflow.
1591         Although it looks scary, it is almost all a byte-for-byte copy
1592         from Gnulib, and the Gnulib code has been tested reasonably well.
1593         * include/intprops.h: New file, copied from Gnulib.
1594         * include/verify.h, time/mktime-internal.h:
1595         New tiny files, simplified from Gnulib.
1596         * time/mktime.c: Copy from Gnulib.  This has the following changes:
1597         Do not include config.h if DEBUG_MKTIME is nonzero.
1598         Include stdbool.h, intprops.h, verify.h.
1599         Include string.h only if needed.
1600         Include stdlib.h on MS-Windows.
1601         Include mktime-internal.h.
1602         (DEBUG_MKTIME): Default to 0, and simplify later uses.
1603         (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
1604         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
1605         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
1606         simplify later conditionals; default the others to zero.  Use
1607         these conditionals to express only the code needed on the current
1608         platform.  In uses of these conditionals, explicitly spell out how
1609         _LIBC affects things, so it’s easier to review from a glibc
1610         viewpoint.
1611         (WRAPV): Remove; no longer needed now that we have
1612         systematic overflow checking.
1613         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
1614         compartmentalize tzset issues.  Move system-dependent tzsettish
1615         code here from mktime.
1616         (verify): Remove; now done by verify.h.  All uses changed.
1617         (long_int): Use a more-conservative definition, to avoid
1618         integer overflow.
1619         (SHR): Remove, replacing with ...
1620         (shr): New function, which means we needn’t worry about side
1621         effects in args, and conversion analysis is simpler.
1622         (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
1623         (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
1624         (time_t_avg, time_t_add_ok): Remove.
1625         (mktime_min, mktime_max): New constants.
1626         (leapyear, isdst_differ): Use bool for booleans.
1627         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
1628         Use long_int, not time_t, for mktime differences.
1629         (long_int_avg): New function, replacing time_t_avg.
1630         INT_ADD_WRAPV replaces time_t_add_ok.
1631         (guess_time_tm): 6th arg is now long_int, not time_t const *.
1632         All uses changed.
1633         (convert_time): New function.
1634         (ranged_convert): Use it.
1635         (__mktime_internal): Last arg now points to mktime_offset_t, not
1636         time_t.  All uses changed.  This is a no-op on glibc, where
1637         mktime_offset_t is always time_t.  Use int, not time_t, for UTC
1638         offset guess.  Directly check for integer overflow instead of
1639         using a heuristic that works only 99.9...% of the time.
1640         Access *OFFSET only once, to avoid an unlikely race if the
1641         compiler delays a load and if this cascades into a signed integer
1642         overflow.
1643         (mktime): Move tzsettish code to my_tzset, and move
1644         localtime_offset to within mktime so that it doesn’t
1645         need a separate ifdef.
1646         (main) [DEBUG_MKTIME]: Speed up by using localtime_r
1647         instead of localtime.
1648         * time/timegm.c: Copy from Gnulib.  This has the following changes:
1649         Include mktime-internal.h.
1650         [!_LIBC]: Include config.h and time.h.  Do not include
1651         timegm.h or time_r.h.  Make __mktime_internal a macro,
1652         and include mktime-internal.h to get its declaration.
1653         (timegm): Temporary is now mktime_offset_t, not time_t.
1654         This affects only Gnulib.
1656 2018-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1658         [BZ #23637]
1659         * string/test-strstr.c (pr23637): New function.
1660         (test_main): Add tests with longer needles.
1661         * string/strcasestr.c (AVAILABLE): Fix readahead distance.
1662         * string/strstr.c (AVAILABLE): Likewise.
1664 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1666         * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
1668 2018-09-19  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1670         * NEWS: Mention pow improvements.
1671         * math/Makefile (type-double-routines): Add e_pow_log_data.
1672         * sysdeps/generic/math_private.h (__exp1): Remove.
1673         * sysdeps/i386/fpu/e_pow_log_data.c: New file.
1674         * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
1675         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
1676         contraction.
1677         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
1678         (exp_inline): Remove.
1679         (__ieee754_exp): Only single double input is handled.
1680         * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
1681         * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
1682         * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
1683         (__pow_log_data): Define.
1684         * sysdeps/ieee754/dbl-64/upow.h: Remove.
1685         * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
1686         * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
1687         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
1688         contraction.
1689         (CFLAGS-e_pow-fma4.c): Likewise.
1691 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1693         Simplify tzfile fstat failure code
1694         [BZ #21716]
1695         * time/tzfile.c (__tzfile_read): Simplify slightly.
1697         Fix tzfile low-memory assertion failure
1698         [BZ #21716]
1699         * time/tzfile.c (__tzfile_read): Check for memory exhaustion
1700         when registering time zone abbreviations.
1702 2018-09-18  Joseph Myers  <joseph@codesourcery.com>
1704         * sysdeps/unix/sysv/linux/bits/mman.h: New file.
1705         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
1706         * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
1707         * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
1708         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
1709         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
1710         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
1711         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1712         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1714         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
1715         __ceil.
1716         (__ceill): Call ceil instead of __ceil.
1717         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
1718         __floor.
1719         (__floorl): Call floor instead of __floor.
1721 2018-09-17  Joseph Myers  <joseph@codesourcery.com>
1723         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1724         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
1725         using MATH_REDIRECT.
1726         * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
1727         header inclusion.
1728         * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
1729         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
1730         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
1731         * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
1732         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
1733         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
1734         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
1735         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
1736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
1737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
1738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
1739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
1740         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
1741         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
1742         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
1743         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
1744         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
1745         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
1746         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
1747         Remove macro.
1748         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
1749         functions instead of __ceil variants.
1750         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
1751         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
1752         Likewise.
1753         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
1754         Likewise.
1755         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1756         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
1757         Likewise.
1758         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
1759         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
1761         [BZ #21286]
1762         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
1763         constant.
1764         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
1765         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
1766         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
1767         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
1768         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
1769         [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
1770         [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
1771         [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
1772         [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
1773         * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
1774         (ILL_BADIADDR): Remove constant.
1775         (TRAP_BRANCH): Likewise.
1776         (TRAP_HWBKPT): Likewise.
1778 2018-09-14  Joseph Myers  <joseph@codesourcery.com>
1780         [BZ #23656]
1781         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
1782         Remove [_MIPS_SIM = _ABIN32] conditional case.
1783         (struct elf_prpsinfo): Likewise.
1785         [BZ #23649]
1786         * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
1787         elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
1788         * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
1789         Likewise.
1790         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
1791         elf_prpsinfo): Likewise.
1792         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
1793         elf_prpsinfo): Likewise.
1794         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
1795         Likewise.
1797         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1798         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
1799         using MATH_REDIRECT.
1800         * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
1801         header inclusion.
1802         * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
1803         * sysdeps/alpha/fpu/s_rint.c: Likewise.
1804         * sysdeps/alpha/fpu/s_rintf.c: Likewise.
1805         * sysdeps/i386/fpu/s_rintl.c: Likewise.
1806         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1807         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
1808         * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
1809         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
1810         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
1811         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
1812         * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
1813         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
1814         * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
1815         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
1816         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
1817         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
1818         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
1819         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
1820         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
1821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
1822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
1823         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
1824         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
1825         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
1826         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
1827         * sysdeps/x86_64/fpu/math_private.h: Remove file.
1828         * math/e_scalb.c (invalid_fn): Use rint functions instead of
1829         __rint variants.
1830         * math/e_scalbf.c (invalid_fn): Likewise.
1831         * math/e_scalbl.c (invalid_fn): Likewise.
1832         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
1833         Likewise.
1834         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
1835         Likewise.
1836         * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
1837         * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
1838         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
1839         Likewise.
1840         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1841         Likewise.
1842         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
1843         Likewise.
1844         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
1845         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
1847         * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
1848         __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
1849         New macro.
1850         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1851         && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
1852         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1853         && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
1854         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1855         && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
1856         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1857         && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
1858         [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
1859         && !NO_MATH_REDIRECT] (floor): Likewise.
1860         * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
1861         header inclusion.
1862         * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
1863         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1864         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
1865         * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
1866         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
1867         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
1868         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
1869         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
1870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
1871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
1872         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
1873         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
1874         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
1875         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
1876         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
1877         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
1878         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
1879         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
1880         * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
1881         Remove macro.
1882         [_ARCH_PWR5X] (__floorf): Likewise.
1883         * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
1884         inline function.
1885         [__SSE4_1__] (__floorf): Likewise.
1886         * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
1887         instead of __floor variants.
1888         * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
1889         * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
1890         * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
1891         * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
1892         * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
1893         * math/w_tgamma_compat.c (__tgamma): Likewise.
1894         * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
1895         * math/w_tgammaf_compat.c (__tgammaf): Likewise.
1896         * math/w_tgammal_compat.c (__tgammal): Likewise.
1897         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
1898         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
1899         Likewise.
1900         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
1901         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
1902         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
1903         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
1904         Likewise.
1905         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
1906         * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
1907         Likewise.
1908         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
1909         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
1910         Likewise.
1911         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1912         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
1913         Likewise.
1914         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
1915         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1916         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
1917         * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
1918         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
1919         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
1921 2018-09-12  Joseph Myers  <joseph@codesourcery.com>
1923         * elf/Makefile (modules-names-tests): New variable.
1925 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1927         * NEWS: Mention log2 improvements.
1928         * math/Makefile (type-double-routines): Add e_log2_data.
1929         * sysdeps/i386/fpu/e_log2_data.c: New file.
1930         * sysdeps/ia64/fpu/e_log2_data.c: New file.
1931         * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
1932         * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
1933         * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
1934         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
1935         * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
1937 2018-09-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1939         * NEWS: Mention log improvement.
1940         * math/Makefile (type-double-routines): Add e_log_data.
1941         * sysdeps/i386/fpu/e_log_data.c: New file.
1942         * sysdeps/ia64/fpu/e_log_data.c: New file.
1943         * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
1944         * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
1945         * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
1946         * sysdeps/ieee754/dbl-64/ulog.h: Remove.
1947         * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
1948         * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
1950 2018-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1951             Xuepeng Guo  <xuepeng.guo@intel.com>
1953         [BZ #23606]
1954         * sysdeps/i386/start.S: Include <sysdep.h>
1955         (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
1956         enabled.  Add cfi_undefined (eip).
1958 2018-09-11  Joseph Myers  <joseph@codesourcery.com>
1960         * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
1961         (MOVQ): Likewise.
1962         (EXTRACT_WORDS64): Likewise.
1963         (INSERT_WORDS64): Likewise.
1964         (GET_FLOAT_WORD): Likewise.
1965         (SET_FLOAT_WORD): Likewise.
1967         * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
1968         argument.
1969         (Config.build_gcc): Use --disable-libsanitizer for first GCC
1970         build, but not for second build if --full-gcc.  Use
1971         --enable-languages=all for second build if --full-gcc.
1972         (get_parser): Add --full-gcc option.
1973         (main): Update call to Context.
1975 2018-09-10  Rafal Luzynski  <digitalfreak@lingonborough.com>
1977         [BZ #10797]
1978         * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
1979         Single Quotation Mark).
1980         (thousands_sep): Likewise.
1981         * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
1982         * localedata/locales/it_IT (thousands_sep): Use ".".
1983         (grouping): Use "3;3".
1985 2018-09-10  Joseph Myers  <joseph@codesourcery.com>
1987         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
1988         x86_64 and i686 configs using --enable-obsolete-rpc
1989         --enable-obsolete-nsl.
1991 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
1993         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1995 2018-09-06  Stefan Liebler  <stli@linux.ibm.com>
1997         * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
1998         Increment size of new_argv by one.
2000 2018-09-05  Rafal Luzynski  <digitalfreak@lingonborough.com>
2002         [BZ #17426]
2003         * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
2004         * localedata/locales/ar_IN (d_fmt): Likewise.
2005         * localedata/locales/bhb_IN (d_fmt): Likewise.
2006         * localedata/locales/bho_IN (d_fmt): Likewise.
2007         * localedata/locales/bn_BD (d_fmt): Likewise.
2008         * localedata/locales/bn_IN (d_fmt): Likewise.
2009         * localedata/locales/doi_IN (d_fmt): Likewise.
2010         * localedata/locales/gu_IN (d_fmt): Likewise.
2011         * localedata/locales/hi_IN (d_fmt): Likewise.
2012         * localedata/locales/hne_IN (d_fmt): Likewise.
2013         * localedata/locales/kn_IN (d_fmt): Likewise.
2014         * localedata/locales/mag_IN (d_fmt): Likewise.
2015         * localedata/locales/mai_IN (d_fmt): Likewise.
2016         * localedata/locales/mjw_IN (d_fmt): Likewise.
2017         * localedata/locales/ml_IN (d_fmt): Likewise.
2018         * localedata/locales/mni_IN (d_fmt): Likewise.
2019         * localedata/locales/mr_IN (d_fmt): Likewise.
2020         * localedata/locales/pa_IN (d_fmt): Likewise.
2021         * localedata/locales/raj_IN (d_fmt): Likewise.
2022         * localedata/locales/sat_IN (d_fmt): Likewise.
2023         * localedata/locales/sd_IN (d_fmt): Likewise.
2024         * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
2025         * localedata/locales/ta_IN (d_fmt): Likewise.
2026         * localedata/locales/ta_LK (d_fmt): Likewise.
2027         * localedata/locales/tcy_IN (d_fmt): Likewise.
2028         * localedata/locales/ur_IN (d_fmt): Likewise.
2030         * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
2031         * localedata/locales/ks_IN (d_fmt): Likewise.
2032         * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
2034         * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
2035         * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
2036         * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
2037         * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
2039 2018-09-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2041         * NEWS: Mention exp and exp2 improvements.
2042         * math/Makefile (libm-support): Remove t_exp.
2043         (type-double-routines): Add math_err and e_exp_data.
2044         * sysdeps/aarch64/libm-test-ulps: Update.
2045         * sysdeps/arm/libm-test-ulps: Update.
2046         * sysdeps/i386/fpu/e_exp_data.c: New file.
2047         * sysdeps/i386/fpu/math_err.c: New file.
2048         * sysdeps/i386/fpu/t_exp.c: Remove.
2049         * sysdeps/ia64/fpu/e_exp_data.c: New file.
2050         * sysdeps/ia64/fpu/math_err.c: New file.
2051         * sysdeps/ia64/fpu/t_exp.c: Remove.
2052         * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
2053         * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
2054         * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
2055         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
2056         * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
2057         * sysdeps/ieee754/dbl-64/math_config.h: New file.
2058         * sysdeps/ieee754/dbl-64/math_err.c: New file.
2059         * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
2060         * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
2061         * sysdeps/ieee754/dbl-64/uexp.h: Remove.
2062         * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
2063         * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
2064         * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
2065         * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
2066         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2067         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2069 2018-09-05  Joseph Myers  <joseph@codesourcery.com>
2071         * sysdeps/alpha/fpu/math_private.h: Remove.
2073         * sysdeps/generic/math_private.h
2074         [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
2075         Move this inline function ....
2076         [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
2077         * include/math.h [!_ISOMAC]: To here....
2079 2018-09-04  Joseph Myers  <joseph@codesourcery.com>
2081         * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
2082         code ....
2083         [!FE_HAVE_ROUNDING_MODES]: And this code ....
2084         * include/fenv.h [!_ISOMAC]: ... to here.
2085         * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
2086         (feraiseexcept): Likewise.
2087         * math/fromfp.h: Do not include <fenv_private.h>.
2088         * math/s_cexp_template.c: Likewise.
2089         * math/s_csin_template.c: Likewise.
2090         * math/s_csinh_template.c: Likewise.
2091         * math/s_ctan_template.c: Likewise.
2092         * math/s_ctanh_template.c: Likewise.
2093         * math/s_iseqsig_template.c: Likewise.
2094         * math/w_acos_compat.c: Likewise.
2095         * math/w_acosf_compat.c: Likewise.
2096         * math/w_acosl_compat.c: Likewise.
2097         * math/w_asin_compat.c: Likewise.
2098         * math/w_asinf_compat.c: Likewise.
2099         * math/w_asinl_compat.c: Likewise.
2100         * math/w_j0_compat.c: Likewise.
2101         * math/w_j0f_compat.c: Likewise.
2102         * math/w_j0l_compat.c: Likewise.
2103         * math/w_j1_compat.c: Likewise.
2104         * math/w_j1f_compat.c: Likewise.
2105         * math/w_j1l_compat.c: Likewise.
2106         * math/w_jn_compat.c: Likewise.
2107         * math/w_jnf_compat.c: Likewise.
2108         * math/w_log10_compat.c: Likewise.
2109         * math/w_log10f_compat.c: Likewise.
2110         * math/w_log10l_compat.c: Likewise.
2111         * math/w_log2_compat.c: Likewise.
2112         * math/w_log2f_compat.c: Likewise.
2113         * math/w_log2l_compat.c: Likewise.
2114         * math/w_log_compat.c: Likewise.
2115         * math/w_logf_compat.c: Likewise.
2116         * math/w_logl_compat.c: Likewise.
2117         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2118         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2119         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2120         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2121         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2122         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2123         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2124         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2125         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2126         * sysdeps/ieee754/k_standardl.c: Likewise.
2127         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2128         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
2129         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2130         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2131         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2132         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2133         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2134         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
2135         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2136         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
2137         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
2138         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2139         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2140         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2141         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2142         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2143         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2144         * math/w_ilogb_template.c: Include <fenv.h> instead of
2145         <fenv_private.h>.
2146         * math/w_llogb_template.c: Likewise.
2147         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
2148         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2150 2018-09-03  Joseph Myers  <joseph@codesourcery.com>
2152         * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
2153         * math/fromfp.h: Include <fenv_private.h>.
2154         * math/math-narrow.h: Likewise.
2155         * math/s_cexp_template.c: Likewise.
2156         * math/s_csin_template.c: Likewise.
2157         * math/s_csinh_template.c: Likewise.
2158         * math/s_ctan_template.c: Likewise.
2159         * math/s_ctanh_template.c: Likewise.
2160         * math/s_iseqsig_template.c: Likewise.
2161         * math/w_acos_compat.c: Likewise.
2162         * math/w_acosf_compat.c: Likewise.
2163         * math/w_acosl_compat.c: Likewise.
2164         * math/w_asin_compat.c: Likewise.
2165         * math/w_asinf_compat.c: Likewise.
2166         * math/w_asinl_compat.c: Likewise.
2167         * math/w_ilogb_template.c: Likewise.
2168         * math/w_j0_compat.c: Likewise.
2169         * math/w_j0f_compat.c: Likewise.
2170         * math/w_j0l_compat.c: Likewise.
2171         * math/w_j1_compat.c: Likewise.
2172         * math/w_j1f_compat.c: Likewise.
2173         * math/w_j1l_compat.c: Likewise.
2174         * math/w_jn_compat.c: Likewise.
2175         * math/w_jnf_compat.c: Likewise.
2176         * math/w_llogb_template.c: Likewise.
2177         * math/w_log10_compat.c: Likewise.
2178         * math/w_log10f_compat.c: Likewise.
2179         * math/w_log10l_compat.c: Likewise.
2180         * math/w_log2_compat.c: Likewise.
2181         * math/w_log2f_compat.c: Likewise.
2182         * math/w_log2l_compat.c: Likewise.
2183         * math/w_log_compat.c: Likewise.
2184         * math/w_logf_compat.c: Likewise.
2185         * math/w_logl_compat.c: Likewise.
2186         * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
2187         * sysdeps/aarch64/fpu/fesetround.c: Likewise.
2188         * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
2189         * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
2190         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2191         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2192         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
2193         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
2194         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2195         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2196         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2197         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2198         * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
2199         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
2200         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2201         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
2202         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
2203         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2204         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2205         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2206         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2207         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2208         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2209         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2210         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2211         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2212         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2213         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
2214         * sysdeps/ieee754/float128/float128_private.h: Likewise.
2215         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
2216         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2217         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2218         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
2219         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2220         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2221         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2222         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2223         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2224         * sysdeps/ieee754/k_standardl.c: Likewise.
2225         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2226         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
2227         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2228         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2229         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
2230         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
2231         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
2232         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2233         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2234         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2235         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2236         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2237         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2238         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2239         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
2240         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2241         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2242         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
2243         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
2244         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
2245         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
2246         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
2247         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2250         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
2251         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2252         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
2253         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
2254         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
2255         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
2256         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2257         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2258         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2259         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2260         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2261         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
2262         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2263         * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
2264         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
2265         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
2266         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
2267         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
2268         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
2269         * sysdeps/riscv/rvd/s_finite.c: Likewise.
2270         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
2271         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
2272         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
2273         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
2274         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
2275         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
2276         * sysdeps/riscv/rvf/fegetround.c: Likewise.
2277         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
2278         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
2279         * sysdeps/riscv/rvf/fesetround.c: Likewise.
2280         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
2281         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
2282         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
2283         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
2284         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
2285         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
2286         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
2287         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
2288         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
2289         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
2290         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
2291         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
2292         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
2293         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
2294         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
2295         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
2297 2018-08-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
2299         [BZ #20271]
2300         * include/stdio.h (__libc_fatal): Mention newline in comment.
2301         * grp/initgroups.c (internal_getgrouplist): Add missing newline.
2302         * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
2303         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2304         * nss/nsswitch.c (__nss_next2): Likewise.
2305         * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
2306         * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
2307         * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
2308         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
2309         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
2310         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
2311         * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
2312         * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
2313         * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
2314         * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
2315         * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
2316         * sysdeps/unix/sysv/linux/netlink_assert_response.c
2317         (__netlink_assert_response): Likewise.
2319 2018-08-31  Joseph Myers  <joseph@codesourcery.com>
2321         * conform/glibcconform.py: New file.
2322         * conform/list-header-symbols.py: Likewise.
2323         * conform/list-header-symbols.pl: Remove.
2324         * conform/Makefile (tests-special): Only add linknamespace tests
2325         if [PYTHON].
2326         ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
2328 2018-08-31  H.J. Lu  <hongjiu.lu@intel.com>
2330         [BZ #23597]
2331         * support/Makefile (libsupport-routines): Add
2332         support_copy_file_range and xcopy_file_range.
2333         * support/support.h: Include <sys/types.h>.
2334         (support_copy_file_range): New prototype.
2335         * support/support_copy_file_range.c: New file.  Copied and
2336         modified from io/copy_file_range-compat.c.
2337         * support/test-container.c (copy_one_file): Call xcopy_file_rang
2338         instead of copy_file_range.
2339         * support/xcopy_file_range.c: New file.
2340         * support/xunistd.h (xcopy_file_range): New prototype.
2342 2018-08-30  Carlos O'Donell  <carlos@redhat.com>
2344         * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
2345         xpthread_create and xpthread_join.
2347 2018-08-30  Florian Weimer  <fweimer@redhat.com>
2349         * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
2351 2018-08-30  Stefan Liebler  <stli@linux.ibm.com>
2353         * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
2354         if malloc fails.
2356 2018-08-29  Joseph Myers  <joseph@codesourcery.com>
2358         * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
2359         and minus_oflow as non-finite.
2361 2018-08-28  Joseph Myers  <joseph@codesourcery.com>
2363         * sysdeps/aarch64/fpu/fenv_private.h: New file.  Based on ....
2364         * sysdeps/aarch64/fpu/math_private.h: ... this file.  All contents
2365         moved to fenv_private.h except for ...
2366         (TOINT_INTRINSICS): Kept in math_private.h.
2367         (roundtoint): Likewise.
2368         (converttoint): Likewise.
2369         * sysdeps/arm/fenv_private.h: Change multiple-include guard to
2370         [ARM_FENV_PRIVATE_H].  Include next <fenv_private.h>.
2371         * sysdeps/arm/math_private.h: Remove.
2372         * sysdeps/generic/fenv_private.h: New file.  Contents moved from
2373         ....
2374         * sysdeps/generic/math_private.h: ... this file.  Include
2375         <stdbool.h>.  Do not include <fenv.h> or <get-rounding-mode.h>.
2376         Include <fenv_private.h>.  Remove functions and macros moved to
2377         fenv_private.h.
2378         * sysdeps/i386/fpu/math_private.h: Remove.
2379         * sysdeps/mips/math_private.h: Move to ....
2380         * sysdeps/mips/fpu/fenv_private.h: ... here.  Change
2381         multiple-include guard to [MIPS_FENV_PRIVATE_H].  Remove
2382         [__mips_hard_float] conditional.  Include next <fenv_private.h>.
2383         * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
2384         guard to [POWERPC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
2385         * sysdeps/powerpc/fpu/math_private.h: Do not include
2386         <fenv_private.h>.
2387         * sysdeps/riscv/rvf/math_private.h: Move to ....
2388         * sysdeps/riscv/rvf/fenv_private.h: ... here.  Change
2389         multiple-include guard to [RISCV_FENV_PRIVATE_H].  Include next
2390         <fenv_private.h>.
2391         * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
2392         to [SPARC_FENV_PRIVATE_H].  Include next <fenv_private.h>.
2393         * sysdeps/sparc/fpu/math_private.h: Remove.
2394         * sysdeps/i386/fpu/fenv_private.h: Move to ....
2395         * sysdeps/x86/fpu/fenv_private.h: ... here.  Change
2396         multiple-include guard to [X86_FENV_PRIVATE_H].  Include next
2397         <fenv_private.h>.
2398         * sysdeps/x86_64/fpu/math_private.h: Do not include
2399         <sysdeps/i386/fpu/fenv_private.h>.
2401 2018-08-28  Florian Weimer  <fweimer@redhat.com>
2403         [BZ #23578]
2404         * posix/tst-regcomp-truncated.c: New file.
2405         * posix/Makefile (tests): Add it.
2406         (tst-regcomp-truncated.out): Depend on generated locales.
2408 2018-08-28  Florian Weimer  <fweimer@redhat.com>
2410         * support/test-container.c (main): Treat unshare failure with
2411         EPERM as an unsupported test.
2413 2018-08-28  Florian Weimer  <fweimer@redhat.com>
2415         [BZ #23520]
2416         nscd: Fix use-after-free in addgetnetgrentX and its callers.
2417         * nscd/netgroupcache.c
2418         (addgetnetgrentX): Add tofreep parameter.  Do not free
2419         heap-allocated buffer.
2420         (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
2421         (addgetnetgrentX_ignore): New function.
2422         (addgetnetgrent): Call it.
2423         (readdgetnetgrent): Likewise.
2425 2018-08-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2427         * string/memmem.c: Use memcmp for first match.
2429 2018-08-28  Rafal Luzynski  <digitalfreak@lingonborough.com>
2431         [BZ #17426]
2432         * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
2434 2018-08-27  DJ Delorie  <dj@redhat.com>
2436         * support/Makefile (others): Don't list programs explicitly as a
2437         dependency of "others".
2439 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
2441         * sysdeps/generic/math-tests-trap-force.h: New file.
2442         * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
2443         (EXCEPTION_SET_FORCES_TRAP): Do not define here.
2444         * sysdeps/powerpc/math-tests.h: Remove file.
2445         * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
2447 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
2448            Torvald Riegel  <triegel@redhat.com>
2450         [BZ #23538]
2451         * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
2452         Update r to include the set wake-request flag if waiters are
2453         remaining after spinning.
2455 2018-08-27  Joseph Myers  <joseph@codesourcery.com>
2457         * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
2459 2018-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2461         [BZ #23578]
2462         regex: fix uninitialized memory access
2463         I introduced this bug into gnulib in commit
2464         8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
2465         eventually it was merged into glibc.  The bug was found by
2466         project-repo <bugs@feusi.co> and reported here:
2467         https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
2468         Diagnosis and draft fix reported by Assaf Gordon here:
2469         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
2470         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
2471         * posix/regex_internal.c (build_wcs_upper_buffer):
2472         Fix bug when mbrtowc returns 0.
2474 2018-08-24  Carlos O'Donell  <carlos@redhat.com>
2476         * po/be.po: Update translation.
2478 2018-08-24  DJ Delorie  <dj@delorie.com>
2480         * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
2481         $(libunwind).
2483 2018-08-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
2485         [BZ #23400]
2486         * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
2487         create temporary files in source tree.
2489 2018-08-24  Joseph Myers  <joseph@codesourcery.com>
2491         * sysdeps/generic/math-tests-trap.h: New file.
2492         * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
2493         (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
2494         * sysdeps/aarch64/math-tests.h: Remove file.
2495         * sysdeps/arm/math-tests.h: Likewise.
2496         * sysdeps/riscv/math-tests.h: Likewise.
2497         * sysdeps/aarch64/math-tests-trap.h: New file.
2498         * sysdeps/arm/math-tests-trap.h: Likewise.
2499         * sysdeps/riscv/math-tests-trap.h: Likewise.
2501 2018-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
2503         * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
2504         Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
2505         * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
2506         * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
2507         * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
2508         * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
2509         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2510         * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
2511         * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
2512         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2513         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2514         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2515         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2516         * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
2517         * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
2518         * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
2519         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2520         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2522 2018-08-23  Joseph Myers  <joseph@codesourcery.com>
2524         * sysdeps/generic/math-tests-exceptions.h: New file.
2525         * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
2526         (EXCEPTION_TESTS_float): Do not define here.
2527         (EXCEPTION_TESTS_double): Likewise.
2528         (EXCEPTION_TESTS_long_double): Likewise.
2529         (EXCEPTION_TESTS_float128): Likewise.
2530         * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
2531         Likewise.
2532         [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
2533         [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
2534         * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
2535         * sysdeps/m68k/coldfire/math-tests.h: Remove file.
2536         * sysdeps/mips/math-tests.h: Likewise.
2537         * sysdeps/nios2/math-tests.h: Likewise.
2538         * sysdeps/riscv/math-tests.h [!__riscv_flen]
2539         (EXCEPTION_TESTS_float): Do not define here.
2540         [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
2541         [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
2542         * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
2544 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
2546         * NEWS: Move optimized sinf entry to 2.29.
2548 2018-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
2550         * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
2552 2018-08-22  DJ Delorie  <dj@redhat.com>
2554         * Makefile (testroot.pristine): New rules to initialize the
2555         test-in-container "testroot".
2556         * Makerules (all-testsuite): Add tests-container.
2557         * Rules (tests-expected): Add tests-container.
2558         (binaries-all-tests): Likewise.
2559         (tests-container): New, run these tests in the testroot container.
2560         * support/Makefile (others): Add *-container, support_paths.c,
2561         xmkdirp, and links-dso-program.
2562         * support/links-dso-program-c.c: New.
2563         * support/links-dso-program.cc: New.
2564         * support/test-container.c: New.
2565         * support/shell-container.c: New.
2566         * support/echo-container.c: New.
2567         * support/true-container.c: New.
2568         * support/xmkdirp.c: New.
2569         * support/xsymlink.c: New.
2570         * support/support_paths.c: New.
2571         * support/support.h: Add support paths prototypes.
2572         * support/xunistd.h: Add xmkdirp () and xsymlink ().
2574         * nss/tst-nss-test3.c: Convert to test-in-container.
2575         * nss/tst-nss-test3.root/: New.
2577 2018-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2579         regex: port Gnulib code to z/OS POSIX environment
2580         Problem reported by Arnold Robbins in:
2581         https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
2582         * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
2583         Undef.
2585 2018-08-22  Joseph Myers  <joseph@codesourcery.com>
2587         * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
2588         (ROUNDING_TESTS_double): Remove.
2589         * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
2590         (ROUNDING_TESTS_double): Remove.
2591         * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
2592         (ROUNDING_TESTS_double): Remove.
2593         * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
2594         (ROUNDING_TESTS_float): Remove.
2595         * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
2596         (ROUNDING_TESTS_float): Remove.
2597         * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
2598         (ROUNDING_TESTS_float): Remove.
2599         * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
2600         !TEST_MATHVEC here.
2601         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
2602         (IF_ROUND_INIT_FE_UPWARD): Likewise.
2604         * sysdeps/generic/math-tests-rounding.h: New file.
2605         * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
2606         (ROUNDING_TESTS_float): Do not define here.
2607         (ROUNDING_TESTS_double): Likewise.
2608         (ROUNDING_TESTS_long_double): Likewise.
2609         (ROUNDING_TESTS_float128): Likewise.
2610         * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
2611         (ROUNDING_TESTS_double): Undefine before defining.
2612         * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
2613         (ROUNDING_TESTS_double): Undefine before defining.
2614         * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
2615         (ROUNDING_TESTS_double): Undefine before defining.
2616         * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
2617         (ROUNDING_TESTS_float): Undefine before defining.
2618         * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
2619         (ROUNDING_TESTS_float): Undefine before defining.
2620         * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
2621         (ROUNDING_TESTS_float): Undefine before defining.
2622         * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
2623         * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
2624         not define here.
2625         [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
2626         [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
2627         * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
2628         * sysdeps/riscv/math-tests.h [!__riscv_flen]
2629         (ROUNDING_TESTS_float): Do not define here.
2630         [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
2631         [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
2632         * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
2633         (ROUNDING_TESTS_float): Likewise.
2634         [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
2635         [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
2636         * sysdeps/mips/math-tests.h [__mips_soft_float]
2637         (ROUNDING_TESTS_float): Likewise.
2638         [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
2639         [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
2640         * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
2641         (ROUNDING_TESTS_double): Likewise.
2642         (ROUNDING_TESTS_long_double): Likewise.
2644 2018-08-21  Tobias Klauser  <tklauser@distanz.ch>
2646         * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
2647         (PF_XDP): New macro.
2648         (AF_XDP): New macro.
2649         (SOL_XDP): New macro.
2651 2018-08-21  Joseph Myers  <joseph@codesourcery.com>
2653         * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
2654         (TCP_INQ): Likewise.
2655         (TCP_CM_INQ): Likewise.
2656         (TCP_REPAIR_ON): Likewise.
2657         (TCP_REPAIR_OFF): Likewise.
2658         (TCP_REPAIR_OFF_NO_WP): Likewise.
2659         (struct tcp_zerocopy_receive): New type.
2661 2018-08-21  Florian Weimer  <fweimer@redhat.com>
2663         * support/support.h (support_descriptor_supports_holes): Declare.
2664         * support/Makefile (libsupport-routines): Add
2665         support_descriptor_supports_holes.
2666         * support/support_descriptor_supports_holes.c: New file.
2667         * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
2668         and stop testing if holes are not supported.
2669         * io/test-lfs.c (do_prepare): Likewise.
2670         * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
2671         Likewise.
2672         * timezone/tst-tzset.c (create_tz_file): Likewise.
2673         * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
2674         variable.
2675         (do_prepare): Set it.
2676         * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
2678 2018-08-21  Florian Weimer  <fweimer@redhat.com>
2680         [BZ #17248]
2681         * Makeconfig (+cflags): Do not sort (and deduplicate).
2683 2018-08-21  Florian Weimer  <fweimer@redhat.com>
2685         * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
2686         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
2688 2018-08-20  Florian Weimer  <fweimer@redhat.com>
2690         * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
2691         HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
2693 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
2695         * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
2696         signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
2697         and ssi_arch members.
2699         * elf/elf.c (NT_VMCOREDD): New macro.
2700         (AT_MINSIGSTKSZ): Likewise.
2702 2018-08-20  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2704         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2705         (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
2706         s_cosf-ppc64 and s_cosf-power8.
2707         * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
2708         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2709         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2710         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
2712         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
2713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
2714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
2715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
2716         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
2717         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
2718         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
2720 2018-08-17  Florian Weimer  <fweimer@redhat.com>
2722         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2724 2018-08-17  Istvan Kurucsai  <pistukem@gmail.com>
2726         * malloc/malloc.c (_int_malloc): Additional binning code checks.
2728 2018-08-16  Florian Weimer  <fweimer@redhat.com>
2730         * configure.ac: Add --with-nonshared-cflags option.
2731         * config.make.in (extra-nonshared-cflags): Set variable.
2732         * Makeconfig (CFLAGS-.oS): Use it.
2733         * manual/install.texi (Configuring and compiling): Document
2734         --with-nonshared-cflags.
2735         * configure: Regenerate.
2736         * INSTALL: Likewise.
2738 2018-08-16  Florian Weimer  <fweimer@redhat.com>
2740         * Makeconfig (ASFLAGS): Always append required assembler flags.
2742 2018-08-16  Moritz Eckert  <m.eckert@cs.ucsb.edu>
2744         * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
2745         (malloc_consolidate): Likewise.
2747 2018-08-16  Pochang Chen  <johnchen902@gmail.com>
2749         * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
2751 2018-08-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2753         * benchtests/bench-strlen.c (do_test): Allocate buffers before
2754         every strlen call.
2756         * benchtests/bench-strlen.c: Print performance numbers in json.
2758 2018-08-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2760         * sysdeps/powerpc/powerpc64/multiarch/Makefile
2761         (sysdep_routines): Build strcmp-power9 and strncmp-power9
2762         only for little endian.
2763         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2764         (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
2765         (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
2766         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
2767         Add check for little endian.
2768         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
2769         (__strcmp_power9): Add check for little endian.
2770         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
2771         Add check for little endian.
2772         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
2773         (__strncmp_power9): Add check for little endian.
2774         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
2775         __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
2776         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
2777         * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
2778         * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
2780 2018-08-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2782         * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
2783         [!STRLEN](STRLEN): Set to __strlen.
2784         * sysdeps/aarch64/multiarch/strlen.c: New file.
2785         * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
2786         * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
2787         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
2788         (__libc_ifunc_impl_list): Add strlen.
2789         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
2790         strlen_generic and strlen_asimd.
2792 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
2794         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
2795         * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
2796         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
2798 2018-08-15  Wilco Dijkstra  <wdijkstr@arm.com>
2800         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
2802 2018-08-14  Florian Weimer  <fweimer@redhat.com>
2804         [BZ #23519]
2805         * include/stdio.h (__vfxprintf): Declare.
2806         * stdio-common/fxprintf.c (__vfxprintf): New function.
2807         (__fxprintf): Call it.
2808         * misc/err.c (convert_and_print): Remove function.
2809         (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
2810         * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
2811         * misc/Makefile (tests): Add tst-warn-wide.
2812         * misc/tst-warn-wide.c: New file.
2814 2018-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
2815             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2817         * NEWS: Mention sinf, cosf, sincosf.
2818         * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
2819         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
2820         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
2821         constants rather than including generic sincosf.h.
2822         * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
2823         * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
2824         * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
2825         (reduced_cos): Remove.
2826         (sinf_poly): New function.
2827         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
2829 2018-08-14  Florian Weimer  <fweimer@redhat.com>
2831         [BZ #23521]
2832         [BZ #23522]
2833         * nss/nss_files/files-alias.c (get_next_alias): During :include:
2834         processing, bail out if no room, and close the stream before
2835         returning ERANGE.
2836         * nss/Makefile (tests): Add tst-nss-files-alias-leak.
2837         (tst-nss-files-alias-leak): Link with libdl.
2838         (tst-nss-files-alias-leak.out): Depend on nss_files.
2840         * nss/tst-nss-files-alias-leak.c: New file.
2842 2018-08-14  Florian Weimer  <fweimer@redhat.com>
2844         * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
2845         server_user, stat_user.
2847 2018-08-13  Joseph Myers  <joseph@codesourcery.com>
2849         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2850         version to 4.18.
2851         (io_pgetevents): New syscall.
2852         (rseq): Likewise.
2854         * manual/install.texi (Configuring and compiling): Do not list
2855         tools used for testing pretty printers here.
2856         (Tools for Compilation): List Python, PExpect and GDB here.
2857         Update descriptions of uses of Perl and Python.
2858         * INSTALL: Regenerate.
2860         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2861         version to 4.18.
2863 2018-08-13  Florian Weimer  <fweimer@redhat.com>
2865         * misc/error.c (error): Add missing va_end call.
2866         (error_at_line): Likewise.
2868 2018-08-13  Florian Weimer  <fweimer@redhat.com>
2870         * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
2872 2018-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2874         * benchtests/scripts/benchout.schema.json (properties): Add
2875         new properties.
2877         * benchtests/bench-skeleton.c (main): Add duration and
2878         iterations attributes.
2880 2018-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2882         regex: Gnulib unibyte RRI uses bytes not chars
2883         Adjust the non-glibc code to agree with what Gawk needs for
2884         rational range interpretation (RRI) for regular expression ranges.
2885         In unibyte locales, Gawk wants ranges to use the underlying byte
2886         rather than the character code point.  This change does not affect
2887         glibc proper.
2888         * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
2889         In unibyte locales, use the byte value rather than
2890         running it through btowc.
2892 2018-08-10  Joseph Myers  <joseph@codesourcery.com>
2894         * sysdeps/generic/math-tests-snan.h: New file.
2895         * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
2896         (SNAN_TESTS_float): Do not define here.
2897         (SNAN_TESTS_double): Likewise.
2898         (SNAN_TESTS_long_double): Likewise.
2899         (SNAN_TESTS_float128): Likewise.
2900         * sysdeps/i386/fpu/math-tests-snan.h: New file.
2901         * sysdeps/i386/fpu/math-tests.h: Remove file.
2902         * sysdeps/ia64/math-tests-snan.h: New file.
2903         * sysdeps/ia64/math-tests.h: Remove file.
2904         * sysdeps/x86/math-tests.h: Likewise.
2905         * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
2907 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
2908             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2910         * math/Makefile: Add s_sincosf_data.c.
2911         * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
2912         * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
2913         (sincosf_poly): Likewise.
2914         (reduce_small): Likewise.
2915         (reduce_large): Likewise.
2916         * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
2917         * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
2918         * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
2919         * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
2921 2018-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
2922             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2924         * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
2925         (converttoint): Use lround.
2926         * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
2927         document the semantics when TOINT_INTRINSICS is set.
2928         (converttoint): Likewise.
2929         (TOINT_RINT): Remove.
2930         (TOINT_SHIFT): Remove.
2931         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
2932         path.
2934 2018-08-10  Florian Weimer  <fweimer@redhat.com>
2936         [BZ #23497]
2937         * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
2938         function.
2939         (__old_getdents64): Use getdents64.  Convert entries without
2940         moving them.
2941         * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
2942         * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
2943         tst-readdir64-compat.
2945 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2947         * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
2948         Fix unwind.
2950 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2952         * sysdeps/s390/s390-64/Versions (__fentry__): Add.
2953         * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
2954         code to s390x-mcount.h and #include it.
2955         * sysdeps/s390/s390-64/s390x-mcount.h: New file.
2956         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
2957         (__fentry__): Add.
2959 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2961         * stdlib/Versions: Remove __fentry__.
2962         * sysdeps/i386/Versions: Add __fentry__.
2963         * sysdeps/x86_64/Versions: Add __fentry__.
2965 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2967         * sysdeps/s390/Makefile: Register the new tests.
2968         * sysdeps/s390/tst-dl-runtime-mod.S: New file.
2969         * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
2970         * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
2971         * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
2972         * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
2973         * sysdeps/s390/tst-dl-runtime.c: New file.
2975 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2977         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
2978         Do not clobber R0.
2980 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2982         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
2983         Do not clobber R0.
2985 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2987         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
2988         Do not clobber R0.
2990 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2992         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
2993         Do not clobber R0.
2995 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2997         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
2998         Use symbolic offsets for stack variables.
3000 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3002         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
3003         Use symbolic offsets for stack variables.
3005 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3007         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
3008         Use symbolic offsets for stack variables.
3010 2018-08-10  Ilya Leoshkevich  <iii@linux.ibm.com>
3012         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
3013         Use symbolic offsets for stack variables.
3015 2018-08-09  Joseph Myers  <joseph@codesourcery.com>
3017         * math/gen-libm-test.py: New file.
3018         * math/gen-libm-test.pl: Remove.
3019         * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
3020         ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
3021         gen-libm-test.pl.
3022         ($(libm-test-c-noauto-obj)): Likewise.
3023         ($(libm-test-c-auto-obj)): Likewise.
3024         ($(libm-test-c-narrow-obj)): Likewise.
3025         (regen-ulps): Likewise.
3026         * math/README.libm-test: Update references to gen-libm-test.pl.
3027         * math/libm-test-driver.c (struct test_fj_f_data): Update comment
3028         referencing gen-libm-test.pl.
3029         * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
3030         * math/libm-test-support.c: Likewise.
3031         * math/libm-test-support.h: Likewise.
3032         * sysdeps/generic/libm-test-ulps: Likewise.
3034 2018-08-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3036         * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
3037         Fix value.
3039 2018-08-08  Joseph Myers  <joseph@codesourcery.com>
3041         * math/libm-test-nextdown.inc (do_test): Move comment to ....
3042         * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
3044 2018-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3046         * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
3047         symbols.
3048         * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
3049         __pthread_setspecific): Add hidden proto.
3050         * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
3051         * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
3053 2018-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3055         * benchtests/bench-string.h (buf1_size, buf2_size): New
3056         variables.
3057         (init_sizes): New function.
3058         (test_init): Use it.
3059         (alloc_buf, exit_error): New functions.
3060         (alloc_bufs): Use ALLOC_BUF.
3061         (realloc_bufs): Remove.
3062         * benchtests/bench-memcmp.c (do_test): Adjust.
3063         * benchtests/bench-memset-large.c (do_test): Likewise.
3064         * benchtests/bench-memset-walk.c (do_test): Likewise.
3065         * benchtests/bench-memset.c (do_test): Likewise.
3066         * benchtests/bench-strncmp.c (do_test): Likewise.
3068 2018-08-06  Andreas Schwab  <schwab@suse.de>
3070         * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
3071         of CONST_THREAD_AREA.
3073 2018-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3075         * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
3076         (STATE_SAVE_MASK): Likewise.
3077         Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
3078         * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
3079         (STATE_SAVE_MASK): Likewise.
3080         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
3081         instead of <cpu-features.h>.
3083 2018-08-03  DJ Delorie  <dj@redhat.com>
3085         * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
3086         Move libc_fesetround_riscv after libc_feholdexcept_riscv.
3088         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3090 2018-08-03  Joseph Myers  <joseph@codesourcery.com>
3092         * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
3093         after TEST_* calls.
3094         * math/libm-test-llogb.inc (llogb_test_data): Likewise.
3095         * math/libm-test-logb.inc (logb_test_data): Likewise.
3097 2018-08-03  Wilco Dijkstra  <wdijkstr@arm.com>
3099         * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
3100         * string/strstr.c (AVAILABLE): Likewise.
3102 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3104         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
3105         <init-arch.h>.
3106         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
3107         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
3108         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
3110 2018-08-03  Carlos O'Donell  <carlos@redhat.com>
3112         * po/be.po: Update translation.
3114         * po/be.po: Update translation.
3116 2018-08-03  H.J. Lu  <hongjiu.lu@intel.com>
3118         * sysdeps/x86/cpu-features-offsets.sym
3119         (rtld_global_ro_offsetof): Removed.
3120         (CPU_FEATURES_SIZE): Likewise.
3121         (CPUID_OFFSET): Likewise.
3122         (CPUID_SIZE): Likewise.
3123         (CPUID_EAX_OFFSET): Likewise.
3124         (CPUID_EBX_OFFSET): Likewise.
3125         (CPUID_ECX_OFFSET): Likewise.
3126         (CPUID_EDX_OFFSET): Likewise.
3127         (FAMILY_OFFSET): Likewise.
3128         (MODEL_OFFSET): Likewise.
3129         (FEATURE_OFFSET): Likewise.
3130         (FEATURE_SIZ): Likewise.
3131         (COMMON_CPUID_INDEX_1): Likewise.
3132         (COMMON_CPUID_INDEX_7): Likewise.
3133         (FEATURE_INDEX_1): Likewise.
3134         (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
3136 2018-08-02  Carlos O'Donell <carlos@redhat.com>
3138         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
3139         (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
3140         (INSTALL-SUPPORTED-LOCALE-FILES): Define.
3141         (install-locales): Depend on install-locale-archive.
3142         (install-locale-archive): Define.
3143         (install-locale-files): Define.
3144         (build-one-locale): Define macro.
3145         * manual/install.texi (Running make install): Document.
3146         * manual/INSTALL: Regenerate.
3148 2018-08-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3150         * benchtests/scripts/compare_strings.py: Import traceback.
3151         (parse_file): Pretty-print error.
3153         * NEWS: Mention the change.
3154         * elf/dl-tunables.list: Rename tune namespace to cpu.
3155         * sysdeps/powerpc/dl-tunables.list: Likewise.
3156         * sysdeps/x86/dl-tunables.list: Likewise.
3157         * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
3158         cpu.name.
3159         * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
3160         * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
3161         * manual/README.tunables: Likewise.
3162         * manual/tunables.texi: Likewise.
3163         * sysdeps/powerpc/cpu-features.c: Likewise.
3164         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
3165         (init_cpu_features): Likewise.
3166         * sysdeps/x86/cpu-features.c: Likewise.
3167         * sysdeps/x86/cpu-features.h: Likewise.
3168         * sysdeps/x86/cpu-tunables.c: Likewise.
3169         * sysdeps/x86_64/Makefile: Likewise.
3170         * sysdeps/x86/dl-cet.c: Likewise.
3172 2018-08-02  Joseph Myers  <joseph@codesourcery.com>
3174         [BZ #23479]
3175         * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
3176         [__mips_hard_float].
3177         (FE_UNDERFLOW): Likewise.
3178         (FE_OVERFLOW): Likewise.
3179         (FE_DIVBYZERO): Likewise.
3180         (FE_INVALID): Likewise.
3181         (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
3182         (FE_TOWARDZERO): Define only if [__mips_hard_float].
3183         (FE_UPWARD): Likewise.
3184         (FE_DOWNWARD): Likewise.
3185         (__FE_UNDEFINED): Define if [!__mips_hard_float]
3186         (FE_NOMASK_ENV): Define only if [__mips_hard_float].
3187         * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
3188         [__mips_hard_float].
3189         (FP_ROUNDMODE): Likewise.
3190         (FP_RND_NEAREST): Likewise.
3191         (FP_RND_ZERO): Likewise.
3192         (FP_RND_PINF): Likewise.
3193         (FP_RND_MINF): Likewise.
3194         (FP_EX_INVALID): Likewise.
3195         (FP_EX_OVERFLOW): Likewise.
3196         (FP_EX_UNDERFLOW): Likewise.
3197         (FP_EX_DIVZERO): Likewise.
3198         (FP_EX_INEXACT): Likewise.
3199         (FP_INIT_ROUNDMODE): Likewise.
3200         * sysdeps/mips/nofpu/fesetenv.c: New file.
3201         * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
3203 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
3205         * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
3206         code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
3207         FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
3208         conditional on [FE_UPWARD].
3210 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3212         regex: fix memory leak in Gnulib
3213         Problem and fix reported by Assaf Gordon in:
3214         https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
3215         * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
3216         range_ends members too, as they are defined in 'struct
3217         re_charset_t' even if not _LIBC.  This affects only Gnulib.
3219 2018-08-01  H.J. Lu  <hongjiu.lu@intel.com>
3221         * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
3222         ...
3223         (get_common_indices): This.
3224         (init_cpu_features): Updated.
3226 2018-08-01  Joseph Myers  <joseph@codesourcery.com>
3228         * sysdeps/generic/math-tests-snan-payload.h: New file.
3229         * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
3230         * sysdeps/mips/math-tests-snan-payload.h: Likewise.
3231         * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
3232         * sysdeps/generic/math-tests.h: Include
3233         <math-tests-snan-payload.h>.
3234         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
3235         * sysdeps/hppa/math-tests.h: Remove file.
3236         * sysdeps/mips/math-tests.h [!__mips_nan2008]
3237         (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
3238         * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
3239         Likewise.
3241         * sysdeps/generic/math-tests-snan-cast.h: New file.
3242         * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
3243         * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
3244         (SNAN_TESTS_TYPE_CAST): Do not define macro here.
3245         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
3247 2018-08-01  Carlos O'Donel  <carlos@redhat.com>
3249         * version.h (RELEASE): Set to "development".
3250         (VERSION): Set to "2.28.9000".
3251         * NEWS (2.29): New section.
3253         * version.h (RELEASE): Set to "stable".
3254         (VERSION): Set to "2.28".
3255         * include/features.h (__GLIBC_MINOR__): Set to 2.28.
3256         * NEWS: Add the list of bugs fixed in 2.28.
3258         * po/ca.po: Update to latest version.
3259         * po/cs.po: Likewise
3260         * po/da.po: Likewise
3261         * po/el.po: Likewise
3262         * po/eo.po: Likewise
3263         * po/es.po: Likewise
3264         * po/fi.po: Likewise
3265         * po/fr.po: Likewise
3266         * po/gl.po: Likewise
3267         * po/hu.po: Likewise
3268         * po/ia.po: Likewise
3269         * po/id.po: Likewise
3270         * po/it.po: Likewise
3271         * po/ja.po: Likewise
3272         * po/ko.po: Likewise
3273         * po/lt.po: Likewise
3274         * po/nb.po: Likewise
3275         * po/nl.po: Likewise
3276         * po/pt_BR.po: Likewise
3277         * po/ru.po: Likewise
3278         * po/rw.po: Likewise
3279         * po/sk.po: Likewise
3280         * po/sl.po: Likewise
3281         * po/tr.po: Likewise
3282         * po/zh_CN.po: Likewise
3283         * po/zh_TW.po: Likewise
3285 2018-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3287         * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
3288         initialization...
3289         (init): ... before initializing libpthread.
3291         * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
3292         * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
3293         (__mach_setup_tls): ... new function.
3294         (mach_setup_tls): New alias.
3295         * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
3296         __mach_setup_thread.
3297         * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
3298         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
3299         * mach/Versions [libc] (mach_setup_tls): Add symbol.
3300         * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
3302 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
3304         * manual/install.texi: Update versions.
3305         * INSTALL: Regenerate.
3307         * manual/contrib.texi (Contributors): Update contributions.
3309 2018-07-31  Carlos O'Donell  <carlos@redhat.com>
3311         * po/be.po: Update translations.
3313 2018-07-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3315         * sysdeps/sh/libm-test-ulps: Update.
3317 2018-07-30  Carlos O'Donell  <carlos@redhat.com>
3319         * po/bg.po: Update translations.
3320         * po/de.po: Likewise.
3321         * po/hr.po: Likewise.
3322         * po/pt_BR.po: Likewise.
3323         * po/sv.po: Likewise.
3324         * po/vi.po: Likewise.
3326 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
3328         [BZ #23467]
3329         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
3330         tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
3331         (CFLAGS-tst-cet-property-1.o): New.
3332         (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
3333         ($(objpfx)tst-cet-property-2): Likewise.
3334         ($(objpfx)tst-cet-property-2.out): Likewise.
3335         * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
3336         * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
3337         * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
3338         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
3339         each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
3341 2018-07-30  H.J. Lu  <hongjiu.lu@intel.com>
3343         [BZ #23458]
3344         * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
3346 2018-07-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3348         * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
3349         __sbrk): Do not set attribute_hidden.
3350         * sysdeps/mach/hurd/not-errno.h: New file.
3351         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
3352         * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
3354 2018-07-27  Carlos O'Donell  <carlos@redhat.com>
3356         * po/uk.po: Update translations.
3357         * po/cs.po: Likewise.
3358         * po/pl.po: Likewise.
3360 2018-07-27  H.J. Lu  <hongjiu.lu@intel.com>
3362         * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
3363         parse beyond the note end.
3365 2018-07-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3367         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
3368         kernel does not support OFD locks.
3369         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
3371 2018-07-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3373         * sysdeps/mach/hurd/Versions (libc): Make __access and
3374         __access_noerrno external so they can override the ld symbols.
3375         (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
3376         __writev, __open64, __access_noerrno extern so they can be overrided.
3377         * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
3378         * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
3380 2018-07-26  Carlos O'Donell  <carlos@redhat.com>
3382         * po/libc.pot: Regenerate.
3384 2018-07-26  Joseph Myers  <joseph@codesourcery.com>
3386         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
3388 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
3390         [BZ #23459]
3391         * sysdeps/x86/cpu-features.c (get_extended_indices): New
3392         function.
3393         (init_cpu_features): Call get_extended_indices for both Intel
3394         and AMD CPUs.
3395         * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
3396         Remove "for AMD" comment.
3398 2018-07-26  H.J. Lu  <hongjiu.lu@intel.com>
3400         [BZ # 23456]
3401         * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
3402         COMMON_CPUID_INDEX_80000001.
3404 2018-07-26  Stefan Liebler  <stli@linux.ibm.com>
3406         * string/tst-xbzero-opt.c (use_test_buffer): New function.
3407         (prepare_test_buffer): Call use_test_buffer as compiler barrier.
3409 2018-07-26  Florian Weimer  <fweimer@redhat.com>
3411         * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
3412         aliases for symbols not in the implementation namespace.
3414 2018-07-25  Carlos O'Donell <carlos@redhat.com>
3416         [BZ #23393]
3417         * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
3418         lowercase in LATIN script.
3419         * localedata/Makefile (test-input): Add en_US.UTF-8.
3420         * localedata/en_US.UTF-8.in: New file.
3421         * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
3422         and restore old tests.
3423         * posix/tst-regexloc.c (do_test): Add back range expression test.
3425 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3427         * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
3429 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3431         * nptl/threads.h: Move to ...
3432         * sysdeps/nptl/threads.h: ... here.
3433         * sysdeps/hurd/stdc-predef.h: New file.
3435 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3437         * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
3438         tst-cet-setcontext-1 if CET is enabled.
3439         (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
3440         * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
3442 2018-07-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3444         * include/threads.h: Move to ...
3445         * sysdeps/nptl/threads.h: ... here.
3446         * sysdeps/htl/threads.h: New file.
3447         * conform/Makefile (linknamespace-libs-ISO11): Use
3448         static-thread-library instead of linking libpthread.
3449         (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
3451 2018-07-25  Florian Weimer  <fweimer@redhat.com>
3453         * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
3454         nanoseconds into seconds.
3455         * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
3456         (do_test): Likewise.
3457         * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
3458         (do_test): Likewise.  Avoid nanosecond overflow and spurious
3459         timeouts due to system load.
3460         * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
3461         (child_wait): Increment it.
3462         (do_test): Wait as long as necessary until all expected threads
3463         have arrived.
3465 2018-07-25  Vedvyas Shanbhogue  <vedvyas.shanbhogue@intel.com>
3466             H.J. Lu  <hongjiu.lu@intel.com>
3468         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
3469         __ssp.
3470         * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
3471         <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
3472         (__push___start_context): New.
3473         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
3474         <asm/prctl.h>.
3475         (__getcontext): Record the current shadow stack base.  Save the
3476         caller's shadow stack pointer and base.
3477         * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
3478         <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
3479         (__push___start_context): New prototype.
3480         (__makecontext): Call __push___start_context to allocate a new
3481         shadow stack, push __start_context onto the new stack as well
3482         as the new shadow stack.
3483         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
3484         <asm/prctl.h>.
3485         (__setcontext): Restore the target shadow stack.
3486         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
3487         <asm/prctl.h>.
3488         (__swapcontext): Record the current shadow stack base.  Save
3489         the caller's shadow stack pointer and base. Restore the target
3490         shadow stack.
3491         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
3492         (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
3493         * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
3495 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3497         * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
3498         tst-setcontext8 and tst-setcontext9.
3499         * stdlib/tst-setcontext6.c: New file.
3500         * stdlib/tst-setcontext7.c: Likewise.
3501         * stdlib/tst-setcontext8.c: Likewise.
3502         * stdlib/tst-setcontext9.c: Likewise.
3504 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3506         * stdlib/Makefile ((tests): Add tst-setcontext5.
3507         * stdlib/tst-setcontext5.c: New file.
3509 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3511         * stdlib/Makefile (tests): Add tst-setcontext4.
3512         * stdlib/tst-setcontext4.c: New file.
3514 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3516         * stdlib/Makefile (tests): Add tst-swapcontext1.
3517         * stdlib/tst-swapcontext1.c: New test.
3519 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3521         * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
3522         tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
3523         tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
3524         and tst-cet-legacy-4c.
3525         (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
3526         and tst-cet-legacy-mod-4.
3527         (CFLAGS-tst-cet-legacy-2.c): New.
3528         (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
3529         (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
3530         (CFLAGS-tst-cet-legacy-3.c): Likewise.
3531         (CFLAGS-tst-cet-legacy-4.c): Likewise.
3532         (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
3533         ($(objpfx)tst-cet-legacy-1): Likewise.
3534         ($(objpfx)tst-cet-legacy-2): Likewise.
3535         ($(objpfx)tst-cet-legacy-2.out): Likewise.
3536         ($(objpfx)tst-cet-legacy-2a): Likewise.
3537         ($(objpfx)tst-cet-legacy-2a.out): Likewise.
3538         ($(objpfx)tst-cet-legacy-4): Likewise.
3539         ($(objpfx)tst-cet-legacy-4.out): Likewise.
3540         ($(objpfx)tst-cet-legacy-4a): Likewise.
3541         ($(objpfx)tst-cet-legacy-4a.out): Likewise.
3542         (tst-cet-legacy-4a-ENV): Likewise.
3543         ($(objpfx)tst-cet-legacy-4b): Likewise.
3544         ($(objpfx)tst-cet-legacy-4b.out): Likewise.
3545         (tst-cet-legacy-4b-ENV): Likewise.
3546         ($(objpfx)tst-cet-legacy-4c): Likewise.
3547         ($(objpfx)tst-cet-legacy-4c.out): Likewise.
3548         (tst-cet-legacy-4c-ENV): Likewise.
3549         * sysdeps/x86/tst-cet-legacy-1.c: New file.
3550         * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
3551         * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
3552         * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
3553         * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
3554         * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
3555         * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
3556         * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
3557         * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
3558         * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
3559         * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
3561 2018-07-25  H.J. Lu  <hongjiu.lu@intel.com>
3563         * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
3564         * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
3565         with ssp_base.
3566         * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
3567         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
3568         with ssp_base.
3570 2018-07-25  Andreas Schwab  <schwab@suse.de>
3572         [BZ #23442]
3573         * locale/weightwc.h (findidx): Handle the case where usrc is a
3574         prefix of cp but one character too short.
3576 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3578         * NEWS: Add ISO C threads addition.
3580 2018-07-24  Florian Weimer  <fweimer@redhat.com>
3582         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3583         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
3584         (__ASSUME_COPY_FILE_RANGE): Undefine.  Kernel support was added in
3585         4.13.
3587 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
3589         * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
3590         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
3591         <sys/prctl.h> and <asm/prctl.h>.
3592         (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
3593         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
3594         and <asm/prctl.h>.
3595         (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
3596         ARCH_CET_LEGACY_BITMAP.
3597         (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
3598         (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
3599         * sysdeps/x86/libc-start.c: Include <startup.h>.
3601 2018-07-24  Florian Weimer  <fweimer@redhat.com>
3603         * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
3604         Undefine.  Suggested by Romain Naour <romain.naour@gmail.com>.
3606 2018-07-24  Rical Jasan <rj@2c3t.io>
3607             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3608             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
3610         [BZ #14092]
3611         * manual/debug.texi: Update adjacent chapter name.
3612         * manual/probes.texi: Likewise.
3613         * manual/threads.texi (ISO C Threads): New section.
3614         (POSIX Threads): Convert to a section.
3616 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3617             Juan Manuel Torres Palma  <jmtorrespalma@gmail.com>
3619         [BZ# 14092]
3620         * nptl/Makefile (tests): Add new test files.
3621         * nptl/tst-call-once.c : New file. Tests C11 functions and types.
3622         * nptl/tst-cnd-basic.c: Likewise.
3623         * nptl/tst-cnd-broadcast.c: Likewise.
3624         * nptl/tst-cnd-timedwait.c: Likewise.
3625         * nptl/tst-mtx-basic.c: Likewise.
3626         * nptl/tst-mtx-recursive.c: Likewise.
3627         * nptl/tst-mtx-timedlock.c: Likewise.
3628         * nptl/tst-mtx-trylock.c: Likewise.
3629         * nptl/tst-thrd-basic.c: Likewise.
3630         * nptl/tst-thrd-detach.c: Likewise.
3631         * nptl/tst-thrd-sleep.c: Likewise.
3632         * nptl/tst-tss-basic.c: Likewise.
3634 2018-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3636         [BZ #14092]
3637         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
3638         (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
3639         symbols.
3640         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3641         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3642         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3643         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3644         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3645         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3646         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3647         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3648         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3649         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3650         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3651         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3653         Likewise.
3654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3655         Likewise.
3656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3657         Likewise.
3658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
3659         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3660         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3661         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3662         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3663         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3664         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3665         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3666         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3667         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
3668         (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
3669         cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
3670         mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
3671         thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
3672         Likewise.
3673         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
3674         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
3675         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
3676         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
3677         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
3678         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
3679         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
3680         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
3681         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
3682         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
3683         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
3684         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
3685         ikewise.
3686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
3687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
3688         Likewise.
3689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
3690         Likewise.
3691         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
3692         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
3693         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
3694         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
3695         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
3696         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
3697         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
3698         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
3700         [BZ #14092]
3701         * conform/data/threads.h-data (thread_local): New macro.
3702         (TSS_DTOR_ITERATIONS): Likewise.
3703         (tss_t): New type.
3704         (tss_dtor_t): Likewise.
3705         (tss_create): New function.
3706         (tss_get): Likewise.
3707         (tss_set): Likewise.
3708         (tss_delete): Likewise.
3709         * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
3710         tss_get, and tss_set objects.
3711         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
3712         * nptl/tss_create.c: New file.
3713         * nptl/tss_delete.c: Likewise.
3714         * nptl/tss_get.c: Likewise.
3715         * nptl/tss_set.c: Likewise.
3716         * sysdeps/nptl/threads.h (thread_local): New define.
3717         (TSS_DTOR_ITERATIONS): Likewise.
3718         (tss_t): New typedef.
3719         (tss_dtor_t): Likewise.
3720         (tss_create): New prototype.
3721         (tss_get): Likewise.
3722         (tss_set): Likewise.
3723         (tss_delete): Likewise.
3725         [BZ #14092]
3726         * conform/data/threads.h-data (cnd_t): New type.
3727         (cnd_init): New function.
3728         (cnd_signal): Likewise.
3729         (cnd_broadcast): Likewise.
3730         (cnd_wait): Likewise.
3731         (cnd_timedwait): Likewise.
3732         (cnd_destroy): Likewise.
3733         * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
3734         cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
3735         object.
3736         * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
3737         * nptl/cnd_broadcast.c: New file.
3738         * nptl/cnd_destroy.c: Likewise.
3739         * nptl/cnd_init.c: Likewise.
3740         * nptl/cnd_signal.c: Likewise.
3741         * nptl/cnd_timedwait.c: Likewise.
3742         * nptl/cnd_wait.c: Likewise.
3743         * sysdeps/nptl/threads.h (cnd_t): New type.
3744         (cnd_init): New prototype.
3745         (cnd_signa): Likewise.
3746         (cnd_broadcast): Likewise.
3747         (cnd_wait): Likewise.
3748         (cnd_timedwait): Likewise.
3749         (cnd_destroy): Likewise.
3751         [BZ #14092]
3752         * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
3753         (once_flag): New type.
3754         (call_once): New function.
3755         * nptl/Makefile (libpthread-routines): Add call_once object.
3756         * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
3757         * nptl/call_once.c: New file.
3758         * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
3759         (once_flag): New type.
3760         (call_once): New prototype.
3762         [BZ #14092]
3763         * conform/data/threads.h-data (mtx_plain): New constant.
3764         (mtx_recursive): Likewise.
3765         (mtx_timed): Likewise.
3766         (mtx_t): New type.
3767         (mtx_init): New function.
3768         (mtx_lock): Likewise.
3769         (mtx_timedlock): Likewise.
3770         (mtx_trylock): Likewise.
3771         (mtx_unlock): Likewise.
3772         (mtx_destroy): Likewise.
3773         * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
3774         mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
3775         * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
3776         mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
3777         * nptl/mtx_destroy.c: New file.
3778         * nptl/mtx_init.c: Likewise.
3779         * nptl/mtx_lock.c: Likewise.
3780         * nptl/mtx_timedlock.c: Likewise.
3781         * nptl/mtx_trylock.c: Likewise.
3782         * nptl/mtx_unlock.c: Likewise.
3783         * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
3784         (mtx_recursive): Likewise.
3785         (mtx_timed): Likewise.
3786         (mtx_t): New type.
3787         (mtx_init): New prototype.
3788         (mtx_lock): Likewise.
3789         (mtx_timedlock): Likewise.
3790         (mtx_trylock): Likewise.
3791         (mtx_unlock): Likewise.
3792         (mtx_destroy): Likewise.
3794         [BZ #14092]
3795         * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
3796         (linknamespace-libs-ISO11): Add libpthread.a.
3797         * conform/data/threads.h-data: New file: add C11 thrd_* types and
3798         functions.
3799         * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
3800         * nptl/Makefile (headers): Add threads.h.
3801         (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
3802         thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
3803         thrd_yield.
3804         * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
3805         thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
3806         thrd_join, thrd_sleep, and thrd_yield symbols.
3807         * nptl/descr.h (struct pthread): Add c11 field.
3808         * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
3809         * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
3810         routine with expected function prototype.
3811         (__pthread_create_2_1): Add C11 threads check based on attribute
3812         value.
3813         * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
3814         * nptl/thrd_create.c: New file.
3815         * nptl/thrd_current.c: Likewise.
3816         * nptl/thrd_detach.c: Likewise.
3817         * nptl/thrd_equal.c: Likewise.
3818         * nptl/thrd_exit.c: Likewise.
3819         * nptl/thrd_join.c: Likewise.
3820         * nptl/thrd_priv.h: Likewise.
3821         * nptl/thrd_sleep.c: Likewise.
3822         * nptl/thrd_yield.c: Likewise.
3823         * include/threads.h: Likewise.
3825 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
3827         * bits/indirect-return.h: New file.
3828         * misc/sys/cdefs.h (__glibc_has_attribute): New.
3829         * sysdeps/x86/bits/indirect-return.h: Likewise.
3830         * stdlib/Makefile (headers): Add bits/indirect-return.h.
3831         * stdlib/ucontext.h: Include <bits/indirect-return.h>.
3832         (swapcontext): Add __INDIRECT_RETURN.
3833         * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
3834         (prepare_test_buffer): Use it.
3836 2018-07-24  Andreas Schwab  <schwab@suse.de>
3838         [BZ #23448]
3839         * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
3840         (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
3842 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
3844         * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
3845         Redefine if shadow stack is enabled.
3846         (SYSCALL_ERROR_LABEL): Likewise.
3847         (__vfork): Pop shadow stack and jump back to to caller directly
3848         when shadow stack is in use.
3849         * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
3850         Redefine if shadow stack is enabled.
3851         (SYSCALL_ERROR_LABEL): Likewise.
3852         (__vfork): Pop shadow stack and jump back to to caller directly
3853         when shadow stack is in use.
3855 2018-07-24  H.J. Lu  <hongjiu.lu@intel.com>
3857         * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
3858         enabled.
3859         (foo): Likewise.
3860         * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
3861         (foo): Likewise.
3863 2018-07-20  Joseph Myers  <joseph@codesourcery.com>
3865         * scripts/build-many-glibcs.py (Context.checkout): Default
3866         binutils version to 2.31 branch.
3868 2018-07-20  Zong Li  <zong@andestech.com>
3870         * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
3871         URL of gcc's tarball.
3873 2018-07-20  Florian Weimer  <fweimer@redhat.com>
3875         [BZ #23396]
3876         * posix/regcomp.c (build_equiv_class): When comparing weights, do
3877         not compare an extra byte after the end of the weights.
3879 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3881         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
3882         to 1.
3883         * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
3884         hidden prototypes.
3885         * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
3886         * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
3887         * scripts/check-execstack.awk: Consider `xfail' variable containing a
3888         list of libraries whose stack executability is expected.
3889         * elf/Makefile ($(objpfx)check-execstack.out): Pass
3890         $(check-execstack-xfail) to check-execstack.awk through `xfail'
3891         variable.
3892         * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
3893         libc.so libpthread.so.
3895 2018-07-20  Thomas Schwinge  <tschwinge@gnu.org>
3897         * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
3898         SOCK_NONBLOCK.
3899         * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
3900         and SOCK_NONBLOCK.
3901         * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c.  Evolve it to
3902         implement __pipe2.
3903         * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
3905 2018-07-19  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
3907         * benchtests/scripts/compare_bench.py (__main__): use the argparse
3908         library to improve command line parsing.
3909         (__main__): make schema file as optional parameter (--schema),
3910         defaulting to benchtests/scripts/benchout.schema.json.
3911         (main): move out of the parsing stuff to __main_  and leave it
3912         only as caller of main comparison functions.
3914 2018-07-19  H.J. Lu  <hongjiu.lu@intel.com>
3916         * NEWS: Add a note for Intel CET status.
3917         * manual/install.texi: Likewise.
3918         * INSTALL: Regenerated.
3920 2018-07-18  Quentin PAGÈS  <provaires@quentino.fr>
3922         [BZ #23140]
3923         * localedata/locales/oc_FR (mon): Rename to...
3924         (alt_mon): This, then update October (typo fix).
3925         (mon): New content (genitive case, month names preceded by
3926         "de" or "d’").
3928         [BZ #23422]
3929         * localedata/locales/oc_FR (abday): Update all items.
3930         (day): Update Wednesday and Saturday (typo fixes).
3931         (abmon): Update all items, except May.
3932         (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
3933         (LC_IDENTIFICATION): Bump the revision number and date.
3934         Keep the "category" entries in alphabetic order.
3935         (LC_ADDRESS): Remove no longer needed comment.
3936         (LC_COLLATE): Use “copy "ca_ES"”.
3937         (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
3938         "name_mrs".
3940 2018-07-18  Joseph Myers  <joseph@codesourcery.com>
3942         * grp/tst_fgetgrent.c: Include <unistd.h>.
3943         (main): Use mkstemp instead of tmpnam.
3944         * io/test-utime.c (main): Likewise.
3945         * posix/annexc.c (macrofile): Change to modifiable array.
3946         (main): Remove macrofile here.
3947         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
3948         macrofile here.
3949         (check_header): Do not remove macrofile here.
3950         * posix/bug-getopt1.c: Include <stdlib.h>.
3951         (do_test): Use mkstemp instead of tmpnam.
3952         * posix/bug-getopt2.c: Include <stdlib.h>.
3953         (do_test): Use mkstemp instead of tmpnam.
3954         * posix/bug-getopt3.c: Include <stdlib.h>.
3955         (do_test): Use mkstemp instead of tmpnam.
3956         * posix/bug-getopt4.c: Include <stdlib.h>.
3957         (do_test): Use mkstemp instead of tmpnam.
3958         * posix/bug-getopt5.c: Include <stdlib.h>.
3959         (do_test): Use mkstemp instead of tmpnam.
3960         * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
3961         (main): Use mkstemp instead of tmpnam.
3962         * stdio-common/tst-fdopen.c: Include <stdlib.h>.
3963         (main): Use mkstemp instead of tmpnam.
3964         * stdio-common/tst-ungetc.c: Include <stdlib.h>.
3965         (main): use mkstemp instead of tmpnam.
3966         * stdlib/isomac.c (macrofile): Change to modifiable array.
3967         (main): Remove macrofile here.
3968         (get_null_defines): Use mkstemp instead of tmpnam.  Do not remove
3969         macrofile here.
3970         (check_header): Do not remove macrofile here.
3972 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3974         * manual/tunables.texi: Document glibc.tune.x86_ibt and
3975         glibc.tune.x86_shstk.
3977 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3979         * NEWS: Mention --enable-cet.
3980         * manual/install.texi: Document --enable-cet.
3981         * INSTALL: Regenerated.
3983 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3985         * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
3986         Add _CET_NOTRACK before indirect jump to jump table.
3988 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3990         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
3991         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
3992         to jump table.
3994 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3996         * sysdeps/i386/i686/multiarch/strcat-sse2.S
3997         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
3998         to jump table.
4000 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4002         * sysdeps/i386/i686/multiarch/strcpy-sse2.S
4003         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4004         to jump table.
4006 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4008         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
4009         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4010         to jump table.
4012 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4014         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
4015         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4016         to jump table.
4017         (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
4019 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4021         * sysdeps/i386/i686/multiarch/memcmp-sse4.S
4022         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4023         to jump table.
4025 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4027         * sysdeps/i386/i686/multiarch/memset-sse2.S
4028         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4029         to jump table.
4031 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4033         * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
4034         indirect jump to jump table.
4036 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4038         * sysdeps/x86_64/multiarch/memcpy-ssse3.S
4039         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4040         to jump table.
4041         (MEMCPY): Likewise.
4043 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4045         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
4046         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4047         to jump table.
4048         (MEMCPY): Likewise.
4050 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4052         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
4053         _CET_NOTRACK before indirect jump to jump table.
4055 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4057         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
4058         (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
4059         to jump table.
4061 2018-07-18  H.J. Lu  <hongjiu.lu@intel.com>
4063         * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
4064         indirect jump to jump table.
4066 2018-07-18  Valery Timiriliyev  <timiriliyev@gmail.com>
4068         [BZ #22241]
4069         * localedata/Makefile (test-input): Add sah_RU.UTF-8.
4070         (LOCALES): Likewise.
4071         * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
4072         * localedata/locales/sah_RU: New file.
4073         * localedata/sah_RU.UTF-8.in: New file.
4075 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4077         * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
4078         "sysdep.h".
4079         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
4080         _CET_ENDBR to indirect jump targets and adjust jump destination
4081         for _CET_ENDBR.
4082         * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
4083         "sysdep.h".
4084         (__mpn_add_n): Save and restore %ebx if IBT is enabed.  Add
4085         _CET_ENDBR to indirect jump targets and adjust jump destination
4086         for _CET_ENDBR.
4087         * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
4088         "sysdep.h".
4089         (__mpn_sub_n): Save and restore %ebx if IBT is enabed.  Add
4090         _CET_ENDBR to indirect jump targets and adjust jump destination
4091         for _CET_ENDBR.
4093 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4095         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
4096         _CET_ENDBR.
4098 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4100         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
4101         _CET_ENDBR.
4102         (_dl_tlsdesc_undefweak): Likewise.
4103         (_dl_tlsdesc_dynamic): Likewise.
4104         (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
4105         (_dl_tlsdesc_resolve_rel): Likewise.
4106         (_dl_tlsdesc_resolve_rela): Likewise.
4107         (_dl_tlsdesc_resolve_hold): Likewise.
4108         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
4109         (_dl_tlsdesc_undefweak): Likewise.
4110         (_dl_tlsdesc_dynamic): Likewise.
4111         (_dl_tlsdesc_resolve_rela): Likewise.
4112         (_dl_tlsdesc_resolve_hold): Likewise.
4114 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4116         * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
4117         (_fini): Likewise.
4118         * sysdeps/x86_64/crti.S (_init): Likewise.
4119         (_fini): Likewise.
4121 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
4123         [BZ #23140]
4124         * localedata/locales/os_RU (mon): Rename to...
4125         (alt_mon): This.
4126         (mon): Import from CLDR (genitive case).
4128 2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
4130         * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
4131         cet-tunables.h> when CET is enabled.
4133 2018-07-16  H.J. Lu  <hongjiu.lu@intel.com>
4135          [BZ #21598]
4136         * configure.ac: Add --enable-cet.
4137         * configure: Regenerated.
4138         * elf/Makefille (all-built-dso): Add a comment.
4139         * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
4140         Include <dl-prop.h>.
4141         (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
4142         segment.
4143         * elf/dl-open.c: Include <dl-prop.h>.
4144         (dl_open_worker): Call _dl_open_check.
4145         * elf/rtld.c: Include <dl-prop.h>.
4146         (dl_main): Call _rtld_process_pt_note on PT_NOTE segment.  Call
4147         _rtld_main_check.
4148         * sysdeps/generic/dl-prop.h: New file.
4149         * sysdeps/i386/dl-cet.c: Likewise.
4150         * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
4151         * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
4152         * sysdeps/x86/cet-tunables.h: Likewise.
4153         * sysdeps/x86/check-cet.awk: Likewise.
4154         * sysdeps/x86/configure: Likewise.
4155         * sysdeps/x86/configure.ac: Likewise.
4156         * sysdeps/x86/dl-cet.c: Likewise.
4157         * sysdeps/x86/dl-procruntime.c: Likewise.
4158         * sysdeps/x86/dl-prop.h: Likewise.
4159         * sysdeps/x86/libc-start.h: Likewise.
4160         * sysdeps/x86/link_map.h: Likewise.
4161         * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
4162         _CET_ENDBR.
4163         (_dl_runtime_profile): Likewise.
4164         (_dl_runtime_resolve_shstk): New.
4165         (_dl_runtime_profile_shstk): Likewise.
4166         * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
4167         if CET is enabled.
4168         (CFLAGS-.o): Add -fcf-protection if CET is enabled.
4169         (CFLAGS-.os): Likewise.
4170         (CFLAGS-.op): Likewise.
4171         (CFLAGS-.oS): Likewise.
4172         (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
4173         is enabled.
4174         (tests-special): Add $(objpfx)check-cet.out.
4175         (cet-built-dso): New.
4176         (+$(cet-built-dso:=.note)): Likewise.
4177         (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
4178         ($(objpfx)check-cet.out): New.
4179         (generated): Add check-cet.out.
4180         * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
4181         <cet-tunables.h>.
4182         (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
4183         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
4184         (init_cpu_features): Call get_cet_status to check CET status
4185         and update dl_x86_feature_1 with CET status.  Call
4186         TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
4187         (set_x86_shstk).  Disable and lock CET in libc.a.
4188         * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
4189         (TUNABLE_CALLBACK (set_x86_ibt)): New function.
4190         (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
4191         * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
4192         (_CET_ENDBR): Define if not defined.
4193         (ENTRY): Add _CET_ENDBR.
4194         * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
4195         x86_shstk.
4196         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
4197         _CET_ENDBR.
4198         (_dl_runtime_profile): Likewise.
4200 2018-07-16  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
4202         [BZ #21895]
4203         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
4204         restore r2 on longjmp.
4205         * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
4206         test list.
4207         Added rules to build test tst-setjmp-bug21895-static.
4208         Added module setjmp-bug21895 and rules to build a shared object from it.
4209         * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
4210         * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
4212 2018-07-15  Wilco Dijkstra  <wdijkstr@arm.com>
4214         * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
4215         * benchtests/bench-strstr.c: Likewise.
4216         * string/memmem.c (FASTSEARCH): Define.
4217         * string/str-two-way.h (two_way_short_needle): Minor cleanups.
4218         Add support for FASTSEARCH.
4219         * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
4220         * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
4221         (FASTSEARCH): Define.
4222         * string/test-strcasestr.c: Rename __strnlen to strnlen.
4223         * string/test-strstr.c: Likewise.
4225 2018-07-15  H.J. Lu  <hongjiu.lu@intel.com>
4227         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
4228         SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
4230 2018-07-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4231             H.J. Lu  <hongjiu.lu@intel.com>
4233         * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
4234         (__longjmp): Restore shadow stack pointer if shadow stack is
4235         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
4236         isn't defined for __longjmp_cancel.
4237         * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
4238         (_setjmp): Save shadow stack pointer if shadow stack is enabled
4239         and SHADOW_STACK_POINTER_OFFSET is defined.
4240         * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
4241         (setjmp): Save shadow stack pointer if shadow stack is enabled
4242         and SHADOW_STACK_POINTER_OFFSET is defined.
4243         * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
4244         (__sigsetjmp): Save shadow stack pointer if shadow stack is
4245         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
4246         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
4247         <jmp_buf-ssp.h>.
4248         (____longjmp_chk): Restore shadow stack pointer if shadow stack
4249         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
4250         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
4251         Remove jmp_buf-ssp.sym.
4252         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4253         <jmp_buf-ssp.h>.
4254         (____longjmp_chk): Restore shadow stack pointer if shadow stack
4255         is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
4256         * sysdeps/x86/Makefile (gen-as-const-headers): Add
4257         jmp_buf-ssp.sym.
4258         * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
4259         * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
4260         (__longjmp): Restore shadow stack pointer if shadow stack is
4261         enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
4262         isn't defined for __longjmp_cancel.
4263         * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
4264         (__sigsetjmp): Save shadow stack pointer if shadow stack is
4265         enabled and SHADOW_STACK_POINTER_OFFSET is defined.
4267 2018-07-14  H.J. Lu  <hongjiu.lu@intel.com>
4269         [BZ #22563]
4270         * nptl/pthread_create.c: Include <tls-setup.h>.
4271         (__pthread_create_2_1): Call tls_setup_tcbhead.
4272         * sysdeps/generic/tls-setup.h: New file.
4273         * sysdeps/x86/nptl/tls-setup.h: Likewise.
4274         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4275         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
4276         Likewise.
4277         * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
4278         to feature_1.
4279         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
4280         * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
4281         (X86_FEATURE_1_SHSTK): Likewise.
4282         (CET_ENABLED): Likewise.
4283         (IBT_ENABLED): Likewise.
4284         (SHSTK_ENABLED): Likewise.
4286 2018-07-13  Rafal Luzynski  <digitalfreak@lingonborough.com>
4288         [BZ #23208]
4289         * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
4290         (LOCALES): Likewise.
4291         * localedata/dsb_DE.UTF-8.in: New file.
4292         * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
4294 2018-07-12  Florian Weimer  <fweimer@redhat.com>
4296         * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
4297         __mprotect, not mprotect.
4299 2018-07-11  Florian Weimer  <fweimer@redhat.com>
4301         * io/Makefile (headers): Add bits/statx.h.
4303 2018-07-10  Mike FABIAN  <mfabian@redhat.com>
4305         * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
4306         * localedata/locales/i18n_ctype: Use correct Unicode version in comments
4307         and headers.
4308         * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
4309         * localedata/unicode-gen/Makefile: Use option to specify Unicode version
4310         for utf8_gen.py
4312 2018-07-10  Florian Weimer  <fweimer@redhat.com>
4314         * io/Makefile (routines): Add statx.
4315         (tests-internal): Add tst-statx.
4316         * io/Versions (GLIBC_2.28): Export statx.
4317         * io/bits/statx.h: New file.
4318         * io/sys/stat.h [__USE_GNU]: Include it.
4319         * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
4320         (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
4321         Define.
4322         * io/statx.c: New file.
4323         * io/statx_generic.: Likewise.
4324         * io/tst-statx.: Likewise.
4325         * include/bits/statx.h: Likewise.
4326         * sysdeps/unix/sysv/linux/kernel-features.h
4327         [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
4328         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4329         [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
4330         * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
4331         Undefine.
4332         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4333         [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
4334         * sysdeps/unix/sysv/linux/statx.c: New file.
4335         * manual/filesys.texi: Note that statx is undocumented.
4336         * sysdeps/**/libc*.abilist: Update.
4338 2018-07-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4340         * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
4341         a kernel issue which lead to test failure in some cases.
4343 2018-07-10  Florian Weimer  <fweimer@redhat.com>
4345         [BZ #23036]
4346         * posix/regexec.c (check_node_accept_bytes): When comparing
4347         weights, do not compare an extra byte after the end of the
4348         weights.
4350 2018-07-10  Florian Weimer  <fweimer@redhat.com>
4352         * libio/readline.c: Fix copyright year.
4353         * libio/tst-readline.c Likewise.
4354         * nss/tst-nss-files-hosts-getent.c: Likewise.
4356 2018-07-06  Florian Weimer  <fweimer@redhat.com>
4358         [BZ #18991]
4359         * nss/nss_files/files-XXX.c (internal_getent): Use
4360         __libc_readline_unlocked.  Seek back to the start of the line if
4361         parsing failes with ERANGE.
4362         (get_contents_ret, get_contents): Remove.
4363         * nss/tst-nss-files-hosts-getent.c: New file.
4364         * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
4365         (tst-nss-files-hosts-getent): Link with -ldl.
4367 2018-07-06  Florian Weimer  <fweimer@redhat.com>
4369         * include/stdio.h (__libc_readline_unlocked): Declare.
4370         (__ftello64, __fseeko64): Declare aliases.
4371         * libio/readline.c: New file.
4372         * libio/tst-readline.c: Likewise.
4373         (routines): Add readline.
4374         (tests-internal): Add tst-readlime.
4375         * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
4376         __libc_readline_unlocked.
4377         * libio/fseeko.c (__fseeko): Rename from fseeko.
4378         (fseeko): Add alias.
4379         [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
4380         * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
4381         (fseeko64): Add alias.
4382         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
4383         * libio/ftello64.c (__ftello64): Rename from ftello64.
4384         (ftello64): Add alias.
4386 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4388         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
4389         HWCAP_ATOMICS.
4391 2018-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4393         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
4394         Use dl_hwcap without masking.
4395         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
4396         Remove HWCAP_CPUID.
4398 2018-07-06  Florian Weimer  <fweimer@redhat.com>
4400         * conform/conformtest.pl (checknamespace): Escape literal braces
4401         in regular expressions.
4403 2018-07-06  Amit Pawar  <amit.pawar@amd.com>
4405         * sysdeps/x86/cpu-features.c (get_common_indeces):
4406         AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
4407         * sysdeps/x86/cpu-features.c (init_cpu_features):
4408         AVX_Fast_Unaligned_Load is disabled for Excavator core.
4410 2018-07-05  Florian Weimer  <fweimer@redhat.com>
4412         * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
4413         protector.
4414         (CFLAGS-elf-init.oS): Likewise.
4416 2018-07-05  Florian Weimer  <fweimer@redhat.com>
4417             Carlos O'Donell  <carlos@redhat.com>
4419         * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
4420         $(no-stack-protector).  stack_chk_fail_local.c can be compiled
4421         with stack protector enabled because there is no risk of infinite
4422         recursion.
4424 2018-07-05  Maciej W. Rozycki  <macro@mips.com>
4426         [BZ #19818]
4427         [BZ #23307]
4428         * libc-abis (ABSOLUTE): New ABI.
4429         * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
4430         * NEWS: Mention the new ABI.
4432 2018-07-05  Florian Weimer  <fweimer@redhat.com>
4434         [BZ # 17662]
4435         * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
4436         (RENAME_WHITEOUT): Define.
4437         [__USE_GNU] (renameat2): Declare.
4438         * stdio-common/Makefile (routines): Add renameat2.
4439         (tests): Add tst-renameat2.
4440         * stdio-common/Versions (GLIBC_2_28): Export renameat2.
4441         * stdio-common/renameat2.c: New file.
4442         * stdio-common/tst-renameat2.c: Likewise.
4443         * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
4444         * manual/filesys.texi (Temporary Files): Note that renameat2 is
4445         undocumented.
4446         * sysdeps/unix/sysv/linux/kernel-features.h
4447         [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
4448         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4449         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
4450         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4451         [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
4452         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4453         [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
4454         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4455         [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
4456         * include/stdio.h (__renameat): Add alias for renameat.
4457         * stdio-common/renameat.c (__renameat): Rename from renameat.
4458         Add hidden definition and alias.
4459         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
4460         * sysdeps/mach/hurd/renameat.c: Likewise.
4461         * sysdeps/**/libc*.abilist: Add renameat2.
4463 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4465         * posix/bug-regex33.c: Fix build after regex sync.
4467 2018-07-04  Carlos O'Donell  <carlos@redhat.com>
4469         [BZ #23164]
4470         * localedata/tst-langinfo-setlocale.c: New file.
4471         * localedata/tst-langinfo-setlocale-static.c: New file.
4472         * localedata/tst-langinfo-newlocale.c: New file.
4473         * localedata/tst-langinfo-newlocale-static.c: New file.
4474         * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
4475         tst-langinfo-setlocale, tst-langinfo-setlocale-static,
4476         tst-langinfo-newlocale, tst-langinfo-newlocale-static.
4477         (tests-static): Remove tst-langinfo-static. Add
4478         tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
4479         (tests-special): Remove $(objpfx)tst-langinfo.out,
4480         $(objpfx)tst-langinfo-static.out. Add
4481         $(objpfx)tst-langinfo-setlocale.out,
4482         $(objpfx)tst-langinfo-newlocale.out,
4483         $(objpfx)tst-langinfo-setlocale-static.out,
4484         $(objpfx)tst-langinfo-newlocale-static.out.
4485         ($(objpfx)tst-langinfo.out): Remove.
4486         ($(objpfx)tst-langinfo-static.out): Remove.
4487         ($(objpfx)tst-langinfo-newlocale.out): New target.
4488         ($(objpfx)tst-langinfo-newlocale-static.out): New target.
4489         (test-xfail-tst-langinfo-newlocale-static): Add.
4490         ($(objpfx)tst-langinfo-setlocale.out): New target.
4491         ($(objpfx)tst-langinfo-setlocale-static.out): New target.
4492         * localedata/tst-langinfo.c: Call test_locale.
4493         * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
4494         data.
4496 2018-07-04  Florian Weimer  <fweimer@redhat.com>
4498         testrun.sh: Implement --tool=strace, --tool=valgrind
4499         * Makefile (testrun-script): Define variable.
4500         (testrun.sh): Use variable.
4501         * manual/install.texi (Tools for Compilation): make 4.0 or later
4502         is required.
4503         * configure.ac: Check for make 4.0 or later.
4504         * INSTALL: Regenerate.
4505         * configure: Likewise.
4507 2018-07-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4509         [BZ #23233]
4510         [BZ #21163]
4511         [BZ #18986]
4512         [BZ #13762]
4513         * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
4514         * posix/PCRE.tests: Remove invalid test.
4515         * posix/bug-regex28.c: Fix expected values for used syntax.
4516         * posix/bug-regex37.c: New file.
4517         * posix/bug-regex38.c: Likewise.
4518         * posix/regcomp.c: Sync with gnulib.
4519         * posix/regex.c: Likewise.
4520         * posix/regex.h: Likewise.
4521         * posix/regex_internal.c: Likewise.
4522         * posix/regex_internal.h: Likewise.
4523         * posix/regexec.c: Likewise.
4525 2018-06-26  Mike FABIAN  <mfabian@redhat.com>
4527         [BZ #23308]
4528         * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
4529         * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
4530         * localedata/unicode-gen/EastAsianWidth.txt: likewise.
4531         * localedata/unicode-gen/PropList.txt: likewise.
4532         * localedata/unicode-gen/UnicodeData.txt: likewise.
4533         * localedata/charmaps/UTF-8: Regenerate.
4534         * localedata/locales/i18n_ctype: likewise.
4535         * localedata/locales/tr_TR: likewise.
4536         * localedata/locales/translit_circle: likewise.
4537         * localedata/locales/translit_cjk_compat: likewise.
4538         * localedata/locales/translit_combining: likewise.
4539         * localedata/locales/translit_compat: likewise.
4540         * localedata/locales/translit_font: likewise.
4541         * localedata/locales/translit_fraction: likewise.
4543 2018-07-03  Florian Weimer  <fweimer@redhat.com>
4545         [BZ #23363]
4546         * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
4547         * stdio-common/tst-printf.sh: Adjust expected output.
4548         * LICENSES: Update.
4550 2018-07-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4552         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
4553         symbol.
4555 2018-07-02  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4557         * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
4558         (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
4559         ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
4560         * stdio-common/tst-printfsz-islongdouble.c: New file.
4561         * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
4562         * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
4563         [subdir == stdio-common] (routines): Add ieee128-printf_size.
4564         [subdir == stdio-common] (tests-internal): Add
4565         test-printf-size-ieee128, and test-printf-size-ibm128.
4566         [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
4567         (CFLAGS-test-printf-size-ibm128.c): New variables.
4568         [subdir == stdio-common] (tests-special): Add
4569         $(objpfx)test-printf-size-ieee128.out and
4570         $(objpfx)test-printf-size-ibm128.out.
4571         [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
4572         ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
4573         * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
4574         __printf_sizeieee128.
4575         * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
4576         New file.
4577         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
4578         Likewise.
4579         * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
4580         Likewise.
4582 2018-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4584         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
4585         (exp2f_inline): Likewise.
4586         * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
4587         (__math_uflowf): Likewise.
4588         (__math_may_uflowf): Likewise.
4589         (__math_divzerof): Likewise.
4590         (__math_invalidf): Likewise.
4591         * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
4592         (__math_oflowf): Likewise.
4593         (__math_uflowf): Likewise.
4594         (__math_may_uflowf): Likewise.
4595         (__math_divzerof): Likewise.
4596         (__math_invalidf): Likewise.
4598 2018-06-29  DJ Delorie  <dj@redhat.com>
4599             Carlos O'Donell  <carlos@redhat.com>
4601         [BZ #23329]
4602         * include/libc-symbols.h: Comment the freeres framework.
4603         * include/set-hooks.h: Include libc-symbols.h.  Fix comment.
4604         * dlfcn/Makefile (libdl-routines): Add dlfreeres.
4605         * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
4606         * dlfcn/dlerror.c: Include libc-symbols.h
4607         (__dlerror_main_freeres): New function.
4608         * dlfcn/dlfreeres.c: New file.
4609         * dlfcn/sdlfreeres.c: New file.
4610         * include/dlfcn.h: Declare __dlerror_main_freeres.
4611         * malloc/set-freeres.c: Declare __libdl_freeres, and
4612         __libpthread_freeres.
4613         (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
4614         the releavant libraries are loaded.
4615         * malloc/thread-freeres.c: Add comments.
4616         * nptl/Makefile (libpthread-routines): Add nptlfreeres.
4617         * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
4618         * nptl/allocatestack.c (__nptl_free_stacks): New function.
4619         (__free_stacks): Rename to...
4620         (free_stacks): ...this. Mark static.
4621         (queue_stack): Call free_stacks.
4622         * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
4623         * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
4624         * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
4625         ptr_freeres element from struct.
4626         (pthread_functions): Remove .ptr_freeres from struct initializer.
4627         [SHARED] (nptl_freeres): Remove.
4628         * nptl/nptlfreeres.c: New file.
4629         * nptl/pthreadP.h
4630         [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
4631         [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this.  Mark
4632         attribute_hidden.
4633         (__free_stacks): Rename to...
4634         (__nptl_stacks_freeres): ...this.
4635         (__shm_directory_freeres): Declare.
4636         * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
4637         (__nptl_unwind_freeres): ...this.
4638         * resolv/res-close.c: Add comment.
4639         * resolv/resolv_conf.c: Include libc-symbols.h.
4640         * string/strerror_l.c: Include libc-symbols.h.
4641         * sunrpc/rpc_thread.c: Include libc-symbols.h.
4642         * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
4643         * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
4644         [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
4646 2018-06-29  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4648         * stdlib/tst-strfmon_l.c: Add tests for long double.
4650 2018-06-29  Michael Wolf  <milupo@sorbzilla.de>
4652         [BZ #23208]
4653         * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
4654         * localedata/locales/dsb_DE: New file.
4656 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
4658         [BZ #23140]
4659         * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
4660         genitive case).
4661         (alt_mon): New entry, import from CLDR (nominative case).
4663 2018-06-29  Sylvain Lesage  <severo@rednegra.net>
4665         [BZ #22996]
4666         * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
4668 2018-06-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4670         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
4671         Use vector registers.
4673         * sysdeps/aarch64/multiarch/memmove_falkor.S
4674         (__memcpy_falkor): Use vector registers.
4676 2018-06-29  Martin Sebor  <msebor@redhat.com>
4678         * manual/stdio.texi (Customizing Printf): Mention interaction
4679         with GCC built-ins.
4681 2018-06-29  Maciej W. Rozycki  <macro@mips.com>
4683         [BZ #23307]
4684         * elf/dl-lookup.c (check_match): Do not reject a symbol whose
4685         `st_value' is 0 if `st_shndx' is SHN_ABS.
4686         * elf/tst-absolute-zero.c: New file.
4687         * elf/tst-absolute-zero-lib.c: New file.
4688         * elf/tst-absolute-zero-lib.lds: New file.
4689         * elf/Makefile (tests): Add `tst-absolute-zero'.
4690         (modules-names): Add `tst-absolute-zero-lib'.
4691         (LDLIBS-tst-absolute-zero-lib.so): New variable.
4692         ($(objpfx)tst-absolute-zero-lib.so): New dependency.
4693         ($(objpfx)tst-absolute-zero: New dependency.
4695 2018-06-29  Zack Weinberg  <zackw@panix.com>
4697         * configure.ac: New command-line option --disable-crypt.
4698         Force --disable-nss-crypt when --disable-crypt is given, with a
4699         warning if it was explicitly enabled.
4700         * configure: Regenerate.
4701         * config.make.in: New boolean substitution variable $(build-crypt).
4702         * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
4703         when $(build-crypt).
4704         * manual/install.texi: Document --disable-crypt.
4705         * INSTALL: Regenerate.
4707         * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
4708         which is never set.
4709         * conform/Makefile: Only include libcrypt.a in
4710         linknamespace-libs-xsi and linknamespace-libs-XPG4
4711         when $(build-crypt).
4712         * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
4713         USE_CRYPT to 1 when $(build-crypt).
4714         (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
4715         (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
4716         * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
4718 2018-06-29  Zack Weinberg  <zackw@panix.com>
4720         * crypt/crypt.h, posix/unistd.h: Update comments and
4721         prototypes for crypt and crypt_r.
4723         * manual/crypt.texi (Cryptographic Functions): New initial
4724         exposition.
4725         (crypt): Section renamed to 'Passphrase Storage'.  Full rewrite.
4726         (Unpredictable Bytes): Improve initial exposition.  Clarify error
4727         behavior of getentropy and getrandom.
4728         * manual/examples/genpass.c: Generate a salt using getentropy
4729         instead of the current time. Use hash $5$ (SHA-2-256).
4730         * manual/examples/testpass.c: Demonstrate validation against
4731         hashes generated with three different one-way functions.
4733         * manual/intro.texi: crypt.texi does not need an overview
4734         anymore.
4736         * manual/nss.texi, manual/memory.texi, manual/socket.texi
4737         * manual/terminal.texi: Consistently refer to "passphrases"
4738         * instead of "passwords", and to the "user database" instead
4739         * of the "password database".
4740         * manual/users.texi: Similarly.  Add notes about how actual
4741         passphrase hashes are now stored in the shadow database.
4742         Remove 20-year-old junk todo note.
4744 2018-06-29  Zack Weinberg  <zackw@panix.com>
4746         * manual/crypt.texi: Use a normal top-level @node declaration.
4747         Move most of the introductory text to the 'crypt' section.
4748         Move the example programs below the @deftypefun for 'crypt_r'.
4749         Move the 'getpass' section...
4750         * manual/terminal.texi: ...here.
4752 2018-06-29  Zack Weinberg  <zackw@panix.com>
4753             Florian Weimer <fweimer@redhat.com>
4755         * posix/unistd.h: Do not declare encrypt.
4756         (_XOPEN_CRYPT): Remove macro definition.
4757         (crypt): Declare only for _USE_MISC.
4758         * stdlib/stdlib.h: Do not declare setkey.
4759         * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
4760         * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
4762         * crypt/crypt-entry.c: Make fcrypt a compat symbol.
4763         * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
4764         into compat symbols.  Don't define initial_perm if it's not
4765         going to be used.
4766         * crypt/cert.c: Link explicitly with the expected versions for
4767         setkey and encrypt.  If they are not available at all, mark
4768         the test as unsupported.
4770         * sunrpc/des_crypt.c: Unconditionally block linkage with
4771         cbc_crypt and ecb_crypt for new binaries.
4772         * sunrpc/des_soft.c: Unconditionally block linkage with
4773         des_setparity for new binaries.
4775         * manual/crypt.texi: Remove the entire "DES Encryption"
4776         section.  Also remove the paragraph talking about FIPS 140-2
4777         from the introduction.
4778         * manual/string.texi (strfry, memfrob): Revise.  Recommend use
4779         of libgcrypt for "real" encryption, not DES.
4780         * manual/conf.texi (Constants for Sysconf): Mention that
4781         _XOPEN_CRYPT is no longer impelemented.
4783         * conform/data/unistd.h-data: Remove crypt function declaration.
4785 2018-06-29  Florian Weimer  <fweimer@redhat.com>
4787         [BZ #23351]
4788         * malloc/hooks.c: Update comments on restoring of dumped heaps.
4789         (disallow_malloc_check): Remove variable.
4790         (__malloc_check_init): Adjust.
4791         (malloc_set_state): Update comment.
4792         * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
4793         declarations.
4795 2018-06-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
4797         [BZ #23140]
4798         * localedata/locales/ast_ES (mon): Rename to...
4799         (alt_mon): This.
4800         (mon): Import from CLDR (genitive case).
4802 2018-06-29  Daniel Alvarez  <dalvarez@redhat.com>
4803             Jakub Sitnicki  <jkbs@redhat.com>
4805         [BZ #21812]
4806         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
4807         on NLM_F_DUMP_INTR.
4809 2018-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4811         * manual/llio.texi: Remove spurious space.
4813 2018-06-28  Florian Weimer  <fweimer@redhat.com>
4815         [BZ #23349]
4816         * time/bits/types/struct_timespec.h: Change header inclusion guard to
4817         _STRUCT_TIMESPEC.
4819 2018-06-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4821         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
4822          __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
4823         * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
4824         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
4825         * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
4826         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
4827         * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
4829 2018-06-27  Maciej W. Rozycki  <macro@mips.com>
4831         [BZ #23266]
4832         * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
4833         Copy and null-terminate entries that are not terminated, in
4834         addition to empty ones.
4836 2018-06-27  Florian Weimer  <fweimer@redhat.com>
4838         [BZ #18023]
4839         * include/alloca.h (stackinfo_alloca_round, extend_alloca)
4840         (extend_alloca_account): Remove.
4841         * manual/stdio.texi (Variable Arguments Output): Update comment.
4843 2018-06-27  Joseph Myers  <joseph@codesourcery.com>
4845         * nptl/sockperf.c: Remove file.
4847 2018-06-27  Florian Weimer  <fweimer@redhat.com>
4849         [BZ #18023]
4850         * elf/dl-deps.c (_dl_map_object_deps): Use struct
4851         scratch_buffer instead of extend_alloca.
4853 2018-06-27  Florian Weimer  <fweimer@redhat.com>
4855         [BZ #18023]
4856         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
4857         scratch_buffer instead of extend_alloca.  Update comments.
4859 2018-06-27  Florian Weimer  <fweimer@redhat.com>
4861         [BZ #18023]
4862         * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
4863         instead of extend_alloca.
4865 2018-06-26  Joseph Myers  <joseph@codesourcery.com>
4867         [BZ #13888]
4868         * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
4869         * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
4870         /tmp.
4871         * scripts/test-installation.pl: Put temporary files in build
4872         directory, not /tmp.
4873         * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
4874         (CFLAGS-bug4.c): Likewise.
4875         (CFLAGS-bug5.c): Likewise.
4876         (CFLAGS-test-fseek.c): Likewise.
4877         (CFLAGS-test-popen.c): Likewise.
4878         (CFLAGS-test_rdwr.c): Likewise.
4879         * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
4880         /tmp.
4881         * stdio-common/bug4.c (main): Likewise.
4882         * stdio-common/bug5.c (main): Likewise.
4883         * stdio-common/test-fseek.c (TESTFILE): Likewise.
4884         * stdio-common/test-popen.c (do_test): Likewise.
4885         * stdio-common/test_rdwr.c (main): Likewise.
4887 2018-06-26  Patsy Franklin  <pfrankli@redhat.com>
4889         * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
4890         (sem_open): Set sem.newsem.pad to zero for valgrind.
4892 2018-06-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4894         [BZ #20251]
4895         * NEWS: Mention fcntl64 addition.
4896         * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
4897         * login/utmp_file.c: Likewise.
4898         * sysdeps/posix/fdopendir.c: Likewise.
4899         * sysdeps/posix/opendir.c: Likewise.
4900         * sysdeps/unix/pt-fcntl.c: Likewise.
4901         * include/fcntl.h (__libc_fcntl64, __fcntl64,
4902         __fcntl64_nocancel_adjusted): New prototype.
4903         (__fcntl_nocancel_adjusted): Remove prototype.
4904         * io/Makefile (routines): Add fcntl64.
4905         (CFLAGS-fcntl64.c): New rule.
4906         * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
4907         [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
4908         * io/fcntl.h (fcntl64): Add prototype and redirect if
4909         __USE_FILE_OFFSET64 is defined.
4910         * io/fcntl64.c: New file.
4911         * manual/llio.text: Add a note for which commands fcntl acts a
4912         cancellation point.
4913         * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
4914         * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
4915         * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
4916         New symbols.
4917         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
4918         F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
4919         non-LFS case.
4920         * sysdeps/unix/sysv/linux/fcntl64.c: New file.
4921         * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
4922         to __fcntl64_nocancel.
4923         (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
4924         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
4925         to __fcntl64_nocancel.
4926         * sysdeps/generic/not-cancel.h: Likewise.
4927         * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
4928         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
4929         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
4930         (fcntl64): New symbol.
4931         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4932         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4933         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
4935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
4936         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4937         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4938         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4939         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4940         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4941         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
4942         fcntl64): Likewise.
4943         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4944         * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
4945         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4946         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4947         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4948         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4949         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
4950         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4951         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4953         Likewise.
4954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4955         Likewise.
4956         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4957         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4958         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4960 2018-06-26  Florian Weimer  <fweimer@redhat.com>
4962         Run thread shutdown functions in an explicit order.
4963         * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
4964         definition.
4965         (__libc_thread_freeres): Call thread shutdown functions
4966         explicitly.
4967         * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
4968         * include/string.h (__strerror_thread_freeres): Declare.
4969         * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
4970         arena_thread_freeres.  No longer static.  Remove thread shutdown
4971         hook registration.
4972         * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
4973         Declare.
4974         * resolv/res-close.c (__res_thread_freeres): Renamed from
4975         res_thread_freeres.  No longer static.  Remove thread shutdown
4976         hook registration.
4977         * resolv/resolv-internal.h (__res_thread_freeres): Declare.
4978         * resolv/resolv_conf.c (freeres): Remove incorrect section
4979         attribute and use libc_freeres_fn.
4980         * string/strerror_l.c (__strerror_thread_freeres): Renamed from
4981         strerror_thread_freeres.  No longer static.  Remove thread
4982         shutdown hook registration.
4983         * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
4984         * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
4985         shutdown hook registration.
4986         * Makerules (shlib.lds): Do not provide section boundary symbols
4987         for __libc_thread_subfreeres.
4988         * manual/memory.texi (Basic Allocation): Update comment.
4990 2018-06-26  Florian Weimer  <fweimer@redhat.com>
4992         Remove always-defined _RPC_THREAD_SAFE_ macro.
4993         * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
4994         Do not define _RPC_THREAD_SAFE_.
4995         * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
4996         conditional.
4997         * sunrpc/clnt_perr.c: Likewise.
4998         * sunrpc/clnt_raw.c: Likewise.
4999         * sunrpc/clnt_simp.c: Likewise.
5000         * sunrpc/key_call.c: Likewise.
5001         * sunrpc/rpc_common.c: Likewise.
5002         * sunrpc/rpc_main.c: Likewise.
5003         * sunrpc/rpc_thread.c: Likewise.
5004         * sunrpc/svc.c: Likewise.
5005         * sunrpc/svc_raw.c: Likewise.
5006         * sunrpc/svc_simple.c: Likewise.
5007         * sumrpc/svcauth_des.c: Likewise.
5009 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5011         * libio/Makefile (tests-internal): Add tst-vtables,
5012         tst-vtables-interposed.
5013         * libio/tst-vtables.c: New file.
5014         * libio/tst-vtables-common.c: Likewise.
5015         * libio/tst-vtables-interposed.c: Likewise.
5017 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5019         * support/support_test_main.c (support_test_main): Only call
5020         setvbuf if not disables.
5021         * support/test-driver.c (main): Check TEST_NO_SETVBUF.
5022         * support/test-driver.h (struct test_config): Add no_setvbuf member.
5024 2018-06-26  Florian Weimer  <fweimer@redhat.com>
5026         [BZ #23313]
5027         * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
5029 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5031         [BZ #18023]
5032         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5033         Use struct scratch_buffer instead of extend_alloca.
5035 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5037         [BZ #18023]
5038         * nss/getent.c (initgroups_keys): Use dynarray instead of
5039         extend_alloca.
5041 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5043         [BZ #18023]
5044         * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
5045         Use struct scratch_buffer instead of extend_alloca.
5047 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5049         [BZ #18023]
5050         * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
5051         back to malloc directly, without stack allocations.
5053 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5055         [BZ #18023]
5056         * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
5057         of extend_alloca.
5059 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5061         [BZ #18023]
5062         * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
5063         of extend_alloca.
5064         * nscd/hstcache.c (addhstbyX): Likewise.
5065         * nscd/pwdcache.c (addpwbyX): Likewise.
5066         * nscd/servicescache.c (addservbyX): Likewise.
5068 2018-06-25  Florian Weimer  <fweimer@redhat.com>
5070         [BZ #18023]
5071         * nscd/connections.c (read_cmdline): New function.
5072         (restart): Use it.  Update comment.
5074 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
5076         [BZ #23140]
5077         * localedata/locales/csb_PL (mon): Rename to...
5078         (alt_mon): This.
5079         (abmon): Rename to...
5080         (ab_alt_mon): This.
5081         (mon): Add with proper genitive forms, copy from Wikipedia.
5082         (abmon): Likewise.
5084 2018-06-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
5086         [BZ #19485]
5087         * localedata/locales/csb_PL (mon): Fix typos:
5088         "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
5089         (yesstr): Add, value is "jo".
5090         (nostr): Add, value is "nié".
5092 2018-06-22  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5094         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
5095         all log1p and significand functions on m680x0.
5096         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
5097         of s_significand.c..
5098         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
5099         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
5100         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
5101         * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
5102         s_log1p.c and include it..
5104 2018-06-21  Vincent Chen  <vincentc@andestech.com>
5106         * elf/elf.h (R_NDS32_NONE): New define.
5107         (R_NDS32_32_RELA): Likewise.
5108         (R_NDS32_COPY): Likewise.
5109         (R_NDS32_GLOB_DAT): Likewise.
5110         (R_NDS32_JUMP_SLOT): Likewise.
5111         (R_NDS32_RELATIVE): Likewise.
5112         (R_NDS32_TLS_TPOFF): Likewise.
5113         (R_NDS32_TLS_DESC): Likewise.
5115 2018-06-21  Mark Wielaard  <mark@klomp.org>
5117         * elf/elf.h (R_BPF_MAP_FD): Removed.
5118         (R_BPF_64_64, R_BPF_64_32): New.
5120 2018-06-21  Florian Weimer  <fweimer@redhat.com>
5122         [BZ #23253]
5123         * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
5124         Renamed from libc_feholdsetround_ctx.
5125         (default_libc_feresetround_ctx): Renamed from
5126         libc_feresetround_ctx.
5127         (default_libc_feholdsetround_noex_ctx): Renamed from
5128         libc_feholdsetround_noex_ctx.
5129         (default_libc_feresetround_noex_ctx): Renamed from
5130         libc_feresetround_noex_ctx.
5131         [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
5132         (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
5133         forwardning to the old implementations under the new names.
5134         * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
5135         (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
5136         (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
5137         (libc_feresetround_ctx): Forward to default implements for i386
5138         and MATH_SET_BOTH_ROUNDING_MODES.
5139         * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
5140         Add -DMATH_SET_BOTH_ROUNDING_MODES.
5142 2018-06-20  Joseph Myers  <joseph@codesourcery.com>
5144         * string/tst-cmp.c: Include <libc-diag.h>.
5145         (strncmp_max): Disable -Wstringop-overflow= around call to
5146         strncmp.
5147         (strncasecmp_max): Disable -Wstringop-overflow= around call to
5148         strncasecmp.
5150         * string/bug-strpbrk1.c: Include <libc-diag.h>.
5151         (main): Disable -Wunused-value around call to strpbrk.
5152         * string/bug-strspn1.c: Include <libc-diag.h>.
5153         (main): Disable -Wunused-value around call to strspn.
5155 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5156             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5158         * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
5159         * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
5161 2018-06-20  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5163         * math/Makefile (libm-calls): Move s_significandF to...
5164         (gen-libm-calls): ... here.
5165         * math/s_significand_template.c: New file.
5166         * math/s_significand.c: Removed.
5167         * math/s_significandf.c: Removed.
5168         * math/s_significandl.c: Removed.
5169         * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
5170         * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
5172         * math/e_exp2_template.c (declare_mgen_finite_alias,
5173         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
5174         * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
5175         declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
5177 2018-06-20  Florian Weimer  <fweimer@redhat.com>
5179         * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
5181 2018-06-19  Joseph Myers  <joseph@codesourcery.com>
5183         [BZ #23280]
5184         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
5185         floating-point number to strtod functions rather than possibly
5186         negating result of those functions.
5187         * stdio-common/tst-scanf-round.c: New file.
5188         * stdio-common/Makefile (tests): Add tst-scanf-round.
5189         ($(objpfx)tst-scanf-round): Depend on $(libm).
5191 2018-06-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5193         * sysdeps/mach/hurd/localplt.data: Move to...
5194         * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
5195         R_386_GLOB_DAT like on Linux i386.
5197 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
5199         * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
5200         (SHM_STAT_ANY): New macro.
5201         * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
5202         (SHM_STAT_ANY): Likewise.
5203         * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
5204         (SHM_STAT_ANY): Likewise.
5205         * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
5206         (SHM_STAT_ANY): Likewise.
5207         * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
5208         (SHM_STAT_ANY): Likewise.
5209         * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
5210         (SHM_STAT_ANY): Likewise.
5211         * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
5212         (SHM_STAT_ANY): Likewise.
5213         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
5214         (SHM_STAT_ANY): Likewise.
5215         * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
5216         (SHM_STAT_ANY): Likewise.
5217         * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
5218         (SHM_STAT_ANY): Likewise.
5219         * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
5220         (SHM_STAT_ANY): Likewise.
5221         * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
5222         (SHM_STAT_ANY): Likewise.
5224         * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
5225         (SEM_STAT_ANY): New macro.
5226         * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
5227         (SEM_STAT_ANY): Likewise.
5228         * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
5229         (SEM_STAT_ANY): Likewise.
5230         * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
5231         (SEM_STAT_ANY): Likewise.
5232         * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
5233         (SEM_STAT_ANY): Likewise.
5234         * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
5235         (SEM_STAT_ANY): Likewise.
5236         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
5237         (SEM_STAT_ANY): Likewise.
5238         * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
5239         (SEM_STAT_ANY): Likewise.
5240         * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
5241         (SEM_STAT_ANY): Likewise.
5242         * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
5243         (SEM_STAT_ANY): Likewise.
5245         * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
5246         (MSG_STAT_ANY): New macro.
5247         * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
5248         (MSG_STAT_ANY): Likewise.
5249         * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
5250         (MSG_STAT_ANY): Likewise.
5251         * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
5252         (MSG_STAT_ANY): Likewise.
5253         * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
5254         (MSG_STAT_ANY): Likewise.
5255         * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
5256         (MSG_STAT_ANY): Likewise.
5257         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
5258         (MSG_STAT_ANY): Likewise.
5259         * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
5260         (MSG_STAT_ANY): Likewise.
5261         * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
5262         (MSG_STAT_ANY): Likewise.
5263         * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
5264         (MSG_STAT_ANY): Likewise.
5266         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
5267         (MAP_TYPE): Change value to 0x2b.
5269 2018-06-18  Florian Weimer  <fweimer@redhat.com>
5271         [BZ #15722]
5272         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
5273         socket with SOCK_CLOEXEC.
5275 2018-06-18  Joseph Myers  <joseph@codesourcery.com>
5277         [BZ #23303]
5278         * sysdeps/powerpc/powerpc64/le/Makefile
5279         (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
5280         (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
5281         (gnulib-tests): Also add $(f128-loader-link) for
5282         tst-strtod-nan-sign abd tst-wcstod-nan-sign.
5284 2018-06-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5286         * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
5287         * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
5288         of sendfile.
5289         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
5290         (sendfile64): New strong alias.
5291         * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
5292         * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
5293         returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
5294         * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
5295         attribute.
5296         * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
5297         ___pthread_get_cleanup_stack.
5298         * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
5299         * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
5300         * mach/shortcut.awk: Make syscall stubs include
5301         <mach-shortcuts-hidden.h> and add hidden definition.
5302         * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
5303         (__mach_msg): Add hidden prototype.
5304         * mach/msg.c: Include <mach.h>.
5305         (__mach_msg): Add hidden definition.
5306         * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
5307         * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
5308         __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
5309         __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
5310         * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
5311         __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
5312         * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
5313         prototype and definition.
5314         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
5315         hidden target for _hurd_self_sigstate.
5317 2018-06-15  Joseph Myers  <joseph@codesourcery.com>
5319         [BZ #23007]
5320         * stdlib/tst-strtod-nan-sign-main.c: New file.
5321         * stdlib/tst-strtod-nan-sign.c: Likewise.
5322         * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
5323         * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
5324         ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
5325         * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
5326         ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
5328 2018-06-15  Herman ten Brugge  <hermantenbrugge@home.nl>
5330         [BZ #23007]
5331         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
5332         appropriate sign.
5334 2018-06-14  Florian Weimer  <fweimer@redhat.com>
5336         [BZ #23290]
5337         * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
5338         that the result stays within the ISO-8859-1 range.
5339         * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
5340         characters are defined in IBM273.
5342 2018-06-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5344         * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
5345         __mach_task_self): Remove attribute_hidden.
5347 2018-06-14  Joseph Myers  <joseph@codesourcery.com>
5349         * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
5350         ignore -Wrestrict for one test.
5352 2018-06-14  Steve Ellcey  <sellcey@caviumnetworks.com>
5353             Szabolcs Nagy  <szabolcs.nagy@arm.com>
5355         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
5357 2018-06-14  Florian Weimer  <fweimer@redhat.com>
5359         * scripts/update-abilist.sh: Accept empty list of files to patch.
5361 2018-06-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5363         * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
5364         test-xfail-check-abi-libmachuser): Add.
5365         * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
5366         __libc_read and __libc_write to __read and __write.
5367         * sysdeps/hurd/include/hurd/port.h: New file.
5368         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
5369         __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
5370         __thread_switch, __evc_wait): Move declarations to...
5371         * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
5372         attribute_hidden.
5373         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
5374         use PLT to call _hurd_self_sigstate.
5376 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
5378         [BZ #23279]
5379         * stdlib/strtod_l.c (round_and_return): Handle an exponent of
5380         MAX_EXP as overflowing.
5381         * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
5382         overflow flag.
5383         (round_str): Output also whether result overflows in each rounding
5384         mode.
5385         * stdlib/tst-strtod-round-data: Add more tests.
5386         * stdlib/tst-strtod-round-data.h: Regenerated.
5387         * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
5388         (TEST): Handle extra arguments for overflow flags.
5389         (struct test_overflow): New type.
5390         [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
5391         (GEN_ONE_TEST): Clear all exceptions.  Test overflow flag.
5392         (test_in_one_mode): Take argument with overflow information.
5393         (do_test): Update calls to test_in_one_mode.
5395 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
5397         * elf/dl-load (_dl_dst_substitute): Correct comment.
5398         (_dl_dst_count): Likewise.
5400         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
5401         lll_futex_timed_wait.
5403 2018-06-12  Joseph Myers  <joseph@codesourcery.com>
5405         [BZ #23277]
5406         * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
5407         attribute.
5408         * math/test-nan-const.c: New file.
5409         * math/Makefile (tests): Add test-nan-const.
5410         (CFLAGS-test-nan-const.c): New variable.
5412 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5414         * benchtests/scripts/compare_strings.py (process_results): Add
5415         funcs argument.  Compare only functions which are selected.
5416         (main): Check if base function is among selected functions.
5417         Pass selected functions to process_results.
5418         (__main__): Add -f/--functions argument.
5420 2018-06-12  Minfeng Kang  <minfeng.kang@hxt-semitech.com>
5421             Hongbo Zhang  <hongbo.zhang@linaro.org>
5423         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
5424         __memcpy_falkor for phecda core.
5425         * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
5426         __memmove_falkor for phecda core.
5427         * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
5428         __memset_falkor for phecda core.
5429         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
5430         for phecda core.
5431         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
5432         macro to identify phecda core.
5434 2018-06-12  Carlos O'Donell  <carlos@redhat.com>
5435             Andreas Schwab  <schwab@suse.de>
5436             Dmitry V. Levin  <ldv@altlinux.org>
5437             Florian Weimer <fweimer@redhat.com>
5439         [BZ #23102]
5440         [BZ #21942]
5441         [BZ #18018]
5442         [BZ #23259]
5443         CVE-2011-0536
5444         * elf/dl-dst.h: Remove DL_DST_COUNT.
5445         * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
5446         * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
5447         (is_dst): Comment.  Support ELF gABI.
5448         (_dl_dst_count): Comment.  Simplify and count DSTs.
5449         (_dl_dst_substitute): Comment.  Support __libc_enable_secure handling.
5450         (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
5451         locals.
5453 2018-06-12  Zack Weinberg  <zackw@panix.com>
5455         * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
5456         * sysdeps/unix/sysv/linux/dl-sysdep.c
5457         Include not-cancel.h.  Use __close_nocancel instead of __close,
5458         __open64_nocancel instead of __open, __read_nocancel instead of
5459         __libc_read, and __write_nocancel instead of __libc_write.
5461         * csu/check_fds.c (check_one_fd)
5462         * sysdeps/posix/fdopendir.c (__fdopendir)
5463         * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
5464         instead of __fcntl and/or __libc_fcntl.
5466         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
5467         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
5468         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
5469         Use __open64_nocancel instead of __open_nocancel.
5471         * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
5472         hidden_proto declarations to the end and issue them if either
5473         IS_IN(libc) or IS_IN(rtld).
5474         * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
5475         Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
5476         open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
5477         read_nocancel, waitpid_nocancel, write_nocancel.
5479         * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
5480         __fcntl_nocancel, __open64_nocancel, __write_nocancel.
5481         * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
5483         * nptl/pt-fcntl.c: New file.
5484         * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
5485         (libpthread-routines): Add pt-fcntl.
5486         * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
5487         (__libc_fcntl): Remove attribute_hidden.
5488         * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
5489         __fcntl_nocancel_adjusted, not fcntl_common.
5490         (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
5491         (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
5492         to fcntl_nocancel.c.
5493         * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
5494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
5495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
5496         Define FCNTL_ADJUST_CMD here, as a self-contained macro.
5498         * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
5499         * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
5500         * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
5501         * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
5502         * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
5503         * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
5504         * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
5505         * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
5506         * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
5507         * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
5508         * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
5509         * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
5510         * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
5511         * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
5512         * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
5513         * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
5514         * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
5515         * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
5516         * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
5517         * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
5519         * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
5520         libpthread-routines.
5521         * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
5522         defines nothing.
5524         * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
5525         __libc_read, and __write instead of __libc_write.  Define
5526         __open64 in addition to __open.
5528 2018-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5530         [BZ #23250]
5531         [BZ #10686]
5532         * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
5533         to _private_tm[3] and add __glibc_reserved2.
5534         Add _Static_assert of offset of __private_ss == 0x30.
5535         * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
5536         __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
5538 2018-06-12  Florian Weimer  <fweimer@redhat.com>
5540         x86: Make strncmp usable from rtld.
5541         * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
5542         __strncmp_ia32 if in libc (and not in rtld).
5543         * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
5544         strncmp if not in libc (and not to __strncmp_sse2).
5546 2018-06-12  Rafal Luzynski  <digitalfreak@lingonborough.com>
5548         [BZ #23140]
5549         * localedata/locales/gd_GB (mon): Rename to...
5550         (alt_mon): This.
5551         (mon): Import from CLDR (genitive case).
5552         * localedata/locales/hsb_DE (mon): Rename to...
5553         (alt_mon): This.
5554         (mon): Import from CLDR (genitive case).
5555         * localedata/locales/wa_BE (mon): Rename to...
5556         (alt_mon): This.
5557         (mon): Add, fill with the proper genitive forms, but CLDR data
5558         is incomplete; completed according to the comments in this file.
5559         (d_t_fmt): Do not use "di" before the month name, no longer needed.
5561         * localedata/locales/wa_BE (country_name): Reword
5562         "Beljike" -> "Beldjike".
5564 2018-06-11  Joseph Myers  <joseph@codesourcery.com>
5566         [BZ #23272]
5567         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
5568         cases of non-finite arguments.
5569         * math/libm-test-fma.inc (fma_test_data): Add more tests.
5571 2018-06-10  John David Anglin  <danglin@gcc.gnu.org>
5573         [BZ #23174]
5574         * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
5576 2018-06-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5578         [BZ #23264]
5579         * include/unistd.h (__execvpex): New prototype.
5580         * posix/Makefile (tests): Add tst-spawn4.
5581         (tests-internal): Add tst-spawn4-compat.
5582         * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
5583         * posix/tst-spawn4-compat.c: New file.
5584         * posix/tst-spawn4.c: Likewise.
5585         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
5586         binaries as shell scripts.
5587         * sysdeps/posix/spawni.c (__spawni): Likewise.
5589 2018-06-08  H.J. Lu  <hongjiu.lu@intel.com>
5591         [BZ #23145]
5592         * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
5593         ($(all-built-dso:=.dynsym): New target.
5594         (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
5595         ($(objpfx)check-initfini.out): New target.
5596         (generated): Add check-initfini.out.
5597         * scripts/check-initfini.awk: New file.
5598         * sysdeps/aarch64/crti.S (_init): Mark as hidden.
5599         (_fini): Likewise.
5600         * sysdeps/alpha/crti.S (_init): Mark as hidden.
5601         (_fini): Likewise.
5602         * sysdeps/arm/crti.S (_init): Mark as hidden.
5603         (_fini): Likewise.
5604         * sysdeps/hppa/crti.S (_init): Mark as hidden.
5605         (_fini): Likewise.
5606         * sysdeps/i386/crti.S (_init): Mark as hidden.
5607         (_fini): Likewise.
5608         * sysdeps/ia64/crti.S (_init): Mark as hidden.
5609         (_fini): Likewise.
5610         * sysdeps/m68k/crti.S (_init): Mark as hidden.
5611         (_fini): Likewise.
5612         * sysdeps/microblaze/crti.S (_init): Mark as hidden.
5613         (_fini): Likewise.
5614         * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
5615         (_fini): Likewise.
5616         * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
5617         (_fini): Likewise.
5618         * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
5619         (_fini): Likewise.
5620         * sysdeps/nios2/crti.S (_init): Mark as hidden.
5621         (_fini): Likewise.
5622         * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
5623         (_fini): Likewise.
5624         * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
5625         (_fini): Likewise.
5626         * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
5627         (_fini): Likewise.
5628         * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
5629         (_fini): Likewise.
5630         * sysdeps/sh/crti.S (_init): Mark as hidden.
5631         (_fini): Likewise.
5632         * sysdeps/sparc/crti.S (_init): Mark as hidden.
5633         (_fini): Likewise.
5634         * sysdeps/x86_64/crti.S (_init): Mark as hidden.
5635         (_fini): Likewise.
5637 2018-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5639         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
5640         [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
5641         and TF redirection to KFtype and KF only when the default
5642         long double type is not the IEEE 128-bit floating point type.
5644 2018-06-05  Joseph Myers  <joseph@codesourcery.com>
5646         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
5647         macro.
5648         (HWCAP_USCAT): Likewise.
5649         (HWCAP_ILRCPC): Likewise.
5650         (HWCAP_FLAGM): Likewise.
5651         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5652         Increase to 28.
5653         (_dl_aarch64_cap_flags): Add new flag names.
5655         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
5656         (MAP_FIXED_NOREPLACE): New macro.
5657         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
5658         (MAP_FIXED_NOREPLACE): Likewise.
5659         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
5660         (MAP_FIXED_NOREPLACE): Likewise.
5661         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
5662         (MAP_FIXED_NOREPLACE): Likewise.
5663         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
5664         (MAP_FIXED_NOREPLACE): Likewise.
5665         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
5666         (MAP_FIXED_NOREPLACE): Likewise.
5667         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
5668         (MAP_FIXED_NOREPLACE): Likewise.
5669         * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
5670         (MAP_FIXED_NOREPLACE): Likewise.
5671         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
5672         (MAP_FIXED_NOREPLACE): Likewise.
5673         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
5674         (MAP_FIXED_NOREPLACE): Likewise.
5675         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
5676         (MAP_FIXED_NOREPLACE): Likewise.
5677         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
5678         (MAP_FIXED_NOREPLACE): Likewise.
5679         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
5680         (MAP_FIXED_NOREPLACE): Likewise.
5681         * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
5682         (MAP_FIXED_NOREPLACE): Likewise.
5683         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
5684         (MAP_FIXED_NOREPLACE): Likewise.
5686         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5687         version to 4.17.
5689 2018-06-04  Joseph Myers  <joseph@codesourcery.com>
5691         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5692         version to 4.17
5694 2018-06-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5696         * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
5697         int.
5698         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
5700 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5702         * benchtests/scripts/compare_string.py: (process_results) Catch
5703         exception in non-existent base_func and catch exception in
5704         non-existent attribute.
5705         (parse_file) Catch exception if input file does not exist.
5707 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5709         * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
5710         options to avoid diff calculation and omit header, respectively.
5711         (main): process --no-diff and --no-header
5713 2018-06-01  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
5714             H.J. Lu  <hongjiu.lu@intel.com>
5716         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
5717         strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
5718         wcsncmp-sse2.
5719         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
5720         (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
5721         __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
5722         and __wcsncmp_sse2.
5723         * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
5724         (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
5725         AVX unaligned load is fast and vzeroupper is preferred.
5726         * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
5727         * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
5728         * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
5729         * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
5730         * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
5731         * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
5732         * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
5733         * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
5734         * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
5735         * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
5736         is undefined.
5738 2018-06-01  Florian Weimer  <fweimer@redhat.com>
5740         * sysdeps/i386/fpu/libm-test-ulps: Update with results from
5741         configuring with --disable-multi-arch, building with
5742         “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
5743         Haswell-era CPU.
5745 2018-06-01  Florian Weimer  <fweimer@redhat.com>
5747         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
5748         results from building with “-march=x86-64 -mtune=generic
5749         -mfpmath=sse” and running on a Haswell-era CPU.
5751 2018-06-01  Joseph Myers  <joseph@codesourcery.com>
5753         [BZ #18473]
5754         * soft-fp/sqrttf2.c: Remove file.
5755         * soft-fp/sqrtdf2.c: Move to ....
5756         * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here.  Include
5757         <shlib-compat.h>.
5758         (__sqrtdf2): Make conditional on
5759         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
5760         symbol.
5761         * soft-fp/sqrtsf2.c: Move to ....
5762         * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here.  Include
5763         <shlib-compat.h>.
5764         (__sqrtsf2): Make conditional on
5765         [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)].  Define as compat
5766         symbol.
5767         * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
5768         (gcc-double-routines): Remove sqrtdf2.
5769         (gcc-quad-routines): Remove sqrttf2.
5770         * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
5771         Do not filter out sqrtsf2 and sqrtdf2.
5772         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
5773         (sysdep_routines): Add sqrtsf2 and sqrtdf2.
5775 2018-06-01  Florian Weimer  <fweimer@redhat.com>
5777         * sysdeps/generic/libcidn.abilist: Remove file.
5779 2018-06-01  Florian Weimer  <fweimer@redhat.com>
5781         [BZ #23236]
5782         * libio/strfile.h (struct _IO_str_fields): Rename members to
5783         discourage their use and add comment.
5784         (_IO_STR_DYNAMIC): Remove unused macro.
5785         * libio/strops.c (_IO_str_init_static_internal): Do not use
5786         callback pointers.  Call malloc and free.
5787         (_IO_str_overflow): Do not use callback pointers.  Call malloc
5788         and free.
5789         (enlarge_userbuf): Likewise.
5790         (_IO_str_finish): Call free.
5791         * libio/wstrops.c (_IO_wstr_init_static): Initialize
5792         _allocate_buffer_unused.
5793         (_IO_wstr_overflow): Do not use callback pointers.  Call malloc
5794         and free.
5795         (enlarge_userbuf): Likewise.
5796         (_IO_wstr_finish): Call free.
5797         * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
5798         _allocate_buffer_unused, _free_buffer_unused.
5799         * libio/memstream.c (__open_memstream): Likewise.
5800         * libio/vasprintf.c (_IO_vasprintf): Likewise.
5801         * libio/wmemstream.c (open_wmemstream): Likewise.
5803 2018-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
5805         * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
5806         AMD Ryzen 7 1800X.
5808 2018-05-30  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5810         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
5811         add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
5812         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
5813         New file.
5814         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
5815         Likewise.
5816         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
5818 2018-05-29  Florian Weimer  <fweimer@redhat.com>
5820         * support/Makefile (libsupport-routines): Add
5821         xpthread_barrierattr_destroy, xpthread_barrierattr_init,
5822         xpthread_barrierattr_setpshared.
5823         * support/xpthread_barrierattr_destroy.c: New file.
5824         * support/xpthread_barrierattr_init.c: Likewise.
5825         * support/xpthread_barrierattr_setpshared.c: Likewise.
5827 2018-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5829         [BZ #23206]
5830         * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
5831         _r_debug and update DT_DEBUG for debugger.
5833 2018-05-29  Florian Weimer  <fweimer@redhat.com>
5835         * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
5836         (tst-strtod5i.out): Likewise.
5838 2018-05-25  Joseph Myers  <joseph@codesourcery.com>
5840         * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
5841         * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
5842         (sparc64-quad-routines): New variable.  Moved from ....
5843         [$(subdir) = soft-fp] (sysdep_routines): Add
5844         $(sparc64-quad-routines).  Moved from ....
5845         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/.  Moved from ....
5846         * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here.  Remove file.
5847         * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
5848         moved from ....
5849         * sysdeps/sparc/sparc64/soft-fp/Versions: ... here.  Remove file.
5850         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
5851         * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
5852         * sysdeps/sparc/sparc64/qp_add.c: ... here.
5853         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
5854         * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
5855         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
5856         * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
5857         * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
5858         * sysdeps/sparc/sparc64/qp_div.c: ... here.
5859         * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
5860         * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
5861         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
5862         * sysdeps/sparc/sparc64/qp_feq.c: ... here.
5863         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
5864         * sysdeps/sparc/sparc64/qp_fge.c: ... here.
5865         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
5866         * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
5867         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
5868         * sysdeps/sparc/sparc64/qp_fle.c: ... here.
5869         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
5870         * sysdeps/sparc/sparc64/qp_flt.c: ... here.
5871         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
5872         * sysdeps/sparc/sparc64/qp_fne.c: ... here.
5873         * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
5874         * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
5875         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
5876         * sysdeps/sparc/sparc64/qp_mul.c: ... here.
5877         * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
5878         * sysdeps/sparc/sparc64/qp_neg.S: ... here.
5879         * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
5880         * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
5881         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
5882         * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
5883         * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
5884         * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
5885         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
5886         * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
5887         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
5888         * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
5889         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
5890         * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
5891         * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
5892         * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
5893         * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
5894         * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
5895         * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
5896         * sysdeps/sparc/sparc64/qp_sub.c: ... here.
5897         * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
5898         * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
5899         * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
5900         * sysdeps/sparc/sparc64/qp_util.c: ... here.
5901         * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
5902         * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
5903         * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
5904         * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
5905         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
5906         * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
5908         * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
5909         * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
5910         (sparc32-quad-routines): New variable.  Moved from ....
5911         [$(subdir) = soft-fp] (sysdep_routines): Add
5912         $(sparc32-quad-routines).  Moved from ....
5913         * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here.  Remove file.
5914         * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
5915         moved from ....
5916         * sysdeps/sparc/sparc32/soft-fp/Versions: ... here.  Remove file.
5917         * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
5918         * sysdeps/sparc/sparc32/q_add.c: ... here.
5919         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
5920         * sysdeps/sparc/sparc32/q_cmp.c: ... here.
5921         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
5922         * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
5923         * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
5924         * sysdeps/sparc/sparc32/q_div.c: ... here.
5925         * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
5926         * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
5927         * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
5928         * sysdeps/sparc/sparc32/q_feq.c: ... here.
5929         * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
5930         * sysdeps/sparc/sparc32/q_fge.c: ... here.
5931         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
5932         * sysdeps/sparc/sparc32/q_fgt.c: ... here.
5933         * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
5934         * sysdeps/sparc/sparc32/q_fle.c: ... here.
5935         * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
5936         * sysdeps/sparc/sparc32/q_flt.c: ... here.
5937         * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
5938         * sysdeps/sparc/sparc32/q_fne.c: ... here.
5939         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
5940         * sysdeps/sparc/sparc32/q_itoq.c: ... here.
5941         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
5942         * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
5943         * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
5944         * sysdeps/sparc/sparc32/q_mul.c: ... here.
5945         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
5946         * sysdeps/sparc/sparc32/q_neg.c: ... here.
5947         * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
5948         * sysdeps/sparc/sparc32/q_qtod.c: ... here.
5949         * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
5950         * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
5951         * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
5952         * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
5953         * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
5954         * sysdeps/sparc/sparc32/q_qtos.c: ... here.
5955         * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
5956         * sysdeps/sparc/sparc32/q_qtou.c: ... here.
5957         * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
5958         * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
5959         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
5960         * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
5961         * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
5962         * sysdeps/sparc/sparc32/q_stoq.c: ... here.
5963         * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
5964         * sysdeps/sparc/sparc32/q_sub.c: ... here.
5965         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
5966         * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
5967         * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
5968         * sysdeps/sparc/sparc32/q_util.c: ... here.
5969         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
5970         * sysdeps/sparc/sparc32/q_utoq.c: ... here.
5971         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
5972         * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
5974 2018-05-24  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5975             Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5977         * sysdeps/powerpc/Implies: Removed.  Previous contents copied to...
5978         * sysdeps/powerpc/powerpc32/Implies-after: ... here.
5979         * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
5980         * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
5982 2018-05-24  Joseph Myers  <joseph@codesourcery.com>
5984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
5985         powerpc/soft-fp.
5986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
5987         Likewise.
5988         * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
5989         * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
5991 2018-05-24  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
5993         [BZ #23171]
5994         * math/math.h [C++] (iseqsig): Fix parameter type for the long
5995         double version.
5997 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
5999         * sysdeps/sh/Implies: Remove sh/soft-fp.
6000         * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
6001         * sysdeps/sh/sfp-machine.h: ... here.
6003 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6005         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6006         (__mempcpy_erms): Skip zero length.
6007         (__memmove_erms): Likewise.
6008         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
6009         (__memset_erms): Likewise.
6011 2018-05-23  Joseph Myers  <joseph@codesourcery.com>
6013         * sysdeps/alpha/Implies: Remove alpha/soft-fp.
6014         * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
6015         Add functions moved from ....
6016         [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp.  Moved from ....
6017         * sysdeps/alpha/soft-fp/Makefile: ... here.  Remove file.
6018         * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
6019         from ....
6020         * sysdeps/alpha/soft-fp/Versions: ... here.  Remove file.
6021         * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
6022         * sysdeps/alpha/e_sqrtl.c: ... here.
6023         * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
6024         * sysdeps/alpha/local-soft-fp.h: ... here.
6025         * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
6026         * sysdeps/alpha/ots_add.c: ... here.
6027         * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
6028         * sysdeps/alpha/ots_cmp.c: ... here.
6029         * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
6030         * sysdeps/alpha/ots_cmpe.c: ... here.
6031         * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
6032         * sysdeps/alpha/ots_cvtqux.c: ... here.
6033         * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
6034         * sysdeps/alpha/ots_cvtqx.c: ... here.
6035         * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
6036         * sysdeps/alpha/ots_cvttx.c: ... here.
6037         * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
6038         * sysdeps/alpha/ots_cvtxq.c: ... here.
6039         * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
6040         * sysdeps/alpha/ots_cvtxt.c: ... here.
6041         * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
6042         * sysdeps/alpha/ots_div.c: ... here.
6043         * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
6044         * sysdeps/alpha/ots_mul.c: ... here.
6045         * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
6046         * sysdeps/alpha/ots_nintxq.c: ... here.
6047         * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
6048         * sysdeps/alpha/ots_sub.c: ... here.
6049         * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
6050         * sysdeps/alpha/sfp-machine.h: ... here.
6052 2018-05-23  Florian Weimer  <fweimer@redhat.com>
6054         [BZ #19728]
6055         [BZ #19729]
6056         [BZ #22247]
6057         CVE-2016-6261
6058         CVE-2016-6263
6059         CVE-2017-14062
6060         Switch to extern IDNA implementation (libidn2).
6061         * libidn: Remove subdirectory.
6062         * LICENSES: Do not mention licensing conditions for the removed
6063         libidn code.
6064         * config.h.in (HAVE_LIBIDN): Remove.
6065         * include/dlfcn.h (__libc_dlopen): Update comment.
6066         * include/idna.h: Remove file.
6067         * inet/Makefile (routines): Add idna.
6068         (tests-static, tests-internal): Add tst-idna_name_classify.
6069         (LOCALES): Generate locales for tests.
6070         (tst-idna_name_classify.out): Depend on generated locales.
6071         * inet/idna_name_classify.c: New file.
6072         * inet/tst-idna_name_classify.c: Likewise.
6073         * inet/net-internal.h (__idna_to_dns_encoding)
6074         (__idna_from_dns_encoding): Declare.
6075         * inet/net-internal.h (enum idna_name_classification): Define.
6076         (__idna_name_classify): Declare.
6077         * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
6078         __idna_from_dns_encoding.
6079         * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
6080         (gni_host_inet_name): Call __idna_from_dns_encoding.  Use punycode
6081         name as a fallback in case of encoding errors.
6082         (getnameinfo): Use DEPRECATED_NI_IDN.
6083         * inet/idna.c: New file.
6084         * nscd/gai.c: Do not include <libidn/idn-stub.c>.
6085         * resolv/Makefile (tests): Add tst-resolv-ai_idn,
6086         tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
6087         (modules-names): Add tst-no-libidn2.
6088         (extra-test-objs): Add tst-no-libidn2.os.
6089         (LDFLAGS-tst-no-libidn2.so): Set soname.
6090         (LOCALES): Set, and generate locales.
6091         (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
6092         (tst-resolv-ai_idn-latin1): Likewise.
6093         (tst-resolv-ai_idn-nolibidn2): Likewise.
6094         (tst-resolv-ai_idn.out): Depend on locales.
6095         (tst-resolv-ai_idn-latin1.out): Depend on locales.
6096         (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
6097         tst-no-libidn2.so.
6098         * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
6099         (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
6100         (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
6101         * resolv/tst-resolv-ai_idn.c: New file.
6102         * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
6103         * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
6104         * resolv/tst-no-libidn2.c: Likewise.
6105         * support/support_format_addrinfo.c (format_ai_flags): Do not
6106         handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
6107         * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
6108         (gaih_inet): Call __idna_to_dns_encoding and
6109         __idna_from_dns_encoding, and use the original (punycode) name if
6110         __idna_from_dns_encoding fails due to an encoding error.
6111         (getaddrinfo): Use DEPRECATED_AI_IDN.
6112         * sysdeps/unix/inet/Subdirs (libidn): Remove.
6113         * sysdeps/unix/inet/configure: Remove file.
6114         * sysdeps/unix/inet/configure.ac: Likewise.
6116 2018-05-23  Florian Weimer  <fweimer@redhat.com>
6118         Implement allocate_once.
6119         * include/allocate_once.h: New file.
6120         * misc/allocate_once.c: Likewise.
6121         * misc/tst-allocate_once.c: Likewise.
6122         * misc/Makefile (routines): Add allocate_once.
6123         (tests-internal): Add tst-allocate_once.
6124         (generated): Add tst-allocate_once.mtrace,
6125         tst-allocate_once-mem.out.
6126         (tests-special): Add tst-allocate_once-mem.out.
6127         (tst-allocate_once-ENV): Set MALLOC_TRACE.
6128         (tst-allocate_once-mem.out): Call mtrace.
6129         * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
6131 2018-05-23  H.J. Lu  <hongjiu.lu@intel.com>
6133         [BZ #23196]
6134         * string/test-memcpy.c (do_test1): New function.
6135         (test_main): Call it.
6137 2018-05-23  Andreas Schwab  <schwab@suse.de>
6139         [BZ #23196]
6140         CVE-2018-11237
6141         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
6142         (L(preloop_large)): Save initial destination pointer in %r11 and
6143         use it instead of %rax after the loop.
6144         * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
6146 2018-05-22  Joseph Myers  <joseph@codesourcery.com>
6148         * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
6149         * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
6150         -I../soft-fp.  Moved from ....
6151         * sysdeps/aarch64/soft-fp/Makefile: ... here.  Remove file.
6152         * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
6153         * sysdeps/aarch64/e_sqrtl.c: ... here.
6154         * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
6155         * sysdeps/aarch64/sfp-machine.h: ... here.
6157         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
6158         -Wmaybe-uninitialized around access to fq[0].
6159         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6160         Likewise.
6162         [BZ #18471]
6163         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
6164         aliases for non-libc case of versioned symbols.
6165         * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
6166         (llseek): Define as compat symbol if
6167         [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
6168         with link warning.
6169         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
6170         Make into a compat symbol, disabled for minimum symbol version
6171         GLIBC_2.28 and later.
6172         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
6174 2018-05-22  Florian Weimer  <fweimer@redhat.com>
6176         * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
6177         not add -mpreferred-stack-boundary=4.
6178         [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
6179         (stack-align-test-flags): Likewise.
6180         [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
6181         Likewise.
6182         [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
6183         (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
6184         [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
6185         (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
6186         * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
6187         (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
6188         (CFLAGS-tst-align2.c): Likewise.
6190 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6192         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
6193         (index_arch_Prefer_FSRM): Likewise.
6194         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6195         Also check Prefer_FSRM.
6196         * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
6197         Also return OPTIMIZE (erms) for Prefer_FSRM.
6199 2018-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6201         * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
6202         (index_cpu_FSRM): Likewise.
6203         (reg_FSRM): Likewise.
6205 2018-05-18  Joseph Myers  <joseph@codesourcery.com>
6207         * math/gen-tgmath-tests.py: Import sys.
6208         (Tests.__init__): Initialize macros_seen.
6209         (Tests.add_tests): Add macro to macros_seen.  Only generate tests
6210         if requested to do so for this macro.
6211         (Tests.add_all_tests): Take argument for macro for which to
6212         generate tests.
6213         (Tests.check_macro_list): New function.
6214         (main): Handle check-list argument and argument specifying macro
6215         for which to generate tests.
6216         * math/Makefile [PYTHON] (tgmath3-macros): New variable.
6217         [PYTHON] (tgmath3-macro-tests): Likewise.
6218         [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
6219         [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
6220         not test-tgmath3.c.
6221         [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
6222         [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
6223         to CFLAGS.
6224         [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
6225         [PYTHON] ($(foreach
6226         m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this.  New
6227         rule.
6228         [PYTHON] (tests-special): Add
6229         $(objpfx)test-tgmath3-macro-list.out.
6230         [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
6232         * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
6233         compat symbol, disabled for minimum symbol version GLIBC_2.28 and
6234         later.
6236         [BZ #22639]
6237         * time/tzset.c (SECSPERDAY): Cast to time_t.
6238         * time/tst-y2039.c: New file.
6239         * time/Makefile (tests): Add tst-y2039.
6241 2018-05-17  Leonardo Sandoval  <leonardo.sandoval.gonzalez@intel.com>
6243         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
6244         (PREFETCH_ONE_SET): Remove duplicate line.
6246 2018-05-17  Florian Weimer  <fweimer@redhat.com>
6248         * sysdeps/generic/math-type-macros-double.h: Include
6249         <math-nan-payload-double.h> after <libm-alias-double.h>.
6250         * sysdeps/generic/math-type-macros-float.h: Include
6251         <math-nan-payload-float.h> after <libm-alias-float.h>.
6252         * sysdeps/generic/math-type-macros-float128.h: Include
6253         <math-nan-payload-float128.h> after <libm-alias-float128.h>.
6254         * sysdeps/generic/math-type-macros-ldouble.h: Include
6255         <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
6257 2018-05-17  Andreas Schwab  <schwab@suse.de>
6259         * resolv/res_send.c (__res_context_send): Don't set errno when
6260         returing error after malloc failure.
6262 2018-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6264         * nptl/allocatestack.c (allocate_stack): Remove the
6265         !__ASSUME_PRIVATE_FUTEX paths.
6266         * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
6267         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
6268         Likewise.
6269         * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
6270         * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
6271         * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
6272         * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
6273         * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
6274         !__ASSUME_PRIVATE_FUTEX path.
6275         * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
6276         * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
6277         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
6278         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
6279         !__ASSUME_PRIVATE_FUTEX macros.
6280         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
6281         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
6282         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6283         * sysdeps/unix/sysv/linux/kernel-features.h
6284         (__ASSUME_PRIVATE_FUTEX): Removed.
6286 2018-05-17  Joseph Myers  <joseph@codesourcery.com>
6288         * math/Makefile (libm-narrow-fns): Add div.
6289         (libm-test-funcs-narrow): Likewise.
6290         * math/Versions (GLIBC_2.28): Add narrowing divide functions.
6291         * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
6292         * math/gen-auto-libm-tests.c (test_functions): Add div.
6293         * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
6294         (NARROW_DIV_ROUND_TO_ODD): Likewise.
6295         (NARROW_DIV_TRIVIAL): Likewise.
6296         * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
6297         macro.
6298         (__ddivl): Likewise.
6299         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
6300         ddiv.
6301         (CFLAGS-nldbl-ddiv.c): New variable.
6302         (CFLAGS-nldbl-fdiv.c): Likewise.
6303         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
6304         __nldbl_ddivl.
6305         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
6306         prototype.
6307         * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
6308         ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
6309         * math/auto-libm-test-in: Add tests of div.
6310         * math/auto-libm-test-out-narrow-div: New generated file.
6311         * math/libm-test-narrow-div.inc: New file.
6312         * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
6313         * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
6314         * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
6315         * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
6316         * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
6317         * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
6318         * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
6319         * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
6320         * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
6321         * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
6322         * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
6323         * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
6324         * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
6325         * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
6326         * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
6327         * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
6328         * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
6329         * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
6330         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6331         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6332         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6333         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6334         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6335         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6336         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6337         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6338         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6339         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6340         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6341         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6342         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6343         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
6346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6348         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6349         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6350         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6351         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6352         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6353         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6354         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6355         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6357 2018-05-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6359         [BZ #23178]
6360         * nscd/nscd-client.h (sendfileall): Remove prototype.
6361         * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
6362         (handle_request): Use writeall instead of sendfileall.
6363         * nscd/aicache.c (addhstaiX): Likewise.
6364         * nscd/grpcache.c (cache_addgr): Likewise.
6365         * nscd/hstcache.c (cache_addhst): Likewise.
6366         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6367         * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
6368         * nscd/pwdcache.c (cache_addpw): Likewise.
6369         * nscd/servicescache.c (cache_addserv): Likewise.
6370         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
6371         (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
6372         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
6373         Remove define.
6375 2018-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6377         * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
6378         Include <string/strncat.c>.
6379         * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
6380         alias.
6381         (__GI___strncat): New hidden alias.
6383 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
6385         * sysdeps/mips/mips32/libm-test-ulps: Update.
6386         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6388 2018-05-16  Florian Weimer  <fweimer@redhat.com>
6390         * support/Makefile (libsupport-routines): Add support_quote_blob,
6391         support_test_compare_blob.
6392         (tests): Add tst-support_quote_blob, tst-test_compare_blob.
6393         * support/check.h (TEST_COMPARE_BLOB): Define.
6394         (support_test_compare_blob): Declare.
6395         * support/support.h (support_quote_blob): Declare.
6396         * support/support_quote_blob.c: New file.
6397         * support/support_test_compare_blob.c: Likewise.
6398         * support/tst-support_quote_blob.c: Likewise.
6399         * support/tst-test_compare_blob.c: Likewise.
6401 2018-05-16  Florian Weimer  <fweimer@redhat.com>
6403         * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
6404         of <strtod_nan_double.h>.
6405         * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
6406         instead of SET_MANTISSA.
6407         * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
6408         of include <strtod_nan_float.h>.
6409         * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
6410         instead of <strtod_nan_ldouble.h>.
6411         * stdlib/strtod_nan_double.h: Move to ...
6412         * sysdeps/generic/math-nan-payload-double.h: ... here.
6413         (FLOAT): Remove definition.
6414         (SET_MANTISSA): Rename to ...
6415         (SET_NAN_PAYLOAD): ... this.
6416         * stdlib/strtod_nan_float.h: Move to ...
6417         * sysdeps/generic/math-nan-payload-float.h: ... here.
6418         (FLOAT): Remove definition.
6419         (SET_MANTISSA): Rename to ...
6420         (SET_NAN_PAYLOAD): ... this.
6421         * sysdeps/generic/math-type-macros-double.h: Include
6422         <math-nan-payload-double.h>.  Include <math/math-svid-compat.h>
6423         instead of <math-svid-compat.h>.
6424         * sysdeps/generic/math-type-macros-float.h: Include
6425         <math-nan-payload-float.h>.  Include <math/math-svid-compat.h>
6426         instead of <math-svid-compat.h>.
6427         * sysdeps/generic/math-type-macros-float128.h: Include
6428         <math-nan-payload-float128.h>.
6429         * sysdeps/generic/math-type-macros-ldouble.h: Include
6430         <math-nan-payload-ldouble.h>.  Include <math/math-svid-compat.h>
6431         instead of <math-svid-compat.h>.
6432         * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
6433         check for definition.
6434         * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
6435         * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
6436         Include <ieee754_float128.h>.
6437         (FLOAT): Remove definition.
6438         (SET_MANTISSA): Rename to ...
6439         (SET_NAN_PAYLOAD): ... this.
6440         * sysdeps/ieee754/float128/strtof128_nan.c: Include
6441         <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
6442         Do not include <float128_private.h>.
6443         * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
6444         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
6445         * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
6446         (FLOAT): Remove definition.
6447         (SET_MANTISSA): Rename to ...
6448         (SET_NAN_PAYLOAD): ... this.
6449         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
6450         * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
6451         (FLOAT): Remove definition.
6452         (SET_MANTISSA): Rename to ...
6453         (SET_NAN_PAYLOAD): ... this.
6454         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
6455         * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
6456         (FLOAT): Remove definition.
6457         (SET_MANTISSA): Rename to ...
6458         (SET_NAN_PAYLOAD): ... this.
6459         * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
6460         of "../stdlib/strtod_nan_double.h".
6461         * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
6462         of "../stdlib/strtod_nan_float.h".
6463         * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
6464         instead of "../stdlib/strtod_nan_ldouble.h".
6465         * manual/arith.texi (Parsing of Floats): Adjust comment.
6467 2018-05-16  Joseph Myers  <joseph@codesourcery.com>
6469         * math/Makefile (libm-narrow-fns): Add mul.
6470         (libm-test-funcs-narrow): Likewise.
6471         * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
6472         * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
6473         * math/gen-auto-libm-tests.c (test_functions): Add mul.
6474         * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
6475         (NARROW_MUL_ROUND_TO_ODD): Likewise.
6476         (NARROW_MUL_TRIVIAL): Likewise.
6477         * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
6478         * sysdeps/ieee754/float128/float128_private.h (__fmull): New
6479         macro.
6480         (__dmull): Likewise.
6481         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
6482         dmul.
6483         (CFLAGS-nldbl-dmul.c): New variable.
6484         (CFLAGS-nldbl-fmul.c): Likewise.
6485         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
6486         __nldbl_dmull.
6487         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
6488         prototype.
6489         * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
6490         dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
6491         * math/auto-libm-test-in: Add tests of mul.
6492         * math/auto-libm-test-out-narrow-mul: New generated file.
6493         * math/libm-test-narrow-mul.inc: New file.
6494         * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
6495         * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
6496         * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
6497         * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
6498         * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
6499         * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
6500         * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
6501         * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
6502         * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
6503         * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
6504         * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
6505         * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
6506         * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
6507         * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
6508         * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
6509         * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
6510         * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
6511         * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
6512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6513         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6514         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6515         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6516         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6517         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6518         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6519         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6520         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6521         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6522         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6523         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6524         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6525         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
6527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
6528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
6529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
6530         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
6531         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6532         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6533         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6534         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6535         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6536         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6537         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6539 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6541         * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
6542         with *%eax in call.
6544 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6546         * sysdeps/i386/ldsodefs.h: Removed.
6547         * sysdeps/x86_64/ldsodefs.h: Moved to ...
6548         * sysdeps/x86/ldsodefs.h: This.
6549         (La_i86_regs): New.
6550         (La_i86_retval): Likewise.
6551         (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
6552         (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
6554 2018-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6556         * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
6557         unnecessary testl.
6559 2018-05-13  Alan Modra  <amodra@gmail.com>
6561         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
6562         R_PARISC_TLS_DTPOFF32 reloc addend.
6564 2018-05-11  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
6566         * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
6567         * math/math.h: Restrict the prototype definition for the functions
6568         issignaling(_Float128) and iszero(_Float128); and template
6569         __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
6570         __HAVE_FLOAT128_UNLIKE_LDBL.
6571         * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
6572         && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6573         && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
6574         __f128() constants; define the type _Float128 as long double;
6575         and reuse long double in __CFLOAT128.
6577 2018-05-11  Joseph Myers  <joseph@codesourcery.com>
6579         * sysdeps/generic/math_private.h: Do not include
6580         <math-barriers.h>.
6581         * stdlib/strtod_l.c: Include <math-barriers.h> instead of
6582         <math_private.h>.
6583         * math/fromfp.h: Include <math-barriers.h>.
6584         * math/math-narrow.h: Likewise.
6585         * math/s_nextafter.c: Likewise.
6586         * math/s_nexttowardf.c: Likewise.
6587         * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6588         * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6589         * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6590         * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6591         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6592         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6593         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6594         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6595         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6596         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6597         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6598         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6599         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6600         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6601         * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6602         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6603         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6604         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6605         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6606         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6607         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6608         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6609         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6610         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6611         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6612         * sysdeps/ieee754/k_standardl.c: Likewise.
6613         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6614         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6615         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6616         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6617         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6618         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6619         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6620         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6621         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6622         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6623         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
6624         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6625         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6626         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6627         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6628         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6629         * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6630         * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6631         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6632         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6633         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
6634         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
6636 2018-05-11  Florian Weimer  <fweimer@redhat.com>
6638         Use 64-bit epoch values in the time zone file parser.
6639         * include/time.h (internal_time_t): Define.
6640         (__tzfile_compute): Use it.
6641         * time/tzfile.c (struct leap): Use internal_time_t for epoch
6642         member.
6643         (transitions): Switch to internal_time_t.
6644         (__tzfile_read): Likewise.  Remove code dealing with 4-byte time_t
6645         types.
6646         (__tzfile_compute): Use internal_time_t for timer argument.  Check
6647         for truncation before calling __offtime.
6649 2018-05-11  Florian Weimer  <fweimer@redhat.com>
6651         [BZ #23166]
6652         * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
6653         * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
6654         Likewise.
6655         * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
6656         (svc_max_pollfd): Add nocommon attribute and hidden alias.  Do not
6657         export without --enable-obsolete-rpc.
6658         * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
6659         symbol.  This should not have been exported, ever.
6661 2018-05-11  Rafal Luzynski  <digitalfreak@lingonborough.com>
6663         [BZ #23152]
6664         * localedata/locales/gd_GB (abmon): Fix typo in May:
6665         "Mhàrt" -> "Cèit".  Adjust the comment according to the change.
6667 2018-05-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6669         * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
6670         Use multiple registers to copy data in loop tail.
6672         * sysdeps/aarch64/multiarch/memmove_falkor.S
6673         (__memmove_falkor): Use multiple registers to move data in
6674         loop tail.
6676 2018-05-10  Joseph Myers  <joseph@codesourcery.com>
6678         * math/math-underflow.h: New file.
6679         * sysdeps/generic/math_private.h: Do not include <float.h>.
6680         (fabs_tg): Remove macro.  Moved to math-underflow.h.
6681         (min_of_type_f): Likewise.
6682         (min_of_type_): Likewise.
6683         (min_of_type_l): Likewise.
6684         (min_of_type_f128): Likewise.
6685         (min_of_type): Likewise.
6686         (math_check_force_underflow): Likewise.
6687         (math_check_force_underflow_nonneg): Likewise.
6688         (math_check_force_underflow_complex): Likewise.
6689         * math/e_exp2_template.c: Include <math-underflow.h>.
6690         * math/k_casinh_template.c: Likewise.
6691         * math/s_catan_template.c: Likewise.
6692         * math/s_catanh_template.c: Likewise.
6693         * math/s_ccosh_template.c: Likewise.
6694         * math/s_cexp_template.c: Likewise.
6695         * math/s_clog10_template.c: Likewise.
6696         * math/s_clog_template.c: Likewise.
6697         * math/s_csin_template.c: Likewise.
6698         * math/s_csinh_template.c: Likewise.
6699         * math/s_csqrt_template.c: Likewise.
6700         * math/s_ctan_template.c: Likewise.
6701         * math/s_ctanh_template.c: Likewise.
6702         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6703         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6704         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6705         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6706         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6707         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6708         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6709         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6710         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6711         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6712         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6713         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6714         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6715         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6716         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6717         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6718         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6719         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6720         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6721         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6722         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6723         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6724         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6725         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6726         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6727         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6728         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6729         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6730         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6731         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6732         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6733         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6734         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6735         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6736         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6737         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6738         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6739         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6740         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6741         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6742         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
6743         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
6744         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6745         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6746         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6747         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6748         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6749         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6750         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6751         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6752         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6753         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6754         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6755         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6756         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6757         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6758         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6759         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6760         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6761         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6762         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6763         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
6764         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6765         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6766         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6767         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6768         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6769         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6770         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6771         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6772         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6773         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6774         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6775         * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
6776         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6777         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6778         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6779         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6780         * sysdeps/x86/fpu/powl_helper.c: Likewise.
6781         * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
6782         * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
6783         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
6784         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
6785         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
6787 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
6789         * sysdeps/generic/math-barriers.h: New file.
6790         * sysdeps/generic/math_private.h [!math_opt_barrier]
6791         (math_opt_barrier): Move to math-barriers.h.
6792         [!math_opt_barrier] (math_force_eval): Likewise.
6793         * sysdeps/aarch64/fpu/math-barriers.h: New file.
6794         * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
6795         math-barriers.h.
6796         (math_force_eval): Likewise.
6797         * sysdeps/alpha/fpu/math-barriers.h: New file.
6798         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
6799         math-barriers.h.
6800         (math_force_eval): Likewise.
6801         * sysdeps/x86/fpu/math-barriers.h: New file.
6802         * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
6803         math-barriers.h.
6804         (math_force_eval): Likewise.
6805         * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
6806         * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here.  Adjust
6807         multiple-include guard for rename.
6808         * sysdeps/powerpc/fpu/math-barriers.h: New file.
6809         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
6810         math-barriers.h.
6811         (math_force_eval): Likewise.
6813 2018-05-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
6815         [BZ #22786]
6816         CVE-2018-11236
6817         * stdlib/canonicalize.c (__realpath): Fix overflow in path length
6818         computation.
6819         * stdlib/Makefile (test-bz22786): New test.
6820         * stdlib/test-bz22786.c: New test.
6822 2018-05-09  Joseph Myers  <joseph@codesourcery.com>
6824         * include/math-narrow-eval.h: New file.  Contents moved from ....
6825         * sysdeps/generic/math_private.h: ... here.
6826         (math_narrow_eval): Remove macro.  Moved to math-narrow-eval.h.
6827         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
6828         * math/s_fdim_template.c: Include <math-narrow-eval.h>.
6829         * stdlib/strtod_l.c: Likewise.
6830         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6831         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6832         * sysdeps/i386/fpu/s_fdim.c: Likewise.
6833         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6834         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6835         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6836         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6837         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6838         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6839         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
6840         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6841         * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6842         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6843         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6844         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6845         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6846         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6847         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6848         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6849         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6850         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6851         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6852         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6853         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6854         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6855         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6856         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6857         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6858         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
6860 2018-05-08  Andreas Schwab  <schwab@suse.de>
6862         * sysdeps/nptl/internaltypes.h: Fix comment.
6864 2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
6866         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
6867         (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
6868         hidden.
6870 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6872         * benchtests/bench-memcpy-walk.c (test_main): Move declaration
6873         of I into loop header.
6874         * benchtests/bench-memmove-walk.c
6875         (test_main): Likewise.
6877 2018-05-07  Alexandre Oliva  <oliva@gnu.org>
6879         Revert:
6880         2018-04-30  Raymond Nicholson <rain1@airmail.cc>
6881         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
6883 2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6885         [BZ #20419]
6886         * elf/dl-load.c (open_verify): Fix stack overflow.
6887         * elf/Makefile (tst-big-note): New test.
6888         * elf/tst-big-note-lib.S: New.
6889         * elf/tst-big-note.c: New.
6891 2018-05-04  Joseph Myers  <joseph@codesourcery.com>
6893         * scripts/abilist.awk: Ignore absolute symbols.
6894         * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
6895         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
6896         * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
6897         * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
6898         * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
6899         * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
6900         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
6901         * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
6902         * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
6903         * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
6904         * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
6905         * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
6906         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
6907         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
6908         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
6909         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
6910         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
6911         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
6912         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6913         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
6914         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
6915         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
6916         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
6917         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
6918         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
6919         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
6920         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
6921         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
6922         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6923         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
6924         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
6925         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6926         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
6927         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
6928         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
6929         * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
6930         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
6931         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
6932         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
6933         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
6934         * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
6935         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6936         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
6937         * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
6938         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6939         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
6940         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
6941         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
6942         * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
6943         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
6944         * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
6945         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
6946         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
6947         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
6948         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6949         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
6950         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
6951         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6952         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
6953         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
6954         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
6955         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
6956         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
6957         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
6958         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
6959         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
6960         * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
6961         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6962         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
6963         * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
6964         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6965         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
6966         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
6967         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
6968         * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
6969         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
6970         * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
6971         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
6972         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
6973         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
6974         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6975         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
6976         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
6977         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6978         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
6979         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
6980         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
6981         * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
6982         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
6983         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
6984         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
6985         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
6986         Likewise.
6987         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
6988         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6989         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
6990         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
6991         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6992         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
6993         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
6994         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
6995         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
6996         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
6997         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
6998         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
6999         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
7000         Likewise.
7001         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
7002         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7003         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
7004         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
7005         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7006         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
7007         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
7008         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
7009         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
7010         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
7011         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
7012         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
7013         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
7014         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
7015         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7016         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
7017         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
7018         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7019         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
7020         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
7021         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
7022         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
7023         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
7024         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
7025         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7026         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
7027         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
7028         Likewise.
7029         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
7030         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
7031         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
7032         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
7033         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7034         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
7035         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
7036         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
7037         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
7038         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
7039         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
7040         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
7041         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
7042         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
7043         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
7044         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
7045         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
7046         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
7047         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7048         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
7049         Likewise.
7050         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
7051         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
7052         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
7053         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7054         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
7055         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
7056         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
7057         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
7058         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
7059         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
7060         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7061         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
7062         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
7063         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7064         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
7065         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
7066         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
7067         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
7068         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7069         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
7070         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
7071         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7072         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
7073         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
7074         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
7075         * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
7076         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
7077         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
7078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
7079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
7080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
7081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
7082         Likewise.
7083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
7084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
7085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
7086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
7087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
7088         Likewise.
7089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
7090         Likewise.
7091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
7092         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
7093         Likewise.
7094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7096         Likewise.
7097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7098         Likewise.
7099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
7100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
7101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
7102         Likewise.
7103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
7104         Likewise.
7105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
7106         Likewise.
7107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
7108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
7111         Likewise.
7112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
7113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
7114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
7115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
7116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
7117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
7118         Likewise.
7119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
7120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
7121         Likewise.
7122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
7123         Likewise.
7124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
7125         Likewise.
7126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
7127         Likewise.
7128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
7129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
7130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
7131         Likewise.
7132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
7135         Likewise.
7136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
7137         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
7138         * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
7139         Likewise.
7140         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
7141         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7142         * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
7143         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
7144         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
7145         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
7146         * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
7147         * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
7148         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
7149         * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
7150         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
7151         * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
7152         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
7153         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
7154         Likewise.
7155         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7156         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
7157         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
7158         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7159         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
7160         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
7161         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
7162         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
7163         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
7164         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
7165         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
7166         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
7167         Likewise.
7168         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7169         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
7170         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
7171         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7172         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
7173         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
7174         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
7175         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
7176         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
7177         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
7178         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
7179         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
7180         * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
7181         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7182         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
7183         * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
7184         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7185         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
7186         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
7187         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
7188         * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
7189         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
7190         * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
7191         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
7192         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
7193         Likewise.
7194         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
7195         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7196         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
7197         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
7198         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7199         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
7200         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
7201         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
7202         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
7203         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
7204         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
7205         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
7206         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
7207         Likewise.
7208         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
7209         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7210         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
7211         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
7212         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7213         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
7214         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
7215         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
7216         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
7217         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
7218         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
7219         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
7220         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
7221         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
7222         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7223         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
7224         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
7225         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7226         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
7227         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
7228         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
7229         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
7230         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
7231         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
7232         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
7233         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
7234         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
7235         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
7236         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7237         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
7238         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
7239         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7240         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
7241         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
7242         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
7243         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
7244         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
7245         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
7247 2018-05-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
7249         [BZ #23137]
7250         * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
7251         Use atomic_load_acquire to load __tid.
7253 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7255         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
7256         Restore the pointer into %rdx, after syscall and use %rdx,
7257         instead of %rsi, to restore context.
7259 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7261         * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
7262         Pop the pointer into %rdx after syscall and use %rdx, instead
7263         of %rsi, to restore context.
7265 2018-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7267         * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
7268         handlers after setjmp.
7269         * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
7270         defined.
7271         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
7272         <libc-pointer-arith.h>.
7273         (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
7274         (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
7275         (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
7276         _JUMP_BUF_SIGSET_BITS_PER_WORD.
7277         * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
7278         * sysdeps/x86/__longjmp_cancel.S: New file.
7279         * sysdeps/x86/longjmp.c: Likewise.
7280         * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
7282 2018-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7284         * NEWS: Add ustat.h deprecation entry.
7285         * bits/ustat.h: Remove file.
7286         * misc/sys/ustat.h: Likewise.
7287         * misc/ustat.h: Likewise.
7288         * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
7289         * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
7290         * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
7291         compatibility mode.
7292         * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
7293         * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
7294         generic Linux implementation.
7296 2018-04-30  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7298         * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
7299         * math/w_expl_compat.c: Likewise.
7300         * math/w_exp_template.c: Likewise.  Remove hidden_def_x.
7302 2018-04-30  Raymond Nicholson <rain1@airmail.cc>
7304         * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
7306 2018-04-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7308         * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
7309         * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
7310         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
7311         Remove.
7312         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
7313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
7314         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
7315         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
7316         __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
7317         and SYSCALL_LL64.
7319 2018-04-27  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7321         * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
7323         * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
7324         * math/w_asin_template.c: Likewise.
7325         * math/w_atanh_template.c: Likewise.
7327 2018-04-27  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
7329         * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
7330         to powerpc/powerpc64/be for big-endian.
7331         [machine == powerpc64le]: Define to powerpc/powerpc64/le for
7332         little-endian.
7334         * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
7335         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
7336         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
7337         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
7338         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
7339         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
7340         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
7341         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
7342         * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
7343         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
7344         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
7345         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
7346         * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
7347         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
7348         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
7349         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
7350         * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
7351         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
7352         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
7353         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
7354         * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
7355         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
7356         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
7357         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
7358         * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
7359         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
7360         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
7361         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
7362         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
7363         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
7364         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
7365         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
7367         * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
7368         adjusted to imply powerpc64 and older processors on powerpc64/be.
7369         * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
7370         * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
7371         * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
7372         * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
7373         * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
7374         * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
7375         * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
7376         * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
7377         * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
7378         * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
7379         * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
7380         * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
7381         * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
7382         * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
7383         * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
7384         * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
7385         * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
7386         * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
7387         * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
7388         * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
7389         * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
7390         * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
7391         * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
7392         * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
7393         * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
7394         * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
7395         * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
7396         * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
7397         * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
7398         * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
7399         * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
7401         * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
7402         * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
7403         * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
7404         * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
7406         * sysdeps/powerpc/powerpc64/be/Implies: New file.
7407         * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
7408         * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
7409         * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
7411         * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
7412         * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
7413         * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
7414         * sysdeps/powerpc/powerpc64le/configure: Likewise.
7415         * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
7416         * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
7417         * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
7418         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
7419         * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
7420         * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
7421         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
7423         * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
7424         * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
7425         * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
7426         * sysdeps/powerpc/powerpc64/le/configure: Likewise.
7427         * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
7428         * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
7429         * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
7430         * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
7431         * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
7432         * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
7433         * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
7435         * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
7436         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
7437         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
7438         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
7439         * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
7440         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
7441         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
7442         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
7443         * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
7444         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
7445         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
7446         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
7448         * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
7449         and adjusted to imply olders processors.
7450         * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
7451         * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
7452         * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
7453         * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
7454         * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
7455         * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
7456         * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
7457         * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
7458         * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
7459         * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
7460         * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
7462         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
7463         powerpc64/le.
7464         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
7465         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
7467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
7468         powerpc64le.
7469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
7470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
7472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
7473         powerpc64/be.
7474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
7475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
7476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
7478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
7479         powerpc64 and adjusted.
7480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
7481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
7482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
7483         Likewise.
7485 2018-04-27  Joseph Myers  <joseph@codesourcery.com>
7487         * sysdeps/tile: Remove.
7488         * sysdeps/unix/sysv/linux/tile: Likewise.
7489         * README (tilegx-*-linux-gnu): Remove from list of supported
7490         configurations.
7491         * manual/contrib.texi (Contributors): Mention Chris Metcalf's
7492         contribution of support for generic Linux kernel syscall
7493         interface.
7494         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
7495         tilegx configurations.
7496         (Config.install_linux_headers): Do not handle tile.
7497         * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
7498         in comment.
7499         * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
7500         * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
7501         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
7502         conditional undefine and redefine.
7503         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
7504         in comment.
7505         [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
7506         conditional undefine and redefine.
7508 2018-04-26  Aurelien Jarno  <aurelien@aurel32.net>
7510         * signal/tst-sigaction.c: New file to test BZ #23069.
7511         * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
7513 2018-04-26  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7515         [BZ #22766]
7516         * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
7517         * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
7518         __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
7519         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
7521 2018-04-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7523         * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
7524         _DIRENT_MATCHES_DIRENT64 is not defined.
7525         * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
7526         implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
7527         is defined.
7528         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
7529         * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
7531 2018-04-25  Joseph Myers  <joseph@codesourcery.com>
7533         * scripts/build-many-glibcs.py (Context.checkout): Default GCC
7534         version to GCC 8 branch.
7536 2018-04-24  Joseph Myers  <joseph@codesourcery.com>
7538         * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
7539         (check_no_hidden): Use type of original function when declaring
7540         alias.
7542         * sysdeps/unix/sysv/linux/sys/ptrace.h
7543         (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
7544         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
7545         (struct __ptrace_seccomp_metadata): New type.
7546         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
7547         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7548         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
7549         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7550         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
7551         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7552         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
7553         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7554         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
7555         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7556         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
7557         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7558         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
7559         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7560         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
7561         (PTRACE_SECCOMP_GET_METADATA): Likewise.
7563 2018-04-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7565         * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
7566         defined.
7567         * dirent/versionsort.c (versionsort): Likewise.
7568         * dirent/alphasort64.c (alphasort64): Build regardless and alias to
7569         alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
7570         * dirent/versionsort64.c (versionsort64): Likewise.
7571         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
7572         * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
7573         * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
7574         * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
7575         * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
7576         * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
7577         * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
7578         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
7579         * sysdeps/unix/sysv/linux/alphasort64.c: New file.
7580         * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
7581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
7582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
7583         * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
7584         * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
7586 2018-04-23  Joseph Myers  <joseph@codesourcery.com>
7588         * elf/elf.h (NT_PPC_PKEY): New macro.
7590 2018-04-23  Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
7592         [BZ #23094]
7593         * localedata/locales/hr_HR: fix thousands_sep and
7594         mon_thousands_sep
7596 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
7598         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
7599         (XTABS): Define to TAB3.
7601 2018-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7603         * sysdeps/hppa/fpu/libm-test-ulps: Update.
7605         * dirent/scandir-tail-common.c: New file.
7606         * dirent/scandir-tail.c: Use scandir-tail-common.c.
7607         (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
7608         * dirent/scandir.c: Use scandir-tail-common.c.
7609         * dirent/scandirat.c: Likewise.
7610         * dirent/scandir64-tail.c: Use scandir-tail-common.c.
7611         * dirent/scandir64.c (scandir64): Always build and alias to scandir
7612         if _DIRENT_MATCHES_DIRENT64 is defined.
7613         * dirent/scandirat64.c (scandirat64): Likewise.
7614         * include/dirent.h (__scandir_tail): Only define iff
7615         _DIRENT_MATCHES_DIRENT64 is not defined.
7616         (__scandir64_tail): Define regardless.
7617         (__scandirat, scandirat64): Remove libc_hidden_proto.
7618         * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
7619         * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
7620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
7621         * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
7622         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
7623         * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
7624         * sysdeps/unix/sysv/linux/scandir64.c: New file.
7626 2018-04-20  Joseph Myers  <joseph@codesourcery.com>
7628         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
7629         New macro.
7630         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7631         Increase to 24.
7632         (_dl_aarch64_cap_flags): Add asimdfhm.
7634 2018-04-19  Chung-Lin Tang  <cltang@codesourcery.com>
7636         * sysdeps/nios2/libm-test-ulps: Update.
7638 2018-04-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7640         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
7641         Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
7643         * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
7644         requirements.
7645          (_DIRENT_MATCHES_DIRENT64): Undef
7646         * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
7647         * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
7648         * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
7649         * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
7650         * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
7651         * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
7652         use getdents64 syscalls as base.
7653         * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
7654         symbol if required.
7655         * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
7656         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
7657         * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
7658         * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
7659         * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
7660         * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
7661         * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
7662         * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
7663         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7664         (__get_clockfreq_via_proc_openprom): Use __getdents64.
7665         * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
7667 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
7669         * scripts/test_printers_common.py (init_test): Disable lock elision.
7671 2018-04-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
7673         * math/test-tgmath.c (count_double, count_float,
7674         count_ldouble, count_cdouble, count_cfloat,
7675         count_cldouble): Use volatile int.
7677 2018-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7679         * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7680         (conformtest-xfail-conds): Add i386-gnu.
7681         * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
7682         i386-gnu.
7683         * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
7684         ipc_perm.cuid, ipc_perm.cgid): Likewise.
7685         * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
7686         msqid_ds.msg_lrpid): Likewise.
7687         * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
7688         Likewise.
7689         * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
7690         * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
7691         * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
7692         f_namemax, f_frsize, and f_flag fields unsigned long int instead of
7693         unsigned int.
7694         (struct statvfs64): Likewise.
7695         * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
7696         Likewise.
7697         * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
7698         * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
7699         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
7700         instead of wait_queue.
7701         * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
7702         instead of vm_area_struct.
7703         * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
7704         struct sched_param definition to it.
7705         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
7706         * bits/types/struct_sched_param.h: New file.
7707         * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
7708         <bits/types/struct_sched_param.h> instead of <sched.h>.
7709         * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
7710         * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
7711         generic version but include <bits/pthreadtypes.h> to make struct
7712         sigevent's sigev_notify_attributes field a pthread_attr_t*.
7713         * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
7714         non-compliant.
7715         * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
7716         [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
7717         [__USE_XOPEN] (OFDEL): New macro.
7718         [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
7719         * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
7720         * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
7721         prototypes.
7722         * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
7723         * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
7724         * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
7725         non-compliant.
7726         * sysdeps/i386/sys/ucontext.h: Likewise.
7727         * sysdeps/m68k/sys/ucontext.h: Likewise.
7728         * sysdeps/mips/sys/ucontext.h: Likewise.
7729         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
7730         * sysdeps/mach/hurd/i386/Makefile
7731         (test-xfail-POSIX/fcntl.h/conform): Add.
7732         (test-xfail-POSIX/signal.h/conform): Add.
7733         (test-xfail-POSIX/semaphore.h/conform): Add.
7734         (test-xfail-POSIX/regex.h/conform): Add.
7735         (test-xfail-POSIX/aio.h/conform): Add.
7736         (test-xfail-POSIX/mqueue.h/conform): Add.
7737         (test-xfail-POSIX/sys/types.h/conform): Add.
7738         (test-xfail-UNIX98/fcntl.h/conform): Add.
7739         (test-xfail-UNIX98/netdb.h/conform): Add.
7740         (test-xfail-UNIX98/signal.h/conform): Add.
7741         (test-xfail-UNIX98/semaphore.h/conform): Add.
7742         (test-xfail-UNIX98/regex.h/conform): Add.
7743         (test-xfail-UNIX98/aio.h/conform): Add.
7744         (test-xfail-UNIX98/ftw.h/conform): Add.
7745         (test-xfail-UNIX98/mqueue.h/conform): Add.
7746         (test-xfail-UNIX98/netinet/in.h/conform): Add.
7747         (test-xfail-UNIX98/sys/wait.h/conform): Add.
7748         (test-xfail-UNIX98/sys/sem.h/conform): Add.
7749         (test-xfail-UNIX98/sys/uio.h/conform): Add.
7750         (test-xfail-UNIX98/sys/socket.h/conform): Add.
7751         (test-xfail-UNIX98/sys/types.h/conform): Add.
7752         (test-xfail-UNIX98/stdlib.h/conform): Add.
7753         (test-xfail-UNIX98/arpa/inet.h/conform): Add.
7754         (test-xfail-POSIX2008/fcntl.h/conform): Add.
7755         (test-xfail-POSIX2008/netdb.h/conform): Add.
7756         (test-xfail-POSIX2008/signal.h/conform): Add.
7757         (test-xfail-POSIX2008/semaphore.h/conform): Add.
7758         (test-xfail-POSIX2008/regex.h/conform): Add.
7759         (test-xfail-POSIX2008/aio.h/conform): Add.
7760         (test-xfail-POSIX2008/mqueue.h/conform): Add.
7761         (test-xfail-POSIX2008/netinet/in.h/conform): Add.
7762         (test-xfail-POSIX2008/sys/wait.h/conform): Add.
7763         (test-xfail-POSIX2008/sys/socket.h/conform): Add.
7764         (test-xfail-POSIX2008/sys/types.h/conform): Add.
7765         (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
7766         (test-xfail-XOPEN2K/fcntl.h/conform): Add.
7767         (test-xfail-XOPEN2K/netdb.h/conform): Add.
7768         (test-xfail-XOPEN2K/signal.h/conform): Add.
7769         (test-xfail-XOPEN2K/semaphore.h/conform): Add.
7770         (test-xfail-XOPEN2K/regex.h/conform): Add.
7771         (test-xfail-XOPEN2K/aio.h/conform): Add.
7772         (test-xfail-XOPEN2K/ftw.h/conform): Add.
7773         (test-xfail-XOPEN2K/mqueue.h/conform): Add.
7774         (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
7775         (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
7776         (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
7777         (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
7778         (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
7779         (test-xfail-XOPEN2K/sys/types.h/conform): Add.
7780         (test-xfail-XOPEN2K/stdlib.h/conform): Add.
7781         (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
7782         (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
7783         (test-xfail-XOPEN2K8/netdb.h/conform): Add.
7784         (test-xfail-XOPEN2K8/signal.h/conform): Add.
7785         (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
7786         (test-xfail-XOPEN2K8/regex.h/conform): Add.
7787         (test-xfail-XOPEN2K8/aio.h/conform): Add.
7788         (test-xfail-XOPEN2K8/ftw.h/conform): Add.
7789         (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
7790         (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
7791         (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
7792         (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
7793         (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
7794         (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
7795         (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
7796         (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
7797         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
7798         * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
7799         i386-gnu.
7800         * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
7801         WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
7803 2018-04-18  Joseph Myers  <joseph@codesourcery.com>
7805         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
7806         --enable-obsolete for powerpc-linux-gnuspe.
7808 2018-04-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7810         * conform/data/sys/un.h-data: Allow sun_ prefix.
7811         * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
7812         prototypes.
7813         * sysdeps/mach/include/mach.h: Likewise.
7814         * sysdeps/mach/include/mach/mig_support.h: Likewise.
7815         * sysdeps/mach/include/mach_error.h: Likewise.
7817 2018-04-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7819         * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
7820         * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
7821         * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
7822         * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
7824 2018-04-16  Andreas Schwab  <schwab@suse.de>
7826         [BZ #19527]
7827         * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
7829 2018-04-15  Patrick McGehearty <patrick.mcgehearty@oracle.com>
7831         * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
7832         * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
7834 2018-04-12  DJ Delorie  <dj@redhat.com>
7836         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7837         version to 4.16.
7839 2018-04-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
7841         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
7842         (struct kernel_sigaction): Use the same definition on 31bit as is used
7843         on 64bit.
7845 2018-04-09  Florian Weimer  <fweimer@redhat.com>
7847         [BZ #23037]
7848         * resolv/res_send.c (send_dg): Use designated initializers instead
7849         of assignment to zero-initialize other fields of struct mmsghdr.
7851 2018-04-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7853         * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
7854         __READDIR_ALIAS): Undefine after usage.
7855         * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
7856         __READDIR_R_ALIAS): Likewise.
7857         * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
7858         * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
7859         * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
7860         * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
7861         * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
7862         * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
7863         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
7864         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
7865         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
7866         * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
7867         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
7868         * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
7869         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
7870         * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
7871         * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
7872         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
7873         * sysdeps/unix/sysv/linux/readdir.c: New file.
7874         * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
7875         * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
7876         * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
7878         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
7880 2018-04-06  Andreas Schwab  <schwab@linux-m68k.org>
7882         * manual/charset.texi (Converting a Character): Fix typo.
7884 2018-04-05 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7886         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7888         * sysdeps/arm/libm-test-ulps: Update.
7890         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
7891         as base implementation.
7892         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
7893         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
7894         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
7895         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
7896         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
7897         * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
7898         remove unrequired definitions and update comments.
7899         * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
7900         * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
7901         * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
7902         * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
7903         * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
7904         * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
7905         * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
7906         * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
7907         * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
7908         * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
7909         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
7910         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
7911         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
7912         * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
7913         and RESET_SA_RESTORER hooks.
7915 2018-04-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
7917         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7919 2018-04-05  Florian Weimer  <fweimer@redhat.com>
7921         * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
7922         integer overflow, memory leak on error, and indeterminate errno
7923         value.  Add a null wide character to terminate the result string.
7924         * manual/charset.texi (Converting a Character): Mention embedded
7925         null bytes in the mbrtowc input string.  Explain what happens in
7926         the -2 result case.  Do not claim that mbrtowc is simple or
7927         obvious to use.  Adjust the description of the code example.  Use
7928         @code, not @var, for concrete variables.
7930 2018-04-05  Florian Weimer  <fweimer@redhat.com>
7932         * manual/examples/mbstouwcs.c: New file.
7933         * manual/charset.texi (Converting a Character): Include it.
7935 2018-04-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7937         * include/dirent.h (dirfd): Add hidden proto.
7938         * dirent/dirfd.c (dirfd): Add hidden def.
7939         * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
7940         * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
7942 2018-04-04  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
7944         * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
7945         sin, cos and sincos to 1 ULP.
7947 2018-04-04  Maciej W. Rozycki  <macro@mips.com>
7949         [BZ #19818]
7950         * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
7951         symbols.
7952         * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
7953         * elf/tst-absolute-sym.c: New file.
7954         * elf/tst-absolute-sym-lib.c: New file.
7955         * elf/tst-absolute-sym-lib.lds: New file.
7956         * elf/Makefile (tests): Add `tst-absolute-sym'.
7957         (modules-names): Add `tst-absolute-sym-lib'.
7958         (LDLIBS-tst-absolute-sym-lib.so): New variable.
7959         ($(objpfx)tst-absolute-sym-lib.so): New dependency.
7960         ($(objpfx)tst-absolute-sym): New dependency.
7962         [BZ #19818]
7963         * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
7964         parameter.
7965         (SYMBOL_ADDRESS): New macro.
7966         [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
7967         SYMBOL_ADDRESS for symbol address calculation.
7968         * elf/dl-runtime.c (_dl_fixup): Likewise.
7969         (_dl_profile_fixup): Likewise.
7970         * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
7971         * elf/rtld.c (dl_main): Likewise.
7972         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
7973         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
7974         * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
7975         (elf_machine_rela): Likewise.
7976         * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
7977         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
7978         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7979         (elf_machine_rela): Likewise.
7980         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7981         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
7982         * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
7983         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
7984         Likewise.
7985         (elf_machine_reloc): Likewise.
7986         (elf_machine_got_rel): Likewise.
7987         * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
7988         * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
7989         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7990         Likewise.
7991         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7992         Likewise.
7993         * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
7994         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
7995         Likewise.
7996         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
7997         Likewise.
7998         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7999         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
8000         Likewise.
8001         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
8002         Likewise.
8003         * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
8004         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
8006 2018-04-04  Zack Weinberg  <zackw@panix.com>
8008         * sysdeps/generic/internal-signals.h: Include signal.h,
8009         sigsetops.h, and stdbool.h.
8010         (__libc_signal_block_all): Actually block all signals.
8011         (__libc_signal_block_app): Likewise.
8012         (__libc_signal_restore_set): Actually restore the signal mask.
8014 2018-04-04  Florian Weimer  <fweimer@redhat.com>
8016         inet: Actually build and run tst-deadline.
8017         * inet/Makefile (tests-internal): Add tst-deadline and do not
8018         overwrite the variable.
8019         (tests-static-internal): Remove variable.
8021 2018-04-03  H.J. Lu  <hongjiu.lu@intel.com>
8023         [BZ #22947]
8024         * bits/uio-ext.h (RWF_APPEND): New.
8025         * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
8026         * manual/llio.texi: Document RWF_APPEND.
8027         * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
8028         (RWF_SUPPORTED): Add RWF_APPEND.
8030 2018-04-03 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8032         [BZ #22391]
8033         * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
8034         check for internal nptl signals.
8035         * nptl/sigaction.c (__sigaction): Likewise.
8036         * signal/sigaddset.c (sigaddset): Likewise.
8037         * signal/sigdelset.c (sigdelset): Likewise.
8038         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8039         * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
8040         value.
8041         * signal/sigfillset.c (sigfillset): User __clear_internal_signals
8042         to filter out internal nptl signals.
8043         * signal/tst-sigset.c (do_test): Check ech signal indidually and
8044         also check realtime signals using standard macros.
8045         * sysdeps/generic/internal-signals.h (__clear_internal_signals,
8046         __is_internal_signal, __libc_signal_block_all,
8047         __libc_signal_block_app, __libc_signal_restore_set): New functions.
8048         * sysdeps/nptl/sigfillset.c: Remove file.
8049         * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
8050         Change return to bool.
8051         (__clear_internal_signals): Remove SIGTIMER clean since it is
8052         equal to SIGCANEL on Linux.
8053         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
8054         signal set was constructed using standard functions.
8056 2018-04-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8058         * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
8059         ifname is too long.
8060         * hurd/hurdsig.c (interrupted_reply_port_location): Use
8061         DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
8062         * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
8063         hidden def.
8064         * mach/spin-lock.c (__mutex_unlock): Add hidden def.
8065         * signal/sigaddset.c: Include <sigsetopts.h>.
8066         * signal/sigdelset.c: Likewise.
8068 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8070         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
8071         (__cos): Likewise.
8072         * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
8073         logic as sin and cos.
8075 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8077         * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
8078         inputs.  Return correct sign.
8079         (do_sincos): Remove small input check before do_sin, let do_sin set
8080         the sign.
8081         (__sin): Likewise.
8082         (__cos): Likewise.
8084 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8086         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
8087         (do_cos_slow): Likewise.
8088         (do_sin_slow): Likewise.
8089         (reduce_and_compute): Likewise.
8090         (slow): Likewise.
8091         (slow1): Likewise.
8092         (slow2): Likewise.
8093         (sloww): Likewise.
8094         (sloww1): Likewise.
8095         (sloww2): Likewise.
8096         (bslow): Likewise.
8097         (bslow1): Likewise.
8098         (bslow2): Likewise.
8099         (cslow2): Likewise.
8101 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8103         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
8104         (do_cos): Remove corp parameter and calculations.
8105         (do_sin): Likewise.
8106         (do_sincos): Remove cor variable.
8107         (__sin): Use do_sincos for huge inputs.
8108         (__cos): Likewise.
8109         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8110         (reduce_and_compute_sincos): Remove unused function.
8112 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8114         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
8115         reduce_sincos, improve accuracy to 136 bits.
8116         (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
8117         (__sin): Use improved reduction and simplified do_sincos calculation.
8118         (__cos): Likewise.
8119         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8121 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8123         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
8124         (do_sincos_2): Likewise.
8125         (__sin): Remove middle range reduction case.
8126         (__cos): Likewise.
8127         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
8128         reduction case.
8130 2018-04-03  Wilco Dijkstra  <wdijkstr@arm.com>
8132         * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
8133         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
8134         inputs.
8135         (__cos): Likewise.
8136         * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
8138 2018-04-03  Joseph Myers  <joseph@codesourcery.com>
8140         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8141         version to 4.16
8143 2018-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8145         * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
8146         Remove definitions.
8147         (opendir_oflags): Use O_DIRECTORY regardless.
8148         (__opendir, __opendirat): Remove need_isdir_precheck usage.
8149         * sysdeps/unix/sysv/linux/opendir.c: Remove file.
8151 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8153         * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
8154         _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
8155         macros.
8156         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
8157         _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
8158         _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
8159         _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
8160         * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
8161         * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8163         * htl/Makefile: Bump licence to LGPL 2.1+.
8164         * htl/alloca_cutoff.c: Likewise.
8165         * htl/cthreads-compat.c: Likewise.
8166         * htl/lockfile.c: Likewise.
8167         * htl/pt-alloc.c: Likewise.
8168         * htl/pt-cancel.c: Likewise.
8169         * htl/pt-cleanup.c: Likewise.
8170         * htl/pt-create.c: Likewise.
8171         * htl/pt-dealloc.c: Likewise.
8172         * htl/pt-detach.c: Likewise.
8173         * htl/pt-exit.c: Likewise.
8174         * htl/pt-getattr.c: Likewise.
8175         * htl/pt-initialize.c: Likewise.
8176         * htl/pt-internal.h: Likewise.
8177         * htl/pt-join.c: Likewise.
8178         * htl/pt-self.c: Likewise.
8179         * htl/pt-setcancelstate.c: Likewise.
8180         * htl/pt-setcanceltype.c: Likewise.
8181         * htl/pt-sigmask.c: Likewise.
8182         * htl/pt-spin-inlines.c: Likewise.
8183         * htl/pt-testcancel.c: Likewise.
8184         * htl/pt-yield.c: Likewise.
8185         * htl/tests/test-1.c: Likewise.
8186         * htl/tests/test-10.c: Likewise.
8187         * htl/tests/test-11.c: Likewise.
8188         * htl/tests/test-12.c: Likewise.
8189         * htl/tests/test-13.c: Likewise.
8190         * htl/tests/test-14.c: Likewise.
8191         * htl/tests/test-15.c: Likewise.
8192         * htl/tests/test-16.c: Likewise.
8193         * htl/tests/test-17.c: Likewise.
8194         * htl/tests/test-2.c: Likewise.
8195         * htl/tests/test-3.c: Likewise.
8196         * htl/tests/test-4.c: Likewise.
8197         * htl/tests/test-5.c: Likewise.
8198         * htl/tests/test-6.c: Likewise.
8199         * htl/tests/test-7.c: Likewise.
8200         * htl/tests/test-8.c: Likewise.
8201         * htl/tests/test-9.c: Likewise.
8202         * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
8203         * sysdeps/htl/bits/cancelation.h: Likewise.
8204         * sysdeps/htl/bits/pthread-np.h: Likewise.
8205         * sysdeps/htl/bits/pthread.h: Likewise.
8206         * sysdeps/htl/bits/pthreadtypes.h: Likewise.
8207         * sysdeps/htl/bits/semaphore.h: Likewise.
8208         * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
8209         * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
8210         * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
8211         * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
8212         * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
8213         * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
8214         * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
8215         * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
8216         * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
8217         * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
8218         * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
8219         * sysdeps/htl/old_pt-atfork.c: Likewise.
8220         * sysdeps/htl/pt-atfork.c: Likewise.
8221         * sysdeps/htl/pt-attr-destroy.c: Likewise.
8222         * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
8223         * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
8224         * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
8225         * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
8226         * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
8227         * sysdeps/htl/pt-attr-getscope.c: Likewise.
8228         * sysdeps/htl/pt-attr-getstack.c: Likewise.
8229         * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
8230         * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
8231         * sysdeps/htl/pt-attr-init.c: Likewise.
8232         * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
8233         * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
8234         * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
8235         * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
8236         * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
8237         * sysdeps/htl/pt-attr-setscope.c: Likewise.
8238         * sysdeps/htl/pt-attr-setstack.c: Likewise.
8239         * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
8240         * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
8241         * sysdeps/htl/pt-attr.c: Likewise.
8242         * sysdeps/htl/pt-barrier-destroy.c: Likewise.
8243         * sysdeps/htl/pt-barrier-init.c: Likewise.
8244         * sysdeps/htl/pt-barrier-wait.c: Likewise.
8245         * sysdeps/htl/pt-barrier.c: Likewise.
8246         * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
8247         * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
8248         * sysdeps/htl/pt-barrierattr-init.c: Likewise.
8249         * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
8250         * sysdeps/htl/pt-cond-brdcast.c: Likewise.
8251         * sysdeps/htl/pt-cond-destroy.c: Likewise.
8252         * sysdeps/htl/pt-cond-init.c: Likewise.
8253         * sysdeps/htl/pt-cond-signal.c: Likewise.
8254         * sysdeps/htl/pt-cond-timedwait.c: Likewise.
8255         * sysdeps/htl/pt-cond-wait.c: Likewise.
8256         * sysdeps/htl/pt-cond.c: Likewise.
8257         * sysdeps/htl/pt-condattr-destroy.c: Likewise.
8258         * sysdeps/htl/pt-condattr-getclock.c: Likewise.
8259         * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
8260         * sysdeps/htl/pt-condattr-init.c: Likewise.
8261         * sysdeps/htl/pt-condattr-setclock.c: Likewise.
8262         * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
8263         * sysdeps/htl/pt-destroy-specific.c: Likewise.
8264         * sysdeps/htl/pt-equal.c: Likewise.
8265         * sysdeps/htl/pt-getconcurrency.c: Likewise.
8266         * sysdeps/htl/pt-getcpuclockid.c: Likewise.
8267         * sysdeps/htl/pt-getschedparam.c: Likewise.
8268         * sysdeps/htl/pt-getspecific.c: Likewise.
8269         * sysdeps/htl/pt-init-specific.c: Likewise.
8270         * sysdeps/htl/pt-key-create.c: Likewise.
8271         * sysdeps/htl/pt-key-delete.c: Likewise.
8272         * sysdeps/htl/pt-key.h: Likewise.
8273         * sysdeps/htl/pt-mutex-destroy.c: Likewise.
8274         * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
8275         * sysdeps/htl/pt-mutex-init.c: Likewise.
8276         * sysdeps/htl/pt-mutex-lock.c: Likewise.
8277         * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
8278         * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
8279         * sysdeps/htl/pt-mutex-trylock.c: Likewise.
8280         * sysdeps/htl/pt-mutex-unlock.c: Likewise.
8281         * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
8282         * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
8283         * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
8284         * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
8285         * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
8286         * sysdeps/htl/pt-mutexattr-init.c: Likewise.
8287         * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
8288         * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
8289         * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
8290         * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
8291         * sysdeps/htl/pt-mutexattr.c: Likewise.
8292         * sysdeps/htl/pt-once.c: Likewise.
8293         * sysdeps/htl/pt-rwlock-attr.c: Likewise.
8294         * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
8295         * sysdeps/htl/pt-rwlock-init.c: Likewise.
8296         * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
8297         * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
8298         * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
8299         * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
8300         * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
8301         * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
8302         * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
8303         * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
8304         * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
8305         * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
8306         * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
8307         * sysdeps/htl/pt-setconcurrency.c: Likewise.
8308         * sysdeps/htl/pt-setschedparam.c: Likewise.
8309         * sysdeps/htl/pt-setschedprio.c: Likewise.
8310         * sysdeps/htl/pt-setspecific.c: Likewise.
8311         * sysdeps/htl/pt-spin.c: Likewise.
8312         * sysdeps/htl/pt-startup.c: Likewise.
8313         * sysdeps/htl/pthread.h: Likewise.
8314         * sysdeps/htl/sem-close.c: Likewise.
8315         * sysdeps/htl/sem-destroy.c: Likewise.
8316         * sysdeps/htl/sem-getvalue.c: Likewise.
8317         * sysdeps/htl/sem-init.c: Likewise.
8318         * sysdeps/htl/sem-open.c: Likewise.
8319         * sysdeps/htl/sem-post.c: Likewise.
8320         * sysdeps/htl/sem-timedwait.c: Likewise.
8321         * sysdeps/htl/sem-trywait.c: Likewise.
8322         * sysdeps/htl/sem-unlink.c: Likewise.
8323         * sysdeps/htl/sem-wait.c: Likewise.
8324         * sysdeps/hurd/htl/pt-kill.c: Likewise.
8325         * sysdeps/i386/htl/pt-machdep.h: Likewise.
8326         * sysdeps/mach/htl/pt-block.c: Likewise.
8327         * sysdeps/mach/htl/pt-spin.c: Likewise.
8328         * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
8329         * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
8330         * sysdeps/mach/htl/pt-thread-start.c: Likewise.
8331         * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
8332         * sysdeps/mach/htl/pt-timedblock.c: Likewise.
8333         * sysdeps/mach/htl/pt-wakeup.c: Likewise.
8334         * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
8335         * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
8336         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
8337         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
8338         * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
8339         * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
8340         * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
8341         * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
8342         * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
8343         * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
8344         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
8345         * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
8346         * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
8347         * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
8348         * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
8349         * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
8350         * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
8351         * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
8352         * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
8353         * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
8354         * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
8355         * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
8356         * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
8357         * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
8358         * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
8359         * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
8360         * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
8361         * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
8362         * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
8363         * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
8364         * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
8365         * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
8366         * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
8367         * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
8368         * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
8369         * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
8370         * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
8372         * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
8373         * README: Remove the mention of out-of-tree patches needed for
8374         GNU/Hurd.
8376         * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
8377         (UTIME_NOW, UTIME_OMIT): Define macros.
8379         * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
8380         instead of pthread_detach.
8381         (__cthread_fork): Call __pthread_create instead of pthread_create.
8382         (__cthread_keycreate): Call __pthread_key_create instead of
8383         pthread_key_create.
8384         (__cthread_getspecific): Call __pthread_getspecific instead of
8385         pthread_getspecific.
8386         (__cthread_setspecific): Call __pthread_setspecific instead of
8387         pthread_setspecific.
8388         * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
8389         __pthread_mutex_unlock instead of pthread_mutex_lock and
8390         pthread_mutex_unlock.
8391         * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
8392         ___pthread_get_cleanup_stack.
8393         (__pthread_get_cleanup_stack): New strong alias.
8394         * htl/pt-create.c: Include <pthreadP.h>.
8395         (entry_point): Call __pthread_exit instead of pthread_exit.
8396         (pthread_create): Rename to __pthread_create.
8397         (pthread_create): New strong alias.
8398         * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
8399         (pthread_detach): New strong alias.
8400         (__pthread_detach): Call __pthread_cond_broadcast instead of
8401         pthread_cond_broadcast.
8402         * htl/pt-exit.c: Include <pthreadP.h>.
8403         (__pthread_exit): Call __pthread_setcancelstate and
8404         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
8405         __pthread_get_cleanup_stack.
8406         * htl/pt-testcancel.c: Include <pthreadP.h>.
8407         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
8408         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
8409         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
8410         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
8411         pthread_attr_getstacksize.
8412         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
8413         Rename to __pthread_attr_getstackaddr.
8414         (pthread_attr_getstackaddr): New strong alias.
8415         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
8416         Rename to __pthread_attr_getstacksize.
8417         (pthread_attr_getstacksize): New strong alias.
8418         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
8419         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
8420         (pthread_attr_setstack): New strong alias.
8421         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
8422         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
8423         pthread_attr_getstacksize, pthread_attr_setstacksize and
8424         pthread_attr_setstackaddr.
8425         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
8426         Rename to __pthread_attr_setstackaddr.
8427         (pthread_attr_setstackaddr): New strong alias.
8428         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
8429         Rename to __pthread_attr_setstacksize.
8430         (pthread_attr_setstacksize): New strong alias.
8431         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
8432         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
8433         pthread_exit.
8434         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
8435         (__pthread_key_create): New hidden def.
8436         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
8437         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
8438         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
8439         __pthread_exit, __pthread_key_create, __pthread_getspecific,
8440         __pthread_setspecific, __pthread_setcancelstate,
8441         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
8442         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
8443         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
8444         declarations.
8445         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
8446         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
8447         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
8448         (pthread_attr_setstackaddr): New strong alias.
8449         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
8450         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
8451         (pthread_attr_setstacksize): New strong alias.
8452         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
8453         (call_exit): Call __pthread_exit instead of pthread_exit.
8454         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
8455         (_pthread_mutex_init): New hidden definition.
8456         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
8457         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
8458         instead of pthread_attr_init and pthread_attr_setstack.
8460         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
8461         __vm_deallocate instead of vm_allocate and vm_deallocate.
8462         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
8463         setenv.
8464         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
8465         of geteuid.
8466         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
8467         strdup.
8468         * hurd/siginfo.c: Include <libioP.h>.
8469         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
8470         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
8471         munmap.
8472         * mach/devstream.c: Include <libioP.h>.
8473         (dealloc_ref): Call __mach_port_deallocate instead of
8474         mach_port_deallocate.
8475         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
8476         Call __mach_port_deallocate instead of mach_port_deallocate.
8477         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
8478         pathconf.
8479         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
8480         munmap.
8481         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
8482         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
8483         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
8484         of munmap.
8485         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
8486         of close.
8487         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
8488         instead of sysconf.
8489         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
8490         __clock_gettime instead of clock_gettime.
8491         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
8492         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8493         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
8494         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8495         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
8496         tcgetattr.
8497         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
8498         __clock_gettime and __nanosleep instead of clock_gettime and
8499         nanosleep.
8500         * hurd/catch-signal.c (hurd_catch_signal): Rename to
8501         __hurd_catch_signal.
8502         (hurd_catch_signal): New strong alias.
8503         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
8504         __hurd_catch_signal instead of hurd_catch_signal.
8505         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
8506         * hurd/hurdexec.c (_hurd_init): Add hidden def.
8507         * hurd/hurdinit.c (_hurd_init): Add hidden def.
8508         * hurd/hurdsig.c: Include <mach/mig_support.h>.
8509         (_hurd_thread_sigstate): Add hidden def.
8510         (_hurd_internal_post_signal): Use __mutex_unlock instead of
8511         mutex_unlock.
8512         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
8513         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
8514         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
8515         __hurd_file_name_path_lookup.
8516         (hurd_file_name_path_lookup): New strong alias.
8517         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
8518         hurd_file_name_path_lookup.
8519         * mach/errstring.c (mach_error_type): Add hidden def.
8520         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
8521         * mach/mutex-init.c (__mutex_init): Add hidden def.
8522         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
8523         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
8524         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
8525         * sysdeps/mach/hurd/getcwd.c
8526         (_hurd_canonicalize_directory_name_internal): Rename to
8527         __hurd_canonicalize_directory_name_internal.
8528         (_hurd_canonicalize_directory_name_internal): New strong alias.
8529         (__canonicalize_directory_name_internal, __getcwd): Call
8530         __hurd_canonicalize_directory_name_internal instead of
8531         _hurd_canonicalize_directory_name_internal.
8532         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
8533         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
8534         hidden defs.
8535         * sysdeps/hurd/include/hurd.h: New file.
8536         * sysdeps/hurd/include/hurd/fd.h: New file.
8537         * sysdeps/hurd/include/hurd/signal.h: New file.
8538         * sysdeps/mach/include/lock-intern.h: New file.
8539         * sysdeps/mach/include/mach.h: New file.
8540         * sysdeps/mach/include/mach/mig_support.h: New file.
8541         * sysdeps/mach/include/mach_error.h: New file.
8542         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
8543         prototype.
8544         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
8545         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
8546         _HEADER_H_HIDDEN_DEF macro.
8547         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
8548         _hurd_fd_error_signal): Add hidden prototype.
8549         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
8550         hidden def.
8551         * libio/iolibio.h (_IO_puts): New hidden prototype.
8552         * libio/ioputs.c (_IO_puts): New hidden def.
8553         * sysdeps/mach/hurd/localplt.data: New file.
8555 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
8556             Amos Jeffries  <squid3@treenet.co.nz>
8557             David Michael  <fedora.dm0@gmail.com>
8558             Marco Gerards  <marco@gnu.org>
8559             Marcus Brinkmann  <marcus@gnu.org>
8560             Neal H. Walfield  <neal@gnu.org>
8561             Pino Toscano  <toscano.pino@tiscali.it>
8562             Richard Braun  <rbraun@sceen.net>
8563             Roland McGrath  <roland@gnu.org>
8564             Samuel Thibault  <samuel.thibault@ens-lyon.org>
8565             Thomas DiModica  <ricinwich@yahoo.com>
8566             Thomas Schwinge  <tschwinge@gnu.org>
8568         * htl: New directory.
8569         * sysdeps/htl: New directory.
8570         * sysdeps/hurd/htl: New directory.
8571         * sysdeps/i386/htl: New directory.
8572         * sysdeps/mach/htl: New directory.
8573         * sysdeps/mach/hurd/htl: New directory.
8574         * sysdeps/mach/hurd/i386/htl: New directory.
8575         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
8576         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
8577         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
8579 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8581         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
8582         signals in thread created for runing timers.
8584 2018-04-01  Florian Weimer  <fweimer@redhat.com>
8586         * support/support_format_addrinfo.c (support_format_addrinfo):
8587         Include unknown error number in formatted result.
8589 2018-03-29  Florian Weimer  <fweimer@redhat.com>
8591         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
8592         capture SIGBUS.
8594 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8596         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
8597         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
8598         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
8599         (__ASSUME_CLONE_BACKWARDS): Define.
8601 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
8603         [BZ #23024]
8604         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
8605         early when linux sentinel value is set.
8607 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8609         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
8611 2018-03-27  Andreas Schwab  <schwab@suse.de>
8613         [BZ #23005]
8614         * resolv/res_send.c (__res_context_send): Return ENOMEM if
8615         allocation of private copy of nsaddr_list fails.
8617 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
8619         [BZ #16552]
8620         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
8621         * sysdeps/unix/sysv/linux/umount.c: ... here.
8622         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
8623         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
8624         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
8625         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
8626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
8627         * sysdeps/unix/sysv/linux/umount.S: Likewise.
8628         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
8630 2018-03-26  Andreas Schwab  <schwab@suse.de>
8632         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
8633         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
8634         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
8635         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
8636         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
8637         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
8638         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
8639         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
8640         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
8641         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
8642         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
8643         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
8644         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
8645         (R_RISCV_NUM): Define.
8647 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8649         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
8650         TLS declaration of errno.
8651         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
8652         __libc_setup_tls.
8653         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
8654         (ARCH_SETUP_TLS): Likewise.
8655         * sysdeps/mach/hurd/libc-start.h: New file copied from
8656         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
8657         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
8658         instead of __libc_setup_tls.
8659         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
8660         __libc_setup_tls before initializing libpthread and running _hurd_init
8661         which starts the signal thread.
8662         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
8663         Declare function.
8664         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8666 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
8668         [BZ #22998]
8669         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
8670         after it is defined.
8672 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
8673             Max Horn  <max@quendi.de>
8675         [BZ #22644]
8676         CVE-2017-18269
8677         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
8678         branch conditions.
8679         * string/test-memmove.c (do_test2): New testcase.
8681 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
8683         * sysdeps/generic/frame.h: Remove file.
8684         * sysdeps/arm/frame.h: Likewise.
8685         * sysdeps/hppa/frame.h: Likewise.
8686         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
8687         macro.
8688         (GET_FRAME): Likewise.
8689         (GET_STACK): Likewise.
8690         (CALL_SIGHANDLER): Likewise.
8691         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
8692         Likewise.
8693         (GET_FRAME): Likewise.
8694         (GET_STACK): Likewise.
8695         (CALL_SIGHANDLER): Likewise.
8696         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
8697         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8698         (GET_FRAME): Likewise.
8699         (GET_STACK): Likewise.
8700         (CALL_SIGHANDLER): Likewise.
8701         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
8702         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8703         (GET_FRAME): Likewise.
8704         (GET_STACK): Likewise.
8705         (ADVANCE_STACK_FRAME): Likewise.
8706         (CALL_SIGHANDLER): Likewise.
8707         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
8708         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8709         (GET_FRAME): Likewise.
8710         (GET_STACK): Likewise.
8711         (CALL_SIGHANDLER): Likewise.
8712         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
8713         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8714         (GET_FRAME): Likewise.
8715         (GET_STACK): Likewise.
8716         (CALL_SIGHANDLER): Likewise.
8717         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
8718         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8719         (GET_FRAME): Likewise.
8720         (GET_STACK): Likewise.
8721         (CALL_SIGHANDLER): Likewise.
8722         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
8723         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8724         (GET_FRAME): Likewise.
8725         (GET_STACK): Likewise.
8726         (CALL_SIGHANDLER): Likewise.
8727         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
8728         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8729         (GET_FRAME): Likewise.
8730         (GET_STACK): Likewise.
8731         (CALL_SIGHANDLER): Likewise.
8732         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
8733         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8734         (GET_FRAME): Likewise.
8735         (GET_STACK): Likewise.
8736         (CALL_SIGHANDLER): Likewise.
8737         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
8738         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8739         (GET_FRAME): Likewise.
8740         (GET_STACK): Likewise.
8741         (CALL_SIGHANDLER): Likewise.
8742         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
8743         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8744         (GET_FRAME): Likewise.
8745         (GET_STACK): Likewise.
8746         (CALL_SIGHANDLER): Likewise.
8747         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
8748         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8749         (GET_FRAME): Likewise.
8750         (GET_STACK): Likewise.
8751         (CALL_SIGHANDLER): Likewise.
8752         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
8753         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8754         (FIRST_FRAME_POINTER): Likewise.
8755         (ADVANCE_STACK_FRAME): Likewise.
8756         (GET_STACK): Likewise.
8757         (GET_FRAME): Likewise.
8758         (CALL_SIGHANDLER): Likewise.
8759         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
8760         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8761         (ADVANCE_STACK_FRAME): Likewise.
8762         (GET_STACK): Likewise.
8763         (GET_FRAME): Likewise.
8764         (CALL_SIGHANDLER): Likewise.
8765         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
8766         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8767         (GET_FRAME): Likewise.
8768         (GET_STACK): Likewise.
8769         (CALL_SIGHANDLER): Likewise.
8770         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
8771         (SIGCONTEXT_EXTRA_ARGS): Likewise.
8772         (GET_FRAME): Likewise.
8773         (GET_STACK): Likewise.
8774         (CALL_SIGHANDLER): Likewise.
8776 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
8778         * sysdeps/x86_64/backtrace.c: Move to ....
8779         * debug/backtrace.c: ... here.
8780         * sysdeps/aarch64/backtrace.c: Remove file.
8781         * sysdeps/alpha/backtrace.c: Likewise.
8782         * sysdeps/hppa/backtrace.c: Likewise.
8783         * sysdeps/ia64/backtrace.c: Likewise.
8784         * sysdeps/mips/backtrace.c: Likewise.
8785         * sysdeps/nios2/backtrace.c: Likewise.
8786         * sysdeps/riscv/backtrace.c: Likewise.
8787         * sysdeps/sh/backtrace.c: Likewise.
8788         * sysdeps/tile/backtrace.c: Likewise.
8790 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
8792         [BZ #22987]
8793         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
8794         function.
8795         (fdimf): Likewise.
8796         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
8798         [BZ #17343]
8799         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
8800         possibly overflowing computations.
8802 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8804         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
8805         values from Linux-specific section now that it is in the GNU section.
8806         * sysdeps/gnu/errlist.c: Regenerate.
8808 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
8810         * math/Makefile (libm-narrow-fns): Add sub.
8811         (libm-test-funcs-narrow): Likewise.
8812         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
8813         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
8814         * math/gen-auto-libm-tests.c (test_functions): Add sub.
8815         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
8816         (NARROW_SUB_ROUND_TO_ODD): Likewise.
8817         (NARROW_SUB_TRIVIAL): Likewise.
8818         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
8819         macro.
8820         (__dsubl): Likewise.
8821         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
8822         dsub.
8823         (CFLAGS-nldbl-dsub.c): New variable.
8824         (CFLAGS-nldbl-fsub.c): Likewise.
8825         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8826         __nldbl_dsubl.
8827         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
8828         prototype.
8829         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
8830         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
8831         * math/auto-libm-test-in: Add tests of sub.
8832         * math/auto-libm-test-out-narrow-sub: New generated file.
8833         * math/libm-test-narrow-sub.inc: New file.
8834         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8835         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
8836         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
8837         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
8838         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
8839         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
8840         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
8841         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
8842         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
8843         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
8844         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
8845         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
8846         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
8847         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
8848         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
8849         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
8850         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
8851         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
8852         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8853         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8854         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8855         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8856         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8857         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8858         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8859         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8860         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8861         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8862         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8863         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8864         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8865         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8870         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8871         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8872         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8873         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8874         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8875         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8876         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
8877         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
8878         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8879         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8881 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
8883         [BZ #20079]
8884         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
8886 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
8888         * benchtests/bench-timing.h (attribute_hidden): Undefine.
8890 2018-03-18  Richard Braun  <rbraun@sceen.net>
8892         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
8893         thread reference.
8895 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
8897         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
8898         (__libc_cleanup_fct): Define function.
8899         (__libc_cleanup_region_start, __libc_cleanup_region_end,
8900         __libc_cleanup_end): Rewrite implementation using
8901         __attribute__ ((__cleanup__)).
8902         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
8903         * hurd/Makefile (routines): Add hurdlock.
8904         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
8905         interface.
8906         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
8907         * hurd/hurdpid.c: Include <lowlevellock.h>
8908         (_S_msg_proc_newids): Use lll_wait to synchronize.
8909         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
8910         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
8911         * mach/Makefile (lock-headers): Remove machine-lock.h.
8912         * mach/lock-intern.h: Include <lowlevellock.h> instead of
8913         <machine-lock.h>.
8914         (__spin_lock_t): New type.
8915         (__SPIN_LOCK_INITIALIZER): New macro.
8916         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
8917         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
8918         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
8919         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
8920         (__mutex_init): Initialize with lll.
8921         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
8922         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
8923         needing lll.
8924         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8925         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
8926         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
8927         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
8928         (__setpgid): Use lll for synchronization.
8929         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
8930         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
8931         instead of <cthreads.h>.
8932         (_IO_lock_inexpensive): New macro
8933         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
8934         (__libc_lock_self0): New declaration.
8935         (__libc_lock_owner_self): New macro.
8936         (__libc_key_t): Remove type.
8937         (_LIBC_LOCK_INITIALIZER): New macro.
8938         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
8939         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
8940         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
8941         __libc_lock_define_initialized_recursive,
8942         __rtld_lock_define_initialized_recursive,
8943         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
8944         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
8945         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
8946         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
8947         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
8948         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
8949         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
8950         New macros.
8951         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
8952         * hurd/hurdlock.c: New file.
8953         * hurd/hurdlock.h: New file.
8954         * mach/lowlevellock.h: New file
8956 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8958         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
8959         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
8960         when opening a symlink with O_NOFOLLOW.
8961         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
8962         path when flags contains O_NOFOLLOW.
8963         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
8964         if flags contains O_DIRECTORY and the result is a directory.
8965         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
8966         oneself when the pointer given in D is nul (as set by ext2fs).
8967         * sysdeps/mach/hurd/mlockall.c: New file.
8968         * sysdeps/mach/hurd/munlockall.c: New file.
8970 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8972         * hurd/hurdsig.c: Include <pthread.h>.
8973         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
8974         get the signal thread stack layout.
8975         * hurd/Makefile (headers): Remove threadvar.h.
8976         (inline-headers): Remove threadvar.h.
8977         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
8978         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
8979         __hurd_threadvar_max, __hurd_errno_location.
8980         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
8981         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
8982         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
8983         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
8984         unless TLS is not initialized yet, in which case we do not need a
8985         critical section yet anyway.
8986         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
8987         <machine-sp.h>.
8988         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
8989         declarations.
8990         (__hurd_threadvar_index): Remove enum.
8991         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
8992         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
8993         inlines.
8994         (__hurd_reply_port0): New variable declaration.
8995         (__hurd_local_reply_port): New macro.
8996         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
8997         (interrupted_reply_port_location): Add thread_t parameter.  Use it
8998         with THREAD_TCB to access thread-local variables.
8999         (_hurdsig_abort_rpcs): Pass ss->thread to
9000         interrupted_reply_port_location.
9001         (_hurd_internal_post_signal): Likewise.
9002         (_hurdsig_init): Use presence of cthread_fork instead of
9003         __hurd_threadvar_stack_mask to start signal thread by hand.
9004         Remove signal thread threadvar initialization.
9005         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
9006         * hurd/sigunwind.c: Include <hurd/threadvar.h>
9007         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
9008         of threadvar.
9009         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
9010         __libc_lock_self0.
9011         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
9012         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
9013         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
9014         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
9015         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
9016         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
9017         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
9018         define variables.
9019         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
9020         <hurd/threadvar.h>.
9021         [IS_IN(rtld)] (rtld_errno): New variable.
9022         [IS_IN(rtld)] (__errno_location): New weak function.
9023         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
9024         * sysdeps/mach/hurd/errno.c: Remove file.
9025         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
9026         (__fork): Remove THREADVAR_SPACE macro and its use.
9027         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
9028         variable.
9029         (init): Do not initialize threadvar.
9030         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
9031         symbol.
9032         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
9033         __hurd_local_reply_port instead of threadvar.
9034         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
9035         _hurd_sigstate fields.
9036         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
9037         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
9038         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
9039         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
9040         instead of threadvar.
9041         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
9042         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
9043         (use_threadvar, global_reply_port): Remove variables.
9044         (__hurd_reply_port0): New variable.
9045         (__mig_get_reply_port): Use __hurd_local_reply_port and
9046         __hurd_reply_port0 instead of threadvar.
9047         (__mig_dealloc_reply_port): Likewise.
9048         (__mig_init): Do not initialize threadvar.
9049         * sysdeps/mach/hurd/profil.c: Fix comment.
9050         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
9051         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
9052         cthread_keycreate, cthread_getspecific, cthread_setspecific to
9053         __cthread_fork, __cthread_detach, __pthread_getattr_np,
9054         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
9055         __cthread_setspecific.
9056         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
9057         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
9058         __cthread_t instead of cthread_fork, cthread_detach,
9059         pthread_getattr_np, pthread_attr_getstack.
9060         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
9061         __cthread_keycreate.
9062         (cthread_getspecific): Rename to __cthread_getspecific.
9063         (cthread_setspecific): Rename to __cthread_setspecific.
9064         (__libc_getspecific): Use __cthread_getspecific instead of
9065         cthread_getspecific.
9066         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
9067         __cthread_keycreate instead of cthread_keycreate.
9068         (__libc_setspecific): Use __cthread_setspecific instead of
9069         cthread_setspecific.
9070         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
9071         Likewise.
9072         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
9073         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
9074         testing whether it is defined.
9076 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9078         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
9079         Define macro.
9080         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
9081         * sysdeps/mach/i386/thread_state.h
9082         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
9083         i386_THREAD_STATE.
9084         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
9085         i386_THREAD_STATE.
9086         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
9088         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
9089         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
9091         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
9092         macros.
9093         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
9094         descriptor instead of creating a new one.
9095         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
9097         * mach/setup-thread.c: Include <ldsodefs.h>.
9098         (__mach_setup_thread): Call _dl_allocate_tls, pass
9099         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
9100         MACHINE_THREAD_STATE_FLAVOR, before getting
9101         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
9102         MACHINE_THREAD_STATE_FLAVOR with the result.
9103         * hurd/hurdfault.c (_hurdsig_fault_init): Call
9104         MACHINE_THREAD_STATE_FIX_NEW.
9105         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
9106         too.  Add original thread parameter.
9108 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
9110         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
9111         Remove inline function.
9113         * sysdeps/i386/fpu/libm-test-ulps: Update.
9114         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
9116 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
9118         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
9119         commit.
9121 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
9123         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
9124         (__sincos_code): Remove define and undefine.
9125         [__FAST_MATH__] (__sincos): Remove inline function.
9126         [__FAST_MATH__] (__sincosf): Remove inline function.
9127         [__FAST_MATH__] (__sincosl): Remove inline function.
9128         (__atan2l): Remove inline functions.
9129         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
9130         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
9131         function.
9132         (floor): Remove inline function.
9133         (ceil): Likewise.
9134         [__FAST_MATH__] (__ldexp_code): Remove macro.
9135         [__FAST_MATH__] (ldexp): Remove inline function.
9136         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
9137         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
9138         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
9139         [__USE_ISOC99] (__lrint_code): Remove macro.
9140         [__USE_ISOC99] (__llrint_code): Likewise.
9141         [__USE_ISOC99] (lrintf): Remove inline function.
9142         [__USE_ISOC99] (lrint): Likewise.
9143         [__USE_ISOC99] (lrintl): Likewise.
9144         [__USE_ISOC99] (llrint): Likewise.
9145         [__USE_ISOC99] (llrintf): Likewise.
9146         [__USE_ISOC99] (llrintl): Likewise.
9148 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9150         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
9151         (__ieee754_sqrtf): Remove.
9152         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
9153         (__ieee754_sqrtf): Remove.
9154         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
9155         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
9156         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
9157         (__ieee754_sqrtf): Remove.
9158         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
9159         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
9160         (sqrtf): Remove.
9161         (sqrtl): Remove.
9162         (__ieee754_sqrt): Remove.
9163         (__ieee754_sqrtf): Remove.
9164         (__ieee754_sqrtl): Remove.
9165         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
9166         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
9167         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
9168         (__ieee754_sqrtf): Remove.
9169         (__ieee754_sqrtl): Remove.
9171 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9173         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
9174         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
9175         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9176         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
9177         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
9178         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9179         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9180         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
9181         Likewise.
9182         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
9183         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
9184         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
9185         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9186         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
9187         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
9188         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
9189         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
9190         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9191         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
9192         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
9193         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
9194         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
9195         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
9196         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
9197         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
9198         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9199         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9200         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
9201         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
9202         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
9203         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9204         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
9205         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
9206         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
9207         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
9208         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9209         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9210         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
9211         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
9212         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9213         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
9214         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9215         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9216         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9217         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9218         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
9219         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
9220         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
9221         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
9223 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9225         * include/math.h (sqrt): Declare with asm redirect.
9226         (sqrtf): Likewise.
9227         (sqrtl): Likewise.
9228         (sqrtf128): Likewise.
9229         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
9230         nonlib and libnldbl with -fmath-errno.
9231         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
9232         * math/w_sqrt_template.c: Likewise.
9233         * math/w_sqrtf_compat.c: Likewise.
9234         * math/w_sqrtl_compat.c: Likewise.
9235         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
9236         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
9237         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
9238         complex.h.
9240 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
9242         * benchtests/Makefile: Define _ISOMAC.
9243         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
9244         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
9245         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
9246         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
9247         * benchtests/bench-timing.h: Define attribute_hidden.
9249 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9251         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
9252         mov + lsr.
9254 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
9256         [BZ #22963]
9257         * localedata/locales/cs_CZ (mon): Rename to...
9258         (alt_mon): This.
9259         (mon): Import from CLDR (genitive case).
9261 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
9263         [BZ #22937]
9264         * localedata/locales/el_CY (abmon): Rename to...
9265         (ab_alt_mon): This.
9266         (abmon): Import from CLDR (abbreviated genitive case).
9267         * localedata/locales/el_GR (abmon): Rename to...
9268         (ab_alt_mon): This.
9269         (abmon): Import from CLDR (abbreviated genitive case).
9271 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
9273         [BZ #22932]
9274         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
9276 2018-03-15  Robert Buj  <robert.buj@gmail.com>
9278         [BZ #22848]
9279         * localedata/locales/ca_ES (abmon): Rename to...
9280         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
9281         (mon): Rename to...
9282         (alt_mon): This.
9283         (abmon): Import from CLDR (genitive case, month names preceded by
9284         "de" or "d’").
9285         (mon): Likewise.
9286         (abday): Synchronize with CLDR.
9287         (d_t_fmt): Likewise.
9288         (d_fmt): Likewise.
9289         (am_pm): Likewise.
9291         (LC_TIME): Improve indentation.
9292         (LC_TELEPHONE): Likewise.
9293         (LC_NAME): Likewise.
9294         (LC_ADDRESS): Likewise.
9296 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
9298         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
9299         (lrintf): Remove definitions used only with old GCC.
9300         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
9301         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
9302         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
9303         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
9304         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
9305         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
9306         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
9307         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
9308         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
9309         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
9310         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
9311         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
9312         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
9313         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
9314         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
9315         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
9316         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
9317         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
9318         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
9319         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
9320         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
9321         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
9322         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
9323         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
9324         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
9325         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
9326         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
9327         [__FAST_MATH__] (__M_SQRT2): Remove macro.
9329 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9331         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
9332         instruction to unbreak builds with binutils 2.26 and older.
9334 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9336         * sysdeps/aarch64/strncmp.S (count): New macro.
9337         (strncmp): Store misaligned length in SRC1 in COUNT.
9338         (mutual_align): Adjust.
9339         (misaligned8): Load dword at a time when it is safe.
9341 2018-03-12  Zack Weinberg  <zackw@panix.com>
9343         [BZ #1190]
9344         [BZ #19476]
9345         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
9346         if the _IO_EOF_SEEN bit is already set; update commentary.
9347         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
9348         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
9350         * support/support_openpty.c, support/tty.h: New files.
9351         * support/Makefile (libsupport-routines): Add support_openpty.
9353         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
9354         New test cases.
9355         * libio/Makefile (tests): Add tst-fgetc-after-eof.
9356         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
9358 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
9360         * po/pt_BR.po: Update translations.
9362 2018-03-12  David Michael <fedora.dm0@gmail.com>
9364         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
9365         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
9366         get a port to the startup server.
9368 2018-03-11  Zack Weinberg  <zackw@panix.com>
9370         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
9371         before nldbl-compat.h.
9373 2018-03-10  Zack Weinberg  <zackw@panix.com>
9375         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
9376         math.h or math_private.h.
9378         * sysdeps/alpha/fpu/s_isnan.c
9379         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
9380         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
9381         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
9382         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
9383         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
9384         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
9385         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
9386         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
9387         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
9388         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
9389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
9390         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
9391         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
9392         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
9393         Include math_private.h.
9395         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
9396         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
9397         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
9398         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
9399         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
9400         * sysdeps/powerpc/power7/fpu/s_logb.c:
9401         Include math.h and math_private.h.
9403         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
9404         uses of $at in .set noat / .set at.
9406 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
9408         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
9409         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
9410         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
9411         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
9412         Likewise.
9414 2018-03-09  Florian Weimer  <fweimer@redhat.com>
9416         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
9417         in comment.
9419 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
9421         [BZ #22919]
9422         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
9423         Add nop before __startcontext, add explaining comments.
9425 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9427         [BZ #22926]
9428         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
9429         empty for __SPE__.
9430         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9431         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
9432         Do not build hardware transactional code for __SPE__.
9433         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
9434         (__lll_trylock_elision): Likewise.
9435         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
9436         (__lll_unlock_elision): Likewise.
9438         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
9439         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
9440         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
9441         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
9442         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
9443         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
9444         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
9445         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
9446         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
9447         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
9448         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
9449         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
9450         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
9451         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
9452         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
9453         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
9454         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
9455         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
9456         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
9457         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
9458         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
9459         * sysdeps/unix/sysv/linux/arm/kernel-features.h
9460         (__ASSUME_CLONE_BACKWARDS): Define.
9461         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
9462         __clone2 if __NR_clone2 is defined.
9463         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
9464         (__ASSUME_CLONE_BACKWARDS): Likewise.
9465         * sysdeps/unix/sysv/linux/i386/kernel-features.h
9466         (__ASSUME_CLONE_BACKWARDS): Likewise.
9467         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
9468         (__ASSUME_CLONE2): Likewise.
9469         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9470         (__ASSUME_CLONE_BACKWARDS3): Likewise.
9471         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
9472         variants and the define architecture can use.
9473         (__ASSUME_CLONE_DEFAULT): Define as default.
9474         * sysdeps/unix/sysv/linux/mips/kernel-features.h
9475         (__ASSUME_CLONE_BACKWARDS): Likewise.
9476         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
9477         (__ASSUME_CLONE_BACKWARDS): Likewise.
9478         * sysdeps/unix/sysv/linux/s390/kernel-features.h
9479         (__ASSUME_CLONE_BACKWARDS2): Likewise.
9481 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9483         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
9485         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
9486         time.
9488         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
9489         (do_test_limit): Likewise.
9491         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
9492         for every implementation.
9493         (do_test): Likewise.
9495         * benchtests/bench-strncmp.c: Convert output to json.
9497 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9499         * io/futimens.c: Add missing start-of-file descriptive comment.
9500         * io/utime.c: Likewise.
9501         * misc/futimesat.c: Likewise.
9502         * misc/utimes.c: Likewise.
9503         * sysdeps/mach/hurd/futimesat.c: Likewise.
9504         * sysdeps/mach/hurd/utimes.c: Likewise.
9505         * sysdeps/posix/utime.c: Likewise.
9506         * sysdeps/posix/utimes.c: Likewise.
9507         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
9508         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
9509         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
9510         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
9512 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9514         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
9515         hurd_futimes.
9516         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
9517         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
9518         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
9519         (__futimens): Move implementation to...
9520         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
9521         utime_tvalue_from_tspec): ... new helper functions.
9522         (hurd_futimens): New function.
9523         * sysdeps/mach/hurd/futimesat.c: New file.
9524         * sysdeps/mach/hurd/utimensat.c: New file.
9526 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
9528         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
9529         UTIME_OMIT): New macros.
9530         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
9531         before reverting to converting time spec to time value and calling
9532         __file_utimes.
9533         * sysdeps/mach/hurd/utime-helper.c: New file.
9534         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
9535         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
9536         reverting to utime_tvalue_from_tval and __file_utimes.
9537         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
9538         (__lutimes): Just call hurd_futimens after lookup.
9539         * sysdeps/mach/hurd/utimes.c: Likewise.
9541 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9543         * bits/sigaction.h: Add include guard.
9544         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
9545         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
9546         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
9547         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
9548         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
9549         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
9550         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
9551         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
9552         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
9554 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
9556         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
9557         -Wmaybe-uninitialized for -Os.
9558         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
9559         this disabling.
9561 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9563         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
9564         __INO_T_MATCHES_INO64_T is defined.
9565         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
9566         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
9567         of definition.
9568         * dirent/alphasort64.c: Likewise.
9569         * dirent/scandir.c: Likewise.
9570         * dirent/scandir64-tail.c: Likewise.
9571         * dirent/scandir64.c: Likewise.
9572         * dirent/scandirat.c: Likewise.
9573         * dirent/scandirat64.c: Likewise.
9574         * dirent/versionsort.c: Likewise.
9575         * dirent/versionsort64.c: Likewise.
9576         * include/dirent.h: Likewise.
9578         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
9579         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
9580         for socketpair endpoint.
9581         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
9582         WRITE_BUFFER_SIZE as buffer size for sending socket.
9583         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
9584         issue on system where send is implemented with sendto syscall.
9585         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
9586         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
9587         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
9588         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
9590         [BZ #21269]
9591         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
9592         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
9593         sa_restorer for vDSO case.
9594         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
9596 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9598         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
9599         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
9600         * hurd/hurd/ioctl.h: Include <mach/port.h>
9601         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
9602         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
9603         <mach/mach_types.h> and <mach/message.h>.
9604         (headers): Move mach/param.h to bits/mach/param.h.
9605         * sysdeps/mach/i386/mach/param.h: Move file to ...
9606         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
9607         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
9608         of <mach/param.h>.
9609         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
9610         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
9611         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
9612         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
9613         trivial, for C++ conformity.
9614         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
9615         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
9616         Process mig output through $(migheadersed).
9617         * hurd/Makefile (migheadersed): Define variable.
9618         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
9619         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
9620         headers.
9621         * hurd/hurd.h: Include <bits/types/sigset_t.h>
9622         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
9623         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
9624         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
9625         <bits/types/sigset_t.h>.
9626         [!defined __USE_GNU]: Do not #error out.
9627         (struct hurd_sigstate): Use _NSIG instead of NSIG.
9628         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
9629         Include <stddef.h> and <bits/types/sigset_t.h>
9630         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
9631         instead of sighandler_t.
9632         * stdlib/errno.h (error_t): Move definition to...
9633         * bits/types/error_t.h: ... new header.
9634         * stdlib/Makefile (headers): Add bits/types/error_t.h.
9635         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
9636         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
9637         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
9638         * hurd/hurd.h: Include <bits/types/error_t.h>
9639         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
9640         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
9641         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
9642         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
9643         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
9644         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
9645         * sysdeps/mach/hurd/futimens.c: New file.
9647 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
9649         [BZ #22918]
9650         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
9651         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
9652         * nscd/gai.c (__nss_hosts_database): Readd definition.
9653         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
9654         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
9655         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
9657 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
9659         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
9660         (ifunc_one): Likewise.
9662 2018-03-01  DJ Delorie  <dj@delorie.com>
9664         [BZ #22342]
9665         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
9666         key value.
9668 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
9670         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
9671         `match_pid' parameter.
9672         (td_ta_thr_iter): Update accordingly.
9674 2018-03-01  Florian Weimer  <fweimer@redhat.com>
9676         * nptl/Makefile (install-lib-ldscripts): Remove.
9677         (install): Remove rule.
9678         ($(inst_libdir)/libpthread.so): Likewise.
9680 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
9682         [BZ #22896]
9683         * localedata/locales/an_ES: update month and day names,
9684         improve d_fmt, improve postal_fmt, add country_post,
9685         add country_isbn
9687 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
9689         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
9690         Ukrainian instead of Bulgarian.
9692 2018-03-01  Florian Weimer  <fweimer@redhat.com>
9694         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
9695         reference.
9697 2018-03-01  Florian Weimer  <fweimer@redhat.com>
9699         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
9700         * nptl/Makefile (routines): Add pthread_atfork.
9701         (static-only-routines): Set to pthread_atfork.
9702         (libpthread-routines): Remove pthread_atfork.
9703         (libpthread-static-only-routines): Remove.
9704         (install): Update comment.
9705         (libpthread.so): Do not install libpthread_nonshared.a.
9706         (tests): Do not link with libpthread_nonshared.a.
9707         (generated): Remove libpthread_nonshared.a.
9708         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
9709         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
9710         with libpthread_nonshared.a.
9712 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
9714         [BZ #22902]
9715         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
9716         (libc_feholdexcept_setroundf128): New macro.
9717         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
9719         [BZ #15105]
9720         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
9721         libc_hidden_def.
9722         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
9723         * include/inttypes.h: New file.
9725 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
9727         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
9728         -Os in two more places.
9730 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9732         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
9733         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
9734         be sorted correctly at the moment because of a bug.
9736 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9738         [BZ #22550] - es_ES locale (and other es_* locales): collation should
9739         treat ñ as a primary different character, sync the collation
9740         for Spanish with CLDR.
9741         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
9742         * localedata/Makefile: Add new test files.
9743         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
9744         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
9745         collation order.
9746         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
9747         * localedata/am_ET.UTF-8.in: New test file.
9748         * localedata/az_AZ.UTF-8.in: Likewise.
9749         * localedata/be_BY.UTF-8.in: Likewise.
9750         * localedata/ber_DZ.UTF-8.in: Likewise.
9751         * localedata/ber_MA.UTF-8.in: Likewise.
9752         * localedata/bg_BG.UTF-8.in: Likewise.
9753         * localedata/br_FR.UTF-8.in: Likewise.
9754         * localedata/cmn_TW.UTF-8.in: Likewise.
9755         * localedata/crh_UA.UTF-8.in: Likewise.
9756         * localedata/csb_PL.UTF-8.in: Likewise.
9757         * localedata/cv_RU.UTF-8.in: Likewise.
9758         * localedata/cy_GB.UTF-8.in: Likewise.
9759         * localedata/dz_BT.UTF-8.in: Likewise.
9760         * localedata/eo.UTF-8.in: Likewise.
9761         * localedata/es_ES.UTF-8.in: Likewise.
9762         * localedata/fa_IR.UTF-8.in: Likewise.
9763         * localedata/fi_FI.UTF-8.in: Likewise.
9764         * localedata/fil_PH.UTF-8.in: Likewise.
9765         * localedata/fur_IT.UTF-8.in: Likewise.
9766         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
9767         * localedata/ha_NG.UTF-8.in: Likewise.
9768         * localedata/ig_NG.UTF-8.in: Likewise.
9769         * localedata/ik_CA.UTF-8.in: Likewise.
9770         * localedata/kk_KZ.UTF-8.in: Likewise.
9771         * localedata/ku_TR.UTF-8.in: Likewise.
9772         * localedata/ky_KG.UTF-8.in: Likewise.
9773         * localedata/ln_CD.UTF-8.in: Likewise.
9774         * localedata/mi_NZ.UTF-8.in: Likewise.
9775         * localedata/ml_IN.UTF-8.in: Likewise.
9776         * localedata/mn_MN.UTF-8.in: Likewise.
9777         * localedata/mr_IN.UTF-8.in: Likewise.
9778         * localedata/mt_MT.UTF-8.in: Likewise.
9779         * localedata/nb_NO.UTF-8.in: Likewise.
9780         * localedata/om_KE.UTF-8.in: Likewise.
9781         * localedata/os_RU.UTF-8.in: Likewise.
9782         * localedata/ps_AF.UTF-8.in: Likewise.
9783         * localedata/ro_RO.UTF-8.in: Likewise.
9784         * localedata/ru_RU.UTF-8.in: Likewise.
9785         * localedata/sc_IT.UTF-8.in: Likewise.
9786         * localedata/se_NO.UTF-8.in: Likewise.
9787         * localedata/sq_AL.UTF-8.in: Likewise.
9788         * localedata/sv_SE.UTF-8.in: Likewise.
9789         * localedata/szl_PL.UTF-8.in: Likewise.
9790         * localedata/tg_TJ.UTF-8.in: Likewise.
9791         * localedata/tk_TM.UTF-8.in: Likewise.
9792         * localedata/tt_RU.UTF-8.in: Likewise.
9793         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
9794         * localedata/ug_CN.UTF-8.in: Likewise.
9795         * localedata/uz_UZ.UTF-8.in: Likewise.
9796         * localedata/vi_VN.UTF-8.in: Likewise.
9797         * localedata/yi_US.UTF-8.in: Likewise.
9798         * localedata/yo_NG.UTF-8.in: Likewise.
9799         * localedata/zh_CN.UTF-8.in: Likewise.
9800         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
9801         file and fix bugs in the collation.
9802         * localedata/locales/az_AZ: Likewise.
9803         * localedata/locales/be_BY: Likewise.
9804         * localedata/locales/ber_DZ: Likewise.
9805         * localedata/locales/ber_MA: Likewise.
9806         * localedata/locales/bg_BG: Likewise.
9807         * localedata/locales/br_FR: Likewise.
9808         * localedata/locales/br_FR@euro: Likewise.
9809         * localedata/locales/ca_ES: Likewise.
9810         * localedata/locales/cns11643_stroke: Likewise.
9811         * localedata/locales/crh_UA: Likewise.
9812         * localedata/locales/cs_CZ: Likewise.
9813         * localedata/locales/csb_PL: Likewise.
9814         * localedata/locales/cv_RU: Likewise.
9815         * localedata/locales/cy_GB: Likewise.
9816         * localedata/locales/da_DK: Likewise.
9817         * localedata/locales/dz_BT: Likewise.
9818         * localedata/locales/en_CA: Likewise.
9819         * localedata/locales/eo: Likewise.
9820         * localedata/locales/es_CU: Likewise.
9821         * localedata/locales/es_EC: Likewise.
9822         * localedata/locales/es_ES: Likewise.
9823         * localedata/locales/es_US: Likewise.
9824         * localedata/locales/et_EE: Likewise.
9825         * localedata/locales/fa_IR: Likewise.
9826         * localedata/locales/fi_FI: Likewise.
9827         * localedata/locales/fil_PH: Likewise.
9828         * localedata/locales/fur_IT: Likewise.
9829         * localedata/locales/gez_ER@abegede: Likewise.
9830         * localedata/locales/ha_NG: Likewise.
9831         * localedata/locales/hr_HR: Likewise.
9832         * localedata/locales/hsb_DE: Likewise.
9833         * localedata/locales/hu_HU: Likewise.
9834         * localedata/locales/ig_NG: Likewise.
9835         * localedata/locales/ik_CA: Likewise.
9836         * localedata/locales/is_IS: Likewise.
9837         * localedata/locales/iso14651_t1_pinyin: Likewise.
9838         * localedata/locales/kk_KZ: Likewise.
9839         * localedata/locales/ku_TR: Likewise.
9840         * localedata/locales/ky_KG: Likewise.
9841         * localedata/locales/ln_CD: Likewise.
9842         * localedata/locales/lt_LT: Likewise.
9843         * localedata/locales/lv_LV: Likewise.
9844         * localedata/locales/mi_NZ: Likewise.
9845         * localedata/locales/ml_IN: Likewise.
9846         * localedata/locales/mn_MN: Likewise.
9847         * localedata/locales/mr_IN: Likewise.
9848         * localedata/locales/mt_MT: Likewise.
9849         * localedata/locales/nb_NO: Likewise.
9850         * localedata/locales/om_KE: Likewise.
9851         * localedata/locales/os_RU: Likewise.
9852         * localedata/locales/pl_PL: Likewise.
9853         * localedata/locales/ps_AF: Likewise.
9854         * localedata/locales/ro_RO: Likewise.
9855         * localedata/locales/ru_RU: Likewise.
9856         * localedata/locales/ru_UA: Likewise.
9857         * localedata/locales/sc_IT: Likewise.
9858         * localedata/locales/se_NO: Likewise.
9859         * localedata/locales/si_LK: Likewise.
9860         * localedata/locales/sq_AL: Likewise.
9861         * localedata/locales/sv_FI: Likewise.
9862         * localedata/locales/sv_FI@euro: Likewise.
9863         * localedata/locales/sv_SE: Likewise.
9864         * localedata/locales/szl_PL: Likewise.
9865         * localedata/locales/tg_TJ: Likewise.
9866         * localedata/locales/ti_ER: Likewise.
9867         * localedata/locales/tk_TM: Likewise.
9868         * localedata/locales/tl_PH: Likewise.
9869         * localedata/locales/tr_TR: Likewise.
9870         * localedata/locales/tt_RU: Likewise.
9871         * localedata/locales/tt_RU@iqtelif: Likewise.
9872         * localedata/locales/ug_CN: Likewise.
9873         * localedata/locales/uk_UA: Likewise.
9874         * localedata/locales/uz_UZ: Likewise.
9875         * localedata/locales/uz_UZ@cyrillic: Likewise.
9876         * localedata/locales/vi_VN: Likewise.
9877         * localedata/locales/yi_US: Likewise.
9878         * localedata/locales/yo_NG: Likewise.
9880 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9882         * gen-locales.mk: Make test files which contain @ modifiers in their
9883         name work.
9884         * localedata/gen-locale.sh: Likewise.
9886 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9888         * posix/tst-fnmatch.input: Fix results for range expressions
9889         for non C locales.
9890         * posix/tst-regexloc.c: Do not use a range expression for
9891         de_DE.ISO-8859-1 locale.
9893 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9895         * posix/bug-regex5.c: Fix test case because with the new
9896         iso14651_t1_common file, the da_DK locale now has 6 collating elements
9897         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
9898         file.
9900 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9902         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
9903         downloaded from ISO, the collation order of @-. and space has changed.
9904         Therefore, this test file needed to be adapted.
9905         * localedata/fr_CA.UTF-8.in: Likewise.
9906         * localedata/fr_FR.UTF-8.in: Likewise.
9907         * localedata/uk_UA.UTF-8.in: Likewise.
9909 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9911         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
9912         order of ȥ in the new iso14651_t1_common file.
9913         * localedata/pl_PL.UTF-8.in: Likewise.
9915 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9917         * localedata/locales/iso14651_t1_common: Add sections for various
9918         scripts to the iso14651_t1_common file.
9920 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9922         * localedata/locales/iso14651_t1_common: Use the code point of a
9923         character in the fourth collation level instead of IGNORE for all
9924         entries which have IGNORE on all 4 levels.
9926 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9928         * localedata/locales/iso14651_t1_common: Add some convenient collation
9929         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
9930         rules similar to those in CLDR.
9932 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9934         * localedata/locales/iso14651_t1_common: The new version of this
9935         file downloaded from ISO contained several syntax errors which
9936         are fixed by this patch.
9938 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9940         * localedata/locales/iso14651_t1_common: replace all <U.....>
9941         with <U000.....> because glibc understands only 4 digit or 8 digit
9943 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9945         * localedata/locales/iso14651_t1_common: Necessary changes
9946         to make the file downloaded from ISO usable by glibc.
9948 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
9950         [BZ #14095]
9951         * localedata/locales/iso14651_t1_common: Update file to
9952         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
9954 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9956         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
9957         of <nptl/pthreadP.h>
9958         (thread_attr_compare): Move function to...
9959         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
9960         * sysdeps/nptl/timer_routines.h: ... new header.
9961         * sysdeps/mach/hurd/gai_misc.h: New file.
9963 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
9965         * string/strcoll_l.c: Include <libc-diag.h>.
9966         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
9967         declarations of seq1 and seq2.
9969         [BZ #15105]
9970         * stdlib/atoi.c (atoi): Use libc_hidden_def.
9971         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
9973 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
9975         [BZ #22433]
9976         [BZ #22807]
9977         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
9978         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
9979         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
9980         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
9981         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
9982         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
9984 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9986         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
9987         macros used in __ptrace_request.
9989 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
9991         [BZ #22792]
9992         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
9993         to $(CC).
9994         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
9995         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
9996         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
9997         <tcb-offsets.h>.
9999 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
10001         [BZ #15105]
10002         * ctype/ctype.c (tolower): Use libc_hidden_def.
10003         (toupper): Likewise.
10004         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
10005         [!_ISOMAC] (toupper): Likewise.
10007 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10009         * localedata/Makefile: Remove --quiet argument when
10010         installing locales
10012 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10014         [BZ #17438]
10015         * localedata/locales/pt_BR (LC_TIME): use / instead of -
10016         in d_fmt.
10017         * localedata/locales/pt_PT (LC_TIME): likewise
10019 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
10021         [BZ #22646]
10022         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
10023         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
10024         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
10026 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10030         * nptl/Makefile (routines): Remove unregister-atfork.
10031         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
10032         (fork_handler_alloc): Remove function.
10033         (fork_handlers, fork_handler_init): New variables.
10034         (__fork_lock): Rename to atfork_lock.
10035         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
10036         to use a dynamic array to add/remove atfork handlers.
10037         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
10038         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
10039         Remove declaration.
10040         (fork_handler): Remove next, refcntr, and need_signal member.
10041         (__run_fork_handler_type): New enum.
10042         (__run_fork_handlers): New prototype.
10043         * nptl/register-atfork.c: Remove file.
10044         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
10046         * sysdeps/nptl/nptl-signals.h: Move to ...
10047         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
10048         comments.
10049         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
10050         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
10051         unnecessary check for SIGTIMER.
10052         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
10053         remove unnecessary removal of SIGTIMER.
10054         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
10055         include-signals.h rename.
10056         * nptl/pthreadP.h: Likewise.
10057         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
10058         __is_internal_signal instead of __nptl_is_internal_signal.
10060 2018-02-22  Andrew Waterman <andrew@sifive.com>
10062         [BZ # 22884]
10063         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
10064         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
10065         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
10066         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
10068 2018-02-22  DJ Delorie  <dj@delorie.com>
10070         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
10072 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10074         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
10075         do_misaligned, not misaligned8.
10077 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
10079         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
10080         Add memcpy_thunderx2.
10081         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
10082         Increment to 4.
10083         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
10084         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
10085         and IS_THUNDERX2PA checks.
10086         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
10087         Use macro to set name appropriately.
10088         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
10089         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
10090         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
10091         New macro.
10092         (IS_THUNDERX2): New macro.
10094 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
10096         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10098 2018-02-21  Zack Weinberg  <zackw@panix.com>
10100         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
10101         Define here, unconditionally.
10102         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
10103         * libio/libioP.h: Remove #if 0 blocks.
10104         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
10105         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
10106         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
10108         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
10109         Assume weak_alias is always defined.
10111         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
10112         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
10113         Remove #if 0 and #ifdef TODO blocks.
10114         Assume text_set_element is always defined.
10116         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
10117         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
10118         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
10120         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
10121         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
10122         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
10123         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
10124         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
10125         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
10126         Reformat bit flags for _flags field to make occupancy clearer.
10127         Update commentary.
10128         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
10129         Keep definitions consistent with those in libio/libio.h.
10131         * libio/libio.h (_IO_file_flags): Remove macro.
10132         All uses changed to _flags.
10134         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
10135         (__HAVE_COLUMN, _IO_BE): Don't define.
10136         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
10137         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
10138         * libio/libioP.h (EOF): Don't define.
10139         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
10140         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
10141         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
10142         testing _IO_UNIFIED_JUMPTABLES.
10144         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
10145         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
10146         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
10147         (_IO_size_t): Delete; all uses changed to size_t.
10148         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
10149         (_IO_off_t): Delete; all uses changed to off_t.
10150         (_IO_off64_t): Delete; all uses changed to off64_t.
10151         (_IO_pid_t): Delete; all uses changed to pid_t.
10152         (_IO_uid_t): Delete; all uses changed to uid_t.
10153         (_IO_wint_t): Delete; all uses changed to wint_t.
10154         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
10155         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
10156         (_IO_cookie_io_functions_t): Delete; all uses changed to
10157         cookie_io_functions_t.
10158         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
10159         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
10160         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
10161         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
10163         * libio/iofopncook.c: Remove unnecessary forward declarations.
10164         * libio/iolibio.h: Correct outdated commentary.
10165         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
10166         * stdio-common/fxprintf.c (__fxprintf_nocancel):
10167         Remove unnecessary casts.
10168         * stdio-common/getline.c: Use _IO_getdelim directly.
10169         Don't redefine ssize_t.
10170         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
10171         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
10172         Remove outdated comments.
10173         * stdio-common/vfscanf.c: Don't redefine va_list.
10175         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
10176         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
10177         Remove preprocessor conditionals on _LIBC and __USE_GNU,
10178         which are always true, and __cplusplus, which is always false.
10180 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
10182         [BZ #15105]
10183         [BZ #19463]
10184         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
10185         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
10186         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
10187         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
10188         libc_hidden_proto.
10189         [!_ISOMAC] (putc_unlocked): Likewise.
10190         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
10191         define inline if [__USE_EXTERN_INLINES].
10192         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
10193         putc_unlocked.
10195         [BZ #15105]
10196         [BZ #19463]
10197         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
10198         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
10199         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
10200         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
10201         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
10202         getc_unlocked.
10203         * time/tzfile.c (__tzfile_read): Likewise.
10205 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
10207         [BZ #22517]
10208         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
10210 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
10212         * io/fcntl.h: Fix a typo in a comment.
10214 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
10216         [BZ #22862]
10217         * include/features.h: Add _ISOC11_SOURCE to test for whether to
10218         define _DEFAULT_SOURCE.
10219         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
10221 2018-02-21  Florian Weimer  <fweimer@redhat.com>
10223         [BZ #20890]
10224         * elf/cache.c (save_cache): Call fsync on temporary file before
10225         renaming it.
10226         (save_aux_cache): Call fdatasync on temporary file before renaming
10227         it.
10229 2018-02-21  Florian Weimer  <fweimer@redhat.com>
10231         [BZ #22787]
10232         * include/caller.h: Remove file.
10233         * elf/dl-caller.c: Likewise.
10234         * elf/Makefile (dl-routines): Remove dl-caller.
10235         (shared-only-routines): Do not add dl-caller.
10236         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
10237         __check_caller.
10238         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
10239         member.
10240         (dl_open_worker): Do not call __check_caller.
10241         (_dl_open): Do not set caller_dl_open member.
10242         * elf/rtld.c (_rtld_global_ro): Do not initialize
10243         _dl_check_caller member.
10244         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
10245         _dl_check_caller member.
10246         (_dl_check_caller): Remove declaration.
10247         * sysdeps/unix/sysv/linux/dl-execstack.c
10248         (_dl_make_stack_executable): Do not call __check_caller.
10250 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10252         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
10253         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
10255 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
10257         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
10258         description.
10260 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
10262         [BZ #16335]
10263         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
10264         of 199606L, 200112L, and 200809L.
10265         (_XOPEN_SOURCE): Document special values of 600 and 700.
10266         (_ISOC11_SOURCE): Document macro.
10267         (_ATFILE_SOURCE): Likewise.
10268         (_FORTIFY_SOURCE): Likewise.
10270 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
10272         [BZ #15105]
10273         [BZ #19463]
10274         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
10275         and define as weak alias of __ferror_unlocked.  Use
10276         libc_hidden_weak.
10277         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
10278         libc_hidden_proto.
10279         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
10280         function if [__USE_EXTERN_INLINES].
10281         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
10282         ferror_unlocked.
10284 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
10286         [BZ #6889]
10287         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
10289 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
10291         [BZ #22818]
10292         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
10293         the GLIBC_2.1 version.
10295 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
10297         [BZ #21508]
10298         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
10299         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
10300         intl/tst-gettext-de.po from po/de.po by removing the
10301         POT-Creation-Date line.
10302         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
10303         ../po/de.po.
10304         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
10305         ../po/de.po.
10307 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10309         * mach/Makefile (headers): Add mach/param.h.
10310         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
10311         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
10312         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
10313         (__ptsname_r): Move implementation to...
10314         (__ptsname_internal): ... new function.  Add filling the STP
10315         structure.
10317 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
10319         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
10320         idouble to 1 ULP.
10322 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
10324         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
10325         syntax.
10327 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
10329         * nptl/Makefile (tst-mutex8-ENV): Delete.
10330         * nptl/tst-mutex8.c (check_type):
10331         Add runtime check if mutex will be elided.
10333 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
10335         [BZ #20980]
10336         [BZ #21234]
10337         * manual/install.texi (Configuring and compiling): Describe
10338         passing CC and CFLAGS on configure command line, not as
10339         environment variables.  Use @code markup on those variables.
10340         Specify what options go in CC and what go in CFLAGS.  Note the
10341         requirement to compile with optimization.
10342         * INSTALL: Regenerated.
10344         [BZ #18124]
10345         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
10346         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
10347         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
10348         __sigprocmask instead of sigprocmask.
10349         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
10350         Likewise.
10351         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
10352         __sigsetjmp and sigprocmask.
10354         [BZ #15105]
10355         * include/argz.h (argz_next): Use libc_hidden_proto.
10356         (__argz_next): Likewise.
10357         * string-argz-next.c (__argz_next): Use libc_hidden_def.
10358         (argz_next): Use libc_hidden_weak.
10360         [BZ #15105]
10361         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
10362         libc_hidden_proto.
10363         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
10364         libc_hidden_def.
10366         [BZ #15105]
10367         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
10368         libc_hidden_proto.
10369         * libio/iofputs.c (fputs): Use libc_hidden_weak.
10371         [BZ #15105]
10372         [BZ #19463]
10373         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
10374         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
10375         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
10376         (__feof_unlocked): New declaration, and inline function if
10377         [__USE_EXTERN_INLINES].
10378         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
10379         instead of feof_unlocked.
10380         * intl/localealias.c [_LIBC] (FEOF): Likewise.
10381         * nss/nsswitch.c (nss_parse_file): Likewise.
10382         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
10383         Likewise.
10384         * time/getdate.c (__getdate_r): Likewise.
10385         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
10386         Define as macro to call __feof_unlocked.
10388 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
10390         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
10392 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
10394         * math/Makefile: Remove mpexp.c and mplog.c
10395         * sysdeps/i386/fpu/mpexp.c: Delete file.
10396         * sysdeps/i386/fpu/mplog.c: Likewise.
10397         * sysdeps/ia64/fpu/mpexp.c: Likewise.
10398         * sysdeps/ia64/fpu/mplog.c: Likewise.
10399         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
10400         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
10401         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
10402         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
10403         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
10404         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
10405         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
10406         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
10407         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
10408         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
10409         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
10410         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
10411         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
10412         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
10413         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
10414         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
10416 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
10418         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10420 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10422         * sysdeps/sh/libm-test-ulps: Update.
10424 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10426         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
10427         idouble to 1 ULP.
10429 2018-02-12  Zack Weinberg  <zackw@panix.com>
10431         [BZ #19239]
10432         * posix/sys/types.h: Don't include sys/sysmacros.h.
10433         * misc/sys/sysmacros.h: Remove the conditional deprecation
10434         warnings for the macros defined by this header.
10436 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10438         * manual/probes.texi: Remove slowexp probes.
10439         * math/Makefile: Remove slowexp.
10440         * sysdeps/generic/math_private.h (__slowexp): Remove.
10441         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
10442         document error bounds.
10443         * sysdeps/i386/fpu/slowexp.c: Remove.
10444         * sysdeps/ia64/fpu/slowexp.c: Remove.
10445         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
10446         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
10447         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
10448         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
10449         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
10450         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
10451         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
10452         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
10453         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
10454         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
10455         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
10457 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
10459         [BZ #13932]
10460         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
10461         * benchtests/pow-inputs: Update comment for slow path cases.
10462         * manual/probes.texi (slowpow_p10): Delete removed probe.
10463         (slowpow_p10): Likewise.
10464         * math/Makefile: Remove halfulp.c and slowpow.c.
10465         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
10466         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
10467         (__halfulp): Remove.
10468         (__slowpow): Remove.
10469         * sysdeps/i386/fpu/halfulp.c: Delete file.
10470         * sysdeps/i386/fpu/slowpow.c: Likewise.
10471         * sysdeps/ia64/fpu/halfulp.c: Likewise.
10472         * sysdeps/ia64/fpu/slowpow.c: Likewise.
10473         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
10474         improve comments and add error analysis.
10475         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
10476         (power1): Remove function:
10477         (log1): Remove error argument, add error analysis.
10478         (my_log2): Remove function.
10479         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
10480         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10481         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
10482         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
10483         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
10484         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
10485         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
10486         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
10487         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
10488         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
10489         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
10490         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
10491         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
10492         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
10494 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10496         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
10497         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
10499 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
10501         [BZ #22433]
10502         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
10503         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
10504         and PTRACE_SETHBPREGS.
10506 2018-02-10  Zack Weinberg  <zackw@panix.com>
10508         [BZ #22830]
10509         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
10510         correctly.
10511         * malloc/tst-malloc-stats-cancellation.c: New test case.
10512         * malloc/Makefile: Add new test case.
10514 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
10516         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
10518 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
10520         * math/Makefile (libm-narrow-fns): Add add.
10521         (libm-test-funcs-narrow): Likewise.
10522         * math/Versions (GLIBC_2.28): Add narrowing add functions.
10523         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
10524         * math/gen-auto-libm-tests.c (test_functions): Add add.
10525         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
10526         (NARROW_ADD_ROUND_TO_ODD): Likewise.
10527         (NARROW_ADD_TRIVIAL): Likewise.
10528         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
10529         macro.
10530         (__daddl): Likewise.
10531         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
10532         dadd.
10533         (CFLAGS-nldbl-dadd.c): New variable.
10534         (CFLAGS-nldbl-fadd.c): Likewise.
10535         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
10536         __nldbl_daddl.
10537         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
10538         prototype.
10539         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
10540         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
10541         * math/auto-libm-test-in: Add tests of add.
10542         * math/auto-libm-test-out-narrow-add: New generated file.
10543         * math/libm-test-narrow-add.inc: New file.
10544         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
10545         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
10546         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
10547         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
10548         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
10549         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
10550         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
10551         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
10552         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
10553         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
10554         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
10555         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
10556         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
10557         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
10558         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
10559         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
10560         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
10561         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
10562         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10563         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
10564         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10565         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10566         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10567         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10568         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10569         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10570         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10571         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10572         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10573         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10574         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10575         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
10577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
10578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
10579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
10580         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
10581         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10582         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10583         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10584         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10585         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10586         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
10587         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
10588         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10589         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10591         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
10592         (f128-pairs): New variable.
10593         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
10594         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
10595         to CFLAGS.
10596         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
10597         Also make tests add $(f128-loader-link) to gnulib-tests.
10599 2018-02-09  DJ Delorie  <dj@redhat.com>
10601         [BZ #22827]
10602         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
10603         64-bit ELF type for 64-bit ELF objects.
10605 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
10607         * math/libm-test-driver.c (snan_tests_arg): New variable.
10608         * math/libm-test-support.h (snan_tests_arg): New declaration.
10609         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
10611         * math/Makefile (test-type-pairs): New variable.
10612         (test-type-pairs-f64xf128-yes): Likewise.
10613         (tests): Add test-narrow-macros.
10614         (libm-test-funcs-narrow): New variable.
10615         (libm-test-c-narrow): Likewise.
10616         (generated): Add $(libm-test-c-narrow).
10617         (libm-tests-base-narrow): New variable.
10618         (libm-tests-narrow): Likewise.
10619         (libm-tests): Add $(libm-tests-narrow).
10620         (libm-tests-for-type): Handle $(libm-tests-narrow).
10621         (libm-test-c-narrow-obj): New variable.
10622         ($(libm-test-c-narrow-obj)): New rule.
10623         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
10624         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
10625         $(o-iterator) to set dependencies and CFLAGS.
10626         * math/gen-auto-libm-tests.c: Document use for narrowing
10627         functions.
10628         (output_for_one_input_case): Take argument NARROW.
10629         (generate_output): Likewise.  Update call to
10630         output_for_one_input_case.
10631         (main): Take --narrow option.  Update call to generate_output.
10632         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
10633         (apply_lit): Update call to _apply_lit.
10634         (apply_arglit): New function.
10635         (parse_args): Handle "a" arguments.
10636         (parse_auto_input): Handle format names using ":".
10637         * math/README.libm-test: Document "a" parameter type.
10638         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
10639         (ARG_TYPE_TRUE_MIN): Likewise.
10640         (ARG_TYPE_MAX): Likwise.
10641         (ARG_MIN_EXP): Likewise.
10642         (ARG_MAX_EXP): Likewise.
10643         (ARG_MANT_DIG): Likewise.
10644         (TEST_COND_arg_ibm128): Likewise.
10645         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
10646         (TEST_COND_arg_fmt): New macro.
10647         (init_max_error): Update prototype.
10648         * math/libm-test-support.c (test_ibm128): New variable.
10649         (init_max_error): Take argument testing_ibm128 and set test_ibm128
10650         instead of using [TEST_COND_ibm128] conditional.
10651         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
10652         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
10653         [TEST_NARROW] (TEST_MSG): New definition.
10654         (arg_plus_zero): New macro.
10655         (arg_minus_zero): Likewise.
10656         (arg_plus_infty): Likewise.
10657         (arg_minus_infty): Likewise.
10658         (arg_qnan_value_pl): Likewise.
10659         (arg_qnan_value): Likewise.
10660         (arg_snan_value_pl): Likewise.
10661         (arg_snan_value): Likewise.
10662         (arg_max_value): Likewise.
10663         (arg_min_value): Likewise.
10664         (arg_min_subnorm_value): Likewise.
10665         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
10666         (RUN_TEST_LOOP_aa_f): New macro.
10667         (TEST_SUFF): New macro.
10668         (TEST_SUFF_STR): Likewise.
10669         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
10670         (TEST_COND_any_ibm128): New macro.
10671         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
10672         this_func.  Update call to init_max_error.
10673         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
10674         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
10675         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
10676         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
10677         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
10678         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
10679         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
10680         * math/test-math-scalar.h (TEST_NARROW): Likewise.
10681         * math/test-math-vector.h (TEST_NARROW): Likewise.
10682         * math/test-arg-double.h: New file.
10683         * math/test-arg-float128.h: Likewise.
10684         * math/test-arg-float32x.h: Likewise.
10685         * math/test-arg-float64.h: Likewise.
10686         * math/test-arg-float64x.h: Likewise.
10687         * math/test-arg-ldouble.h: Likewise.
10688         * math/test-math-narrow.h: Likewise.
10689         * math/test-narrow-macros.c: Likewise.
10690         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
10691         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
10692         test-narrow-macros-ldbl-64.
10693         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
10695         * math/bits/mathcalls-narrow.h: New file.
10696         * include/bits/mathcalls-narrow.h: Likewise.
10697         * math/math-narrow.h: Likewise.
10698         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
10699         (__MATHCALL_NARROW_ARGS_2): Likewise.
10700         (__MATHCALL_NARROW_ARGS_3): Likewise.
10701         (__MATHCALL_NARROW_NORMAL): Likewise.
10702         (__MATHCALL_NARROW_REDIR): Likewise.
10703         (__MATHCALL_NARROW): Likewise.
10704         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
10705         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
10706         defined.
10707         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10708         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
10709         (libm-narrow-fns): New variable.
10710         (libm-narrow-types-basic): Likewise.
10711         (libm-narrow-types-ldouble-yes): Likewise.
10712         (libm-narrow-types-float128-yes): Likewise.
10713         (libm-narrow-types-float128-alias-yes): Likewise.
10714         (libm-narrow-types): Likewise.
10715         (libm-routines): Add narrowing functions.
10716         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
10717         (libc_feholdexcept_setroundf128): New macro.
10718         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
10719         * sysdeps/ieee754/float128/float128_private.h: Include
10720         <math/math-narrow.h>.
10721         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
10722         Undefine and redefine.
10723         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
10724         (libm_alias_float_ldouble): Undefine and redefine.
10725         (libm_alias_double_ldouble): Likewise.
10727         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
10729 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
10731         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
10732         FPCR/FPSR.
10734 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
10736         * manual/creature.texi: Convert references to gcc.info to gcc.
10737         * manual/stdio.texi: Likewise.
10738         * manual/string.texi: Likewise.
10740 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
10742         [BZ #17979]
10743         * posix/bits/types.h (__int_least8_t): New typedef.
10744         (__uint_least8_t): Likewise.
10745         (__int_least16_t): Likewise.
10746         (__uint_least16_t): Likewise.
10747         (__int_least32_t): Likewise.
10748         (__uint_least32_t): Likewise.
10749         (__int_least64_t): Likewise.
10750         (__uint_least64_t): Likewise.
10751         * sysdeps/generic/stdint.h (int_least8_t): Define using
10752         __int_least8_t.
10753         (int_least16_t): Define using __int_least16_t.
10754         (int_least32_t): Define using __int_least32_t.
10755         (int_least64_t): Define using __int_least64_t.
10756         (uint_least8_t): Define using __uint_least8_t.
10757         (uint_least16_t): Define using __uint_least16_t.
10758         (uint_least32_t): Define using __uint_least32_t.
10759         (uint_least64_t): Define using __uint_least64_t.
10760         * wcsmbs/uchar.h: Include <bits/types.h>.
10761         (char16_t): Define using __uint_least16_t conditional only on
10762         [!__USE_ISOCXX11].
10763         (char32_t): Define using __uint_least32_t conditional only on
10764         [!__USE_ISOCXX11].
10765         * wcsmbs/test-char-types.c: New file.
10766         * wcsmbs/Makefile (tests): Add test-char-types.
10768         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
10769         version to 4.0.1.
10771 2018-02-07  Zack Weinberg  <zackw@panix.com>
10773         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
10774         Delete all contents except for definitions of _G_HAVE_MMAP and
10775         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
10776         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
10777         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
10778         change as above.
10780         * libio/libio.h: Don't include bits/_G_config.h here.
10781         Include stddef.h with __need_wchar_t defined.  Include
10782         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
10783         Define _IO_iconv_t here, directly.
10784         Don't define _IO_HAVE_ST_BLKSIZE.
10785         * libio/libioP.h: Include _G_config.h here.  Move include of
10786         shlib-compat.h up with rest of includes.  Simplify conditionals
10787         controlling definition of _IO_JUMPS_OFFSET.
10789         * csu/init.c: Remove always-true #if around entire file.
10790         Don't include stdio.h.  Set _IO_stdin_used to hardwired
10791         constant 0x20001, and update commentary.
10792         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
10793         Replace all uses of _G_va_list with __gnuc_va_list.
10794         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
10795         instead of #if _IO_HAVE_ST_BLKSIZE.
10796         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
10797         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
10798         not #ifdef.
10800         * libio/bits/libio.h: Move back to libio/libio.h and adjust
10801         multiple-include guard to match.
10802         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
10803         into this file.
10804         Remove preprocessor conditionals that are always true and/or
10805         redundant to other preprocessor conditionals in the same nest.
10806         Include shlib-compat.h unconditionally.
10807         Error out if _LIBC is not defined, or if _ISOMAC is defined,
10808         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
10809         defined after including stdio.h.
10810         Use __BEGIN_DECLS/__END_DECLS.
10812         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
10813         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
10814         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
10816 2018-02-07  Zack Weinberg  <zackw@panix.com>
10818         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
10819         New single-type headers split from _G_config.h.
10820         * libio/bits/types/cookie_io_functions_t.h
10821         * libio/bits/types/struct_FILE.h
10822         New single-type headers split from libio.h.
10824         * libio/Makefile: Install the above new headers.  Don't install
10825         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
10826         bits/libio-ldbl.h.
10827         * libio/_G_config.h, libio/libio.h: Delete file.
10829         * libio/bits/libio.h: Remove improper-inclusion guard.
10830         Include stdio.h and don't repeat anything that it does.
10831         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
10832         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
10833         __io_read_fn as cookie_read_function_t,
10834         __io_write_fn as cookie_write_function_t,
10835         __io_seek_fn as cookie_seek_function_t,
10836         __io_close_fn as cookie_close_function_t,
10837         and _IO_cookie_io_functions_t as cookie_io_functions_t.
10838         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
10839         here, in the "compatibility defines" section.  Remove an #if 0
10840         block.  Use the "body" macros from bits/types/struct_FILE.h to
10841         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
10842         and _IO_ferror_unlocked.
10843         Move prototypes of __uflow and __overflow...
10845         * libio/stdio.h: ...here.  Don't include bits/libio.h.
10846         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
10847         directly from stdarg.h.  Include bits/types/__fpos_t.h,
10848         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
10849         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
10850         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
10851         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
10852         cookie_io_functions_t, not _IO_cookie_io_functions_t;
10853         __ssize_t, not _IO_ssize_t.  Unconditionally define
10854         BUFSIZ as 8192 and EOF as (-1).
10856         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
10857         macros from bits/types/struct_FILE.h instead of _IO_* macros
10858         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
10859         instead of _IO_ssize_t.
10860         * libio/bits/stdio2.h: Similarly.
10862         * libio/iolibio.h: Add multiple-include guard.
10863         Include bits/libio.h after stdio.h.
10864         * libio/libioP.h: Add multiple-include guard.
10865         Include stdio.h and bits/libio.h before iolibio.h.
10867         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
10868         * include/bits/types/cookie_io_functions_t.h
10869         * include/bits/types/struct_FILE.h: New wrappers.
10871         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
10872         Get definitions of _G_fpos_t and _G_fpos64_t from
10873         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
10874         respectively.  Remove improper-inclusion guards.
10876         * conform/data/stdio.h-data: Update expectations of va_list.
10877         * scripts/check-installed-headers.sh: Remove special case for
10878         libio.h and _G_config.h.
10880 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
10882         [BZ #15105]
10883         [BZ #19463]
10884         * include/sys/sysmacros.h [!_ISOMAC]
10885         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
10886         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
10887         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
10888         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
10889         libc_hidden_proto.
10890         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
10891         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
10892         Likewise.
10893         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
10894         Undefine and redefine to add use __gnu_dev_ prefix.
10895         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
10896         Likewise.
10897         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
10898         and define as hidden inline function.
10899         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
10900         Likewise.
10901         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
10902         Likewise.
10903         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
10904         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
10905         (gnu_dev_minor): Likewise.
10906         (gnu_dev_makedev): Likewise.
10907         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
10908         makedev.
10909         * posix/wordexp.c (exec_comm_child): Likewise.
10910         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
10911         instead of minor and __gnu_dev_major instead of major.
10912         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
10913         __gnu_dev_major instead of major.
10914         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
10915         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
10916         instead of gnu_dev_minor.
10917         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
10918         (SLAVE_P): Likewise.
10919         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
10920         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
10921         instead of major.
10923         [BZ #21313]
10924         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
10925         in another place.
10926         * locale/weightwc.h (findidx): Likewise.
10928 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
10930         * manual/probes.texi (slowlog): Delete documentation of removed probe.
10931         (slowlog_inexact): Likewise
10932         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
10933         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
10935 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
10937         [BZ #22797]
10938         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
10939         missing second underscore to parameter name.
10941 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
10943         [BZ #14508]
10944         [BZ #15512]
10945         [BZ #17082]
10946         [BZ #20530]
10947         * bits/byteswap.h: Update file comment.  Do not include
10948         <bits/byteswap-16.h>.
10949         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
10950         constant.
10951         (__bswap_16): Define as inline function.
10952         (__bswap_constant_32): Reformat definition.
10953         (__bswap_32): Always define as inline function, not macro, using
10954         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
10955         otherwise __bswap_constant_32.
10956         (__bswap_constant_64): Reformat definition.  Do not use
10957         __extension__ here.
10958         (__bswap_64): Always define as inline function, not macro.  Use
10959         __extension__ on function definition.  Use __builtin_bswap64 if
10960         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
10961         * string/test-endian-file-scope.c: New file.
10962         * string/test-endian-sign-conversion.c: Likewise.
10963         * string/Makefile (headers): Remove bits/byteswap-16.h.
10964         (tests): Add test-endian-file-scope and
10965         test-endian-sign-conversion.
10966         (CFLAGS-test-endian-sign-conversion.c): New variable.
10967         * bits/byteswap-16.h: Remove file.
10968         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
10969         * sysdeps/ia64/bits/byteswap.h: Likewise.
10970         * sysdeps/m68k/bits/byteswap.h: Likewise.
10971         * sysdeps/s390/bits/byteswap-16.h: Likewise.
10972         * sysdeps/s390/bits/byteswap.h: Likewise.
10973         * sysdeps/tile/bits/byteswap.h: Likewise.
10974         * sysdeps/x86/bits/byteswap-16.h: Likewise.
10975         * sysdeps/x86/bits/byteswap.h: Likewise.
10977         [BZ #17721]
10978         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
10979         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
10980         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
10981         199901L] (__restrict): Define to restrict.
10983         [BZ #19667]
10984         * string/testcopy.c: Include <support/support.h>.  Do not include
10985         <malloc.h>.  Use <support/test-driver.c>.
10986         (main): Rename to do_test.  Make static.  Use xmalloc instead of
10987         malloc.
10989         [BZ #13575]
10990         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
10991         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
10992         (SSIZE_MAX): Define to INT_MAX.
10993         * posix/test-ssize-max.c: New file.
10994         * posix/Makefile (tests): Add test-ssize-max.
10996         [BZ #19668]
10997         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
10998         <support/support.h>.  Do not include <malloc.h>.
10999         (query_auxv): Use xmalloc instead of malloc.
11001         [BZ #14553]
11002         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
11003         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
11004         instead of loff_t.
11006 2018-02-06  Florian Weimer <fweimer@redhat.com>
11008         [BZ #18023]
11009         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11010         Use scratch_buffer instead of extend_alloca.
11012 2018-02-06  Zack Weinberg  <zackw@panix.com>
11014         * libio/stdio.h: Don't define getc or putc as macros.
11015         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
11016         not _IO_getc and _IO_putc.
11018         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
11019         * stdio-common/tstgetln.c: Don't redefine ssize_t.
11021 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
11023         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
11024         (TCP_FASTOPEN_NO_COOKIE): Likewise.
11026         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
11028         [BZ #14890]
11029         * elf/elf.h (NT_PRFPREG): New macro.
11030         (NT_S390_VXRS_LOW): Likewise.
11031         (NT_S390_VXRS_HIGH): Likewise.
11032         (NT_S390_GS_CB): Likewise.
11033         (NT_S390_GS_BC): Likewise.
11034         (NT_S390_RI_CB): Likewise.
11036         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11037         (MAP_SYNC): New macro.
11038         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
11039         Likewise.
11040         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11041         (MAP_SYNC): Likewise.
11042         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11043         (MAP_SYNC): Likewise.
11044         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11045         (MAP_SYNC): Likewise.
11046         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11047         (MAP_SYNC): Likewise.
11048         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11049         (MAP_SYNC): Likewise.
11050         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11051         (MAP_SYNC): Likewise.
11052         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
11053         Likewise.
11054         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
11055         Likewise.
11057         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
11058         (MAP_SHARED_VALIDATE): New macro.
11059         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11060         (MAP_SHARED_VALIDATE): Likewise.
11062 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11064         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
11065         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
11066         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
11068 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11070         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
11071         (DT_NUM): Updated to 35.
11073 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11075         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
11076         __builtin_expect with __glibc_likely and __glibc_unlikely.
11077         (elf_machine_rela): Likewise.
11078         (elf_machine_lazy_rel): Likewise.
11080 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11082         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
11083         __builtin_expect with __glibc_likely and __glibc_unlikely.
11084         (elf_machine_lazy_rel): Likewise.
11086 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
11088         [BZ #22638]
11089         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
11090         SHARED.
11091         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
11093 2018-02-05  Andreas Schwab  <schwab@suse.de>
11095         [BZ #22761]
11096         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
11097         string.
11099 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11101         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
11102         not check against PTHREAD_STACK_MIN.
11104 2018-02-02  Sean McKean  <smckean83@gmail.com>
11106         [BZ #22735]
11107         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
11109 2018-02-02  Florian Weimer  <fweimer@redhat.com>
11111         [BZ #22753]
11112         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
11113         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
11114         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
11115         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
11116         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
11117         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
11118         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
11119         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
11120         * manual/llio.texi (Scatter-Gather): Mention offset -1.
11121         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
11122         * misc/tst-preadvwritev2.c (do_test): Call it.
11123         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
11125 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11127         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
11129         * benchtests/bench-memcmp.c: Print json instead of plain text.
11131         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
11132         every test run.
11134 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
11136         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11137         version to 4.15.
11138         (s390_sthyi): New syscall.
11140         * sysdeps/generic/ldbl-classify-compat.h: New file.
11141         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
11142         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
11143         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
11144         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
11145         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
11146         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
11147         * sysdeps/ieee754/dbl-64/s_finite.c: Include
11148         <ldbl-classify-compat.h>.
11149         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11150         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
11151         <ldbl-classify-compat.h>.
11152         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11153         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
11154         <ldbl-classify-compat.h>.
11155         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11156         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
11157         <ldbl-classify-compat.h>.
11158         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11159         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
11160         <ldbl-classify-compat.h>.
11161         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11162         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
11163         <ldbl-classify-compat.h>.
11164         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
11165         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
11166         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
11167         * sysdeps/m68k/coldfire/math_private.h: Remove file.
11168         * sysdeps/microblaze/math_private.h: Likewise.
11169         * sysdeps/nios2/math_private.h: Likewise.
11170         * sysdeps/sh/math_private.h: Likewise.
11172         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
11173         * sysdeps/m68k/coldfire/math_private.h: ... here.
11174         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
11175         * sysdeps/tile/math_private.h: Likewise.
11176         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
11177         Remove macro.
11178         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
11179         Likewise.
11181         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
11182         Remove macro.
11183         (libc_fetestexcept): Likewise.
11184         (libc_feupdateenv_test): Likewise.
11185         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
11186         (libc_fetestexcept): Likewise.
11187         (libc_feupdateenv_test): Likewise.
11188         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
11189         (libc_fetestexcept): Likewise.
11190         (libc_feupdateenv_test): Likewise.
11191         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
11192         (libc_fetestexcept): Likewise.
11193         (libc_feupdateenv_test): Likewise.
11195         * sysdeps/generic/math_private.h
11196         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
11197         New inline function.
11198         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
11199         Likewise.
11201         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
11202         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
11203         * sysdeps/generic/math_private.h
11204         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
11205         inline function.
11206         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
11207         Likewise.
11208         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
11209         Likewise.
11210         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
11211         Likewise.
11212         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
11213         Likewise.
11214         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
11215         Likewise.
11216         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
11217         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
11218         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
11219         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
11220         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
11221         (__fegetenv): Likewise.
11222         (fesetenv): Likewise.
11223         (__fesetenv): Likewise.
11224         (feupdateenv): Likewise.
11225         (__feupdateenv): Likewise.
11226         (fegetround): Likewise.
11227         (__fegetround): Likewise.
11228         (fesetround): Likewise.
11229         (__fesetround): Likewise.
11231         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
11232         (feraiseexcept): New macro.
11233         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
11234         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
11235         Remove macro.
11236         (__feraiseexcept): Likewise.
11237         (feclearexcept): Likewise.
11238         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
11239         (__feraiseexcept): Likewise.
11240         (feclearexcept): Likewise.
11241         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
11242         (__feraiseexcept): Likewise.
11243         (feclearexcept): Likewise.
11244         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
11245         (__feraiseexcept): Likewise.
11246         (feclearexcept): Likewise.
11247         (fetestexcept): Likewise.
11249         * sysdeps/m68k/coldfire/math-tests.h: New file.
11251         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
11252         * sysdeps/m68k/bits/fenv.h: ... here.
11253         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
11254         not define.
11255         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
11256         Likewise.
11257         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
11258         Likewise.
11259         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
11260         Likewise.
11261         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
11262         Likewise.
11263         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
11264         Define to 0.
11265         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
11266         (__FE_UNDEFINED): New enum constant.
11267         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
11268         Do not define.
11269         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
11270         Likewise.
11271         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
11272         Likewise.
11273         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
11274         to match generic bits/fenv.h.
11275         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
11276         Do not define.
11278         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
11279         packed on bits.
11280         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
11281         * soft-fp/half.h (union _FP_UNION_H): Likewise.
11282         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
11283         * soft-fp/single.h (union _FP_UNION_S): Likewise.
11285 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
11286             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
11287             Joseph Myers  <joseph@codesourcery.com>
11289         [BZ #21314]
11290         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
11291         (__log1p): Disable -Wmaybe-uninitialized for -Os around
11292         computation using c.
11293         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
11294         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
11295         computation using c.
11297 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
11299         * version.h (RELEASE): Set to "development".
11300         (VERSION): Set to "2.27.9000".
11301         * NEWS (2.28): New section.
11303         * version.h (RELEASE): Set to "stable".
11304         (VERSION): Set to "2.27".
11305         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
11307         * NEWS: Add the list of bugs fixed in 2.27.
11309 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11311         * stdlib/test-atexit-race-common.c (do_test): Check stack size
11312         against PTHREAD_STACK_MIN.
11314 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
11316         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
11317         New entries.
11318         (Rafal Luzynski, Andreas Schwab): Update.
11320 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
11322         [BZ #10871]
11323         * NEWS: List the languages which actually use the alternative
11324         months feature in this release.  Also explain that "alt_mon" and
11325         "ab_alt_mon" are optional.
11327 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
11329         [BZ #22765]
11330         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
11332 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
11334         * manual/install.texi (Tools for Compilation): Update the newest
11335         versions of gcc, binutils, texinfo, gawk, bison, and sed.
11336         * INSTALL: Regenerated.
11338 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11340         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
11341         instead of __builtin_expect.
11343 2018-01-30  Florian Weimer  <fweimer@redhat.com>
11345         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
11346         data.
11347         * nss/tst-nss-getpwent.c (do_test): Likewise.
11349 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
11351         [BZ #10871]
11352         * localedata/locales/hr_HR (mon): Rename to...
11353         (alt_mon): This.
11354         (mon): Import from CLDR (genitive case).
11355         (d_t_fmt): Update the comment.
11357 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
11359         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
11360         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
11361         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
11363 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11365         * mach/Versions: Fix version when __mach_host_self_ was added.
11366         * hurd/Versions: Fix version when _hurd_exec_paths was added.
11367         * sysdeps/mach/hurd/i386/ld.abilist: New file.
11368         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
11369         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
11370         * sysdeps/mach/hurd/i386/libc.abilist: New file.
11371         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
11372         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
11373         * sysdeps/mach/hurd/i386/libm.abilist: New file.
11374         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
11375         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
11376         * sysdeps/mach/hurd/i386/librt.abilist: New file.
11377         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
11378         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
11379         || to respect codestyle.
11380         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
11381         (do_test_bz20181): Rename accordingly.
11382         * malloc/malloc.c: Include <assert.h>.
11383         (assert): Do not define.
11384         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
11385         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
11386         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
11387         * sysdeps/mach/hurd/hp-timing.h: New file.
11388         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
11390 2018-01-29  Darius Rad  <darius@bluespec.com>
11392         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
11394 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
11396         * sysdeps/init_array/crti.S (.section .init_array): Add
11397         PREINIT_FUNCTION when defined.
11398         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
11399         * config.h.in: Regenerate.
11400         * manual/platform.texi: Add RISC-V documenation for
11401         __riscv_flush_icache.
11402         * sysdeps/riscv/__longjmp.S: New file.
11403         * sysdeps/riscv/backtrace.c: Likewise.
11404         * sysdeps/riscv/bits/endian.h: Likewise.
11405         * sysdeps/riscv/bits/setjmp.h: Likewise.
11406         * sysdeps/riscv/bits/wordsize.h: Likewise.
11407         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
11408         * sysdeps/riscv/bsd-setjmp.c: Likewise.
11409         * sysdeps/riscv/dl-trampoline.S: Likewise.
11410         * sysdeps/riscv/gccframe.h: Likewise.
11411         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
11412         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
11413         * sysdeps/riscv/machine-gmon.h: Likewise.
11414         * sysdeps/riscv/memusage.h: Likewise.
11415         * sysdeps/riscv/setjmp.S: Likewise.
11416         * sysdeps/riscv/sys/asm.h: Likewise.
11417         * sysdeps/riscv/tls-macros.h: Likewise.
11418         * sysdeps/riscv/dl-tls.h: New file.
11419         * sysdeps/riscv/libc-tls.c: Likewise.
11420         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
11421         * sysdeps/riscv/nptl/tls.h: Likewise.
11422         * sysdeps/riscv/stackinfo.h: Likewise.
11423         * sysdeps/riscv/bits/fenv.h: New file.
11424         * sysdeps/riscv/e_sqrtl.c: Likewise.
11425         * sysdeps/riscv/fpu_control.h: Likewise.
11426         * sysdeps/riscv/math-tests.h: Likewise.
11427         * sysdeps/riscv/nofpu/Implies: Likewise.
11428         * sysdeps/riscv/sfp-machine.h: Likewise.
11429         * sysdeps/riscv/tininess.h: Likewise.
11430         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
11431         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
11432         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
11433         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
11434         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
11435         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
11436         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
11437         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
11438         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
11439         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
11440         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
11441         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
11442         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
11443         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
11444         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
11445         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
11446         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
11447         * sysdeps/riscv/rvd/s_finite.c: Likewise.
11448         * sysdeps/riscv/rvd/s_fma.c: Likewise.
11449         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
11450         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
11451         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
11452         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
11453         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
11454         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
11455         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
11456         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
11457         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
11458         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
11459         * sysdeps/riscv/rvf/fegetround.c: Likewise.
11460         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
11461         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
11462         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
11463         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
11464         * sysdeps/riscv/rvf/fesetround.c: Likewise.
11465         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
11466         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
11467         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
11468         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
11469         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
11470         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
11471         * sysdeps/riscv/rvf/math_private.h: Likewise.
11472         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
11473         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
11474         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
11475         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
11476         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
11477         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
11478         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
11479         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
11480         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
11481         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
11482         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
11483         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
11484         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
11485         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
11486         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
11487         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
11488         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
11489         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
11490         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
11491         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
11492         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
11493         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
11494         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
11495         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
11496         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
11497         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
11498         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
11499         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
11500         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
11501         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
11502         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
11503         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
11504         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
11505         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
11506         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
11507         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
11508         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
11509         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
11510         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
11511         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
11512         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
11513         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
11514         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
11515         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
11516         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
11517         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
11518         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
11519         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
11520         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
11521         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
11522         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
11523         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
11524         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
11525         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
11526         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
11527         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
11528         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
11529         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
11530         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
11531         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
11532         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11533         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11534         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11535         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11536         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11537         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11538         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11539         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11540         * sysdeps/riscv/Implies: New file.
11541         * sysdeps/riscv/Makefile: Likewise.
11542         * sysdeps/riscv/configure: Likewise.
11543         * sysdeps/riscv/configure.ac: Likewise.
11544         * sysdeps/riscv/nptl/Makefile: Likewise.
11545         * sysdeps/riscv/preconfigure: Likewise.
11546         * sysdeps/riscv/rv64/Implies-after: Likewise.
11547         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
11548         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
11549         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
11550         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
11551         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
11552         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
11553         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
11554         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
11555         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
11556         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
11557         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
11558         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
11559         (Config): Likewise.
11561 2018-01-29  Florian Weimer  <fweimer@redhat.com>
11563         [BZ #22701]
11564         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
11565         libnsl_hidden_proto.
11566         * include/rpcsvc/yp.h (yp_xdrall): Declare with
11567         libnsl_hidden_proto.
11568         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
11569         * nis/Makefile (libnsl-routines): Add nss-default only for
11570         build-obsolete-nsl.
11571         * nis/nis_defaults.c (__nis_default_ttl): Add
11572         libnsl_hidden_nolink_def.
11573         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
11574         declaration.
11575         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
11576         * nis/ypclnt.c (yp_maplist): Likewise.
11578 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
11580         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11581         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
11583 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
11585         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
11586         clean -dxfq for git updates when replacing sources.
11588         * scripts/build-many-glibcs.py (Config.build_gcc): Use
11589         --disable-libcilkrts unconditionally, not just for the final GCC
11590         build for Hurd.
11592         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11593         version to 4.15.
11595 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
11597         [BZ #10871]
11598         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
11599         case).
11601 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
11603         [BZ #10871]
11604         * localedata/locales/be_BY (mon): Rename to...
11605         (alt_mon): This, then synchronize with CLDR (nominative case).
11606         (abmon): Rename to...
11607         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
11608         (mon): Import from CLDR (genitive case).
11609         (abmon): Likewise.
11610         * localedata/locales/be_BY@latin (mon): Rename to...
11611         (alt_mon): This.
11612         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
11614         * localedata/locales/be_BY@latin (lang_name): Reworded to
11615         "biełaruskaja mova".
11617 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
11619         [BZ #10871]
11620         * localedata/locales/el_CY (mon): Renamed to...
11621         (alt_mon): This.
11622         (mon): Import from CLDR (genitive case).
11623         * localedata/locales/el_GR: Likewise.
11625 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
11627         [BZ #10871]
11628         * localedata/locales/ru_RU (mon): Rename to...
11629         (alt_mon): This.
11630         (abmon): Rename to...
11631         (ab_alt_mon): This.
11632         (mon): Import from CLDR (genitive case).
11633         (abmon): Copy from the old content except the 5th month which is
11634         now in the genitive case, even when abbreviated.
11635         * localedata/locales/ru_UA: Likewise.
11636         * time/tst-strptime.c (day_tests): Add an actual example of
11637         a difference between %b and %Ob in Russian.
11639 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11641         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
11642         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
11643         a `c' variable.
11644         * resolv/res-close.c: Include <stdlib.h>.
11645         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
11646         <sys/wait.h>, <time.h>, <sys/uio.h>.
11647         (NOT_CANCEL_H): Add inclusion guard.
11648         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
11649         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
11650         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
11651         return 0.
11652         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
11653         vm_address_t * to ElfW(Addr) * for dl_main parameter.
11654         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
11655         instead of void *.
11656         * sysdeps/pthread/timer_create.c (timer_create): Do not use
11657         timer_ptr2id to cast struct timer_node * to void *.
11658         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
11659         --disable-libcilkrts to gcc configure.
11660         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
11661         and make them the default for now.
11662         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
11663         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
11664         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
11665         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
11666         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
11667         MACH_IPC_COMPAT.
11668         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
11669         __task_terminate would ever return successfully.
11670         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
11671         to global scope.
11672         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
11673         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
11674         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
11675         critical section to make code simpler and avoid warning.
11676         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
11677         critical section to make code simpler and avoid warning.
11678         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
11679         const char * instead of char *.
11680         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
11681         __hurd_file_name_split, hurd_file_name_split,
11682         __hurd_directory_name_split, hurd_directory_name_split,
11683         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
11684         hurd_file_name_path_lookup): Make lookup function parameter take a
11685         const char *name instead of char *name.
11686         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
11687         __hurd_directory_name_split): Likewise.
11688         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
11689         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
11690         * sysdeps/mach/hurd/check_native.c: New file.
11691         * sysdeps/mach/hurd/check_pf.c: New file.
11692         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
11693         (__freeifaddrs): Define macro to freeifaddrs.
11694         * sysdeps/mach/hurd/libhurduser.abilist: New file.
11695         * sysdeps/mach/libmachuser.abilist: New file.
11696         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
11697         (do_test_bz20181): Rename accordingly.
11698         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
11699         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
11700         <sys/mount.h>.
11701         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
11702         version only if __USE_EXTERN_INLINES is defined.
11703         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
11704         __hurd_sockfail): Likewise.
11705         (_hurd_fd_get): Always declare functions, and provide inline versions
11706         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
11707         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
11708         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
11709         _hurd_port_set): Always declare functions, and provide inline versions
11710         only if __USE_EXTERN_INLINES and _LIBC are defined and
11711         IS_IN(libc).
11712         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
11713         _hurd_critical_section_unlock): Likewise.
11714         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
11715         * __hurd_threadvar_location): Likewise.
11716         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
11717         _hurd_userlink_clear): Likewise.
11718         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
11719         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
11720         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
11721         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
11722         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
11723         __spin_lock_locked): Likewise.
11724         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
11725         __spin_lock_locked): Likewise.
11726         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
11727         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
11728         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
11729         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
11730         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
11731         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
11732         _POSIX_NO_TRUNC): Define to 0.
11733         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
11734         check size against PTHREAD_STACK_MIN.
11735         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
11736         IS_IN(libpthread)]: Include <sigsetops.h>.
11737         * mach/Makefile (user-interfaces): Add mach/gnumach.
11738         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
11739         * sysdeps/mach/configure (mach_interface_list): Regenerate.
11740         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
11741         instead of invalid -1.
11742         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
11743         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
11744         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
11745         <net/ppp_defs.h>.
11747 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
11749         * hurd/fcntl-internal.h: New file.
11751 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
11753         * sysdeps/hppa/fpu/libm-test-ulps: Update.
11755         * sysdeps/alpha/fpu/libm-test-ulps: Update.
11757 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
11759         [BZ #22701]
11760         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
11761         Build only shared objects.
11763 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
11765         * README: Update for hppa.
11767 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
11769         * sysdeps/sparc/fpu/libm-test-ulps: Update
11770         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
11772 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
11774         Revert:
11776         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
11778         [BZ #22563]
11779         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11780         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
11781         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11782         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
11783         to feature_1.
11785         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
11787         [BZ #22563]
11788         * bits/types/__cancel_jmp_buf_tag.h: New file.
11789         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
11790         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
11791         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
11792         * nptl/Makefile (headers): Add
11793         bits/types/__cancel_jmp_buf_tag.h.
11794         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
11795         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
11796         * sysdeps/nptl/pthread.h: Include
11797         <bits/types/__cancel_jmp_buf_tag.h>.
11798         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
11799         __cancel_jmp_buf.
11800         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
11802 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
11804         [BZ #10871]
11805         * localedata/locales/uk_UA (mon): Renamed to...
11806         (alt_mon): This.
11807         (alt_digits): "0" removed and then renamed to...
11808         (mon): This.
11809         (date_fmt): Definition changed not to use the alternative
11810         digits hack.
11812 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
11814         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
11815         FLAG_RISCV_FLOAT_ABI_DOUBLE.
11816         * elf/elf.h (EF_RISCV_RVC): New define.
11817         (EF_RISCV_FLOAT_ABI): Likewise.
11818         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
11819         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
11820         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
11821         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
11822         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
11823         define.
11824         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
11826 2018-01-25  Andreas Schwab  <schwab@suse.de>
11828         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
11829         single quotes.
11830         * sysdeps/gnu/configure: Regenerate.
11831         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
11832         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
11833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
11834         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
11835         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
11836         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
11837         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
11838         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
11840 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11842         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
11843         URL, and run autoconf, make it the default for now.
11845 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
11847         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11848         soft-float ColdFire configuration.
11850         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
11851         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
11852         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
11854         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
11855         MicroBlaze file.
11857         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
11858         ....
11859         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
11860         ... here.
11861         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
11862         New file.
11864         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
11865         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
11866         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
11867         file.
11869 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11871         [BZ #22742]
11872         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
11873         Rename to __reserved and add comment.
11874         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
11875         Rename to __reserved.
11877 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
11879         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
11880         i686-gnu configurations.
11881         (Context.run_builds): Include mig, gnumach and hurd in components
11882         considered.
11883         (Context.checkout): Add mig, gnumach and hurd to components.
11884         (Context.checkout_tar): Add URL mappings for mig, gnumach and
11885         hurd.
11886         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
11887         (Config.build): Install gnumach headers, build mig and install
11888         hurd headers for 'gnu' OS.
11889         (Config.install_gnumach_headers): New function.
11890         (Config.install_hurd_headers): Likewise.
11891         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
11892         when building for 'gnu' OS.
11894 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
11896         * manual/tunables.texi (Hardware Capability Tunables): Fix
11897         spelling.
11899 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
11901         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
11902         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
11903         (ALTMON_11, ALTMON_12): Improve documentation.
11904         * manual/time.texi (strftime): Likewise.
11906 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
11908         [BZ #10871]
11909         * localedata/locales/pl_PL: Alternative month names added,
11910         primary month names are genitive now.
11911         * time/tst-strptime.c (day_tests): Actually use a genitive case
11912         of a month name in Polish language.
11914 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
11916         [BZ #10871]
11917         * manual/locale.texi: Document ALTMON_1..12 constants for
11918         nl_langinfo.  Specify when to use ALTMON instead of MON.
11919         * manual/time.texi (strftime, strptime): Document GNU extension
11920         permitting O modifier with %B and %b.  Specify when to use
11921         %OB instead of %B.
11923 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
11925         [BZ #10871]
11926         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
11927         names, define them as the same as abbreviated month names explicitly.
11928         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
11929         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
11930         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
11931         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
11932         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
11933         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
11934         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
11935         _NL_WABALTMON_12): New enum constants.
11936         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
11937         wab_alt_mon, and ab_alt_mon_defined members.
11938         (time_output): Output ab_alt_mon and wab_alt_mon members.
11939         (time_read): Read them, initialize them as copies of abmon and wabmon
11940         respectively if they are missing, initialize ab_alt_mon_defined.
11941         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
11942         * locale/programs/locfile-kw.h: Regenerate.
11943         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
11944         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
11945         and ru_RU.UTF-8.
11946         * time/strftime_l.c (a_altmonth, aam_len): New macros.
11947         [!COMPILE_WIDE] (ABALTMON_1): New macro.
11948         (__strftime_internal): Handle %Ob and %Oh formats.
11949         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
11950         (__strptime_internal): Handle %Ob and %Oh formats.
11951         * time/tst-strptime.c (day_tests): Add more tests to parse different
11952         forms of month names including the new %Ob format specifier.
11954 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
11956         [BZ #10871]
11957         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
11958         define them as the same as primary full month names explicitly.
11959         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
11960         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
11961         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
11962         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
11963         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
11964         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
11965         _NL_WALTMON_12): New enum constants.
11966         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
11967         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
11968         macros.
11969         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
11970         walt_mon, and alt_mon_defined members.
11971         (time_output): Output alt_mon and walt_mon members.
11972         (time_read): Read them, initialize them as copies of mon and wmon
11973         respectively if they are missing, initialize alt_mon_defined.
11974         * locale/programs/locfile-kw.gperf (alt_mon): Define.
11975         * locale/programs/locfile-kw.h: Regenerate.
11976         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
11977         * localedata/tst-langinfo.c (map): Add tests for the new constants
11978         ALTMON_1 .. ALTMON_12.
11979         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
11980         and pl_PL.UTF-8.
11981         * time/strftime_l.c (f_altmonth): New macro.
11982         (__strftime_internal): Handle %OB format.
11983         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
11984         (__strptime_internal): Handle %OB format.
11985         * time/tst-strptime.c (day_tests): Add tests to parse different forms
11986         of month names including the new %OB format specifier.
11988 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11990         [BZ #22685]
11991         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
11992         from ABORT_TRANSACTION.
11993         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
11994         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
11995         ABORT_TRANSACTION_IMPL): Likewise.
11996         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
11997         Linux code, but remove the code that aborts transactions.
11999 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12001         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
12003 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
12005         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
12006         in date: "2004-14-09" should be "2004-09-14".
12007         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
12008         "2003-15-09" should be "2003-09-15".
12010 2018-01-18  Arjun Shankar  <arjun@redhat.com>
12012         [BZ #22343]
12013         [BZ #22774]
12014         CVE-2018-6485
12015         CVE-2018-6551
12016         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
12017         after padding.
12018         (_int_memalign): check for integer overflow before calling
12019         _int_malloc.
12020         * malloc/tst-malloc-too-large.c: New test.
12021         * malloc/Makefile: Add tst-malloc-too-large.
12023 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
12025         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
12026         in date: "2017-24-07" should be "2017-07-24".
12027         * localedata/locales/mai_IN: Likewise.
12028         * localedata/locales/mai_NP: Likewise.
12030 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
12032         * po/ru.po: Update translations.
12034 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
12036         [BZ #22719]
12037         * sysdeps/hppa/backtrace.c: New file.
12039 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12041         [BZ #22715]
12042         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
12043         align La_x86_64_retval to VEC_SIZE.
12045 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
12047         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
12048         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
12050 2018-01-16  Florian Weimer  <fweimer@redhat.com>
12052         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
12053         Move tst-thread-exit-clobber ...
12054         [$(CXX)] (tests-unsupported): ... to here.
12056 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12058         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
12059         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
12060         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
12061         (_dl_aarch64_cap_flags): Update.
12062         (_DL_HWCAP_COUNT): Update.
12064 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12066         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
12067         (_DL_HWCAP_LAST): Remove.
12068         (_DL_HWCAP_COUNT): Move to ...
12069         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
12070         (_DL_HWCAP_COUNT): ... here.
12072 2018-01-16  Florian Weimer  <fweimer@redhat.com>
12074         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
12075         mode with GNU extensions.
12077 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
12079         * elf/elf.h (NT_ARM_SVE): Define.
12081 2018-01-15  Florian Weimer  <fweimer@redhat.com>
12083         [BZ #22636]
12084         * nptl/tst-minstack-throw.cc: New file.
12085         * nptl/Makefile (tests): Add tst-minstack-throw.
12086         (LDLIBS-tst-minstack-throw): Link with libstdc++.
12087         [!CXX] (tests-unsupported): Add tst-minstack-throw.
12089 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
12091         * scripts/build-many-glibcs.py (Context.checkout): Default
12092         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
12093         version to 1.1.0.
12095 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
12097         [BZ #22707]
12098         * elf/elf.h (DF_1_STUB): Define.
12099         (DF_1_PIE): Define.
12101 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12103         [BZ #22697]
12104         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
12105         Do not add 0.5 to integer or out-of-range arguments.
12107 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
12109         * po/bg.po: Update translations.
12110         * po/cs.po: Likewise.
12111         * po/de.po: Likewise.
12112         * po/ko.po: Likewise.
12113         * po/pl.po: Likewise.
12114         * po/sv.po: Likewise.
12115         * po/uk.po: Likewise.
12116         * po/vi.po: Likewise.
12118 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12120         * aarch64/start.S (_start): Use __wrap_main.
12121         (__wrap_main): New local symbol.
12123 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
12125         [BZ #22679]
12126         CVE-2018-1000001
12127         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
12128         generic_getcwd if the path returned by getcwd syscall is not absolute.
12129         * io/tst-getcwd-abspath.c: New test.
12130         * io/Makefile (tests): Add tst-getcwd-abspath.
12132 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
12134         * malloc/malloc.c (malloc_consolidate): Add size check.
12136 2018-01-12  Florian Weimer  <fweimer@redhat.com>
12138         * support/write_message.c (write_message): Preserve errno.
12139         * support/check.c (print_failure): Likewise.
12140         * support/support_test_verify_impl.c (support_test_verify_impl):
12141         Likewise.
12142         * support/support_test_compare_failure.c
12143         (support_test_compare_failure): Likewise.
12145 2018-01-12  Florian Weimer  <fweimer@redhat.com>
12147         [BZ #22701]
12148         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
12149         Prevent installation of libnsl.so.
12150         (libnsl-inhibit-o): Do not build (or install) static libraries.
12152 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
12154         [BZ #22657]
12155         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
12156         before the day number which may produce a double space.
12157         (date_fmt): Likewise.
12159 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
12161         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
12162         instead of fegetenv.
12164 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
12166         [BZ #22702]
12167         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
12168         comment to say exceptions are discarded.
12169         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
12170         __fegetenv.
12171         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
12172         be enabled.
12174 2018-01-11  Florian Weimer  <fweimer@redhat.com>
12176         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
12177         and error message.
12179 2018-01-11  Florian Weimer  <fweimer@redhat.com>
12181         [BZ #22636]
12182         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
12183         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
12185 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
12187         [BZ #22693]
12188         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
12189         negative arguments in test for NaN or infinity argument.
12191 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
12193         * po/libc.pot: Regenerate.
12195 2018-01-10  Florian Weimer  <fweimer@redhat.com>
12197         [BZ #22636]
12198         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
12199         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
12201 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12203         * hurd/hurd/fd.h: Include <fcntl.h>
12204         (__hurd_at_flags): New function.
12205         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
12206         with call to __hurd_at_flags.
12207         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
12208         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
12209         __faccessat
12210         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
12211         (__access_noerrno): Use __faccessat_common instead of access_common.
12212         (__access): Likewise.
12213         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
12214         with a call to __faccessat.
12215         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
12216         (__faccessat_common): ... this. Move implementation of __access into it when
12217         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
12218         reauthenticate_cwdir_at helper to implement AT mechanism.
12219         (__faccessat_noerrno): New function, just calls __faccessat_common.
12220         (__faccessat): New function, just calls __faccessat_common.
12221         (faccessat): Define weak alias.
12223 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
12225         [BZ #22691]
12226         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12227         (CFLAGS-s_fmaxmagl.c): New variable.
12228         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
12230         [BZ #22690]
12231         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
12232         long int for arguments of possibly overflowing addition or
12233         subtraction.
12234         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
12236 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
12238         [BZ #22688]
12239         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12240         (CFLAGS-e_remainderl.c): New variable.
12242         [BZ #22687]
12243         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
12244         variable.
12245         (CFLAGS-s_cacoshl.c): Likewise.
12246         (CFLAGS-s_casinhl.c): Likewise.
12247         (CFLAGS-s_catanl.c): Likewise.
12248         (CFLAGS-s_catanhl.c): Likewise.
12249         (CFLAGS-s_cexpl.c): Likewise.
12250         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
12251         (CFLAGS-s_csinhl.c): Likewise.
12252         (CFLAGS-s_clogl.c): Likewise.
12253         (CFLAGS-s_clog10l.c): Likewise.
12254         (CFLAGS-s_csinl.c): Likewise.
12255         (CFLAGS-s_csqrtl.c): Likewise.
12257 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
12258 2017-01-09  Svante Signell  <svante.signell@gmail.com>
12260         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
12261         (_hurd_exec_paths): New function.
12262         * hurd/hurd.h (_hurd_exec): Deprecate function.
12263         (_hurd_exec_paths): Declare function.
12264         * hurd/Versions: Export _hurd_exec_paths.
12265         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
12266         (__execve): Use __getcwd to build absolute path, and use
12267         _hurd_exec_paths instead of _hurd_exec.
12268         * sysdeps/mach/hurd/spawni.c: Likewise.
12269         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
12270         _hurd_exec.
12272 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
12274         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
12275         test instead of failing in case of ENOENT returned by posix_openpt.
12277 2018-01-08  Florian Weimer  <fweimer@redhat.com>
12279         resolv: Support binary labels in test framework.
12280         * support/resolv_test.c (struct to_be_freed): Remove.
12281         (struct compressed_name): New.
12282         (allocate_compressed_name, ascii_tolower)
12283         (compare_compressed_name): New functions.
12284         (struct resolv_response_builder): Update type of
12285         compression_offsets for use with tsearch.  Rempve to_be_freed.
12286         (response_push_pointer_to_free): Remove function.
12287         (resolv_response_add_name): Rewrite using struct compressed_name
12288         and tsearch instead of hsearch_r.
12289         (response_builder_allocate): Remove initialization of
12290         compression_offsets.
12291         (response_builder_free): Update for removal of to_be_freed.  Use
12292         tdestroy instead of hdestroy_r.
12293         * resolv/Makefile (tests): Add tst-resolv-binary.
12294         (tst-resolv-binary): Link with -lresolv -lpthread.
12296 2018-01-08  Florian Weimer  <fweimer@redhat.com>
12298         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
12299         time.  Pass positive flag instead of negative flag to
12300         support_test_compare_failure.
12301         (support_test_compare_failure): Change negative parameter to
12302         positive.
12303         * support/support_test_compare_failure.c (report)
12304         (support_test_compare_failure): Likewise.
12305         * support/tst-test_compare.c (return_ssize_t, return_int): New.
12306         (do_test): Check int/size_t, ssize_t/size_t comparisons.
12308 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12310         [BZ #22637]
12311         * nptl/descr.h (stackblock, stackblock_size): Update comments.
12312         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
12313         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
12314         stacksize.
12315         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
12317 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
12319         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12320         Add s_sincosf-sse2 and s_sincosf-fma.
12321         (CFLAGS-s_sincosf-fma.c): New.
12322         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
12323         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
12324         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
12325         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
12326         __sincosf is defined.
12328 2018-01-08  Florian Weimer  <fweimer@redhat.com>
12330         * nptl/tst-thread-exit-clobber.cc: New file.
12331         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
12332         C++11 mode.
12333         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
12334         (tests): Add tst-thread-exit-clobber.
12335         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
12337 2018-01-08  Florian Weimer  <fweimer@redhat.com>
12339         * support/check.h (support_static_assert): Define.
12340         (TEST_COMPARE): Use it.
12342 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
12344         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
12345         [!__RLIM_T_MATCHES_RLIM64_T]
12346         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
12347         __getrlimit64. Add libc_hidden_weak.
12349 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
12351         * elf/elf.h (R_RISCV_NONE): New define.
12352         (R_RISCV_32): Likewise.
12353         (R_RISCV_64): Likewise.
12354         (R_RISCV_RELATIVE): Likewise.
12355         (R_RISCV_COPY): Likewise.
12356         (R_RISCV_JUMP_SLOT): Likewise.
12357         (R_RISCV_TLS_DTPMOD32): Likewise.
12358         (R_RISCV_TLS_DTPMOD64): Likewise.
12359         (R_RISCV_TLS_DTPREL32): Likewise.
12360         (R_RISCV_TLS_DTPREL64): Likewise.
12361         (R_RISCV_TLS_TPREL32): Likewise.
12362         (R_RISCV_TLS_TPREL64): Likewise.
12363         * Makerules (make-link-multidir): Make directories before linking into
12364         them.
12365         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
12366         define.
12367         (VDSO_HASH_LINUX_4_15): Likewise.
12368         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
12369         in subdirectories of lib.
12370         * nptl/Makefile (/librt.so): Always depend on
12371         "$(shared-thread-library)".
12373 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12375         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
12376         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
12377         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
12378         (___tls_get_addr).
12379         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
12380         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
12381         "-O2 -march=i686".
12382         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
12383         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
12384         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
12385         * sysdeps/gnu/glob-lstat-compat.c: New file.
12386         * sysdeps/gnu/glob64-lstat-compat.c: New file.
12387         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
12389 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12391         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
12392         Reserve 16 chars to reloc_addr before calling _itoa_word.
12394 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
12396         [BZ #22678]
12397         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
12398         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
12400         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
12401         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
12403         * resource/tst-getrlimit.c: Add copyright header.
12405 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
12406             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12408         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
12409         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
12410         Define __GI_getrlimit64 as weak alias of __getrlimit64.
12411         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
12412         instead.
12413         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
12414         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
12415         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
12416         RLIM64_INFINITY): Fix values to match the kernel ones.
12417         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
12418         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
12419         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
12420         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
12421         getrlimit64@@GLIBC_2_27.
12422         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
12423         and setrlimit64.
12424         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
12425         getrlimit, setrlimit, getrlimit64 and setrlimit64.
12426         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
12427         setrlimit, getrlimit64 and setrlimit64.
12429 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
12431         [BZ #22648]
12432         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
12433         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
12435 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
12437         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
12438         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
12439         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
12441 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12443         [BZ #15479]
12444         [BZ #22666]
12445         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
12446         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
12448         [BZ #15479]
12449         [BZ #22665]
12450         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
12451         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
12452         * sysdeps/alpha/fpu/s_floor.c: Likewise.
12453         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
12455 2018-01-04  Florian Weimer  <fweimer@redhat.com>
12457         [BZ #22667]
12458         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
12459         Align the stack before calling exit.
12460         * stdlib/tst-makecontext-align.c: New file.
12461         * stdlib/Makefile (tests): Add tst-makecontext-align.
12463 2018-01-04  Florian Weimer  <fweimer@redhat.com>
12465         Add support for calling dlvsym from libc.so.
12466         * include/dlfcn.h (__libc_dlvsym): Declare.
12467         * elf/Makefile (tests-static-internal): Add
12468         tst-libc_dlvsym-static.
12469         (tests-internal): Add tst-libc_dlvsym.
12470         (modules-names): Add tst-libc_dlvsym-dso.
12471         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
12472         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
12473         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
12474         object tst-libc_dlvsym-dso.so needs to be built before running
12475         these tests.
12476         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
12477         * elf/Versions: Export __libc_dlvsym.
12478         * elf/dl-libc.c (struct do_dlvsym_args): New.
12479         (do_dlvsym, __libc_dlvsym): New functions.
12480         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
12481         (_dl_open_hook2): New variable.
12482         (__libc_register_dl_open_hook): Set it.
12483         * elf/tst-libc_dlvsym-dso.c: New file.
12484         * elf/tst-libc_dlvsym-static.c: Likewise.
12485         * elf/tst-libc_dlvsym.c: Likewise.
12486         * elf/tst-libc_dlvsym.h: Likewise.
12488 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12490         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
12491         include <sys/mount.h>.
12493 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
12495         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
12496         Add __NO_MATH_ERRNO__ check.
12498 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
12500         * sysdeps/mips/mips32/libm-test-ulps: Update.
12501         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12503 2018-01-02  Florian Weimer  <fweimer@redhat.com>
12505         * misc/tst-pselect.c: Add copyright header.
12507 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
12509         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
12510         comment.
12511         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
12512         comment.
12513         (settrlimit): Rename into setrlimit.
12514         (__sttrlimit): Rename into __setrlimit.
12516         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
12517         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
12518         never defined in that case.
12520 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
12522         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
12524         * sysdeps/arm/libm-test-ulps: Update.
12526         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
12527         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
12529 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12531         * NEWS: Add cosf and sincosf to list of optimized functions.
12533 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
12535         [BZ #22660]
12536         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
12537         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
12538         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
12539         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
12541 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
12543         [BZ #22433]
12544         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
12546         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
12547         making a copy of it.
12549 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
12551         * manual/texinfo.tex: Update to version 2017-12-26.21 with
12552         trailing whitespace removed.
12553         * scripts/config.guess: Update to version 2018-01-01.
12554         * scripts/config.sub: Update to version 2018-01-01.
12555         * scripts/move-if-change: Update from gnulib.
12557         * NEWS: Update copyright dates.
12558         * catgets/gencat.c (print_version): Likewise.
12559         * csu/version.c (banner): Likewise.
12560         * debug/catchsegv.sh: Likewise.
12561         * debug/pcprofiledump.c (print_version): Likewise.
12562         * debug/xtrace.sh (do_version): Likewise.
12563         * elf/ldconfig.c (print_version): Likewise.
12564         * elf/ldd.bash.in: Likewise.
12565         * elf/pldd.c (print_version): Likewise.
12566         * elf/sotruss.sh: Likewise.
12567         * elf/sprof.c (print_version): Likewise.
12568         * iconv/iconv_prog.c (print_version): Likewise.
12569         * iconv/iconvconfig.c (print_version): Likewise.
12570         * locale/programs/locale.c (print_version): Likewise.
12571         * locale/programs/localedef.c (print_version): Likewise.
12572         * login/programs/pt_chown.c (print_version): Likewise.
12573         * malloc/memusage.sh (do_version): Likewise.
12574         * malloc/memusagestat.c (print_version): Likewise.
12575         * malloc/mtrace.pl: Likewise.
12576         * manual/libc.texinfo: Likewise.
12577         * nptl/version.c (banner): Likewise.
12578         * nscd/nscd.c (print_version): Likewise.
12579         * nss/getent.c (print_version): Likewise.
12580         * nss/makedb.c (print_version): Likewise.
12581         * posix/getconf.c (main): Likewise.
12582         * scripts/test-installation.pl: Likewise.
12583         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
12585         * All files with FSF copyright notices: Update copyright dates
12586         using scripts/update-copyrights.
12587         * locale/programs/charmap-kw.h: Regenerated.
12588         * locale/programs/locfile-kw.h: Likewise.
12590 2017-12-31  Zack Weinberg  <zackw@panix.com>
12592         * libio/bits/libio-ldbl.h: Correct check for improper
12593         inclusion.  Add own multiple include guard.
12595 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
12596             Dmitry V. Levin  <ldv@altlinux.org>
12598         [BZ #22625]
12599         CVE-2017-16997
12600         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
12601         string token expansion. Check for NULL pointer or empty string possibly
12602         returned by expand_dynamic_string_token.
12603         (decompose_rpath): Check for empty path after dynamic string
12604         token expansion.
12606 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
12608         [BZ #22433]
12609         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
12611         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
12612         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
12613         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
12614         and PTRACE_SYSCALL.
12615         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
12616         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12617         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12618         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12619         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12620         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
12622         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
12623         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
12624         __ptrace_peeksiginfo_flags, ptrace): Move to ...
12625         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
12626         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12627         bits/ptrace-shared.h.
12628         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
12629         <bits/ptrace-shared.h>.
12630         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
12631         __ptrace_peeksiginfo_flags, ptrace): Remove.
12632         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12633         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12634         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12635         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12636         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
12638 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
12640         [BZ #17804]
12641         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
12642         end of the loop. Improve comments.
12644 2017-12-29  Zack Weinberg  <zackw@panix.com>
12646         [BZ #22615]
12647         * manual/errno.texi (Checking for Errors): Explicitly say that errno
12648         might be set on success.
12650 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
12652         [BZ #22611]
12653         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
12654         is unchanged on success.
12656 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
12658         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
12659         updated.
12660         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
12661         expand_dynamic_string_token): Likewise.
12662         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
12663         is_path argument.
12665         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
12666         contains ':'.
12668         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
12669         is set and name contains ':', and all code depending on these checks.
12671 2017-12-24  Zack Weinberg  <zackw@panix.com>
12673         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
12674         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
12675         respectively.
12676         * libio/libio.h: Rename the original version of this file to
12677         libio/bits/libio.h.  Error out if not included by stdio.h or the
12678         stub libio.h.
12679         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
12680         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
12681         if not included by bits/libio.h or the stub _G_config.h.
12682         * sysdeps/unix/sysv/linux/_G_config.h: Move to
12683         sysdeps/unix/sysv/linux/bits.  Error out if not included by
12684         bits/libio.h or the stub _G_config.h.
12685         * libio/stdio.h: Include bits/libio.h, not libio.h.
12686         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
12687         well as libio.h and _G_config.h.
12689         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
12690         * libio/strfile.h, stdio-common/vfscanf.c
12691         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
12692         Include stdio.h, not _G_config.h nor libio.h.
12693         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
12694         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
12696         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
12698 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
12700         [BZ #22347]
12701         * stdlib/getrandom.c (getrandom): Fix comment.
12702         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
12704 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
12706         [BZ #21161]
12707         * manual/arith.texi (strtoul): Fix a typo.
12709         [BZ #22596]
12710         * manual/arith.texi (finite): Fix the description of the return
12711         value.
12713 2017-12-22  Eric Blake  <ebb9@byu.net>
12715         Avoid gcc warnings on cygwin
12716         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
12717         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
12718         Avoid unused variable.
12720 2017-12-22  Florian Weimer  <fweimer@redhat.com>
12722         * io/Makefile (routines): Add copy_file_range.
12723         (tests): Add tst-copy_file_range.
12724         (tests-static, tests-internal): Add tst-copy_file_range-compat.
12725         * io/Versions (GLIBC_2.27): Export copy_file_range.
12726         * io/copy_file_range-compat.c: New file.
12727         * io/copy_file_range.c: Likewise.
12728         * io/tst-copy_file_range-compat.c: Likewise.
12729         * io/tst-copy_file_range.c: Likewise.
12730         * manual/llio.texi (Copying File Data): New section.
12731         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
12732         * support/Makefile (libsupport-routines): Add support-xfstat,
12733         xftruncate, xlseek.
12734         * support/support-xfstat.c: New file.
12735         * support/xftruncate.c: Likewise.
12736         * support/xlseek.c: Likewise.
12737         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
12738         * sysdeps/unix/sysv/linux/**.abilist: Update.
12739         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
12741 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12743         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
12744         disable-multi-arch variant to aarch64-linux-gnu.
12746 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
12748         * manual/texinfo.tex: Update to version 2017-12-18.20 with
12749         trailing whitespace removed.
12750         * scripts/config.guess: Update to version 2017-12-17.
12751         * scripts/config.sub: Update to version 2017-11-23.
12752         * scripts/install-sh: Update to version 2017-09-23.17.
12753         * scripts/move-if-change: Update to version 2017-09-13 06:45.
12755 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12757         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
12758         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
12759         * sysdeps/tile/_mcount.S (__mcount): Likewise.
12760         * sysdeps/tile/crti.S (_init, _fini): Likewise.
12761         * sysdeps/tile/crtn.S: Likewise.
12762         * sysdeps/tile/dl-start.S (_start): Likewise.
12763         * sysdeps/tile/dl-trampoline.S: Likewise.
12764         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
12765         * sysdeps/tile/start.S (_start): Likewise.
12766         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
12767         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
12768         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
12769         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
12770         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
12771         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
12772         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
12774         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
12775         comment.
12776         * sysdeps/tile/preconfigure: Remove tilegx folder.
12777         * sysdeps/tile/tilegx/Implies: Move definitions to ...
12778         * sysdeps/tile/Implies: ... here.
12779         * sysdeps/tile/tilegx/Makefile: Move rules to ...
12780         * sysdeps/tile/Makefile: ... here.
12781         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
12782         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
12783         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
12784         * sysdeps/tile/bits/wordsize.h: ... here.
12785         * sysdeps/tile/tilegx/*: Move to ...
12786         * sysdeps/tile/*: ... here.
12787         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
12788         * sysdeps/tile/tilegx32/Implies: ... here.
12789         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
12790         * sysdeps/tile/tilegx64/Implies: ... here.
12791         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
12792         to ...
12793         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
12794         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
12795         * sysdeps/unix/sysv/linux/tile/*: ... here.
12796         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
12797         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
12798         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
12799         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
12801         * README: Remove tilepro-*-linux-gnu from supported architecture.
12802         * scripts/build-many-glibcs.py: Likewise.
12803         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
12804         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
12805         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
12806         elf_machine_matches_host, elf_machine_dynamic,
12807         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
12808         howto, elf_machine_rela): Likewise.
12809         * sysdeps/tile/dl-start.S (_start): Likewise.
12810         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
12811         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
12812         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
12813         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
12814         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
12815         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
12816         Likewise.
12817         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
12818         * sysdeps/tile/preconfigure: Likewise.
12819         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
12820         POINTER_CHK_GUARD): Likewise.
12821         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
12822         * sysdeps/tile/start.S (_start): Likewise.
12823         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
12824         Likewise.
12825         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
12826         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
12827         CMOVNEZ): Remove.
12828         * sysdeps/unix/sysv/linux/tile/bits/environments.h
12829         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
12830         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
12831         Likewise.
12832         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
12833         * sysdeps/tile/tilepro/Implies: Remove file.
12834         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
12835         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
12836         * sysdeps/tile/tilepro/memchr.c: Likewise.
12837         * sysdeps/tile/tilepro/memcpy.S: Likewise.
12838         * sysdeps/tile/tilepro/memset.c: Likewise.
12839         * sysdeps/tile/tilepro/memusage.h: Likewise.
12840         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
12841         * sysdeps/tile/tilepro/strchr.c: Likewise.
12842         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
12843         * sysdeps/tile/tilepro/strlen.c: Likewise.
12844         * sysdeps/tile/tilepro/strrchr.c: Likewise.
12845         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
12846         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
12847         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
12848         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
12849         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
12850         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
12851         Likewise.
12852         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
12853         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
12854         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
12855         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
12856         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12857         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
12858         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
12859         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
12860         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
12861         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
12862         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
12863         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
12864         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
12865         tilepro mention in comment.
12867         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
12868         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
12869         * nptl/pthread_join_common.c: New file: common function used on
12870         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
12871         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
12872         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
12873         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
12874         (cleanup): Move definition to pthread_join_common.c.
12875         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
12876         Remove superflous checks.
12877         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
12878         Likewise.
12880 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12882         * sysdeps/aarch64/libm-test-ulps: Update.
12884 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12886         * sysdeps/aarch64/memset.S (MEMSET): Define.
12888 2017-12-20  Florian Weimer  <fweimer@redhat.com>
12890         [BZ #22635]
12891         nptl: Provide full implementation of pthread_self in libc.so.
12892         * nptl/Makefile (routines): Add pthread_self.
12893         (libpthread-routines): Replace pthread_self with
12894         compat-pthread_self.
12895         * nptl/forward.c (pthread_self): Remove.
12896         * nptl/nptl-init.c (pthread_functions): Do not initialize
12897         ptr_pthread_self.
12898         * nptl/pthread_self.c (pthread_self): Remove weak alias.
12899         * nptl/compat-pthread_self.c: New file.
12900         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
12901         Remove ptr_pthread_self.
12903 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
12905         * posix/regcomp.c: Fix spelling in comments.
12906         * posix/regex.h: Likewise.
12907         * posix/regex_internal.c: Likewise.
12908         * posix/regexec.c: Likewise.
12910 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12912         [BZ #22377]
12913         * math/Makefile [C++] (tests): Add test for iseqsig.
12914         * math/math.h [C++] (iseqsig): New implementation, which does
12915         not rely on __MATH_TG/__builtin_types_compatible_p.
12916         * math/test-math-iseqsig.cc: New file.
12917         * sysdeps/powerpc/powerpc64le/Makefile
12918         (CFLAGS-test-math-iseqsig.cc): New variable.
12920 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
12922         * elf/dl-load.c (is_trusted_path): Remove.
12923         (fillin_rpath): Remove check_trusted argument and its use,
12924         all callers changed.
12926 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
12928         [BZ #22630]
12929         * Makeconfig (link-pie-before-libc): Replace -pie with
12930         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
12931         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
12932         (tst-dlopen-aout-no-pie): New.
12933         (LDFLAGS-tst-prelink): Removed.
12934         (tst-prelink-no-pie): New.
12935         (LDFLAGS-tst-main1): Removed.
12936         (tst-main1-no-pie): New.
12937         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
12938         (tst-gmon-no-pie): New.
12940 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
12942         * manual/install.texi: Document that --enable-static-pie
12943         implies PIE.
12944         * INSTALL: Regenerated.
12946 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12948         [BZ #21309]
12949         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
12950         unsigned.
12952 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
12954         Revert:
12956         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
12958         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12960         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
12962         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
12963         <errno.h>.  Include "eexp.tbl".
12964         (half): New constant.
12965         (one): Likewise.
12966         (__ieee754_exp): Rewrite.
12967         (__slowexp): Remove prototype.
12968         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
12969         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
12970         * sysdeps/i386/fpu/slowexp.c: Likewise.
12971         * sysdeps/ia64/fpu/slowexp.c: Likewise.
12972         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
12973         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
12974         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
12975         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
12976         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
12977         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
12978         comment.
12979         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
12980         (CPPFLAGS-slowexp.c): Remove variable.
12981         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
12982         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
12983         (CFLAGS-slowexp-fma.c): Remove variable.
12984         (CFLAGS-slowexp-fma4.c): Likewise.
12985         (CFLAGS-slowexp-avx.c): Likewise.
12986         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
12987         define as macro.
12988         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
12989         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
12990         * math/Makefile (type-double-routines): Remove slowexp.
12991         * manual/probes.texi (slowexp_p6): Remove.
12992         (slowexp_p32): Likewise.
12994 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12996         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
12997         arithmetic.
12999         * lib/glob.c (glob): Do not pass NULL to mempcpy.
13001 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13003         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13005 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
13007         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
13008         <errno.h>.  Include "eexp.tbl".
13009         (half): New constant.
13010         (one): Likewise.
13011         (__ieee754_exp): Rewrite.
13012         (__slowexp): Remove prototype.
13013         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
13014         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
13015         * sysdeps/i386/fpu/slowexp.c: Likewise.
13016         * sysdeps/ia64/fpu/slowexp.c: Likewise.
13017         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
13018         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
13019         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
13020         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13021         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
13022         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
13023         comment.
13024         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
13025         (CPPFLAGS-slowexp.c): Remove variable.
13026         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13027         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
13028         (CFLAGS-slowexp-fma.c): Remove variable.
13029         (CFLAGS-slowexp-fma4.c): Likewise.
13030         (CFLAGS-slowexp-avx.c): Likewise.
13031         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
13032         define as macro.
13033         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
13034         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
13035         * math/Makefile (type-double-routines): Remove slowexp.
13036         * manual/probes.texi (slowexp_p6): Remove.
13037         (slowexp_p32): Likewise.
13039 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13040             James Clarke <jrtc27@jrtc27.com>
13042         [BZ #22603]
13043         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
13044         addition.
13046 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13048         [BZ #22605]
13049         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
13050         code.
13052 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13054         [BZ #22563]
13055         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13056         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
13057         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
13058         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
13059         to feature_1.
13061 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
13063         [BZ #22563]
13064         * bits/types/__cancel_jmp_buf_tag.h: New file.
13065         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
13066         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
13067         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
13068         * nptl/Makefile (headers): Add
13069         bits/types/__cancel_jmp_buf_tag.h.
13070         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
13071         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
13072         * sysdeps/nptl/pthread.h: Include
13073         <bits/types/__cancel_jmp_buf_tag.h>.
13074         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
13075         __cancel_jmp_buf.
13076         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
13078 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
13080         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13081         --enable-static-pie variants to x86_64, x32 and i686.
13083 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
13085         [BZ #22631]
13086         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
13087         argument for attrubutes.  All callers changed.
13088         (__inline_mathop1): Likewise.  All callers changed.
13089         (__inline_mathop): Likewise.  All callers changed.
13090         [__USE_MISC] (scalbn): Use __inline_forward instead of
13091         __inline_forward_c.
13092         [__USE_ISOC99] (scalbln): Likewise.
13093         [__USE_ISOC99] (nearbyint): Likewise.
13094         [__USE_ISOC99] (lrint): Likewise.
13095         [__USE_MISC] (scalbnf): Likewise.
13096         [__USE_ISOC99] (scalblnf): Likewise.
13097         [__USE_ISOC99] (nearbyintf): Likewise.
13098         [__USE_ISOC99] (lrintf): Likewise.
13099         [__USE_MISC] (scalbnl): Likewise.
13100         [__USE_ISOC99] (scalblnl): Likewise.
13101         [__USE_ISOC99] (nearbyintl): Likewise.
13102         [__USE_ISOC99] (lrintl): Likewise.
13103         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
13104         __inline_mathop and __m81_defun changed.
13106         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
13107         CPU or FPU for ARM hard-float configurations.
13109 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
13111         * nptl/tst-attr3.c: Include <libc-diag.h>.
13112         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
13114         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
13116         * string/tester.c (test_strncat): Also disable -Warray-bounds
13117         warnings for two tests.
13119 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
13121         [BZ #22614]
13122         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
13123         $(cc-pie-default) == yes.
13124         * config.make.in (cc-pie-default): New.
13125         * configure.ac (libc_cv_pie_default): Renamed to ...
13126         (libc_cv_cc_pie_default): This.
13127         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
13128         * configure: Regenerated.
13130 2017-12-18  Florian Weimer  <fweimer@redhat.com>
13132         [BZ #20204]
13133         ld.so: Harden dl-libc/libdl hooks.
13134         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
13135         (rtld_active): New function.
13136         * dlfcn/dladdr.c (__dladdr): Call it.
13137         * dlfcn/dladdr1.c (__dladdr1): Likewise.
13138         * dlfcn/dlclose.c (__dlcose): Likewise.
13139         * dlfcn/dlerror.c (__dlerror): Likewise.
13140         * dlfcn/dlinfo.c (__dlinfo): Likewise.
13141         * dlfcn/dlmopen.c (__dlmopen): Likewise.
13142         * dlfcn/dlopen.c (__dlopen): Likewise.
13143         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
13144         * dlfcn/dlsym.c (__dlsym): Likewise.
13145         * dlfcn/dlvsym.c (__dlvsym): Likewise.
13146         * libio/vtables.c (_IO_vtable_check): Likewise.
13147         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
13148         (__libc_dlclose): Likewise.
13149         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
13150         assignment.
13152 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
13154         [BZ #22446]
13155         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
13156         buffers for readlink input and output.
13158 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
13160         [BZ #22624]
13161         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
13162         inhibit_stack_protector.
13164         [BZ #22624]
13165         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
13166         inhibit_stack_protector.
13168 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
13170         [BZ #22627]
13171         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
13172         code and invocation.
13174 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13176         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
13178 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
13180         [BZ #22505]
13181         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
13183 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13185         * sysdeps/s390/fpu/libm-test-ulps: Update.
13187 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13189         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13191 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13193         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
13194         constants to s_sincosf.h file.
13195         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13196         * sysdeps/ieee754/flt-32/s_sincosf.c: New
13197         implementation.
13198         * sysdeps/ieee754/flt-32/s_sincosf.h:
13199         New file.
13201 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
13203         [BZ #14681]
13204         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
13205         before mtrace.
13207 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
13209         [BZ #19574]
13210         * INSTALL: Regenerated.
13211         * Makeconfig (real-static-start-installed-name): New.
13212         (pic-default): Updated for --enable-static-pie.
13213         (pie-default): New for --enable-static-pie.
13214         (default-pie-ldflag): Likewise.
13215         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
13216         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
13217         Replace $(static-start-installed-name) with
13218         $(real-static-start-installed-name).
13219         (+prectorT): Updated for --enable-static-pie.
13220         (+postctorT): Likewise.
13221         (CFLAGS-.o): Add $(pie-default).
13222         (CFLAGS-.op): Likewise.
13223         * NEWS: Mention --enable-static-pie.
13224         * config.h.in (ENABLE_STATIC_PIE): New.
13225         * configure.ac (--enable-static-pie): New configure option.
13226         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
13227         (have-static-pie): Likewise.
13228         Enable static PIE if linker supports --no-dynamic-linker.
13229         (ENABLE_STATIC_PIE): New AC_DEFINE.
13230         (enable-static-pie): New LIBC_CONFIG_VAR.
13231         * configure: Regenerated.
13232         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
13233         gr$(start-installed-name) for --enable-static-pie.
13234         (extra-objs): Likewise.
13235         (install-lib): Likewise.
13236         (extra-objs): Add static-reloc.o and static-reloc.os
13237         ($(objpfx)$(start-installed-name)): Also depend on
13238         $(objpfx)static-reloc.o.
13239         ($(objpfx)r$(start-installed-name)): New.
13240         ($(objpfx)g$(start-installed-name)): Also depend on
13241         $(objpfx)static-reloc.os.
13242         ($(objpfx)gr$(start-installed-name)): New.
13243         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
13244         in libc.a.
13245         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
13246         initimage.
13247         * csu/static-reloc.c: New file.
13248         * elf/Makefile (routines): Add dl-reloc-static-pie.
13249         (elide-routines.os): Likewise.
13250         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
13251         (tst-tls1-static-non-pie-no-pie): New.
13252         * elf/dl-reloc-static-pie.c: New file.
13253         * elf/dl-support.c (_dl_get_dl_main_map): New function.
13254         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
13255         STATIC_PIE_BOOTSTRAP.
13256         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
13257         * gmon/Makefile (tests): Add tst-gmon-static-pie.
13258         (tests-static): Likewise.
13259         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
13260         (tst-gmon-static-no-pie): New.
13261         (CFLAGS-tst-gmon-static-pie.c): Likewise.
13262         (CRT-tst-gmon-static-pie): Likewise.
13263         (tst-gmon-static-pie-ENV): Likewise.
13264         (tests-special): Likewise.
13265         ($(objpfx)tst-gmon-static-pie.out): Likewise.
13266         (clean-tst-gmon-static-pie-data): Likewise.
13267         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
13268         * gmon/tst-gmon-static-pie.c: New file.
13269         * manual/install.texi: Document --enable-static-pie.
13270         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
13271         (_dl_get_dl_main_map): Likewise.
13272         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
13273         * sysdeps/x86_64/configure.ac: Likewise.
13274         * sysdeps/i386/configure: Regenerated.
13275         * sysdeps/x86_64/configure: Likewise.
13276         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
13277         (ASFLAGS-.op): Likewise.
13279 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
13281         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
13282         * posix/tst-mmap-offset.c (fname): Use /tmp.
13283         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
13285 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
13287         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
13289 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
13291         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
13292         errno.
13294 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
13296         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13297         --with-float=hard for arm-linux-gnueabihf configurations.
13299         [BZ #14121]
13300         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
13301         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
13302         ($(mo-installed)): Use $(objpfx)%.mo.
13303         (realclean): Remove rule.
13305         * po/Makefile (linguas): Remove rule and dependencies.
13306         (linguas.mo): Likewise.
13307         (.PHONY): Do not depend on linguas and linguas.mo.
13308         (podir): Remove variable.
13309         (pofiles): Likewise.
13310         [$(pofiles)] (%.po): Remove rule.
13312         * sysdeps/sparc/sparc32/Makefile
13313         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
13314         start-of-line whitespace in argument of echo.
13315         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
13316         with whitespace.  Generate __wrap_.udiv alias.
13317         * sysdeps/sparc/sparc32/rem.S: Regenerated.
13318         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
13319         * sysdeps/sparc/sparc32/udiv.S: Likewise.
13320         * sysdeps/sparc/sparc32/urem.S: Likewise.
13322 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13324         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
13325         for aligned inputs.
13327 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13329         * benchtests/bench-strcmp.c: Print output in JSON format.
13331         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
13333 2017-12-14  Florian Weimer  <fweimer@redhat.com>
13335         [BZ #22607]
13336         CVE-2017-1000409
13337         * elf/dl-load.c (_dl_init_paths): Compute number of components in
13338         the expanded path string.
13340 2017-12-14  Florian Weimer  <fweimer@redhat.com>
13342         [BZ #22606]
13343         CVE-2017-1000408
13344         * elf/dl-load.c (system_dirs): Update comment.
13345         (nsystem_dirs_len): Use array_length.
13346         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
13348 2017-12-14  Florian Weimer  <fweimer@redhat.com>
13350         Simplify compiling most of support/ outside of glibc.
13351         * support/check_addrinfo.c: Include <string.h>.
13352         * support/check_dns_packet.c: Likewise.
13353         * support/check_hostent.c: Likewise.
13354         * support/support_can_chroot.c: Include <support/xunistd.h>.
13355         * support/support_format_addrinfo.c: Include <stdlib.h>
13356         * support/support_format_dns_packet.c: Include <stdbool.h>.
13357         * support/support_format_hostent.c: Include <stdlib.h>.
13358         * support/support_format_netent.c: Likewise.
13359         * support/support_write_string.c: Include <support/xunistd.h>.
13360         * support/xdlfcn.c: Include <stddef.h>.
13362 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
13364         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
13366 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
13367             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13369         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
13370         (sysdeps_routines): Add memset-niagara7.
13371         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
13372         Likewise.
13373         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
13374         file.
13375         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
13376         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
13377         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
13378         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
13379         Add niagara7 option.
13380         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
13381         memset.
13383         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
13384         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
13385         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
13386         Likewise.
13387         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
13388         New file.
13389         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
13390         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
13391         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
13392         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
13393         and __memmove_niagara7.
13394         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
13395         Add niagara7 option.
13396         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
13397         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
13398         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
13399         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
13400         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
13402 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13404         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
13405         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
13406         * sysdeps/sparc/sparc64/memmove.S: Likewise.
13407         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
13409         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
13410         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
13411         _dl_sparc_cap_flags array.
13412         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
13414 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13416         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
13417         time whenever possible.
13419 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
13421         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
13422         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
13424 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
13426         * soft-fp/fmadf4.c: Move to ....
13427         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
13428         * soft-fp/fmasf4.c: Move to ....
13429         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
13430         * soft-fp/fmatf4.c: Move to ....
13431         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
13432         * sysdeps/ieee754/soft-fp/Makefile: New file.
13433         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
13434         * sysdeps/arm/preconfigure: Regenerated.
13435         * sysdeps/arm/nofpu/Implies: New file.
13436         * sysdeps/arm/s_fma.c: Remove file.
13437         * sysdeps/arm/s_fmaf.c: Likewise.
13438         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
13439         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
13440         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
13441         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
13442         * sysdeps/microblaze/s_fma.c: Remove file.
13443         * sysdeps/microblaze/s_fmaf.c: Likewise.
13444         * sysdeps/mips/mips32/nofpu/Implies: New file.
13445         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
13446         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
13447         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
13448         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
13449         * sysdeps/mips/ieee754/s_fma.c: Remove file.
13450         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
13451         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
13452         implementation.
13453         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
13454         * sysdeps/nios2/s_fma.c: Remove file.
13455         * sysdeps/nios2/s_fmaf.c: Likewise.
13456         * sysdeps/sh/nofpu/Implies: New file.
13457         * sysdeps/sh/s_fma.c: Remove file.
13458         * sysdeps/sh/s_fmaf.c: Likewise.
13459         * sysdeps/tile/Implies: Add ieee754/soft-fp.
13460         * sysdeps/tile/s_fma.c: Remove file.
13461         * sysdeps/tile/s_fmaf.c: Likewise.
13463 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
13465         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
13466         Add s_cosf-sse2 and s_cosf-fma.
13467         (CFLAGS-s_cosf-fma.c): New.
13468         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
13469         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
13470         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
13472 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
13474         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
13476 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13478         * libio/Makefile (tests): Add tst-bz22415.
13479         (tst-bz22415-ENV): New rule.
13480         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
13481         (tests-special): Add tst-bz22415-mem.out.
13482         ($(objpfx)tst-bz22415-mem.out): New rule.
13483         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
13484         in case of a successful seek operation.
13485         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13486         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
13487         buffer is required.
13488         * libio/tst-bz22415.c: New test.
13490         * sysdeps/ia64/fpu/libm-test-ulps: Update.
13492 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
13494         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
13495         __IPC_64 to 0 to avoid IPC_64 being set.
13497 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13499         [BZ #22593]
13500         * math/bits/mathcalls.h (nextafter): Remove const.
13501         (nexttoward): Likewise.
13503 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
13505         * configure.ac (--with-fp): Remove configure option.
13506         (with_fp_cond): New variable.
13507         (libc_cv_with_fp): New configure test.  Use this variable instead
13508         of with_fp.
13509         * configure: Regenerated.
13510         * config.make.in (with-fp): Use @libc_cv_with_fp@.
13511         * manual/install.texi (Configuring and compiling): Remove
13512         --without-fp.
13513         * INSTALL: Regenerated.
13514         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
13515         * sysdeps/mips/preconfigure (with_fp_cond): Define.
13516         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
13517         * sysdeps/sh/preconfigure (with_fp_cond): Define.
13518         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
13519         use --without-fp to configure glibc.
13521 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
13523         * manual/locale.texi (nl_langinfo): Fix a typo.
13525 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
13527         [BZ #22588]
13528         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
13530 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
13532         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
13533         (CFLAGS-argp-parse.c): Likewise.
13534         (CFLAGS-argp-fmtstream.c): Likewise.
13535         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
13536         (CPPFLAGS-sha512-crypt.c): Likewise.
13537         (CPPFLAGS-md5-crypt.c): Likewise.
13538         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
13539         (CFLAGS-stack_chk_fail_local.c): Likewise.
13540         (CFLAGS-backtrace.c): Likewise.
13541         (CFLAGS-sprintf_chk.c): Likewise.
13542         (CFLAGS-snprintf_chk.c): Likewise.
13543         (CFLAGS-vsprintf_chk.c): Likewise.
13544         (CFLAGS-vsnprintf_chk.c): Likewise.
13545         (CFLAGS-asprintf_chk.c): Likewise.
13546         (CFLAGS-vasprintf_chk.c): Likewise.
13547         (CFLAGS-obprintf_chk.c): Likewise.
13548         (CFLAGS-dprintf_chk.c): Likewise.
13549         (CFLAGS-vdprintf_chk.c): Likewise.
13550         (CFLAGS-printf_chk.c): Likewise.
13551         (CFLAGS-fprintf_chk.c): Likewise.
13552         (CFLAGS-vprintf_chk.c): Likewise.
13553         (CFLAGS-vfprintf_chk.c): Likewise.
13554         (CFLAGS-gets_chk.c): Likewise.
13555         (CFLAGS-fgets_chk.c): Likewise.
13556         (CFLAGS-fgets_u_chk.c): Likewise.
13557         (CFLAGS-fread_chk.c): Likewise.
13558         (CFLAGS-fread_u_chk.c): Likewise.
13559         (CFLAGS-swprintf_chk.c): Likewise.
13560         (CFLAGS-vswprintf_chk.c): Likewise.
13561         (CFLAGS-wprintf_chk.c): Likewise.
13562         (CFLAGS-fwprintf_chk.c): Likewise.
13563         (CFLAGS-vwprintf_chk.c): Likewise.
13564         (CFLAGS-vfwprintf_chk.c): Likewise.
13565         (CFLAGS-fgetws_chk.c): Likewise.
13566         (CFLAGS-fgetws_u_chk.c): Likewise.
13567         (CFLAGS-read_chk.c): Likewise.
13568         (CFLAGS-pread_chk.c): Likewise.
13569         (CFLAGS-pread64_chk.c): Likewise.
13570         (CFLAGS-recv_chk.c): Likewise.
13571         (CFLAGS-recvfrom_chk.c): Likewise.
13572         (CFLAGS-tst-longjmp_chk.c): Likewise.
13573         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
13574         (CFLAGS-tst-longjmp_chk2.c): Likewise.
13575         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
13576         (CFLAGS-tst-longjmp_chk3.c): Likewise.
13577         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
13578         (CFLAGS-tst-chk1.c): Likewise.
13579         (CFLAGS-tst-chk2.c): Likewise.
13580         (CFLAGS-tst-chk3.c): Likewise.
13581         (CFLAGS-tst-chk4.cc): Likewise.
13582         (CFLAGS-tst-chk5.cc): Likewise.
13583         (CFLAGS-tst-chk6.cc): Likewise.
13584         (CFLAGS-tst-lfschk1.c): Likewise.
13585         (CFLAGS-tst-lfschk2.c): Likewise.
13586         (CFLAGS-tst-lfschk3.c): Likewise.
13587         (CFLAGS-tst-lfschk4.cc): Likewise.
13588         (CFLAGS-tst-lfschk5.cc): Likewise.
13589         (CFLAGS-tst-lfschk6.cc): Likewise.
13590         (CFLAGS-tst-ssp-1.c): Likewise.
13591         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
13592         (CFLAGS-scandir64.c): Likewise.
13593         (CFLAGS-scandir-tail.c): Likewise.
13594         (CFLAGS-scandir64-tail.c): Likewise.
13595         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
13596         (CFLAGS-dl-tunables.c): Likewise.
13597         (CFLAGS-dl-runtime.c): Likewise.
13598         (CFLAGS-dl-lookup.c): Likewise.
13599         (CFLAGS-dl-iterate-phdr.c): Likewise.
13600         (CFLAGS-vismain.c): Likewise.
13601         (CFLAGS-tst-linkall-static.c): Likewise.
13602         (CFLAGS-tst-linkall-static.c): Likewise.
13603         (CPPFLAGS-dl-load.c): Likewise.
13604         (CFLAGS-ldconfig.c): Likewise.
13605         (CFLAGS-dl-cache.c): Likewise.
13606         (CFLAGS-cache.c): Likewise.
13607         (CFLAGS-rtld.c): Likewise.
13608         (CFLAGS-multiload.c): Likewise.
13609         (CFLAGS-filtmod1.c): Likewise.
13610         (CFLAGS-tst-align.c): Likewise.
13611         (CFLAGS-tst-align2.c): Likewise.
13612         (CFLAGS-tst-alignmod.c): Likewise.
13613         (CFLAGS-tst-alignmod2.c): Likewise.
13614         (CPPFLAGS-tst-execstack.c): Likewise.
13615         (CFLAGS-tst-ptrguard1-static.c): Likewise.
13616         (CFLAGS-tst-latepthreadmod.c): Likewise.
13617         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
13618         (CFLAGS-getgrnam_r.c): Likewise.
13619         (CFLAGS-getgrent_r.c): Likewise.
13620         (CFLAGS-getgrent.c): Likewise.
13621         (CFLAGS-fgetgrent.c): Likewise.
13622         (CFLAGS-fgetgrent_r.c): Likewise.
13623         (CFLAGS-putgrent.c): Likewise.
13624         (CFLAGS-initgroups.c): Likewise.
13625         (CFLAGS-getgrgid.c): Likewise.
13626         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
13627         (CFLAGS-getsgent.c): Likewise.
13628         (CFLAGS-fgetsgent.c): Likewise.
13629         (CFLAGS-fgetsgent_r.c): Likewise.
13630         (CFLAGS-putsgent.c): Likewise.
13631         (CFLAGS-getsgnam.c): Likewise.
13632         (CFLAGS-getsgnam_r.c): Likewise.
13633         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
13634         (CFLAGS-iconv_charmap.c): Likewise.
13635         (CFLAGS-dummy-repertoire.c): Likewise.
13636         (CFLAGS-charmap.c): Likewise.
13637         (CFLAGS-linereader.c): Likewise.
13638         (CFLAGS-simple-hash.c): Likewise.
13639         (CFLAGS-gconv_conf.c): Likewise.
13640         (CFLAGS-iconvconfig.c): Likewise.
13641         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
13642         (CFLAGS-gethstbyad.c): Likewise.
13643         (CFLAGS-gethstbynm_r.c): Likewise.
13644         (CFLAGS-gethstbynm.c): Likewise.
13645         (CFLAGS-gethstbynm2_r.c): Likewise.
13646         (CFLAGS-gethstbynm2.c): Likewise.
13647         (CFLAGS-gethstent_r.c): Likewise.
13648         (CFLAGS-gethstent.c): Likewise.
13649         (CFLAGS-rcmd.c): Likewise.
13650         (CFLAGS-getnetbynm_r.c): Likewise.
13651         (CFLAGS-getnetbynm.c): Likewise.
13652         (CFLAGS-getnetbyad_r.c): Likewise.
13653         (CFLAGS-getnetbyad.c): Likewise.
13654         (CFLAGS-getnetent_r.c): Likewise.
13655         (CFLAGS-getnetent.c): Likewise.
13656         (CFLAGS-getaliasent_r.c): Likewise.
13657         (CFLAGS-getaliasent.c): Likewise.
13658         (CFLAGS-getrpcent_r.c): Likewise.
13659         (CFLAGS-getrpcent.c): Likewise.
13660         (CFLAGS-getservent_r.c): Likewise.
13661         (CFLAGS-getservent.c): Likewise.
13662         (CFLAGS-getprtent_r.c): Likewise.
13663         (CFLAGS-getprtent.c): Likewise.
13664         (CFLAGS-either_ntoh.c): Likewise.
13665         (CFLAGS-either_hton.c): Likewise.
13666         (CFLAGS-getnetgrent.c): Likewise.
13667         (CFLAGS-getnetgrent_r.c): Likewise.
13668         (CFLAGS-tst-checks-posix.c): Likewise.
13669         (CFLAGS-tst-sockaddr.c): Likewise.
13670         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
13671         (CFLAGS-tst-translit.c): Likewise.
13672         (CFLAGS-tst-gettext2.c): Likewise.
13673         (CFLAGS-tst-codeset.c): Likewise.
13674         (CFLAGS-tst-gettext3.c): Likewise.
13675         (CFLAGS-tst-gettext4.c): Likewise.
13676         (CFLAGS-tst-gettext5.c): Likewise.
13677         (CFLAGS-tst-gettext6.c): Likewise.
13678         * io/Makefile (CFLAGS-open.c): Likewise.
13679         (CFLAGS-open64.c): Likewise.
13680         (CFLAGS-creat.c): Likewise.
13681         (CFLAGS-creat64.c): Likewise.
13682         (CFLAGS-fcntl.c): Likewise.
13683         (CFLAGS-poll.c): Likewise.
13684         (CFLAGS-ppoll.c): Likewise.
13685         (CFLAGS-lockf.c): Likewise.
13686         (CFLAGS-statfs.c): Likewise.
13687         (CFLAGS-fstatfs.c): Likewise.
13688         (CFLAGS-statvfs.c): Likewise.
13689         (CFLAGS-fstatvfs.c): Likewise.
13690         (CFLAGS-fts.c): Likewise.
13691         (CFLAGS-fts64.c): Likewise.
13692         (CFLAGS-ftw.c): Likewise.
13693         (CFLAGS-ftw64.c): Likewise.
13694         (CFLAGS-lockf.c): Likewise.
13695         (CFLAGS-posix_fallocate.c): Likewise.
13696         (CFLAGS-posix_fallocate64.c): Likewise.
13697         (CFLAGS-fallocate.c): Likewise.
13698         (CFLAGS-fallocate64.c): Likewise.
13699         (CFLAGS-read.c): Likewise.
13700         (CFLAGS-write.c): Likewise.
13701         (CFLAGS-test-stat.c): Likewise.
13702         (CFLAGS-test-lfs.c): Likewise.
13703         * libio/Makefile (CFLAGS-fileops.c): Likewise.
13704         (CFLAGS-fputc.c): Likewise.
13705         (CFLAGS-fputwc.c): Likewise.
13706         (CFLAGS-freopen64.c): Likewise.
13707         (CFLAGS-freopen.c): Likewise.
13708         (CFLAGS-fseek.c): Likewise.
13709         (CFLAGS-fseeko64.c): Likewise.
13710         (CFLAGS-fseeko.c): Likewise.
13711         (CFLAGS-ftello64.c): Likewise.
13712         (CFLAGS-ftello.c): Likewise.
13713         (CFLAGS-fwide.c): Likewise.
13714         (CFLAGS-genops.c): Likewise.
13715         (CFLAGS-getc.c): Likewise.
13716         (CFLAGS-getchar.c): Likewise.
13717         (CFLAGS-getwc.c): Likewise.
13718         (CFLAGS-getwchar.c): Likewise.
13719         (CFLAGS-iofclose.c): Likewise.
13720         (CFLAGS-iofflush.c): Likewise.
13721         (CFLAGS-iofgetpos64.c): Likewise.
13722         (CFLAGS-iofgetpos.c): Likewise.
13723         (CFLAGS-iofgets.c): Likewise.
13724         (CFLAGS-iofgetws.c): Likewise.
13725         (CFLAGS-iofputs.c): Likewise.
13726         (CFLAGS-iofputws.c): Likewise.
13727         (CFLAGS-iofread.c): Likewise.
13728         (CFLAGS-iofsetpos64.c): Likewise.
13729         (CFLAGS-iofsetpos.c): Likewise.
13730         (CFLAGS-ioftell.c): Likewise.
13731         (CFLAGS-iofwrite.c): Likewise.
13732         (CFLAGS-iogetdelim.c): Likewise.
13733         (CFLAGS-iogetline.c): Likewise.
13734         (CFLAGS-iogets.c): Likewise.
13735         (CFLAGS-iogetwline.c): Likewise.
13736         (CFLAGS-ioputs.c): Likewise.
13737         (CFLAGS-ioseekoff.c): Likewise.
13738         (CFLAGS-ioseekpos.c): Likewise.
13739         (CFLAGS-iosetbuffer.c): Likewise.
13740         (CFLAGS-iosetvbuf.c): Likewise.
13741         (CFLAGS-ioungetc.c): Likewise.
13742         (CFLAGS-ioungetwc.c): Likewise.
13743         (CFLAGS-oldfileops.c): Likewise.
13744         (CFLAGS-oldiofclose.c): Likewise.
13745         (CFLAGS-oldiofgetpos64.c): Likewise.
13746         (CFLAGS-oldiofgetpos.c): Likewise.
13747         (CFLAGS-oldiofsetpos64.c): Likewise.
13748         (CFLAGS-oldiofsetpos.c): Likewise.
13749         (CFLAGS-peekc.c): Likewise.
13750         (CFLAGS-putc.c): Likewise.
13751         (CFLAGS-putchar.c): Likewise.
13752         (CFLAGS-putwc.c): Likewise.
13753         (CFLAGS-putwchar.c): Likewise.
13754         (CFLAGS-rewind.c): Likewise.
13755         (CFLAGS-wfileops.c): Likewise.
13756         (CFLAGS-wgenops.c): Likewise.
13757         (CFLAGS-oldiofopen.c): Likewise.
13758         (CFLAGS-iofopen.c): Likewise.
13759         (CFLAGS-iofopen64.c): Likewise.
13760         (CFLAGS-oldtmpfile.c): Likewise.
13761         (CFLAGS-tst_putwc.c): Likewise.
13762         * locale/Makefile (CFLAGS-md5.c): Likewise.
13763         (CFLAGS-charmap.c): Likewise.
13764         (CFLAGS-locfile.c): Likewise.
13765         (CFLAGS-charmap-dir.c): Likewise.
13766         * login/Makefile (CFLAGS-grantpt.c): Likewise.
13767         (CFLAGS-getpt.c): Likewise.
13768         (CFLAGS-pt_chown.c): Likewise.
13769         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
13770         (CFLAGS-obstack.c): Likewise.
13771         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
13772         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
13773         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
13774         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
13775         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
13776         (CFLAGS-test-tgmath.c): Likewise.
13777         (CFLAGS-test-tgmath2.c): Likewise.
13778         (CFLAGS-test-tgmath-ret.c): Likewise.
13779         (CFLAGS-test-powl.c): Likewise.
13780         (CFLAGS-test-snan.c): Likewise.
13781         (CFLAGS-test-signgam-finite.c): Likewise.
13782         (CFLAGS-test-signgam-finite-c99.c): Likewise.
13783         (CFLAGS-test-signgam-finite-c11.c): Likewise.
13784         (CFLAGS-test-signgam-uchar.c): Likewise.
13785         (CFLAGS-test-signgam-uchar-init.c): Likewise.
13786         (CFLAGS-test-signgam-uchar-static.c): Likewise.
13787         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
13788         (CFLAGS-test-signgam-uint.c): Likewise.
13789         (CFLAGS-test-signgam-uint-init.c): Likewise.
13790         (CFLAGS-test-signgam-uint-static.c): Likewise.
13791         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
13792         (CFLAGS-test-signgam-ullong.c): Likewise.
13793         (CFLAGS-test-signgam-ullong-init.c): Likewise.
13794         (CFLAGS-test-signgam-ullong-static.c): Likewise.
13795         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
13796         (CFLAGS-test-math-cxx11.cc): Likewise.
13797         (CFLAGS-test-math-isinff.cc): Likewise.
13798         (CFLAGS-test-math-iszero.cc): Likewise.
13799         (CFLAGS-test-math-issignaling.cc): Likewise.
13800         (CFLAGS-test-math-iscanonical.cc): Likewise.
13801         (CFLAGS-test-iszero-excess-precision.c): Likewise.
13802         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
13803         (CFLAGS-test-flt-eval-method.c): Likewise.
13804         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
13805         (CFLAGS-test-finite-macros.c): Likewise.
13806         * misc/Makefile (CFLAGS-select.c): Likewise.
13807         (CFLAGS-tsearch.c): Likewise.
13808         (CFLAGS-lsearch.c): Likewise.
13809         (CFLAGS-pselect.c): Likewise.
13810         (CFLAGS-readv.c): Likewise.
13811         (CFLAGS-writev.c): Likewise.
13812         (CFLAGS-preadv.c): Likewise.
13813         (CFLAGS-preadv64.c): Likewise.
13814         (CFLAGS-pwritev.c): Likewise.
13815         (CFLAGS-pwritev64.c): Likewise.
13816         (CFLAGS-preadv2.c): Likewise.
13817         (CFLAGS-preadv64v2.c): Likewise.
13818         (CFLAGS-pwritev2.c): Likewise.
13819         (CFLAGS-pwritev64v2.c): Likewise.
13820         (CFLAGS-usleep.c): Likewise.
13821         (CFLAGS-syslog.c): Likewise.
13822         (CFLAGS-error.c): Likewise.
13823         (CFLAGS-getpass.c): Likewise.
13824         (CFLAGS-mkstemp.c): Likewise.
13825         (CFLAGS-mkstemp64.c): Likewise.
13826         (CFLAGS-getsysstats.c): Likewise.
13827         (CFLAGS-getusershell.c): Likewise.
13828         (CFLAGS-err.c): Likewise.
13829         (CFLAGS-tst-tsearch.c): Likewise.
13830         (CFLAGS-msync.c): Likewise.
13831         (CFLAGS-fdatasync.c): Likewise.
13832         (CFLAGS-fsync.c): Likewise.
13833         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
13834         (CFLAGS-unwind.c): Likewise.
13835         (CFLAGS-unwind-forcedunwind.c): Likewise.
13836         (CFLAGS-pthread_cancel.c): Likewise.
13837         (CFLAGS-pthread_setcancelstate.c): Likewise.
13838         (CFLAGS-pthread_setcanceltype.c): Likewise.
13839         (CFLAGS-cancellation.c): Likewise.
13840         (CFLAGS-libc-cancellation.c): Likewise.
13841         (CFLAGS-pthread_exit.c): Likewise.
13842         (CFLAGS-forward.c): Likewise.
13843         (CFLAGS-pthread_testcancel.c): Likewise.
13844         (CFLAGS-pthread_join.c): Likewise.
13845         (CFLAGS-pthread_timedjoin.c): Likewise.
13846         (CFLAGS-pthread_once.c): Likewise.
13847         (CFLAGS-pthread_cond_wait.c): Likewise.
13848         (CFLAGS-sem_wait.c): Likewise.
13849         (CFLAGS-sem_timedwait.c): Likewise.
13850         (CFLAGS-fcntl.c): Likewise.
13851         (CFLAGS-lockf.c): Likewise.
13852         (CFLAGS-pread.c): Likewise.
13853         (CFLAGS-pread64.c): Likewise.
13854         (CFLAGS-pwrite.c): Likewise.
13855         (CFLAGS-pwrite64.c): Likewise.
13856         (CFLAGS-wait.c): Likewise.
13857         (CFLAGS-waitpid.c): Likewise.
13858         (CFLAGS-sigwait.c): Likewise.
13859         (CFLAGS-msgrcv.c): Likewise.
13860         (CFLAGS-msgsnd.c): Likewise.
13861         (CFLAGS-tcdrain.c): Likewise.
13862         (CFLAGS-open.c): Likewise.
13863         (CFLAGS-open64.c): Likewise.
13864         (CFLAGS-pause.c): Likewise.
13865         (CFLAGS-recv.c): Likewise.
13866         (CFLAGS-send.c): Likewise.
13867         (CFLAGS-accept.c): Likewise.
13868         (CFLAGS-sendto.c): Likewise.
13869         (CFLAGS-connect.c): Likewise.
13870         (CFLAGS-recvfrom.c): Likewise.
13871         (CFLAGS-recvmsg.c): Likewise.
13872         (CFLAGS-sendmsg.c): Likewise.
13873         (CFLAGS-close.c): Likewise.
13874         (CFLAGS-read.c): Likewise.
13875         (CFLAGS-write.c): Likewise.
13876         (CFLAGS-nanosleep.c): Likewise.
13877         (CFLAGS-sigsuspend.c): Likewise.
13878         (CFLAGS-msync.c): Likewise.
13879         (CFLAGS-fdatasync.c): Likewise.
13880         (CFLAGS-fsync.c): Likewise.
13881         (CFLAGS-pt-system.c): Likewise.
13882         (CFLAGS-tst-cleanup2.c): Likewise.
13883         (CFLAGS-tst-cleanupx2.c): Likewise.
13884         (CFLAGS-flockfile.c): Likewise.
13885         (CFLAGS-ftrylockfile.c): Likewise.
13886         (CFLAGS-funlockfile.c): Likewise.
13887         (CFLAGS-tst-initializers1.c): Likewise.
13888         (CFLAGS-tst-initializers1-c89.c): Likewise.
13889         (CFLAGS-tst-initializers1-c99.c): Likewise.
13890         (CFLAGS-tst-initializers1-c11.c): Likewise.
13891         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
13892         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
13893         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
13894         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
13895         (CFLAGS-nscd_getgr_r.c): Likewise.
13896         (CFLAGS-nscd_gethst_r.c): Likewise.
13897         (CFLAGS-nscd_getai.c): Likewise.
13898         (CFLAGS-nscd_initgroups.c): Likewise.
13899         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
13900         (CFLAGS-pause.c): Likewise.
13901         (CFLAGS-pread.c): Likewise.
13902         (CFLAGS-pread64.c): Likewise.
13903         (CFLAGS-pwrite.c): Likewise.
13904         (CFLAGS-pwrite64.c): Likewise.
13905         (CFLAGS-sleep.c): Likewise.
13906         (CFLAGS-wait.c): Likewise.
13907         (CFLAGS-waitid.c): Likewise.
13908         (CFLAGS-waitpid.c): Likewise.
13909         (CFLAGS-getopt.c): Likewise.
13910         (CFLAGS-wordexp.c): Likewise.
13911         (CFLAGS-sysconf.c): Likewise.
13912         (CFLAGS-pathconf.c): Likewise.
13913         (CFLAGS-fpathconf.c): Likewise.
13914         (CFLAGS-spawn.c): Likewise.
13915         (CFLAGS-spawnp.c): Likewise.
13916         (CFLAGS-spawni.c): Likewise.
13917         (CFLAGS-glob.c): Likewise.
13918         (CFLAGS-glob64.c): Likewise.
13919         (CFLAGS-getconf.c): Likewise.
13920         (CFLAGS-nanosleep.c): Likewise.
13921         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
13922         (CFLAGS-getpwent.c): Likewise.
13923         (CFLAGS-getpw.c): Likewise.
13924         (CFLAGS-fgetpwent_r.c): Likewise.
13925         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
13926         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
13927         (CFLAGS-mq_timedreceive.c): Likewise.
13928         (CFLAGS-mq_timedsend.c): Likewise.
13929         (CFLAGS-clock_nanosleep.c): Likewise.
13930         (CFLAGS-librt-cancellation.c): Likewise.
13931         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
13932         (CFLAGS-getspent.c): Likewise.
13933         (CFLAGS-fgetspent.c): Likewise.
13934         (CFLAGS-fgetspent_r.c): Likewise.
13935         (CFLAGS-putspent.c): Likewise.
13936         (CFLAGS-getspnam.c): Likewise.
13937         (CFLAGS-getspnam_r.c): Likewise.
13938         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
13939         (CFLAGS-sigsuspend.c): Likewise.
13940         (CFLAGS-sigtimedwait.c): Likewise.
13941         (CFLAGS-sigwait.c): Likewise.
13942         (CFLAGS-sigwaitinfo.c): Likewise.
13943         (CFLAGS-sigreturn.c): Likewise.
13944         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
13945         (CFLAGS-vfwprintf.c): Likewise.
13946         (CFLAGS-tmpfile.c): Likewise.
13947         (CFLAGS-tmpfile64.c): Likewise.
13948         (CFLAGS-tempname.c): Likewise.
13949         (CFLAGS-psignal.c): Likewise.
13950         (CFLAGS-vprintf.c): Likewise.
13951         (CFLAGS-cuserid.c): Likewise.
13952         (CFLAGS-errlist.c): Likewise.
13953         (CFLAGS-siglist.c): Likewise.
13954         (CFLAGS-scanf15.c): Likewise.
13955         (CFLAGS-scanf17.c): Likewise.
13956         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
13957         (CFLAGS-msort.c): Likewise.
13958         (CFLAGS-qsort.c): Likewise.
13959         (CFLAGS-system.c): Likewise.
13960         (CFLAGS-fmtmsg.c): Likewise.
13961         (CFLAGS-strfmon.c): Likewise.
13962         (CFLAGS-strfmon_l.c): Likewise.
13963         (CFLAGS-strfromd.c): Likewise.
13964         (CFLAGS-strfromf.c): Likewise.
13965         (CFLAGS-strfroml.c): Likewise.
13966         (CFLAGS-tst-bsearch.c): Likewise.
13967         (CFLAGS-tst-qsort.c): Likewise.
13968         (CFLAGS-tst-makecontext2.c): Likewise.
13969         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
13970         (CFLAGS-xnlm_prot.c): Likewise.
13971         (CFLAGS-xrstat.c): Likewise.
13972         (CFLAGS-xyppasswd.c): Likewise.
13973         (CFLAGS-xklm_prot.c): Likewise.
13974         (CFLAGS-xrex.c): Likewise.
13975         (CFLAGS-xsm_inter.c): Likewise.
13976         (CFLAGS-xmount.c): Likewise.
13977         (CFLAGS-xrusers.c): Likewise.
13978         (CFLAGS-xspray.c): Likewise.
13979         (CFLAGS-xnfs_prot.c): Likewise.
13980         (CFLAGS-xrquota.c): Likewise.
13981         (CFLAGS-xkey_prot.c): Likewise.
13982         (CFLAGS-auth_unix.c): Likewise.
13983         (CFLAGS-key_call.c): Likewise.
13984         (CFLAGS-pmap_rmt.c): Likewise.
13985         (CFLAGS-clnt_perr.c): Likewise.
13986         (CFLAGS-openchild.c): Likewise.
13987         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
13988         (CFLAGS-msgsnd.c): Likewise.
13989         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
13990         * time/Makefile (CFLAGS-tzfile.c): Likewise.
13991         (CFLAGS-tzset.c): Likewise.
13992         (CFLAGS-getdate.c): Likewise.
13993         (CFLAGS-test_time.c): Likewise.
13994         (CPPFLAGS-tst-tzname.c): Likewise.
13995         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
13996         (CFLAGS-zic.c): Likewise.
13997         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
13998         (CFLAGS-wcswidth.c): Likewise.
13999         (CFLAGS-wcstol.c): Likewise.
14000         (CFLAGS-wcstoul.c): Likewise.
14001         (CFLAGS-wcstoll.c): Likewise.
14002         (CFLAGS-wcstoull.c): Likewise.
14003         (CFLAGS-wcstod.c): Likewise.
14004         (CFLAGS-wcstold.c): Likewise.
14005         (CFLAGS-wcstof128.c): Likewise.
14006         (CFLAGS-wcstof.c): Likewise.
14007         (CFLAGS-wcstol_l.c): Likewise.
14008         (CFLAGS-wcstoul_l.c): Likewise.
14009         (CFLAGS-wcstoll_l.c): Likewise.
14010         (CFLAGS-wcstoull_l.c): Likewise.
14011         (CFLAGS-wcstod_l.c): Likewise.
14012         (CFLAGS-wcstold_l.c): Likewise.
14013         (CFLAGS-wcstof128_l.c): Likewise.
14014         (CFLAGS-wcstof_l.c): Likewise.
14015         (CPPFLAGS-tst-wchar-h.c): Likewise.
14016         (CPPFLAGS-wcstold_l.c): Likewise.
14018 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
14020         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
14022 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14023             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14025         * manual/tunables.texi (Hardware Capability Tunables): Document
14026         glibc.tune.cached_memopt.
14027         * sysdeps/powerpc/cpu-features.c: New file.
14028         * sysdeps/powerpc/cpu-features.h: New file.
14029         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
14030         _dl_powerpc_cpu_features.
14031         * sysdeps/powerpc/dl-tunables.list: New file.
14032         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
14033         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
14034         (INIT_ARCH): Initialize use_aligned_memopt.
14035         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
14036         IS_IN(rtld))]: Restrict dl_platform_init availability and
14037         initialize CPU features used by tunables.
14038         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
14039         Add memcpy-power8-cached.
14040         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
14041         __memcpy_power8_cached.
14042         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
14043         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
14044         New file.
14046 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
14048         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
14049         (CFLAGS-noinl-tester.c): Likewise.
14050         (CFLAGS-tst-strlen.c): Likewise.
14051         (CFLAGS-stratcliff.c): Likewise.
14052         (CFLAGS-test-ffs.c): Likewise.
14053         (CFLAGS-tst-inlcall.c): Likewise.
14054         (CFLAGS-tst-xbzero-opt.c): Likewise.
14055         (CFLAGS-memcpy.c): Likewise.
14056         (CFLAGS-wordcopy.c): Likewise.
14058 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
14060         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14061         Store r15 on stack and add cfi rule.
14062         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14063         Likewise.
14065 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
14067         [BZ #22577]
14068         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
14069         call.
14071 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
14073         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14074         Add s_sinf-sse2 and s_sinf-fma.
14075         (CFLAGS-s_sinf-fma.c): New.
14076         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
14077         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
14078         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
14080 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
14082         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
14084 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
14086         [BZ #22568]
14087         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
14088         part of result to imaginary part of argument if it is zero and the
14089         real part of the argument is not finite.
14090         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
14091         of result to real part of argument if it is zero and the imaginary
14092         part of the argument is not finite.
14094 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
14096         [BZ #22524]
14097         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
14098         and to the list of locales to be built for testing.
14099         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
14100         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
14101         and build the collation rules upon that.
14103 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
14105         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
14106         * manual/math.texi (Mathematics): Document support for _Float32.
14107         * math/Makefile (test-types): Add float32.
14108         * math/Versions (GLIBC_2.27): Add _Float32 functions.
14109         * stdlib/Versions (GLIBC_2.27): Likewise.
14110         * wcsmbs/Versions (GLIBC_2.27): Likewise.
14111         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14112         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14113         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14114         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14115         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14116         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14117         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14118         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14119         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14120         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14121         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14122         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14123         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14124         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14125         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14126         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14127         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14128         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14129         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14130         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14131         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
14132         Likewise.
14133         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14134         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14135         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14136         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14137         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14139         Likewise.
14140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
14141         Likewise.
14142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14143         Likewise.
14144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14145         Likewise.
14147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14148         Likewise.
14149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
14150         Likewise.
14151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14152         Likewise.
14153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
14154         Likewise.
14155         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14156         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14157         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14158         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14159         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14160         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14161         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14162         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14163         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14164         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14165         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
14166         Likewise.
14167         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
14168         Likewise.
14169         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
14170         Likewise.
14171         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
14172         Likewise.
14173         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14174         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14175         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14176         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14177         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14178         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14179         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14180         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14182 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
14184         * stdlib/strtof.c: Include <bits/floatn.h>
14185         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
14186         and later undefine as macro.  Define as weak alias if
14187         [!USE_WIDE_CHAR].
14188         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
14189         and later undefine as macro.  Define as weak alias if
14190         [USE_WIDE_CHAR].
14191         * stdlib/strtof_l.c: Include <bits/floatn.h>
14192         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
14193         and later undefine as macro.  Define as weak alias if
14194         [!USE_WIDE_CHAR].
14195         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
14196         and later undefine as macro.  Define as weak alias if
14197         [USE_WIDE_CHAR].
14199         * stdlib/strfromf.c: Include <bits/floatn.h>.
14200         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
14201         and later undefine as macro and define as weak alias.
14203         * math/test-float32.h: New file.
14205         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
14206         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
14207         (libm_alias_float_other_r): Create f32 alias.
14208         (libm_alias_float_r): Use semicolon before call to
14209         libm_alias_float_other_r.
14211         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
14212         second argument to libm_alias_float_other.
14213         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
14214         second argument to libm_alias_float_other.
14215         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
14216         argument to libm_alias_float_other.
14218         [BZ #22561]
14219         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
14220         real part of result for argument 0 + i * NaN.
14221         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
14222         results for tests of 0 + i * NaN.
14224 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14226         * sysdeps/alpha/fpu/libm-test-ulps: Update.
14228 2017-12-06  David S. Miller  <davem@davemloft.net>
14230         * sysdeps/sparc/fpu/libm-test-ulps: Update
14231         exp_{downward,towardzero,upward} ulps.
14233 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
14235         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
14236         variables static.
14238         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
14239         (Y0_2D): Likewise.
14240         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
14241         (Y0_2D): Likewise.
14242         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
14243         (Y0_2D): Likewise.
14244         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
14245         (Y0_2D): Likewise.
14247 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
14249         [BZ #22515]
14250         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
14251         and to the list of locales to be built for testing.
14252         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
14253         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
14254         and build the collation rules upon that.
14256 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14258         * NEWS: Add sinf to list of optimized functions.
14260 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
14262         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
14263         (__HAVE_FLOAT32X): Likewise.
14264         * manual/math.texi (Mathematics): Document support for _Float64
14265         and _Float32x.
14266         * math/Makefile (test-types): Add float64 and float32x.
14267         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
14268         functions.
14269         * stdlib/Versions (GLIBC_2.27): Likewise.
14270         * wcsmbs/Versions (GLIBC_2.27): Likewise.
14271         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
14272         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14273         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14274         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14275         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14276         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14277         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14278         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14279         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14280         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14281         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14282         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14283         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14284         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14285         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14286         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14287         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14288         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14289         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14290         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14291         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
14292         Likewise.
14293         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14294         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14295         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14296         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14297         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14299         Likewise.
14300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
14301         Likewise.
14302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14303         Likewise.
14304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14305         Likewise.
14306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14307         Likewise.
14308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
14309         Likewise.
14310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
14311         Likewise.
14312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
14313         Likewise.
14314         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14315         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14316         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14317         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14318         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14319         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14320         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14321         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14322         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14323         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14324         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
14325         Likewise.
14326         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
14327         Likewise.
14328         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
14329         Likewise.
14330         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
14331         Likewise.
14332         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14333         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14334         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14335         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14336         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14337         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14338         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
14339         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14341 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
14343         * bits/floatn-common.h: Include <bits/long-double.h>.
14344         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14345         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
14346         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14347         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
14348         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14349         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
14350         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
14351         (__builtin_huge_valf64): Use __builtin_huge_vall.
14352         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
14353         (__builtin_inff64): Use __builtin_infl.
14354         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
14355         (__builtin_nanf64): Use __builtin_nanl.
14356         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
14357         (__builtin_nansf64): Use __builtin_nansl.
14359 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
14360             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
14361             Carlos O'Donnell <carlos@redhat.com>
14363         * elf/dl-tunables.list: Add elision parameters.
14364         * manual/tunables.texi: Add entries about elision tunable.
14365         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
14366         Add callback functions to dynamically enable/disable elision.
14367         Add multiple callbacks functions to set elision parameters.
14368         Deleted __libc_enable_secure check.
14369         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
14370         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
14371         * configure: Regenerated.
14372         * configure.ac: Option enable_lock_elision was deleted.
14373         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
14374         * config.make.in: Remove references to enable_lock_elision.
14375         * manual/install.texi: Elision configure option was removed.
14376         * INSTALL: Regenerated to remove enable_lock_elision.
14377         * nptl/Makefile:
14378         Disable elision so it can verify error case for destroying a mutex.
14379         * sysdeps/powerpc/nptl/elide.h:
14380         Cleanup ENABLE_LOCK_ELISION check.
14381         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
14382         * sysdeps/s390/configure: Regenerated.
14383         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
14384         * nptl/tst-mutex8.c:
14385         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
14386         * sysdeps/powerpc/powerpc32/sysdep.h:
14387         Deleted all ENABLE_LOCK_ELISION checks.
14388         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14389         * sysdeps/powerpc/sysdep.h: Likewise.
14390         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
14391         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
14392         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
14393         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
14394         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
14395         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
14396         enable-lock-elision.
14398 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
14400         * stdlib/strtod.c: Include <bits/floatn.h>.
14401         (BUILD_DOUBLE): New macro.
14402         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
14403         (strtof64): Define and later undefine as macro.  Define as weak
14404         alias if [!USE_WIDE_CHAR].
14405         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
14406         (wcstof64): Define and later undefine as macro.  Define as weak
14407         alias if [USE_WIDE_CHAR].
14408         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
14409         (strtof32x): Define and later undefine as macro.  Define as weak
14410         alias if [!USE_WIDE_CHAR].
14411         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
14412         (wcstof32x): Define and later undefine as macro.  Define as weak
14413         alias if [USE_WIDE_CHAR].
14414         * stdlib/strtod_l.c: Include <bits/floatn.h>.
14415         (BUILD_DOUBLE): New macro.
14416         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
14417         (strtof64_l): Define and later undefine as macro.  Define as weak
14418         alias if [!USE_WIDE_CHAR].
14419         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
14420         (wcstof64_l): Define and later undefine as macro.  Define as weak
14421         alias if [USE_WIDE_CHAR].
14422         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
14423         (strtof32x_l): Define and later undefine as macro.  Define as weak
14424         alias if [!USE_WIDE_CHAR].
14425         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
14426         (wcstof32x_l): Define and later undefine as macro.  Define as weak
14427         alias if [USE_WIDE_CHAR].
14429 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14431         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
14432         (reduced): Use ones as double instead of integer.
14434 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14436         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
14438 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
14440         * stdlib/strfromd.c: Include <bits/floatn.h>.
14441         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
14442         and later undefine as macro and define as weak alias.
14443         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
14444         Likewise.
14446         * math/test-float32x.h: New file.
14447         * math/test-float64.h: Likewise.
14449         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
14450         (libm_alias_double_other_r_f64): New macro.
14451         (libm_alias_double_other_r_f32x): Likewise.
14452         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
14453         libm_alias_double_other_r_f32x.
14454         (libm_alias_double_r): Use semicolon before call to
14455         libm_alias_double_other_r.
14456         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
14457         <bits/floatn.h>.
14458         (libm_alias_double_other_r_f64): New macro.
14459         (libm_alias_double_other_r_f32x): Likewise.
14460         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
14461         libm_alias_double_other_r_f32x.
14463 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
14465         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
14466         int.
14467         (SINF_FUNC): Likewise.  Replace floor with simple casts.
14469 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
14471         [BZ #22517]
14472         * localedata/Makefile: Add et_EE.UTF-8 to test-input
14473         and to the list of locales to be built for testing.
14474         * localedata/et_EE.UTF-8.in: New file for testing the collation.
14475         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
14476         and build the collation rules upon that.
14478 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
14480         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
14481         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
14482         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
14483         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
14484         instead of __insn__xxx.
14485         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
14486         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
14487         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
14488         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
14489         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
14490         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
14492 2017-12-05  Florian Weimer  <fweimer@redhat.com>
14494         Linux: Implement interfaces for memory protection keys
14495         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
14496         xsignal, xsysconf.
14497         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
14498         * support/xunistd.h (xsysconf): Declare.
14499         * support/xraise.c: New file.
14500         * support/xsigaction.c: Likewise.
14501         * support/xsignal.c: Likewise.
14502         * support/xsysconf.c: Likewise.
14503         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
14504         pkey_set, pkey_get, pkey_mprotect.
14505         [misc] (tests): Add tst-pkey.
14506         (tst-pkey): Link with -lpthread.
14507         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
14508         pkey_free, pkey_set, pkey_get, pkey_mprotect.
14509         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
14510         (PKEY_DISABLE_WRITE): Define.
14511         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
14512         Declare.
14513         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
14514         (SEGV_PKUERR): Add.
14515         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
14516         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
14517         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
14518         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
14519         Add.
14520         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
14521         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
14522         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
14523         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
14524         * sysdeps/unix/sysv/linux/**.abilist: Update.
14526 2017-12-05  Florian Weimer  <fweimer@redhat.com>
14528         * support/tst-test_compare.c (subprocess): Use long long instead
14529         of long argument for consistent type width across 32-bit and
14530         64-bit architectures.
14531         (do_test): Adjust expected output.
14533 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
14535         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
14536         (cosf): Define using libm_alias_float.
14537         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
14538         (fabsf): Define using libm_alias_float.
14539         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
14540         (fmaf): Define using libm_alias_float.
14541         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
14542         (rintf): Define using libm_alias_float.
14543         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
14544         (sinf): Define using libm_alias_float.
14545         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
14546         <libm-alias-float.h>.
14547         (modff): Define using libm_alias_float.
14548         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
14549         <libm-alias-float.h>.
14550         (logbf): Define using libm_alias_float.
14551         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
14552         <libm-alias-float.h>.
14553         (ceilf): Define using libm_alias_float.
14554         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
14555         <libm-alias-float.h>.
14556         (copysignf): Define using libm_alias_float.
14557         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
14558         <libm-alias-float.h>.
14559         (floorf): Define using libm_alias_float.
14560         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
14561         <libm-alias-float.h>.
14562         (llrintf): Define using libm_alias_float.
14563         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
14564         <libm-alias-float.h>.
14565         (llroundf): Define using libm_alias_float.
14566         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
14567         <libm-alias-float.h>.
14568         (lrintf): Define using libm_alias_float.
14569         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
14570         <libm-alias-float.h>.
14571         (lroundf): Define using libm_alias_float.
14572         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
14573         <libm-alias-float.h>.
14574         (nearbyintf): Define using libm_alias_float.
14575         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
14576         <libm-alias-float.h>.
14577         (rintf): Define using libm_alias_float.
14578         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
14579         <libm-alias-float.h>.
14580         (roundf): Define using libm_alias_float.
14581         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
14582         <libm-alias-float.h>.
14583         (truncf): Define using libm_alias_float.
14584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
14585         Include <libm-alias-float.h>.
14586         (ceilf): Define using libm_alias_float.
14587         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
14588         Include <libm-alias-float.h>.
14589         (copysignf): Define using libm_alias_float.
14590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
14591         Include <libm-alias-float.h>.
14592         (floorf): Define using libm_alias_float.
14593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
14594         Include <libm-alias-float.h>.
14595         (llrintf): Define using libm_alias_float.
14596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
14597         Include <libm-alias-float.h>.
14598         (llroundf): Define using libm_alias_float.
14599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
14600         Include <libm-alias-float.h>.
14601         (logbf): Define using libm_alias_float.
14602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
14603         Include <libm-alias-float.h>.
14604         (lrintf): Define using libm_alias_float.
14605         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
14606         Include <libm-alias-float.h>.
14607         (lroundf): Define using libm_alias_float.
14608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
14609         Include <libm-alias-float.h>.
14610         (modff): Define using libm_alias_float.
14611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
14612         Include <libm-alias-float.h>.
14613         (roundf): Define using libm_alias_float.
14614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
14615         Include <libm-alias-float.h>.
14616         (truncf): Define using libm_alias_float.
14617         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
14618         <libm-alias-float.h>.
14619         (llrintf): Define using libm_alias_float.
14620         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
14621         <libm-alias-float.h>.
14622         (llroundf): Define using libm_alias_float.
14623         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
14624         <libm-alias-float.h>.
14625         (ceilf): Define using libm_alias_float.
14626         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
14627         <libm-alias-float.h>.
14628         (floorf): Define using libm_alias_float.
14629         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
14630         <libm-alias-float.h>.
14631         (llroundf): Define using libm_alias_float.
14632         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
14633         <libm-alias-float.h>.
14634         (lroundf): Define using libm_alias_float.
14635         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
14636         <libm-alias-float.h>.
14637         (roundf): Define using libm_alias_float.
14638         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
14639         <libm-alias-float.h>.
14640         (truncf): Define using libm_alias_float.
14641         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
14642         <libm-alias-float.h>.
14643         (copysignf): Define using libm_alias_float.
14644         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
14645         <libm-alias-float.h>.
14646         (llrintf): Define using libm_alias_float.
14647         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
14648         <libm-alias-float.h>.
14649         (llroundf): Define using libm_alias_float.
14650         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
14651         <libm-alias-float.h>.
14652         (lrintf): Define using libm_alias_float.
14653         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
14654         <libm-alias-float.h>.
14655         (lroundf): Define using libm_alias_float.
14656         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
14657         <libm-alias-float.h>.
14658         (ceilf): Define using libm_alias_float.
14659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
14660         <libm-alias-float.h>.
14661         (copysignf): Define using libm_alias_float.
14662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
14663         <libm-alias-float.h>.
14664         (cosf): Define using libm_alias_float.
14665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
14666         <libm-alias-float.h>.
14667         (floorf): Define using libm_alias_float.
14668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
14669         <libm-alias-float.h>.
14670         (llrintf): Define using libm_alias_float.
14671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
14672         <libm-alias-float.h>.
14673         (llroundf): Define using libm_alias_float.
14674         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
14675         <libm-alias-float.h>.
14676         (logbf): Define using libm_alias_float.
14677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
14678         <libm-alias-float.h>.
14679         (modff): Define using libm_alias_float.
14680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
14681         <libm-alias-float.h>.
14682         (roundf): Define using libm_alias_float.
14683         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
14684         <libm-alias-float.h>.
14685         (sinf): Define using libm_alias_float.
14686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
14687         <libm-alias-float.h>.
14688         (truncf): Define using libm_alias_float.
14689         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
14690         <libm-alias-float.h>.
14691         (ceilf): Define using libm_alias_float.
14692         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
14693         <libm-alias-float.h>.
14694         (copysignf): Define using libm_alias_float.
14695         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
14696         <libm-alias-float.h>.
14697         (floorf): Define using libm_alias_float.
14698         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
14699         <libm-alias-float.h>.
14700         (llrintf): Define using libm_alias_float.
14701         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
14702         <libm-alias-float.h>.
14703         (llroundf): Define using libm_alias_float.
14704         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
14705         <libm-alias-float.h>.
14706         (nearbyintf): Define using libm_alias_float.
14707         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
14708         <libm-alias-float.h>.
14709         (rintf): Define using libm_alias_float.
14710         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
14711         <libm-alias-float.h>.
14712         (roundf): Define using libm_alias_float.
14713         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
14714         <libm-alias-float.h>.
14715         (truncf): Define using libm_alias_float.
14716         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
14717         <libm-alias-float.h>.
14718         (ceilf): Define using libm_alias_float.
14719         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
14720         <libm-alias-float.h>.
14721         (floorf): Define using libm_alias_float.
14722         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
14723         <libm-alias-float.h>.
14724         (llroundf): Define using libm_alias_float.
14725         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
14726         <libm-alias-float.h>.
14727         (roundf): Define using libm_alias_float.
14728         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
14729         <libm-alias-float.h>.
14730         (truncf): Define using libm_alias_float.
14731         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
14732         <libm-alias-float.h>.
14733         (copysignf): Define using libm_alias_float.
14734         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
14735         <libm-alias-float.h>.
14736         (llrintf): Define using libm_alias_float.
14737         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
14738         <libm-alias-float.h>.
14739         (llroundf): Define using libm_alias_float.
14740         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
14741         <libm-alias-float.h>.
14742         (cosf): Define using libm_alias_float.
14743         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
14744         <libm-alias-float.h>.
14745         (llrintf): Define using libm_alias_float.
14746         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
14747         <libm-alias-float.h>.
14748         (llroundf): Define using libm_alias_float.
14749         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
14750         <libm-alias-float.h>.
14751         (sinf): Define using libm_alias_float.
14753 2017-12-04  Florian Weimer  <fweimer@redhat.com>
14755         * support/check.h (TEST_COMPARE): Define.
14756         (support_test_compare_failure): Declare.
14757         * support/Makefile (libsupport-routines): Add
14758         support_test_compare_failure.
14759         (tests): Add tst-test_compare.
14760         * support /support_test_compare_failure.c: New file.
14761         * support/tst-test_compare.c: Likewise.
14763 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
14765         [BZ #22527]
14766         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
14767         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
14768         available, this rewrite of the collation rules does reproduce
14769         the test file in the same order.
14771 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
14773         [BZ #10580]
14774         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
14775         digraphs in the month and day names. Using single code points for
14776         digraphs is deprecated.  While there are dedicated Unicode
14777         codepoints, for the digraphs, these are included for backwards
14778         compatibility and modern texts use a sequence of Basic Latin
14779         characters. See: https://www.unicode.org/faq/ligature_digraph.html
14780         This makes the month and day names agree exactly with CLDR now,
14781         CLDR does not use the single code points for the digraphs either.
14783 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
14785         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
14787 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
14789         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
14790         of floor.
14792 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14794         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
14795         Define only for libc.so.
14797 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
14799         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
14800         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
14801          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
14802         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
14803         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14805 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14807         [BZ #5997]
14808         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
14810 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
14812         [BZ libc/19170]
14813         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
14814         PREINIT_FUNCTION_WEAK is nonzero.
14815         (gmon_initializer): New function.  Put procedure label for it in
14816         .init_array section.
14817         (_init): Don't call PREINIT_FUNCTION.
14818         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
14819         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
14820         value when map argument is null.
14822         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
14823         depi instruction from PIC pc-relative sequence.
14824         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
14825         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
14826         (elf_machine_load_address): Likewise.
14827         (elf_machine_runtime_setup): Likewise.
14829 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
14831         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
14832         <libm-alias-double.h>.
14833         (logb): Define using libm_alias_double.
14834         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
14835         <libm-alias-double.h>.
14836         (copysign): Define using libm_alias_double.
14837         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
14838         <libm-alias-double.h>.
14839         (llrint): Define using libm_alias_double.
14840         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
14841         <libm-alias-double.h>.
14842         (llround): Define using libm_alias_double.
14843         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
14844         <libm-alias-double.h>.
14845         (lrint): Define using libm_alias_double.
14846         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
14847         <libm-alias-double.h>.
14848         (lround): Define using libm_alias_double.
14849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
14850         Include <libm-alias-double.h>.
14851         (copysign): Define using libm_alias_double.
14852         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
14853         Include <libm-alias-double.h>.
14854         (llrint): Define using libm_alias_double.
14855         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
14856         Include <libm-alias-double.h>.
14857         (llround): Define using libm_alias_double.
14858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
14859         <libm-alias-double.h>.
14860         (logb): Define using libm_alias_double.
14861         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
14862         Include <libm-alias-double.h>.
14863         (lrint): Define using libm_alias_double.
14864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
14865         Include <libm-alias-double.h>.
14866         (lround): Define using libm_alias_double.
14867         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
14868         <libm-alias-double.h>.
14869         (llrint): Define using libm_alias_double.
14870         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
14871         <libm-alias-double.h>.
14872         (llround): Define using libm_alias_double.
14873         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
14874         <libm-alias-double.h>.
14875         (llround): Define using libm_alias_double.
14876         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
14877         <libm-alias-double.h>.
14878         (lround): Define using libm_alias_double.
14879         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
14880         <libm-alias-double.h>.
14881         (copysign): Define using libm_alias_double.
14882         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
14883         <libm-alias-double.h>.
14884         (llrint): Define using libm_alias_double.
14885         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
14886         <libm-alias-double.h>.
14887         (llround): Define using libm_alias_double.
14888         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
14889         <libm-alias-double.h>.
14890         (lrint): Define using libm_alias_double.
14891         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
14892         <libm-alias-double.h>.
14893         (lround): Define using libm_alias_double.
14894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
14895         <libm-alias-double.h>.
14896         (copysign): Define using libm_alias_double.
14897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
14898         <libm-alias-double.h>.
14899         (llrint): Define using libm_alias_double.
14900         (lrint): Likewise.
14901         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
14902         <libm-alias-double.h>.
14903         (llround): Define using libm_alias_double.
14904         (lround): Likewise.
14905         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
14906         <libm-alias-double.h>.
14907         (logb): Define using libm_alias_double.
14908         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
14909         <libm-alias-double.h>.
14910         (copysign): Define using libm_alias_double.
14911         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
14912         <libm-alias-double.h>.
14913         (llrint): Define using libm_alias_double.
14914         (lrint): Likewise.
14915         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
14916         <libm-alias-double.h>.
14917         (llround): Define using libm_alias_double.
14918         (lround): Likewise.
14919         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
14920         <libm-alias-double.h>.
14921         (llround): Define using libm_alias_double.
14922         (lround): Likewise.
14923         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
14924         <libm-alias-double.h>.
14925         (copysign): Define using libm_alias_double.
14926         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
14927         <libm-alias-double.h>.
14928         (llrint): Define using libm_alias_double.
14929         (lrint): Likewise.
14930         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
14931         <libm-alias-double.h>.
14932         (llround): Define using libm_alias_double.
14933         (lround): Likewise.
14934         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
14935         <libm-alias-double.h>.
14936         (llrint): Define using libm_alias_double.
14937         (lrint): Likewise.
14938         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
14939         <libm-alias-double.h>.
14940         (llround): Define using libm_alias_double.
14941         (lround): Likewise.
14943 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
14945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
14946         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
14947         compat symbol based on llround.
14949         * sysdeps/powerpc/power7/fpu/s_logb.c
14950         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
14951         symbol based on __logb, not on logb.
14952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
14953         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
14954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
14955         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
14957         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
14958         (rint): Define using libm_alias_double.
14959         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
14960         <libm-alias-double.h>.
14961         (modf): Define using libm_alias_double.
14962         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
14963         <libm-alias-double.h>.
14964         (ceil): Define using libm_alias_double.
14965         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
14966         <libm-alias-double.h>.
14967         (floor): Define using libm_alias_double.
14968         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
14969         <libm-alias-double.h>.
14970         (nearbyint): Define using libm_alias_double.
14971         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
14972         <libm-alias-double.h>.
14973         (rint): Define using libm_alias_double.
14974         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
14975         <libm-alias-double.h>.
14976         (round): Define using libm_alias_double.
14977         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
14978         <libm-alias-double.h>.
14979         (trunc): Define using libm_alias_double.
14980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
14981         <libm-alias-double.h>.
14982         (ceil): Define using libm_alias_double.
14983         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
14984         Include <libm-alias-double.h>.
14985         (floor): Define using libm_alias_double.
14986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
14987         <libm-alias-double.h>.
14988         (modf): Define using libm_alias_double.
14989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
14990         Include <libm-alias-double.h>.
14991         (round): Define using libm_alias_double.
14992         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
14993         Include <libm-alias-double.h>.
14994         (trunc): Define using libm_alias_double.
14995         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
14996         <libm-alias-double.h>.
14997         (ceil): Define using libm_alias_double.
14998         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
14999         <libm-alias-double.h>.
15000         (floor): Define using libm_alias_double.
15001         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
15002         <libm-alias-double.h>.
15003         (round): Define using libm_alias_double.
15004         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
15005         <libm-alias-double.h>.
15006         (trunc): Define using libm_alias_double.
15007         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
15008         <libm-alias-double.h>.
15009         (ceil): Define using libm_alias_double.
15010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
15011         <libm-alias-double.h>.
15012         (floor): Define using libm_alias_double.
15013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
15014         <libm-alias-double.h>.
15015         (modf): Define using libm_alias_double.
15016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
15017         <libm-alias-double.h>.
15018         (round): Define using libm_alias_double.
15019         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
15020         <libm-alias-double.h>.
15021         (trunc): Define using libm_alias_double.
15022         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
15023         <libm-alias-double.h>.
15024         (ceil): Define using libm_alias_double.
15025         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
15026         <libm-alias-double.h>.
15027         (floor): Define using libm_alias_double.
15028         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
15029         <libm-alias-double.h>.
15030         (nearbyint): Define using libm_alias_double.
15031         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
15032         <libm-alias-double.h>.
15033         (rint): Define using libm_alias_double.
15034         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
15035         <libm-alias-double.h>.
15036         (round): Define using libm_alias_double.
15037         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
15038         <libm-alias-double.h>.
15039         (trunc): Define using libm_alias_double.
15040         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
15041         <libm-alias-double.h>.
15042         (ceil): Define using libm_alias_double.
15043         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
15044         <libm-alias-double.h>.
15045         (floor): Define using libm_alias_double.
15046         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
15047         <libm-alias-double.h>.
15048         (round): Define using libm_alias_double.
15049         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
15050         <libm-alias-double.h>.
15051         (trunc): Define using libm_alias_double.
15053         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
15054         (fabs): Define using libm_alias_double.
15055         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
15056         (fma): Define using libm_alias_double.
15057         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
15058         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
15059         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
15060         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
15062 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15064         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
15066         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
15067         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
15068         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
15070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
15071         due redirect macro.
15073 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
15075         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
15077 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15079         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
15080         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
15081         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
15082         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
15084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15085         (libm-sysdep_routines): Add s_nearbyintf-generic and
15086         s_nearbyint-generic.
15087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
15088         New file.
15089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
15090         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
15091         Likewise.
15092         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
15093         Likewise.
15094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
15095         file.
15096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
15097         Likewise.
15099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15100         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
15101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
15102         file.
15103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
15104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
15105         Likewise.
15106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
15107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
15108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
15110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15111         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
15112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
15113         file.
15114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
15115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
15116         Likewise.
15117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
15118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
15119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
15121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15122         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
15123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
15124         file.
15125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
15126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
15127         Likewise.
15128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
15129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
15130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
15132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15133         (sysdep_calls): New rule.
15134         (sysdep_routines): Use sysdep_calls as base.
15135         (libm-sysdep_routines): Add generic rule for symbols shared with
15136         libc.  Add s_copysign-generic and s_copysign-generic objects.
15137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
15138         New file.
15139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
15140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
15141         Likewise.
15142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
15143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
15144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
15146 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
15148         [BZ #22519]
15149         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
15150         the list of locales to be built for testing.
15151         * localedata/is_IS.UTF-8.in: New file.
15152         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
15153         on iso14651_t1.
15155 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
15157         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
15158         <libm-alias-float.h>.
15159         (fabsf): Define using libm_alias_float.
15161 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
15163         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
15165 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
15167         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
15168         <libm-alias-float.h>.
15169         (fabsf): Define using libm_alias_float.
15170         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
15171         <libm-alias-float.h>.
15172         (lrintf): Define using libm_alias_float.
15173         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
15174         <libm-alias-float.h>.
15175         (rintf): Define using libm_alias_float.
15177         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
15178         <libm-alias-double.h>.
15179         (fabs): Define using libm_alias_double.
15180         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
15181         <libm-alias-double.h>.
15182         (lrint): Define using libm_alias_double.
15183         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
15184         <libm-alias-double.h>.
15185         (rint): Define using libm_alias_double.
15187         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
15188         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
15189         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
15190         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
15191         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
15192         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
15193         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
15194         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
15195         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
15196         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
15197         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
15198         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
15199         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
15200         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
15201         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
15202         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
15203         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
15204         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
15205         s_atan_template.c.
15206         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
15207         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
15208         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
15209         s_ceil_template.c.
15210         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
15211         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
15212         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
15213         s_cos_template.c.
15214         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
15215         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
15216         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
15217         s_expm1_template.c.
15218         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
15219         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
15220         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
15221         s_fabs_template.c.
15222         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
15223         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
15224         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
15225         s_floor_template.c.
15226         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
15227         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
15228         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
15229         s_frexp_template.c.
15230         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
15231         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
15232         s_lrint_template.c.
15233         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
15234         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
15235         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
15236         s_modf_template.c.
15237         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
15238         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
15239         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
15240         s_nearbyint_template.c.
15241         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
15242         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
15243         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
15244         s_remquo_template.c.
15245         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
15246         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
15247         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
15248         s_rint_template.c.
15249         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
15250         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
15251         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
15252         s_sin_template.c.
15253         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
15254         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
15255         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
15256         s_sincos_template.c.
15257         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
15258         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
15259         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
15260         s_tan_template.c.
15261         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
15262         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
15263         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
15264         s_tanh_template.c.
15265         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
15266         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
15267         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
15268         s_trunc_template.c.
15269         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
15270         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
15271         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
15272         s_atan.c instead of including s_atan.c.
15273         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
15274         s_atanf.c instead of including s_atanf.c.
15275         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
15276         s_atanl.c instead of including s_atanl.c.
15277         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
15278         instead of s_atan.c.
15279         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
15280         instead of s_atanf.c.
15281         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
15282         instead of s_atanl.c.
15284         * scripts/update-copyrights: Do not handle intl/plural.c
15285         specially.
15287 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
15289         [BZ #22432]
15290         * configure.ac (BISON): Require to be present.
15291         * configure: Regenerated.
15292         * intl/Makefile (generated): Add plural.c.
15293         [$(BISON) != no]: Make code unconditional.
15294         (plural.c): Change rule to $(objpfx)plural.c.
15295         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
15296         * intl/plural.c: Remove.
15297         * manual/install.texi (Tools for Compilation): Document bison as
15298         required.
15299         * INSTALL: Regenerated.
15301 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
15303         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
15304         <libm-alias-double.h>.
15305         (llrint): Define using libm_alias_double.
15306         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
15307         <libm-alias-float.h>.
15308         (llrintf): Define using libm_alias_float.
15309         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
15310         <libm-alias-ldouble.h>.
15311         (llrintl): Define using libm_alias_ldouble.
15313         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
15314         declare_mgen_alias instead of weak_alias.
15315         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
15316         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
15317         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
15319 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15321         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
15322         Add add_n-generic.
15323         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
15324         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
15325         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
15327         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
15328         Add submul_1-generic.
15329         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
15330         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
15331         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
15333         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
15334         Add addmul_1-generic.
15335         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
15336         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
15337         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
15339         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
15340         Add sub_n-generic.
15341         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
15342         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
15343         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
15345         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
15346         Add mul_1-generic.
15347         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
15348         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
15349         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
15351 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
15353         According to CLDR, collation rules for Serbian and Bosnian
15354         should be the same as for Croatian.
15356         [BZ #22534]
15357         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
15358         and to the list of locales to be built for testing.
15359         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
15360         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
15361         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
15362         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
15364 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
15366         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
15367         to make test case pass.
15368         * localedata/hr_HR.UTF-8.in: Add more test strings.
15370 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
15372         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
15374 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
15376         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
15377         the list of locales to built for testing.
15378         * localedata/hr_HR.UTF-8.in: New file.
15380 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
15382         [BZ #10580]
15383         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
15384         iso14651_t1.
15385         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
15386         CLDR (except use ligatures for the digraphs, CLDR does not use
15387         the ligatures), add first_workday, some fixes in the date and time
15388         formats.
15389         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
15390         for Đ and đ.
15391         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
15392         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
15393         Add int_p_cs_precedes and int_n_cs_precedes.
15394         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
15395         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
15396         LC_MONETARY now).
15397         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
15398         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
15399         name_miss.
15400         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
15401         and lang_lib. Change postal_fmt.
15403 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
15405         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
15406         <setjmp.h>.
15407         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
15408         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
15409         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
15410         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
15411         * sysdeps/generic/setjmpP.h: New file.
15412         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
15413         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
15414         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
15415         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15416         Add jmp_buf-ssp.sym.
15417         (tests): Add tst-saved_mask-1.
15419 2017-11-30  Arjun Shankar  <arjun@redhat.com>
15421         [BZ #22375]
15422         CVE-2017-17426
15423         * malloc/malloc.c (__libc_malloc): Use checked_request2size
15424         instead of request2size.
15426 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
15428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
15429         (__lllrint): Remove alias.
15430         (lllrint): Likewise.
15431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
15432         (__lllrintf): Likewise.
15433         (lllrintf): Likewise.
15435         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
15436         <libm-alias-float.h>.
15437         (copysignf): Define using libm_alias_float.
15438         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
15439         <libm-alias-float.h>.
15440         (fabsf): Define using libm_alias_float.
15441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
15442         Include <libm-alias-float.h>.
15443         (copysignf): Define using libm_alias_float.
15444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
15445         <libm-alias-float.h>.
15446         (fabsf): Define using libm_alias_float.
15447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
15448         <libm-alias-float.h>.
15449         (fdimf): Define using libm_alias_float.
15450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
15451         <libm-alias-float.h>.
15452         (fmaf): Define using libm_alias_float.
15453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
15454         <libm-alias-float.h>.
15455         (llrintf): Define using libm_alias_float.
15456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
15457         Include <libm-alias-float.h>.
15458         (nearbyintf): Define using libm_alias_float.
15459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
15460         <libm-alias-float.h>.
15461         (rintf): Define using libm_alias_float.
15462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
15463         <libm-alias-float.h>.
15464         (llrintf): Define using libm_alias_float.
15465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
15466         <libm-alias-float.h>.
15467         (lrintf): Define using libm_alias_float.
15468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
15469         <libm-alias-float.h>.
15470         (nearbyintf): Define using libm_alias_float.
15471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
15472         <libm-alias-float.h>.
15473         (rintf): Define using libm_alias_float.
15474         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
15475         <libm-alias-float.h>.
15476         (ceilf): Define using libm_alias_float.
15477         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
15478         <libm-alias-float.h>.
15479         (floorf): Define using libm_alias_float.
15480         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
15481         <libm-alias-float.h>.
15482         (fmaf): Define using libm_alias_float.
15483         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
15484         <libm-alias-float.h>.
15485         (lrintf): Define using libm_alias_float.
15486         (llrintf): Likewise.
15487         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
15488         <libm-alias-float.h>.
15489         (nearbyintf): Define using libm_alias_float.
15490         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
15491         <libm-alias-float.h>.
15492         (rintf): Define using libm_alias_float.
15493         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
15494         <libm-alias-float.h>.
15495         (truncf): Define using libm_alias_float.
15496         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
15497         <libm-alias-float.h>.
15498         (copysignf): Define using libm_alias_float.
15499         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
15500         <libm-alias-float.h>.
15501         (fabsf): Define using libm_alias_float.
15502         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
15503         <libm-alias-float.h>.
15504         (lrintf): Define using libm_alias_float.
15505         (llrintf): Likewise.
15506         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
15507         <libm-alias-float.h>.
15508         (nearbyintf): Define using libm_alias_float.
15509         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
15510         <libm-alias-float.h>.
15511         (rintf): Define using libm_alias_float.
15513 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
15515         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
15516         <libm-alias-double.h>.
15517         (copysign): Define using libm_alias_double.
15518         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
15519         <libm-alias-double.h>.
15520         (fabs): Define using libm_alias_double.
15521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
15522         Include <libm-alias-double.h>.
15523         (copysign): Define using libm_alias_double.
15524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
15525         <libm-alias-double.h>.
15526         (fabs): Define using libm_alias_double.
15527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
15528         <libm-alias-double.h>.
15529         (fdim): Define using libm_alias_double.
15530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
15531         <libm-alias-double.h>.
15532         (fma): Define using libm_alias_double.
15533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
15534         <libm-alias-double.h>.
15535         (llrint): Define using libm_alias_double.
15536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
15537         Include <libm-alias-double.h>.
15538         (nearbyint): Define using libm_alias_double.
15539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
15540         <libm-alias-double.h>.
15541         (rint): Define using libm_alias_double.
15542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
15543         <libm-alias-double.h>.
15544         (fabs): Define using libm_alias_double.
15545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
15546         <libm-alias-double.h>.
15547         (llrint): Define using libm_alias_double.
15548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
15549         <libm-alias-double.h>.
15550         (nearbyint): Define using libm_alias_double.
15551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
15552         <libm-alias-double.h>.
15553         (rint): Define using libm_alias_double.
15554         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
15555         <libm-alias-double.h>.
15556         (ceil): Define using libm_alias_double.
15557         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
15558         <libm-alias-double.h>.
15559         (floor): Define using libm_alias_double.
15560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
15561         <libm-alias-double.h>.
15562         (fma): Define using libm_alias_double.
15563         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
15564         <libm-alias-double.h>.
15565         (lrint): Define using libm_alias_double.
15566         (llrint): Likewise.
15567         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
15568         <libm-alias-double.h>.
15569         (nearbyint): Define using libm_alias_double.
15570         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
15571         <libm-alias-double.h>.
15572         (rint): Define using libm_alias_double.
15573         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
15574         <libm-alias-double.h>.
15575         (trunc): Define using libm_alias_double.
15576         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
15577         <libm-alias-double.h>.
15578         (copysign): Define using libm_alias_double.
15579         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
15580         <libm-alias-double.h>.
15581         (fabs): Define using libm_alias_double.
15582         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
15583         <libm-alias-double.h>.
15584         (lrint): Define using libm_alias_double.
15585         (llrint): Likewise.
15586         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
15587         <libm-alias-double.h>.
15588         (nearbyint): Define using libm_alias_double.
15589         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
15590         <libm-alias-double.h>.
15591         (rint): Define using libm_alias_double.
15593         [BZ #22229]
15594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
15595         <math_ldbl_opt.h>.
15596         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
15598         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
15599         SPARC --disable-multi-arch glibc variants.
15601         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
15602         <libm-alias-float.h>.
15603         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15604         if [SHARED].
15605         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
15606         <libm-alias-float.h>.
15607         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15608         if [SHARED].
15609         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
15610         <libm-alias-float.h>.
15611         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15612         if [SHARED].
15613         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
15614         <libm-alias-float.h>.
15615         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15616         if [SHARED].
15617         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
15618         <libm-alias-float.h>.
15619         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15620         if [SHARED].
15621         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
15622         <libm-alias-float.h>.
15623         (ceilf): Define using libm_alias_float.
15624         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
15625         <libm-alias-float.h>.
15626         (floorf): Define using libm_alias_float.
15627         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
15628         <libm-alias-float.h>.
15629         (fmaf): Define using libm_alias_float.
15630         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
15631         <libm-alias-float.h>.
15632         (nearbyintf): Define using libm_alias_float.
15633         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
15634         <libm-alias-float.h>.
15635         (rintf): Define using libm_alias_float.
15636         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
15637         <libm-alias-float.h>.
15638         (truncf): Define using libm_alias_float.
15639         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
15640         (copysignf): Define using libm_alias_float.
15641         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
15642         (cosf): Define using libm_alias_float.
15643         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
15644         (fabsf): Define using libm_alias_float.
15645         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
15646         (fmaxf): Define using libm_alias_float.
15647         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
15648         (fminf): Define using libm_alias_float.
15649         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
15650         (llrintf): Define using libm_alias_float.
15651         [!__ILP32__] (lrintf): Likewise.
15652         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
15653         (sincosf): Define using libm_alias_float.
15654         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
15655         (sinf): Define using libm_alias_float.
15656         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
15657         (lrintf): Define using libm_alias_float.
15659         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
15660         <libm-alias-double.h>.
15661         (atan): Define using libm_alias_double.
15662         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
15663         <libm-alias-double.h>.
15664         (ceil): Define using libm_alias_double.
15665         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
15666         <libm-alias-double.h>.
15667         (floor): Define using libm_alias_double.
15668         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
15669         <libm-alias-double.h>.
15670         (fma): Define using libm_alias_double.
15671         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
15672         <libm-alias-double.h>.
15673         (nearbyint): Define using libm_alias_double.
15674         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
15675         <libm-alias-double.h>.
15676         (rint): Define using libm_alias_double.
15677         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
15678         <libm-alias-double.h>.
15679         (sin): Define using libm_alias_double.
15680         (cos): Likewise.
15681         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
15682         <libm-alias-double.h>.
15683         (tan): Define using libm_alias_double.
15684         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
15685         <libm-alias-double.h>.
15686         (trunc): Define using libm_alias_double.
15687         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
15688         (copysign): Define using libm_alias_double.
15689         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
15690         (fabs): Define using libm_alias_double.
15691         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
15692         (fmax): Define using libm_alias_double.
15693         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
15694         (fmin): Define using libm_alias_double.
15695         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
15696         (llrint): Define using libm_alias_double.
15697         [!__ILP32__] (lrint): Likewise.
15698         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
15699         (lrint): Define using libm_alias_double.
15701 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15703         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
15704         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
15705         objects.
15706         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
15707         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
15708         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
15709         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
15710         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
15711         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
15713         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
15714         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
15715         objects.
15716         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
15717         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
15718         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
15719         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
15720         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
15721         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
15723         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
15724         (libm-sysdep_routines): Add s_nearbyint-generic and
15725         s_nearbyintf-generic objects.
15726         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
15727         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
15728         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
15729         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
15730         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
15731         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
15733         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
15734         Add s_finitef-generic and s_finite-generic objects.
15735         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
15736         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
15737         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
15738         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
15739         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
15740         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
15742         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
15743         Add s_isinff-generic and s_isinf-generic objects.
15744         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
15745         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
15746         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
15747         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
15748         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
15749         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
15751         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
15752         Add s_isnanf-generic and s_isnan-generic objects.
15753         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
15754         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
15755         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
15756         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
15757         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
15758         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
15760         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
15761         macro.
15762         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
15763         rule.
15764         (sysdep_routines): Use sysdep_calls as base.
15765         (libm-sysdep_routines): Add generic rule for symbols shared with
15766         libc.  Add s_signbit-generic and s_signbitf-generic objects.
15767         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
15768         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
15769         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
15770         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
15771         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
15772         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
15774 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
15776         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
15777         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
15778         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
15779         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
15780         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
15781         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
15782         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
15783         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
15784         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
15785         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
15786         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
15787         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
15788         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
15789         libm_alias_float_r.
15790         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
15791         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
15792         (logf): Likewise.
15793         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
15794         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
15795         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
15796         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
15797         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
15798         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
15799         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
15800         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
15801         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
15802         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
15803         libm_alias_float.
15804         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
15805         (cosf): Likewise.
15806         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
15807         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
15808         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
15809         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
15810         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
15811         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
15812         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
15813         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
15814         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
15815         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
15816         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
15817         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
15818         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
15819         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
15820         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
15821         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
15822         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
15823         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
15824         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
15825         libm_alias_float.
15826         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
15827         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
15828         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
15829         * sysdeps/ia64/fpu/w_lgammaf_main.c
15830         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
15831         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
15833 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
15834             Alexandre Oliva  <aoliva@redhat.com>
15836         [BZ #17750]
15837         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
15838         * localedata/fr_CA.UTF-8.in: New file with test data for backward
15839         accents sorting.
15840         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
15841         sorting.
15842         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
15843         * localedata/locales/de_DE (LC_COLLATE): Likewise.
15844         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
15845         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
15846         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
15847         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
15848         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
15849         instead of “ifdef DIACRIT_BACKWARD”.
15851 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15853         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
15854         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
15855         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
15856         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
15857         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
15858         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
15859         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
15860         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
15861         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
15862         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
15863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
15864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
15865         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
15866         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
15867         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
15868         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
15869         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
15870         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
15871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
15872         ($(have-as-vis3) == yes): Remove conditional.
15873         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
15874         Likewise.
15875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
15876         file.
15877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
15878         file.
15879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
15880         file.
15881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
15882         file.
15883         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
15884         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
15885         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
15886         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
15887         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
15888         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
15889         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
15890         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
15892 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
15894         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
15895         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
15896         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
15897         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
15898         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
15899         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
15900         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
15901         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
15902         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
15903         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
15904         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
15905         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
15906         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
15907         libm_alias_double_r.
15908         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
15909         (log): Likewise.
15910         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
15911         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
15912         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
15913         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
15914         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
15915         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
15916         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
15917         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
15918         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
15919         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
15920         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
15921         libm_alias_double.
15922         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
15923         (cos): Likewise.
15924         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
15925         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
15926         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
15927         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
15928         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
15929         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
15930         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
15931         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
15932         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
15933         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
15934         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
15935         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
15936         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
15937         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
15938         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
15939         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
15940         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
15941         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
15942         libm_alias_double.
15943         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
15944         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
15945         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
15946         * sysdeps/ia64/fpu/w_lgamma_main.c
15947         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
15948         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
15950 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
15952         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
15953         address of $global$ into %dp register earlier.  Use pc-relative
15954         instruction sequence for PIC case.
15956 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
15958         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
15959         (asinhf): Define using libm_alias_float.
15960         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
15961         (atanf): Define using libm_alias_float.
15962         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
15963         (cbrtf): Define using libm_alias_float.
15964         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
15965         (ceilf): Define using libm_alias_float.
15966         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
15967         (copysignf): Define using libm_alias_float.
15968         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
15969         (expm1f): Define using libm_alias_float.
15970         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
15971         (fabsf): Define using libm_alias_float.
15972         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
15973         (floorf): Define using libm_alias_float.
15974         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
15975         (fmaxf): Define using libm_alias_float.
15976         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
15977         (fminf): Define using libm_alias_float.
15978         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
15979         (frexpf): Define using libm_alias_float.
15980         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
15981         (llrintf): Define using libm_alias_float.
15982         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
15983         (logbf): Define using libm_alias_float.
15984         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
15985         (lrintf): Define using libm_alias_float.
15986         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
15987         (nearbyintf): Define using libm_alias_float.
15988         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
15989         (remquof): Define using libm_alias_float.
15990         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
15991         (rintf): Define using libm_alias_float.
15992         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
15993         (truncf): Define using libm_alias_float.
15994         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
15995         <libm-alias-float.h>.
15996         (exp2f): Define using libm_alias_float, or libm_alias_float_other
15997         if [SHARED].
15998         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
15999         <libm-alias-float.h>.
16000         (expf): Define using libm_alias_float, or libm_alias_float_other
16001         if [SHARED].
16002         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
16003         <libm-alias-float.h>.
16004         (log2f): Define using libm_alias_float, or libm_alias_float_other
16005         if [SHARED].
16006         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
16007         <libm-alias-float.h>.
16008         (logf): Define using libm_alias_float, or libm_alias_float_other
16009         if [SHARED].
16010         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
16011         <libm-alias-float.h>.
16012         (powf): Define using libm_alias_float, or libm_alias_float_other
16013         if [SHARED].
16014         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
16015         <libm-alias-float.h>.
16016         (cosf): Define using libm_alias_float.
16017         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
16018         <libm-alias-float.h>.
16019         (sincosf): Define using libm_alias_float.
16020         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
16021         <libm-alias-float.h>.
16022         (sinf): Define using libm_alias_float.
16023         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
16024         (fmaxf): Define using libm_alias_float.
16025         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
16026         (fminf): Define using libm_alias_float.
16027         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
16028         <libm-alias-float.h>.
16029         (fmaf): Define using libm_alias_float.
16031         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
16032         (asinh): Define using libm_alias_double.
16033         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
16034         (atan): Define using libm_alias_double.
16035         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
16036         (cbrt): Define using libm_alias_double.
16037         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
16038         (ceil): Define using libm_alias_double.
16039         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
16040         (copysign): Define using libm_alias_double.
16041         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
16042         (expm1): Define using libm_alias_double.
16043         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
16044         (fabs): Define using libm_alias_double.
16045         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
16046         (fdim): Define using libm_alias_double.
16047         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
16048         (floor): Define using libm_alias_double.
16049         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
16050         (fmax): Define using libm_alias_double.
16051         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
16052         (fmin): Define using libm_alias_double.
16053         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
16054         (frexp): Define using libm_alias_double.
16055         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
16056         (llrint): Define using libm_alias_double.
16057         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
16058         (logb): Define using libm_alias_double.
16059         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
16060         (lrint): Define using libm_alias_double.
16061         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
16062         (nearbyint): Define using libm_alias_double.
16063         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
16064         (remquo): Define using libm_alias_double.
16065         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
16066         (rint): Define using libm_alias_double.
16067         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
16068         (trunc): Define using libm_alias_double.
16069         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
16070         (fmax): Define using libm_alias_double.
16071         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
16072         (fmin): Define using libm_alias_double.
16073         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
16074         (fma): Define using libm_alias_double.
16076 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
16078         [BZ #22370]
16079         * elf/dl-hwcaps.c (ROUND): Removed.
16080         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
16081         and ELF_NOTE_NEXT_OFFSET.
16082         * elf/dl-load.c (ROUND): Removed.
16083         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
16084         * elf/readelflib.c (ROUND): Removed.
16085         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
16086         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
16087         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
16088         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
16090 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
16092         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
16093         [!__fmaf] (fmaf): Define using libm_alias_float.
16095         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
16096         [!__fma] (fma): Define using libm_alias_double.
16097         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
16099 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
16101         [BZ #22336]
16102         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
16103         and implement the collation rules for cs from CLDR on top of that.
16104         * Makefile: Add cs_CZ.UTF-8 to test-input.
16105         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
16107 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16109         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
16111 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
16112             Icarus Sparry  <icarus.w.sparry@intel.com>
16114         * benchtests/Makefile:Add BENCHSET to allow subsets of
16115         benchmarks to be run.
16116         * benchtests/README: Add documentation for: Running subsets of
16117         benchmarks.
16119 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
16121         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
16122         range of tests names.
16124         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
16125         result from property and remove "max", min" and "mean" from
16126         required properties based on benchtests/bench-skeleton.c.
16128 2017-11-28  Florian Weimer  <fweimer@redhat.com>
16130         [BZ #20826]
16131         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
16132         due to Internet requirement.
16133         * posix/Makefile (tests): Remove tst-getaddrinfo4,
16134         tst-getaddrinfo5.
16135         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
16137 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16139         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
16140         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
16141         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
16142         (sysdep_routines): Add memset-ultra1.
16143         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
16144         file.
16145         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
16146         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
16147         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
16148         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
16149         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
16150         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
16151         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
16152         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16154         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
16155         file.
16156         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
16157         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
16158         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
16159         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
16160         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
16161         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
16162         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
16163         macro.
16164         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
16165         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
16166         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
16167         (sysdep_routines): Add memcpy-ultra1.
16168         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
16169         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
16171 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
16173         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
16174         (cfloat_versions): Take function argument without trailing 'f'.
16175         Call libm_alias_float_other.
16176         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
16177         * sysdeps/alpha/fpu/cargf.c: Likewise.
16178         * sysdeps/alpha/fpu/cimagf.c: Likewise.
16179         * sysdeps/alpha/fpu/conjf.c: Likewise.
16180         * sysdeps/alpha/fpu/crealf.c: Likewise.
16181         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
16182         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
16183         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
16184         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
16185         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
16186         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
16187         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
16188         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
16189         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
16190         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
16191         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
16192         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
16193         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
16194         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
16195         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
16196         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
16197         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
16198         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
16199         (clog10f): Use libm_alias_float_other.
16200         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
16201         (ceilf): Define using libm_alias_float.
16202         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
16203         (copysignf): Define using libm_alias_float.
16204         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
16205         (fabsf): Define using libm_alias_float.
16206         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
16207         (floorf): Define using libm_alias_float.
16208         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
16209         (fmaxf): Define using libm_alias_float.
16210         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
16211         (fminf): Define using libm_alias_float.
16212         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
16213         (lrintf): Define using libm_alias_float.
16214         (llrintf): Likewise.
16215         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
16216         (lroundf): Define using libm_alias_float.
16217         (llroundf): Likewise.
16218         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
16219         (rintf): Define using libm_alias_float.
16220         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
16221         (truncf): Define using libm_alias_float.
16223         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
16224         (ceilf): Define using libm_alias_float.
16225         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
16226         (floorf): Define using libm_alias_float.
16227         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
16228         (fmaf): Define using libm_alias_float.
16229         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
16230         (fmaxf): Define using libm_alias_float.
16231         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
16232         (fminf): Define using libm_alias_float.
16233         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
16234         (llrintf): Define using libm_alias_float.
16235         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
16236         (llroundf): Define using libm_alias_float.
16237         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
16238         (lrintf): Define using libm_alias_float.
16239         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
16240         (lroundf): Define using libm_alias_float.
16241         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
16242         <libm-alias-float.h>.
16243         (nearbyintf): Define using libm_alias_float.
16244         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
16245         (rintf): Define using libm_alias_float.
16246         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
16247         (roundf): Define using libm_alias_float.
16248         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
16249         (truncf): Define using libm_alias_float.
16251         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
16252         (ceil): Define using libm_alias_double.
16253         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
16254         (copysign): Define using libm_alias_double.
16255         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
16256         (fabs): Define using libm_alias_double.
16257         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
16258         (floor): Define using libm_alias_double.
16259         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
16260         (fmax): Define using libm_alias_double.
16261         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
16262         (fmin): Define using libm_alias_double.
16263         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
16264         (lrint): Define using libm_alias_double.
16265         (llrint): Likewise.
16266         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
16267         (lround): Define using libm_alias_double.
16268         (llround): Likewise.
16269         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
16270         (rint): Define using libm_alias_double.
16271         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
16272         (trunc): Define using libm_alias_double.
16274         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
16275         (libm_alias_double_r): Add semicolon after weak_alias call.
16277 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
16279         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
16280         (ceil): Define using libm_alias_double.
16281         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
16282         (floor): Define using libm_alias_double.
16283         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
16284         (fma): Define using libm_alias_double.
16285         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
16286         (fmax): Define using libm_alias_double.
16287         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
16288         (fmin): Define using libm_alias_double.
16289         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
16290         (llrint): Define using libm_alias_double.
16291         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
16292         (llround): Define using libm_alias_double.
16293         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
16294         (lrint): Define using libm_alias_double.
16295         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
16296         (lround): Define using libm_alias_double.
16297         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
16298         (nearbyint): Define using libm_alias_double.
16299         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
16300         (rint): Define using libm_alias_double.
16301         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
16302         (round): Define using libm_alias_double.
16303         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
16304         (trunc): Define using libm_alias_double.
16306 2017-11-27  Florian Weimer  <fweimer@redhat.com>
16308         * sysdeps/unix/sysv/linux/mlock2.c: New file.
16309         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
16310         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
16311         (tests): Add tst-mlock2.
16312         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
16313         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
16314         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
16315         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
16316         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
16317         for mlock.  Document mlock2.
16319 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
16321         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
16322         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
16323         Likewise.
16324         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
16325         Likewise.
16326         * sysdeps/x86/Makeconfig: New file.
16327         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
16328         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16329         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
16330         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16331         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
16332         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16333         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
16334         Likewise.
16335         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16336         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
16337         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16338         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
16339         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16340         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
16341         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
16342         * manual/math.texi (Mathematics): Document support for _Float64x.
16343         * math/Versions (GLIBC_2.27): Add _Float64x functions.
16344         * stdlib/Versions (GLIBC_2.27): Likewise.
16345         * wcsmbs/Versions (GLIBC_2.27): Likewise.
16346         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
16347         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16348         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16349         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16350         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16351         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16352         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16353         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16354         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16355         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16356         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
16358         Likewise.
16359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16360         Likewise.
16361         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16362         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16363         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16364         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16365         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16366         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16367         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16368         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16369         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16370         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16371         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16372         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16373         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
16374         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16376 2017-11-27  Andreas Schwab  <schwab@suse.de>
16378         * elf/Makefile (dl-routines): Add dl-sort-maps.
16379         * elf/dl-sort-maps.c: New file.
16380         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
16381         (_dl_sort_maps): Declare.
16382         * elf/dl-fini.c (_dl_sort_fini): Remove.
16383         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
16384         * elf/dl-close.c (_dl_close_worker): Likewise.
16385         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
16386         open-coding it.
16387         * elf/dl-open.c (dl_open_worker): Likewise.
16389 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
16391         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
16392         using libm_alias_float128.
16393         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
16394         Likewise.
16395         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
16396         Likewise.
16397         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
16398         (setpayloadsigf128): Likewise.
16399         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
16400         Likewise.
16401         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
16402         Likewise.
16404         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
16405         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
16406         -mfloat128 to CFLAGS.
16407         ($(foreach
16408         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
16409         Likewise.
16410         (CFLAGS-libm-test-support-float64x.c): New variable.
16411         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
16412         $(f128-loader-link) to gnulib-tests.
16414         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
16415         (libm_alias_float128_other_r): If
16416         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
16417         alias.
16418         (libm_alias_float128_r): Add semicolon after weak_alias call.
16419         * sysdeps/generic/libm-alias-ldouble.h
16420         (libm_alias_ldouble_other_r_f128): New macro.
16421         (libm_alias_ldouble_other_r_f64x): Likewise.
16422         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
16423         and libm_alias_ldouble_other_r_f64x.
16424         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
16425         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
16426         (libm_alias_ldouble_other_r_f128): New macro.
16427         (libm_alias_ldouble_other_r_f64x): Likewise.
16428         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
16429         and libm_alias_ldouble_other_r_f64x.
16431         * stdlib/strfroml.c: Always include <stdlib.h>.
16432         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
16433         undefine as macro and define as weak alias.
16434         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
16435         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
16436         <stdlib.h>.
16437         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
16438         Define and later undefine as macro and define as weak alias.
16440         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
16441         Define and later undefine as macro.  Define as weak alias if
16442         [!USE_WIDE_CHAR].
16443         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
16444         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
16445         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
16446         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
16447         Define and later undefine as macro.  Define as weak alias if
16448         [!USE_WIDE_CHAR].
16449         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
16450         Define and later undefine as macro.  Define as weak alias if
16451         [USE_WIDE_CHAR].
16452         * sysdeps/ieee754/float128/strtof128_l.c
16453         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
16454         Define and later undefine as macro.  Define as weak alias if
16455         [!USE_WIDE_CHAR].
16456         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
16457         Define and later undefine as macro.  Define as weak alias if
16458         [USE_WIDE_CHAR].
16459         * sysdeps/ieee754/ldbl-128/strtold_l.c
16460         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
16461         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
16462         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
16463         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
16464         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
16465         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
16466         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
16467         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
16468         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
16469         * sysdeps/ieee754/ldbl-96/strtold_l.c
16470         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
16471         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
16472         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
16473         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
16475         * math/test-float64x.h: New file.
16476         * math/Makefile (type-float64x-yes): New variable.
16477         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
16479         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
16480         function-like macro.
16481         (min_of_type_): Likewise.
16482         (min_of_type_l): Likewise.
16483         (min_of_type_f128): Likewise.
16484         (min_of_type): Pass () as last argument of __MATH_TG.
16486         * stdlib/tst-strtod-round-skeleton.c
16487         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
16488         headers.
16490         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
16491         for combinations of long double with _Float64 and _Float64x.
16493         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
16494         (__DECL_SIMD_cosf32): Likewise.
16495         (__DECL_SIMD_cosf64): Likewise.
16496         (__DECL_SIMD_cosf32x): Likewise.
16497         (__DECL_SIMD_cosf64x): Likewise.
16498         (__DECL_SIMD_cosf128x): Likewise.
16499         (__DECL_SIMD_sinf16): Likewise.
16500         (__DECL_SIMD_sinf32): Likewise.
16501         (__DECL_SIMD_sinf64): Likewise.
16502         (__DECL_SIMD_sinf32x): Likewise.
16503         (__DECL_SIMD_sinf64x): Likewise.
16504         (__DECL_SIMD_sinf128x): Likewise.
16505         (__DECL_SIMD_sincosf16): Likewise.
16506         (__DECL_SIMD_sincosf32): Likewise.
16507         (__DECL_SIMD_sincosf64): Likewise.
16508         (__DECL_SIMD_sincosf32x): Likewise.
16509         (__DECL_SIMD_sincosf64x): Likewise.
16510         (__DECL_SIMD_sincosf128x): Likewise.
16511         (__DECL_SIMD_logf16): Likewise.
16512         (__DECL_SIMD_logf32): Likewise.
16513         (__DECL_SIMD_logf64): Likewise.
16514         (__DECL_SIMD_logf32x): Likewise.
16515         (__DECL_SIMD_logf64x): Likewise.
16516         (__DECL_SIMD_logf128x): Likewise.
16517         (__DECL_SIMD_expf16): Likewise.
16518         (__DECL_SIMD_expf32): Likewise.
16519         (__DECL_SIMD_expf64): Likewise.
16520         (__DECL_SIMD_expf32x): Likewise.
16521         (__DECL_SIMD_expf64x): Likewise.
16522         (__DECL_SIMD_expf128x): Likewise.
16523         (__DECL_SIMD_powf16): Likewise.
16524         (__DECL_SIMD_powf32): Likewise.
16525         (__DECL_SIMD_powf64): Likewise.
16526         (__DECL_SIMD_powf32x): Likewise.
16527         (__DECL_SIMD_powf64x): Likewise.
16528         (__DECL_SIMD_powf128x): Likewise.
16530         * stdlib/Versions (libc): Move entries for wcstof128 and
16531         wcstof128_l to ....
16532         * wcsmbs/Versions (libc): ... here.
16533         Include <float128-abi.h>.
16535 2017-11-24  Florian Weimer  <fweimer@redhat.com>
16537         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16538         bits/mman-shared.h.
16539         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
16540         <bits/mman-shared.h>.
16541         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
16542         to ...
16543         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
16544         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
16545         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
16546         <bits/mman-shared.h>.
16548 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16550         [BZ #22457]
16551         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
16552         posix_memalign/free.
16553         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
16555 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
16557         [BZ #22469]
16558         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
16559         and implement the collation rules for pl from CLDR on top of that.
16560         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
16561         of locales to be built for testing.
16562         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
16564 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
16566         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
16567         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
16568         libm_alias_ldouble_other.
16569         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
16570         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
16571         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
16572         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
16573         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
16574         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
16575         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
16576         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
16577         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
16578         libm_alias_ldouble_r.
16579         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
16580         libm_alias_ldouble_other.
16581         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
16582         (log10l): Likewise.
16583         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
16584         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
16585         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
16586         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
16587         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
16588         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
16589         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
16590         (atan2l): Likewise.
16591         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
16592         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
16593         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
16594         libm_alias_ldouble.
16595         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
16596         (cosl): Likewise.
16597         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
16598         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
16599         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
16600         (expl): Likewise.
16601         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
16602         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
16603         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
16604         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
16605         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
16606         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
16607         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
16608         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
16609         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
16610         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
16611         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
16612         libm_alias_ldouble.
16613         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
16614         libm_alias_ldouble_other.
16615         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
16616         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
16617         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
16618         libm_alias_ldouble.
16619         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
16620         libm_alias_ldouble_other.
16621         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
16622         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
16623         * sysdeps/ia64/fpu/w_lgammal_main.c
16624         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
16625         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
16627 2017-11-23  Florian Weimer  <fweimer@redhat.com>
16629         * malloc/malloc.c (tcache_thread_shutdown): Rename from
16630         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
16631         alike.  Remove freeres marker.
16632         * malloc/arena.c (arena_thread_freeres): Call
16633         tcache_thread_shutdown.
16635 2017-11-23  Florian Weimer  <fweimer@redhat.com>
16637         [BZ #22459]
16638         Export nscd hash function as __nss_hash.
16639         * include/nss.h (__nss_hash): Declare.
16640         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
16641         symbol.
16642         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
16643         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
16644         of __nscd_hash.
16645         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
16646         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
16647         * nss/Makefiles (routines): Add nss_hash.
16648         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
16649         * nss/nss_hash.c: Rename from nis/nis_hash.c.
16650         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
16651         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
16653 2017-11-23  Florian Weimer  <fweimer@redhat.com>
16655         [BZ #22478]
16656         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
16657         Return error code, not -1.
16658         * signal/tst-sigwait-eintr.c: New file.
16659         * signal/Makefile (tests): Add tst-sigwait-eintr.
16661 2017-11-23  Florian Weimer  <fweimer@redhat.com>
16663         Linux: Add memfd_create system call wrapper
16664         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
16665         tst-memfd_create.
16666         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
16667         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
16668         [__USE_GNU] (memfd_create): Declare.
16669         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
16670         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
16671         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
16672         * sysdeps/unix/sysv/linux/**.abilist: Update.
16673         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
16675 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
16677         * localedata/gen-locale.sh: Fix typo in variable name.
16679         * resolv/res_debug.c (p_secstodate): Condition definition on
16680         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
16681         directly as __p_secstodate, and as a compat symbol.  Do not use
16682         libresolv_hidden_def.
16683         * resolv/resolv.h (p_secstodate): Remove macro and function
16684         declaration.
16685         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
16686         using p_secstodate.
16687         * include/resolv.h (__p_secstodate): Do not use
16688         libresolv_hidden_proto.
16689         * resolv/Makefile (tests): Move tst-p_secstodate to ....
16690         (tests-internal): ... here.
16691         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
16692         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
16693         and declare and use __p_secstodate and use compat_symbol_reference
16694         in that case.
16695         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
16696         implementation returning 77.
16698         [BZ #22463]
16699         * resolv/res_debug.c: Include <libc-diag.h>.
16700         (p_secstodate): Assert time_t at least as wide as u_long.  On
16701         overflow, use integer seconds since the epoch as output, or use
16702         "<overflow>" as output and set errno to EOVERFLOW if integer
16703         seconds since the epoch would be 14 or more characters.
16704         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
16705         for sprintf call.
16706         * resolv/tst-p_secstodate.c: New file.
16707         * resolv/Makefile (tests): Add tst-p_secstodate.
16708         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
16710         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
16711         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
16712         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
16714 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16716         * posix/regcomp.c (init_word_char): Add comments.
16718 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
16720         [BZ #22447]
16721         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
16722         strlen to compute length of ut_user and set trailing NUL byte of
16723         result explicitly.
16725 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
16727         [BZ #15537]
16728         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
16729         using “copy "iso14651_t1"” and then implementing the
16730         collation rules for lv from CLDR on top of that.
16731         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
16732         of locales to be built for testing.
16733         * lv_LV.UTF-8.in: New file with test data to test the Latvian
16734         sorting.
16736 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
16738         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
16739         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
16740         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
16741         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
16742         [__USE_MISC] (MADV_HWPOISON): New macro.
16743         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
16745 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16747         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
16748         -Wmissing-braces on GCC 4.9.
16750 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
16752         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
16753         * sysdeps/s390/s390-32/start.S (_start): Likewise
16754         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
16755         (thread_start): Likewise.
16756         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
16757         (thread_start): Likewise.
16758         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
16759         (__makecontext_ret): Likewise.
16760         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
16761         (__makecontext_ret): Likewise.
16763 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
16765         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
16766         __wcschrnul): Remove attribute_hidden.
16768 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16770         regex: don't assume uint64_t or uint32_t
16771         This avoids -Werror=overflow errors for 32-bit systems in
16772         the 64-bit case.  Problem reported by Joseph Myers in:
16773         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
16774         Also, when this code is used in Gnulib it ports to platforms
16775         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
16776         them, and on some 32-bit compilers there is no uint64_t.
16777         Problem reported by Gianluigi Tiesi in:
16778         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
16779         * posix/regcomp.c (init_word_char): Don't assume that the types
16780         uint64_t and uint32_t exist.  Adapted from Gnulib patch
16781         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
16782         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
16784 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16786         * sysdeps/aarch64/memset-reg.h: New file.
16787         * sysdeps/aarch64/memset.S: Use it.
16788         (__memset): Rename to MEMSET macro.
16789         [ZVA_MACRO]: Use zva_macro.
16790         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
16791         Add memset_generic and memset_falkor.
16792         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
16793         (__libc_ifunc_impl_list): Add memset ifuncs.
16794         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
16795         local variable zva_size.
16796         * sysdeps/aarch64/multiarch/memset.c: New file.
16797         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
16798         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
16799         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
16800         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
16801         (DCZID_DZP_MASK): New macro.
16802         (DCZID_BS_MASK): Likewise.
16803         (init_cpu_features): Read and set zva_size.
16804         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
16805         (struct cpu_features): New member zva_size.
16807         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
16808         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
16809         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
16811         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
16812         backwards.  Fix timing computation.
16813         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
16814         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
16815         on memset by N at a time.  Fix timing computation.
16817 2017-11-20  Florian Weimer  <fweimer@redhat.com>
16819         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
16820         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
16822 2017-11-19  Florian Weimer  <fweimer@redhat.com>
16824         manual: Document mprotect
16825         * manual/memory.texi (Memory Protection): New section.
16826         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
16827         documentation of PROT_* flags and reference the Memory Protection
16828         section instead.
16830 2017-11-19  Florian Weimer  <fweimer@redhat.com>
16832         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
16833         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
16834         (Scatter-Gather): ... to here.  Remove misleading comment.
16836 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
16838         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
16839         style.
16841         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
16842         when /proc/<pid>/setgroups does not exist.
16844 2017-11-18  Florian Weimer  <fweimer@redhat.com>
16846         * sysdeps/unix/sysv/linux/tst-ttyname.c
16847         (become_root_in_mount_ns): Remove.
16848         (do_in_chroot_1): Call support_enter_mount_namespace.
16849         (do_in_chroot_2): Likewise.
16850         (do_test): Call support_become_root early.
16852 2017-11-18  Florian Weimer  <fweimer@redhat.com>
16854         * support/namespace.h (support_enter_mount_namespace): Declare.
16855         * support/support_enter_mount_namespace.c: New file.
16856         * support/Makefile (libsupport-routines): Add
16857         support_enter_mount_namespace.
16859 2017-11-18  Florian Weimer  <fweimer@redhat.com>
16861         * support/temp_file.c (support_create_temp_directory): Use
16862         test_dir and do not rely on the presence of the XXXXXX suffix.
16863         * support/temp_file.h (support_create_temp_directory): Update
16864         comment.
16865         * support/tst-xreadlink.c (do_test): Adjust.
16866         * support/support_chroot.c (support_chroot_create): Likewise.
16868 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16870         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
16871         macro.
16872         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
16873         htm-no-suspend.
16875 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
16877         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
16878         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
16879         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
16880         (ceill): Define using libm_alias_ldouble.
16881         * sysdeps/x86_64/fpu/s_copysignl.S: Include
16882         <libm-alias-ldouble.h>.
16883         (copysignl): Define using libm_alias_ldouble.
16884         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
16885         (fabsl): Define using libm_alias_ldouble.
16886         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
16887         (floorl): Define using libm_alias_ldouble.
16888         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
16889         (fmaxl): Define using libm_alias_ldouble.
16890         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
16891         (fminl): Define using libm_alias_ldouble.
16892         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
16893         (llrintl): Define using libm_alias_ldouble.
16894         (lrintl): Likewise.
16895         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
16896         <libm-alias-ldouble.h>.
16897         (nearbyintl): Define using libm_alias_ldouble.
16898         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
16899         (truncl): Define using libm_alias_ldouble.
16900         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
16901         <libm-alias-ldouble.h>.
16902         (lrintl): Define using libm_alias_ldouble.
16904         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
16905         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
16906         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
16907         (asinhl): Define using libm_alias_ldouble.
16908         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
16909         (atanl): Define using libm_alias_ldouble.
16910         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
16911         (cbrtl): Define using libm_alias_ldouble.
16912         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
16913         (ceill): Define using libm_alias_ldouble.
16914         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
16915         (copysignl): Define using libm_alias_ldouble.
16916         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
16917         (fabsl): Define using libm_alias_ldouble.
16918         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
16919         (floorl): Define using libm_alias_ldouble.
16920         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
16921         (fmaxl): Define using libm_alias_ldouble.
16922         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
16923         (fminl): Define using libm_alias_ldouble.
16924         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
16925         (frexpl): Define using libm_alias_ldouble.
16926         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
16927         (llrintl): Define using libm_alias_ldouble.
16928         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
16929         (logbl): Define using libm_alias_ldouble.
16930         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
16931         (lrintl): Define using libm_alias_ldouble.
16932         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
16933         (nearbyintl): Define using libm_alias_ldouble.
16934         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
16935         (nextafterl): Define using libm_alias_ldouble.
16936         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
16937         (remquol): Define using libm_alias_ldouble.
16938         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
16939         (rintl): Define using libm_alias_ldouble.
16940         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
16941         (truncl): Define using libm_alias_ldouble.
16942         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
16943         (fmaxl): Define using libm_alias_ldouble.
16944         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
16945         (fminl): Define using libm_alias_ldouble.
16947         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
16948         to C syntax instead of availability and properties of types.
16949         * bits/floatn.h [!__ASSEMBLER]: Likewise.
16950         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
16951         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
16952         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
16953         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
16954         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
16956 2017-11-17  Florian Weimer  <fweimer@redhat.com>
16958         support_become_root: Enable file creation in namespaces.
16959         * support/support_become_root.c (setup_mapping): New function.
16960         (support_become_root): Call it.
16962 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
16964         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
16965         macro.
16967 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16969         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
16970         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
16972 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
16974         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
16976         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16977         version to 4.14.
16979 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
16981         * INSTALL: Fix botched up regeneration.
16983         * NEWS: Update sourceare link to https.
16984         * configure.ac: Likewise.
16985         * crypt/md5test-giant.c: Likewise.
16986         * dlfcn/bug-atexit1.c: Likewise.
16987         * dlfcn/bug-atexit2.c: Likewise.
16988         * localedata/README: Likewise.
16989         * malloc/tst-mallocfork.c: Likewise.
16990         * manual/install.texi: Likewise.
16991         * nptl/tst-pthread-getattr.c: Likewise.
16992         * stdio-common/tst-fgets.c: Likewise.
16993         * stdio-common/tst-fwrite.c: Likewise.
16994         * sunrpc/Makefile: Likewise.
16995         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
16996         * wcsmbs/tst-mbrtowc2.c: Likewise.
16997         * configure: Regenerate.
16998         * INSTALL: Regenerate.
17000 2017-11-15  Martin Sebor  <msebor@redhat.com>
17002         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
17003         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
17004         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
17006 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
17008         [BZ #22145]
17009         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
17010         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
17012         [BZ #22145]
17013         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
17014         Defer is_pty check until end of the function.
17015         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17017         [BZ #22145]
17018         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
17019         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
17020         (ttyname): Likewise.
17021         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
17022         (__ttyname_r): Likewise.
17024         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
17025         int to bool.
17027         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
17029         * manual/terminal.texi (Is It a Terminal):
17030         Mention ENODEV for ttyname and ttyname_r.
17032 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17034         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
17035         constant and macro.
17037         * sysdeps/unix/sysv/linux/bits/mman-linux.h
17038         [__USE_MISC] (MADV_WIPEONFORK): New macro.
17039         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
17040         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
17041         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
17042         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
17044 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17046         * signal/sigrelse.c (sigrelse): Optimize implementation.
17048         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
17049         (__sigpause): Rely on __sigsuspend to implement single thread
17050         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
17052 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17054         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17055         kernel version to 4.14.
17057 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
17059         [BZ #22442]
17060         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
17061         Check if ifname is too long.
17063 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
17065         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
17067 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
17069         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
17070         was accidentally lost.
17072 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
17074         * localedata/locales/az_IR: Add standard copyright header.
17076 2017-11-15  Florian Weimer  <fweimer@redhat.com>
17078         [BZ #22439]
17079         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
17080         not just the top one.  Output a new "subheaps" statistic.
17082 2017-11-15  Florian Weimer  <fweimer@redhat.com>
17084         [BZ #22408]
17085         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
17086         under the per-arena lock.
17087         * malloc/Makefile (tests): Add tst-malloc_info.
17088         (tst-malloc_info): Link with libpthread.
17089         * malloc/tst-malloc_info.c: New file.
17091 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
17093         [BZ #21660]
17094         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
17095         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
17096         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
17097         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
17098         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
17099         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
17100         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
17101         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
17102         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
17103         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
17104         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
17105         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
17106         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
17107         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
17108         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
17109         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
17110         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
17111         (__floating_type): Likewise.
17112         (__real_integer_type): Likewise.
17113         (__complex_integer_type): Likewise.
17114         (__expr_is_real): Likewise.
17115         (__tgmath_real_type_sub): Likewise.
17116         (__tgmath_real_type): Likewise.
17117         (__tgmath_complex_type_sub): Likewise.
17118         (__tgmath_complex_type): Likewise.
17119         (__TGMATH_F128): Likewise.
17120         (__TGMATH_CF128): Likewise.
17121         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
17122         new macros.
17123         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
17124         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
17125         Likewise.
17126         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
17127         Likewise.
17128         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
17129         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
17130         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
17131         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
17132         Likewise.
17133         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
17134         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
17135         Likewise.
17136         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
17137         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
17138         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
17139         Likewise.
17140         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
17141         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
17142         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
17143         (cimag): Likewise.
17144         (creal): Likewise.
17146 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
17148         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
17149         for stpncpy calls for GCC 8.
17150         (test_strncat): Disable -Wstringop-truncation warning for strncat
17151         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
17152         strncat call for GCC 7.
17153         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
17154         calls for GCC 8.
17155         (test_memcmp): Use memcpy instead of strncpy for calls not copying
17156         trailing NUL.
17158         * string/bug-strncat1.c: Include <libc-diag.h>.
17159         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
17161 2017-11-13  Claude Paroz  <claude@2xlibre.net>
17163         [BZ #22387]
17164         * localedata/locales/aa_DJ: Improved readibility by replacing
17165         <Uxxxx> sequences in the ASCII printable range by their ASCII
17166         character equivalents.
17167         * localedata/locales/aa_ER: Likewise.
17168         * localedata/locales/aa_ER@saaho: Likewise.
17169         * localedata/locales/aa_ET: Likewise.
17170         * localedata/locales/af_ZA: Likewise.
17171         * localedata/locales/agr_PE: Likewise.
17172         * localedata/locales/ak_GH: Likewise.
17173         * localedata/locales/am_ET: Likewise.
17174         * localedata/locales/anp_IN: Likewise.
17175         * localedata/locales/ar_AE: Likewise.
17176         * localedata/locales/ar_BH: Likewise.
17177         * localedata/locales/ar_DZ: Likewise.
17178         * localedata/locales/ar_EG: Likewise.
17179         * localedata/locales/ar_IN: Likewise.
17180         * localedata/locales/ar_IQ: Likewise.
17181         * localedata/locales/ar_JO: Likewise.
17182         * localedata/locales/ar_KW: Likewise.
17183         * localedata/locales/ar_LB: Likewise.
17184         * localedata/locales/ar_LY: Likewise.
17185         * localedata/locales/ar_MA: Likewise.
17186         * localedata/locales/ar_OM: Likewise.
17187         * localedata/locales/ar_QA: Likewise.
17188         * localedata/locales/ar_SA: Likewise.
17189         * localedata/locales/ar_SD: Likewise.
17190         * localedata/locales/ar_SS: Likewise.
17191         * localedata/locales/ar_SY: Likewise.
17192         * localedata/locales/ar_TN: Likewise.
17193         * localedata/locales/ar_YE: Likewise.
17194         * localedata/locales/as_IN: Likewise.
17195         * localedata/locales/ast_ES: Likewise.
17196         * localedata/locales/ayc_PE: Likewise.
17197         * localedata/locales/az_AZ: Likewise.
17198         * localedata/locales/az_IR: Likewise.
17199         * localedata/locales/be_BY: Likewise.
17200         * localedata/locales/be_BY@latin: Likewise.
17201         * localedata/locales/bem_ZM: Likewise.
17202         * localedata/locales/ber_DZ: Likewise.
17203         * localedata/locales/ber_MA: Likewise.
17204         * localedata/locales/bg_BG: Likewise.
17205         * localedata/locales/bhb_IN: Likewise.
17206         * localedata/locales/bho_IN: Likewise.
17207         * localedata/locales/bi_VU: Likewise.
17208         * localedata/locales/bn_BD: Likewise.
17209         * localedata/locales/bn_IN: Likewise.
17210         * localedata/locales/bo_CN: Likewise.
17211         * localedata/locales/bo_IN: Likewise.
17212         * localedata/locales/br_FR: Likewise.
17213         * localedata/locales/brx_IN: Likewise.
17214         * localedata/locales/bs_BA: Likewise.
17215         * localedata/locales/byn_ER: Likewise.
17216         * localedata/locales/ca_AD: Likewise.
17217         * localedata/locales/ca_ES: Likewise.
17218         * localedata/locales/ca_FR: Likewise.
17219         * localedata/locales/ca_IT: Likewise.
17220         * localedata/locales/ce_RU: Likewise.
17221         * localedata/locales/chr_US: Likewise.
17222         * localedata/locales/cmn_TW: Likewise.
17223         * localedata/locales/crh_UA: Likewise.
17224         * localedata/locales/cs_CZ: Likewise.
17225         * localedata/locales/csb_PL: Likewise.
17226         * localedata/locales/cv_RU: Likewise.
17227         * localedata/locales/cy_GB: Likewise.
17228         * localedata/locales/da_DK: Likewise.
17229         * localedata/locales/de_AT: Likewise.
17230         * localedata/locales/de_BE: Likewise.
17231         * localedata/locales/de_CH: Likewise.
17232         * localedata/locales/de_DE: Likewise.
17233         * localedata/locales/de_IT: Likewise.
17234         * localedata/locales/de_LI: Likewise.
17235         * localedata/locales/de_LU: Likewise.
17236         * localedata/locales/doi_IN: Likewise.
17237         * localedata/locales/dv_MV: Likewise.
17238         * localedata/locales/dz_BT: Likewise.
17239         * localedata/locales/el_CY: Likewise.
17240         * localedata/locales/el_GR: Likewise.
17241         * localedata/locales/en_AG: Likewise.
17242         * localedata/locales/en_AU: Likewise.
17243         * localedata/locales/en_BW: Likewise.
17244         * localedata/locales/en_CA: Likewise.
17245         * localedata/locales/en_DK: Likewise.
17246         * localedata/locales/en_GB: Likewise.
17247         * localedata/locales/en_HK: Likewise.
17248         * localedata/locales/en_IE: Likewise.
17249         * localedata/locales/en_IL: Likewise.
17250         * localedata/locales/en_IN: Likewise.
17251         * localedata/locales/en_NG: Likewise.
17252         * localedata/locales/en_NZ: Likewise.
17253         * localedata/locales/en_PH: Likewise.
17254         * localedata/locales/en_SG: Likewise.
17255         * localedata/locales/en_US: Likewise.
17256         * localedata/locales/en_ZA: Likewise.
17257         * localedata/locales/en_ZM: Likewise.
17258         * localedata/locales/en_ZW: Likewise.
17259         * localedata/locales/eo: Likewise.
17260         * localedata/locales/es_AR: Likewise.
17261         * localedata/locales/es_BO: Likewise.
17262         * localedata/locales/es_CL: Likewise.
17263         * localedata/locales/es_CO: Likewise.
17264         * localedata/locales/es_CR: Likewise.
17265         * localedata/locales/es_CU: Likewise.
17266         * localedata/locales/es_DO: Likewise.
17267         * localedata/locales/es_EC: Likewise.
17268         * localedata/locales/es_ES: Likewise.
17269         * localedata/locales/es_GT: Likewise.
17270         * localedata/locales/es_HN: Likewise.
17271         * localedata/locales/es_MX: Likewise.
17272         * localedata/locales/es_NI: Likewise.
17273         * localedata/locales/es_PA: Likewise.
17274         * localedata/locales/es_PE: Likewise.
17275         * localedata/locales/es_PR: Likewise.
17276         * localedata/locales/es_PY: Likewise.
17277         * localedata/locales/es_SV: Likewise.
17278         * localedata/locales/es_US: Likewise.
17279         * localedata/locales/es_UY: Likewise.
17280         * localedata/locales/es_VE: Likewise.
17281         * localedata/locales/et_EE: Likewise.
17282         * localedata/locales/eu_ES: Likewise.
17283         * localedata/locales/eu_ES@euro: Likewise.
17284         * localedata/locales/fa_IR: Likewise.
17285         * localedata/locales/ff_SN: Likewise.
17286         * localedata/locales/fi_FI: Likewise.
17287         * localedata/locales/fil_PH: Likewise.
17288         * localedata/locales/fo_FO: Likewise.
17289         * localedata/locales/fr_BE: Likewise.
17290         * localedata/locales/fr_CA: Likewise.
17291         * localedata/locales/fr_CH: Likewise.
17292         * localedata/locales/fr_FR: Likewise.
17293         * localedata/locales/fr_LU: Likewise.
17294         * localedata/locales/fur_IT: Likewise.
17295         * localedata/locales/fy_DE: Likewise.
17296         * localedata/locales/fy_NL: Likewise.
17297         * localedata/locales/ga_IE: Likewise.
17298         * localedata/locales/gd_GB: Likewise.
17299         * localedata/locales/gez_ER: Likewise.
17300         * localedata/locales/gez_ET: Likewise.
17301         * localedata/locales/gl_ES: Likewise.
17302         * localedata/locales/gu_IN: Likewise.
17303         * localedata/locales/gv_GB: Likewise.
17304         * localedata/locales/ha_NG: Likewise.
17305         * localedata/locales/hak_TW: Likewise.
17306         * localedata/locales/he_IL: Likewise.
17307         * localedata/locales/hi_IN: Likewise.
17308         * localedata/locales/hif_FJ: Likewise.
17309         * localedata/locales/hne_IN: Likewise.
17310         * localedata/locales/hr_HR: Likewise.
17311         * localedata/locales/hsb_DE: Likewise.
17312         * localedata/locales/ht_HT: Likewise.
17313         * localedata/locales/hu_HU: Likewise.
17314         * localedata/locales/hy_AM: Likewise.
17315         * localedata/locales/i18n: Likewise.
17316         * localedata/locales/ia_FR: Likewise.
17317         * localedata/locales/id_ID: Likewise.
17318         * localedata/locales/ig_NG: Likewise.
17319         * localedata/locales/ik_CA: Likewise.
17320         * localedata/locales/is_IS: Likewise.
17321         * localedata/locales/it_CH: Likewise.
17322         * localedata/locales/it_IT: Likewise.
17323         * localedata/locales/iu_CA: Likewise.
17324         * localedata/locales/ja_JP: Likewise.
17325         * localedata/locales/ka_GE: Likewise.
17326         * localedata/locales/kk_KZ: Likewise.
17327         * localedata/locales/kl_GL: Likewise.
17328         * localedata/locales/kn_IN: Likewise.
17329         * localedata/locales/ko_KR: Likewise.
17330         * localedata/locales/kok_IN: Likewise.
17331         * localedata/locales/ks_IN: Likewise.
17332         * localedata/locales/ks_IN@devanagari: Likewise.
17333         * localedata/locales/ku_TR: Likewise.
17334         * localedata/locales/kw_GB: Likewise.
17335         * localedata/locales/ky_KG: Likewise.
17336         * localedata/locales/lb_LU: Likewise.
17337         * localedata/locales/lg_UG: Likewise.
17338         * localedata/locales/li_BE: Likewise.
17339         * localedata/locales/li_NL: Likewise.
17340         * localedata/locales/lij_IT: Likewise.
17341         * localedata/locales/ln_CD: Likewise.
17342         * localedata/locales/lo_LA: Likewise.
17343         * localedata/locales/lt_LT: Likewise.
17344         * localedata/locales/lv_LV: Likewise.
17345         * localedata/locales/lzh_TW: Likewise.
17346         * localedata/locales/mag_IN: Likewise.
17347         * localedata/locales/mai_IN: Likewise.
17348         * localedata/locales/mg_MG: Likewise.
17349         * localedata/locales/mhr_RU: Likewise.
17350         * localedata/locales/mi_NZ: Likewise.
17351         * localedata/locales/mk_MK: Likewise.
17352         * localedata/locales/ml_IN: Likewise.
17353         * localedata/locales/mn_MN: Likewise.
17354         * localedata/locales/mni_IN: Likewise.
17355         * localedata/locales/mr_IN: Likewise.
17356         * localedata/locales/ms_MY: Likewise.
17357         * localedata/locales/mt_MT: Likewise.
17358         * localedata/locales/my_MM: Likewise.
17359         * localedata/locales/nan_TW: Likewise.
17360         * localedata/locales/nan_TW@latin: Likewise.
17361         * localedata/locales/nb_NO: Likewise.
17362         * localedata/locales/nds_DE: Likewise.
17363         * localedata/locales/nds_NL: Likewise.
17364         * localedata/locales/ne_NP: Likewise.
17365         * localedata/locales/nhn_MX: Likewise.
17366         * localedata/locales/niu_NU: Likewise.
17367         * localedata/locales/niu_NZ: Likewise.
17368         * localedata/locales/nl_AW: Likewise.
17369         * localedata/locales/nl_BE: Likewise.
17370         * localedata/locales/nl_NL: Likewise.
17371         * localedata/locales/nn_NO: Likewise.
17372         * localedata/locales/nr_ZA: Likewise.
17373         * localedata/locales/nso_ZA: Likewise.
17374         * localedata/locales/oc_FR: Likewise.
17375         * localedata/locales/om_ET: Likewise.
17376         * localedata/locales/om_KE: Likewise.
17377         * localedata/locales/or_IN: Likewise.
17378         * localedata/locales/os_RU: Likewise.
17379         * localedata/locales/pa_IN: Likewise.
17380         * localedata/locales/pa_PK: Likewise.
17381         * localedata/locales/pap_AW: Likewise.
17382         * localedata/locales/pap_CW: Likewise.
17383         * localedata/locales/pl_PL: Likewise.
17384         * localedata/locales/ps_AF: Likewise.
17385         * localedata/locales/pt_BR: Likewise.
17386         * localedata/locales/pt_PT: Likewise.
17387         * localedata/locales/quz_PE: Likewise.
17388         * localedata/locales/raj_IN: Likewise.
17389         * localedata/locales/ro_RO: Likewise.
17390         * localedata/locales/ru_RU: Likewise.
17391         * localedata/locales/ru_UA: Likewise.
17392         * localedata/locales/rw_RW: Likewise.
17393         * localedata/locales/sa_IN: Likewise.
17394         * localedata/locales/sat_IN: Likewise.
17395         * localedata/locales/sc_IT: Likewise.
17396         * localedata/locales/sd_IN: Likewise.
17397         * localedata/locales/sd_IN@devanagari: Likewise.
17398         * localedata/locales/se_NO: Likewise.
17399         * localedata/locales/sgs_LT: Likewise.
17400         * localedata/locales/shs_CA: Likewise.
17401         * localedata/locales/si_LK: Likewise.
17402         * localedata/locales/sid_ET: Likewise.
17403         * localedata/locales/sk_SK: Likewise.
17404         * localedata/locales/sl_SI: Likewise.
17405         * localedata/locales/sm_WS: Likewise.
17406         * localedata/locales/so_DJ: Likewise.
17407         * localedata/locales/so_ET: Likewise.
17408         * localedata/locales/so_KE: Likewise.
17409         * localedata/locales/so_SO: Likewise.
17410         * localedata/locales/sq_AL: Likewise.
17411         * localedata/locales/sq_MK: Likewise.
17412         * localedata/locales/sr_ME: Likewise.
17413         * localedata/locales/sr_RS: Likewise.
17414         * localedata/locales/sr_RS@latin: Likewise.
17415         * localedata/locales/ss_ZA: Likewise.
17416         * localedata/locales/st_ZA: Likewise.
17417         * localedata/locales/sv_FI: Likewise.
17418         * localedata/locales/sv_SE: Likewise.
17419         * localedata/locales/sw_KE: Likewise.
17420         * localedata/locales/sw_TZ: Likewise.
17421         * localedata/locales/szl_PL: Likewise.
17422         * localedata/locales/ta_IN: Likewise.
17423         * localedata/locales/ta_LK: Likewise.
17424         * localedata/locales/tcy_IN: Likewise.
17425         * localedata/locales/te_IN: Likewise.
17426         * localedata/locales/tg_TJ: Likewise.
17427         * localedata/locales/th_TH: Likewise.
17428         * localedata/locales/the_NP: Likewise.
17429         * localedata/locales/ti_ER: Likewise.
17430         * localedata/locales/ti_ET: Likewise.
17431         * localedata/locales/tig_ER: Likewise.
17432         * localedata/locales/tk_TM: Likewise.
17433         * localedata/locales/tl_PH: Likewise.
17434         * localedata/locales/tn_ZA: Likewise.
17435         * localedata/locales/to_TO: Likewise.
17436         * localedata/locales/tpi_PG: Likewise.
17437         * localedata/locales/tr_CY: Likewise.
17438         * localedata/locales/tr_TR: Likewise.
17439         * localedata/locales/ts_ZA: Likewise.
17440         * localedata/locales/tt_RU: Likewise.
17441         * localedata/locales/tt_RU@iqtelif: Likewise.
17442         * localedata/locales/ug_CN: Likewise.
17443         * localedata/locales/uk_UA: Likewise.
17444         * localedata/locales/unm_US: Likewise.
17445         * localedata/locales/ur_IN: Likewise.
17446         * localedata/locales/ur_PK: Likewise.
17447         * localedata/locales/uz_UZ: Likewise.
17448         * localedata/locales/uz_UZ@cyrillic: Likewise.
17449         * localedata/locales/ve_ZA: Likewise.
17450         * localedata/locales/vi_VN: Likewise.
17451         * localedata/locales/wa_BE: Likewise.
17452         * localedata/locales/wae_CH: Likewise.
17453         * localedata/locales/wal_ET: Likewise.
17454         * localedata/locales/wo_SN: Likewise.
17455         * localedata/locales/xh_ZA: Likewise.
17456         * localedata/locales/yi_US: Likewise.
17457         * localedata/locales/yo_NG: Likewise.
17458         * localedata/locales/yue_HK: Likewise.
17459         * localedata/locales/yuw_PG: Likewise.
17460         * localedata/locales/zh_CN: Likewise.
17461         * localedata/locales/zh_HK: Likewise.
17462         * localedata/locales/zh_SG: Likewise.
17463         * localedata/locales/zh_TW: Likewise.
17464         * localedata/locales/zu_ZA: Likewise.
17466 2017-11-13  Florian Weimer  <fweimer@redhat.com>
17468         * support/next_to_fault.h, support/next_to_fault.c: New files.
17469         * support/Makefile (libsupport-routines): Add next_to_fault.
17470         * resolv/tst-inet_pton.c (struct next_to_fault)
17471         (next_to_fault_allocate, next_to_fault_free): Remove.
17472         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
17474 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
17476         * elf/dl-support.c: Include <dl-procruntime.c>.
17477         * include/link.h: Include <link_map.h>.
17478         * sysdeps/generic/dl-procruntime.c: New file.
17479         * sysdeps/generic/link_map.h: Likewise.
17480         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
17481         the writable ld.so namespace.
17483 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
17485         timezone: pacify GCC -Wstringop-truncation
17486         Problem reported by Martin Sebor in:
17487         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
17488         * timezone/zic.c (writezone): Use memcpy, not strncpy.
17490 2017-11-12  Florian Weimer  <fweimer@redhat.com>
17492         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
17493         tst-xreadlink.
17494         (tests): Add tst-xreadlink.
17495         * support/support.h (xstrndup): Declare.
17496         * support/xunistd.h (xunlink, xreadlink): Declare.
17497         * support/temp_file.h (support_create_temp_directory): Declare.
17498         * support/temp_file.c (support_create_temp_directory): New function.
17499         * support/support_chroot.c (support_chroot_create): Use it.
17500         * support/xreadlink.c: New file.
17501         * support/xstrndup.c: Likewise.
17502         * support/xunlink.c: Likewise.
17503         * support/tst-xreadlink.c: Likewise.
17505 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
17507         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
17509 2017-11-11  Florian Weimer  <fweimer@redhat.com>
17511         [BZ #22409]
17512         [BZ #22412]
17513         * resolv/res_comp.c (printable_string, binary_hnok)
17514         (binary_leading_dash): New functions.
17515         (res_hnok): Reimplement using these functions and ns_name_pton.
17516         (res_ownok): Likewise.
17517         (res_mailok): Reimplement using printable_string, ns_name_pton and
17518         binary_hnok.
17519         (res_dnok): Reimplement using printable_string and ns_name_pton.
17520         * resolv/tst-res_hnok.c (tests): Add additional tests.
17521         (LETTERDIGITS, PRINTABLE): Define.
17522         (do_test): Adjust one_char results.
17524 2017-11-11  Florian Weimer  <fweimer@redhat.com>
17526         [BZ #22413]
17527         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
17528         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
17530 2017-11-11  Florian Weimer  <fweimer@redhat.com>
17532         * resolv/tst-ns_name_pton.c: New file.
17533         * resolv/Makefile (tests): Add tst-ns_name_pton.
17534         (tst-ns_name_pton): Link against libresolv.
17536 2017-11-11  Florian Weimer  <fweimer@redhat.com>
17538         * resolv/tst-res_hnok.c: New file.
17539         * resolv/Makefile (tests): Add tst-res_hnok.
17540         (tst-res_hnok): Link against libresolv.
17542 2017-11-11  Florian Weimer  <fweimer@redhat.com>
17544         * resolv/tst-resolv-network.c: Use test framework instead explicit
17545         main function.
17547 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17549         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
17550         <jmp_buf-macros.h>.
17551         [!_ISOMAC] (STR_HELPER): New.
17552         [!_ISOMAC] (STR): Likewise.
17553         [!_ISOMAC] (TEST_SIZE): Likewise.
17554         [!_ISOMAC] (TEST_ALIGN): Likewise.
17555         [!_ISOMAC] (TEST_OFFSET): Likewise.
17556         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
17557         field offsets of jmp_buf as well as sigjmp_buf.
17558         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
17559         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
17560         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
17561         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
17562         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
17563         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
17564         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
17565         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
17566         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
17567         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
17568         Likewise.
17569         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
17570         Likewise.
17571         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
17572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
17573         Likewise.
17574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
17575         Likewise.
17576         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
17577         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
17578         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
17579         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
17580         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
17581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
17582         Likewise.
17583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
17584         Likewise.
17585         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17586         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
17587         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
17589 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
17591         * include/float.h
17592         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17593         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
17594         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17595         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
17596         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17597         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
17598         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17599         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
17600         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17601         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
17602         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17603         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
17604         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17605         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
17606         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17607         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
17608         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17609         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
17610         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17611         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
17612         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17613         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
17614         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17615         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
17616         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17617         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
17618         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17619         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
17620         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17621         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
17622         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17623         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
17624         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17625         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
17626         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17627         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
17628         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17629         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
17630         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17631         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
17632         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17633         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
17634         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17635         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
17636         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17637         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
17638         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17639         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
17640         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17641         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
17642         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17643         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
17644         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17645         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
17646         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17647         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
17648         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17649         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
17650         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17651         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
17652         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17653         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
17654         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17655         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
17656         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17657         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
17658         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17659         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
17660         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17661         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
17662         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17663         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
17664         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17665         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
17666         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17667         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
17668         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17669         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
17670         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17671         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
17672         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17673         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
17674         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17675         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
17676         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17677         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
17678         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
17679         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
17681         * stdlib/tst-strtod.h (F16): New macro.
17682         (F32): Likewise.
17683         (F64): Likewise.
17684         (F32X): Likewise.
17685         (F64X): Likewise.
17686         (F128X): Likewise.
17687         (IF_FLOAT16): Likewise.
17688         (IF_FLOAT32): Likewise.
17689         (IF_FLOAT64): Likewise.
17690         (IF_FLOAT32X): Likewise.
17691         (IF_FLOAT64X): Likewise.
17692         (IF_FLOAT128X): Likewise.
17693         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
17694         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
17695         (STRTOD_TEST_FOREACH): Likewise.
17696         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
17697         (CHOOSE_f64): Likewise.
17698         (CHOOSE_f32x): Likewise.
17699         (CHOOSE_f64x): Likewise.
17701 2017-11-07  Andreas Schwab  <schwab@suse.de>
17703         * nptl/Makefile (tests-internal): Remove tst-typesizes.
17705 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
17707         [BZ #22403]
17708         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
17709         to be escaped.
17710         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
17711         to be escaped.
17713 2017-11-07  Claude Paroz  <claude@2xlibre.net>
17715         [BZ #22403]
17716         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
17717         to be escaped.
17718         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
17719         to be escaped.
17720         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
17721         to be escaped.
17723 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17725         [BZ #22298]
17726         * nptl/allocatestack.c (allocate_stack): Check if
17727         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
17728         __PTHREAD_MUTEX_HAVE_PREV is defined.
17729         * nptl/descr.h (pthread): Likewise.
17730         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17731         Likewise.
17732         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
17733         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17734         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
17735         * sysdeps/nptl/bits/thread-shared-types.h
17736         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
17737         defines.
17738         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
17739         of __WORDSIZE for internal layout.
17740         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
17741         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
17742         instead of __WORDSIZE whether to use an union for __spins and __list
17743         fields.
17744         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
17745         case.
17746         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
17747         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
17748         defines.
17749         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
17750         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17751         Likewise.
17752         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
17753         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17754         Likewise.
17755         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
17756         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17757         Likewise.
17758         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
17759         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17760         Likewise.
17761         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
17762         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17763         Likewise.
17764         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
17765         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17766         Likewise.
17767         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
17768         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17769         Likewise.
17770         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
17771         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17772         Likewise.
17773         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
17774         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17775         Likewise.
17776         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
17777         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17778         Likewise.
17779         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
17780         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17781         Likewise.
17782         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
17783         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17784         Likewise.
17785         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
17786         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17787         Likewise.
17788         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
17789         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
17790         Likewise.
17792         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
17793         New macros.
17794         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
17795         checks for expected input type size.
17796         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
17797         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
17798         Likewise.
17799         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
17800         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
17801         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
17802         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
17803         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
17804         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
17805         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
17806         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
17807         superflous runtime assert check.
17808         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
17809         Likewise.
17810         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
17811         Likewise.
17812         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
17813         Likewise.
17814         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
17815         Likewise.
17816         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
17817         Likewise.
17818         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
17819         Likewise.
17820         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
17821         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
17822         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
17823         Likewise.
17824         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
17825         Likewise.
17826         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
17827         Likewise.
17828         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
17829         Likewise.
17830         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
17831         Likewise.
17832         * nptl/pthread_attr_setinheritsched.c
17833         (__pthread_attr_setinheritsched): Likewise.
17834         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
17835         Likewise.
17836         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
17837         Likewise.
17838         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
17839         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
17840         __old_pthread_attr_setstack): Likewise.
17841         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
17842         Likewise.
17843         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
17844         Likewise.
17845         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
17846         Likewise.
17847         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
17848         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
17849         Likewise.
17850         * nptl/tst-typesizes.c: Remove file.
17852         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
17853         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
17854         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
17855         checks for internal pthread_mutex_t offsets.
17856         * sysdeps/aarch64/nptl/pthread-offsets.h
17857         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
17858         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
17859         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
17860         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
17861         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
17862         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
17863         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
17864         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
17865         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
17866         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
17867         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
17868         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
17869         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
17870         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
17871         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
17872         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
17873         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
17874         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
17876 2017-11-07  Florian Weimer  <fweimer@redhat.com>
17878         * bits/mman-linux.h: Move ...
17879         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
17880         comment.
17881         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
17882         outdated comment.
17884 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17886         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
17887         Redefine STRNLEN as __strnlen_power8.
17889 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17891         * signal/sighold.c (sighold): Optimize implementation.
17893         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
17894         __NR_rt_sigqueueinfo.
17896         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17897         __sigtimedwait.
17898         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
17899         assume __NR_rt_sigtimedwait.
17900         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
17901         and add LIBC_CANCEL_HANDLED for cancellation marking.
17902         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17904         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
17905         (sysdeps_routines): Add memchr_noneon.
17906         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
17907         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
17908         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
17909         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
17910         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
17911         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
17912         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
17914         * sysdeps/arm/arm-ifunc.h: New file.
17915         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
17916         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
17917         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
17918         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
17919         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
17920         (__memcpy_neon): Avoid create hidden alias.
17921         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
17922         (__memcpy_vfp): Likewise.
17923         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
17924         (sysdep_routines): Add memcpy_arm.
17925         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
17927 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
17929         [BZ #22362]
17930         * Makerules (make-link-multidir): New.
17931         * config.make.in (multidir): New.
17932         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
17933         * configure: Regenerated.
17934         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
17935         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
17936         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
17937         New target.
17939 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
17941         [BZ #22402]
17942         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
17943         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
17945 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
17947         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
17948         to be escaped.
17950 2017-11-04  Florian Weimer  <fweimer@redhat.com>
17952         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
17954 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
17956         * math/math.h [__HAVE_DISTINCT_FLOAT16
17957         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
17958         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
17959         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
17960         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
17961         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
17962         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
17963         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
17964         (__MATH_TG_F32): New macro.
17965         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
17966         (__MATH_TG_F64X): Likewise.
17967         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
17968         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
17970 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
17972         * po/de.po: Update translations.
17973         * po/ru.po: Likewise.
17975 2017-11-03  Florian Weimer  <fweimer@redhat.com>
17977         * manual/filesys.texi (Hard Links): Document linkat.
17979 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
17981         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
17982         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
17983         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
17984         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
17985         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
17986         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
17987         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
17988         the same as _Float128.
17989         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
17990         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
17991         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
17993         * stdlib/stdlib.h
17994         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
17995         Declare.
17996         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
17997         Likewise.
17998         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
17999         Likewise.
18000         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18001         (strtof32x): Likewise.
18002         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18003         (strtof64x): Likewise.
18004         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18005         (strtof128x): Likewise.
18006         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18007         (strfromf16): Likewise.
18008         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18009         (strfromf32): Likewise.
18010         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18011         (strfromf64): Likewise.
18012         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18013         (strfromf32x): Likewise.
18014         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18015         (strfromf64x): Likewise.
18016         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18017         (strfromf128x): Likewise.
18018         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
18019         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
18020         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
18021         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
18022         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
18023         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
18025 2017-11-03  Richard Henderson  <rth@twiddle.net>
18027         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
18029 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18031         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
18033 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18035         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
18036         DT_TLSDESC_GOT initialization.
18037         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
18038         (_dl_tlsdesc_resolve_hold): Likewise.
18039         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
18040         (_dl_tlsdesc_resolve_hold): Likewise.
18041         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
18042         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
18044 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18046         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
18048 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18050         [BZ #18572]
18051         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
18052         non-lazily for R_ARM_TLS_DESC.
18054 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18056         [BZ #17078]
18057         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
18058         R_ARM_TLS_DESC case.
18059         (elf_machine_lazy_rel): Remove the prelink check.
18061 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18063         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
18064         DT_TLSDESC_GOT initialization.
18065         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
18066         (_dl_tlsdesc_resolve_rela): Likewise.
18067         (_dl_tlsdesc_resolve_hold): Likewise.
18068         (_dl_tlsdesc_undefweak): Remove ldar.
18069         (_dl_tlsdesc_dynamic): Likewise.
18070         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
18071         (_dl_tlsdesc_resolve_rela): Likewise.
18072         (_dl_tlsdesc_resolve_hold): Likewise.
18073         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
18074         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
18075         (_dl_tlsdesc_resolve_rela): Likewise.
18076         (_dl_tlsdesc_resolve_hold): Likewise.
18078 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18080         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
18081         binding and initialization non-lazily for R_AARCH64_TLSDESC.
18083 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18085         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
18086         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
18088 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
18090         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
18091         Declare.
18092         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
18093         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
18094         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
18095         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
18096         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
18097         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
18098         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
18099         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
18100         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
18101         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
18102         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
18104 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
18106         [BZ #22382]
18107         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
18108         * localedata/locales/tpi_PG: Add standard header.
18110 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18112         test-errno-linux: quotactl can fail with EPERM in containers.
18113         * sysdeps/unix/sysv/linux/test-errno-linux.c
18114         (LIST, LIST_FORWARD): New macros.
18115         (check_error_in_list): New function.
18116         (test_wrp_rv): Accept list of permitted error codes.
18117         (test_wrp_rv2): Remove.
18118         (test_wrp): Call test_wrp_rv with list of error codes.
18119         (test_wrp2): Accept list of error codes.
18120         (do_test): Adjust.  Allow EPERM for quotactl.
18122 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18124         * stdio-common/bug16.c (do_test): Use array_length.
18125         * stdio-common/errlist.c (_sys_nerr): Likewise.
18126         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
18127         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
18128         * stdio-common/psiginfo.c (psiginfo): Use array_length.
18129         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
18130         (do_test): Use array_length.
18131         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
18132         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
18133         * stdio-common/tst-printf-round.c (do_test): Likewise.
18134         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
18135         (CHECK): Use array_length.
18136         * stdio-common/tstdiomisc.c (t3, F): Likewise.
18137         * stdio-common/tstscanf.c (main): Likewise.
18138         * stdio-common/vfprintf.c (process_string_arg): Likewise.
18140 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18142         Add array_length and array_end macros.
18143         * include/array_length.h: New file.
18145 2017-11-02  Florian Weimer  <fweimer@redhat.com>
18147         [BZ #22332]
18148         * posix/tst-glob-tilde.c (do_noescape): New variable.
18149         (one_test): Process it.
18150         (do_test): Set do_noescape.  Add unescaping test case.
18152 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
18154         * math/complex.h
18155         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
18156         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
18157         with appropriate macros defined and undefined.
18158         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
18159         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18160         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
18161         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18162         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
18163         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18164         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
18165         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18166         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
18167         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18169         * math/complex.h
18170         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
18171         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
18172         that for long double.  Do not condition define and undefine of
18173         _Mdouble_complex_ on [__CFLOAT128].
18175 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
18177         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
18178         of <sysdeps/generic/sysdep.h>.
18179         (ALIGNARG): Removed.
18180         (ASM_SIZE_DIRECTIVE): Likewise.
18181         (ENTRY): Likewise.
18182         (END): Likewise.
18183         (ENTRY_CHK): Likewise.
18184         (END_CHK): Likewise.
18185         (syscall_error): Likewise.
18186         (mcount): Likewise.
18187         (PSEUDO_END): Likewise.
18188         (L): Likewise.
18189         (atom_text_section): Likewise.
18190         * sysdeps/x86/sysdep.h: New file.
18191         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
18192         of <sysdeps/generic/sysdep.h>.
18193         (ALIGNARG): Removed.
18194         (ASM_SIZE_DIRECTIVE): Likewise.
18195         (ENTRY): Likewise.
18196         (END): Likewise.
18197         (ENTRY_CHK): Likewise.
18198         (END_CHK): Likewise.
18199         (syscall_error): Likewise.
18200         (mcount): Likewise.
18201         (PSEUDO_END): Likewise.
18202         (L): Likewise.
18203         (atom_text_section): Likewise.
18205 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
18207         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
18208         category of LC_CTYPE set to "i18n:2012".
18209         * localedata/locales/i18n_ctype: Regenerate.
18211 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
18213         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
18214         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
18215         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
18216         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
18218         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
18219         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
18220         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
18221         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
18223 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
18225         * math/complex.h
18226         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
18227         New macro.
18228         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
18229         Likewise.
18230         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
18231         Likewise.
18232         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18233         (CMPLXF32X): Likewise.
18234         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18235         (CMPLXF64X): Likewise.
18236         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18237         (CMPLXF128X): Likewise.
18239         * math/math.h
18240         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
18241         (__MATH_EVAL_FMT2): Define to add 0.0f.
18243 2017-10-31  Alan Modra  <amodra@gmail.com>
18245         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
18246         include sysdep.h.
18247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
18248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
18249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
18250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
18251         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
18252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
18253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
18254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
18255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
18256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
18257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
18258         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
18259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
18260         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
18261         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
18262         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
18263         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
18264         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
18265         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
18266         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
18267         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
18268         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
18269         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
18270         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
18271         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
18272         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
18273         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
18274         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
18275         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
18276         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
18277         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
18278         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
18279         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
18280         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
18281         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
18282         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
18283         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
18284         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
18285         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
18286         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
18287         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
18288         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
18289         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
18290         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
18291         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
18292         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
18293         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
18294         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
18295         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
18296         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
18297         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
18298         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
18299         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
18300         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
18301         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
18302         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
18303         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
18304         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
18305         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
18306         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
18307         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
18308         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
18309         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
18310         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
18311         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
18312         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
18313         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
18314         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
18315         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
18317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
18318         include sysdep.h and math_ldbl_opt.h.
18320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
18321         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
18322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
18323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
18324         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
18325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
18326         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
18327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
18328         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
18329         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
18330         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
18331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
18332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
18333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
18334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
18335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
18336         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
18337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
18338         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
18339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
18340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
18341         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
18342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
18343         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
18344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
18345         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
18347 2017-10-31  Alan Modra  <amodra@gmail.com>
18349         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
18350         string/strncase_l.c, not string/strncase.c.
18351         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
18352         (libc_hidden_def): Redefine.
18354 2017-10-31  Alan Modra  <amodra@gmail.com>
18356         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
18357         (__STRCMP, STRCMP, __strcasecmp_l): Define.
18358         (__strcasecmp): Don't define.
18360 2017-10-31  Alan Modra  <amodra@gmail.com>
18362         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
18363         IS_IN (libc).
18364         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
18365         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
18366         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
18368 2017-10-31  Alan Modra  <amodra@gmail.com>
18370         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
18371         USE_AS_STPNCPY.
18373 2017-10-31  Alan Modra  <amodra@gmail.com>
18375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
18376         Redefine only when SHARED.
18378 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
18380         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
18381         Include <bits/math-finite.h> with appropriate macros defined and
18382         undefined.
18383         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
18384         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
18385         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
18386         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
18387         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
18389         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
18390         [!_Mlong_double_] (_Mlong_double_): Likewise.
18391         [!_Mfloat16_] (_Mfloat16_): Likewise.
18392         [!_Mfloat32_] (_Mfloat32_): Likewise.
18393         [!_Mfloat64_] (_Mfloat64_): Likewise.
18394         [!_Mfloat128_] (_Mfloat128_): Likewise.
18395         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
18396         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
18397         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
18398         (_Mdouble_): Define without indirection through those macros.
18399         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
18400         [!_Mfloat128_] (_Mfloat128_): Likewise.
18401         [_Mlong_double_] (_Mlong_double_): Likewise.
18402         (_Mdouble_): Define without indirection through those macros.
18403         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
18404         not add -D_Mlong_double_=double.
18405         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
18406         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
18408 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
18410         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
18412 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
18414         * sysdeps/x86/libc-start.c: Reformat.
18416 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
18418         [BZ #22353]
18419         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
18420         (1): Renamed to ...
18421         (L(Src0)): This.
18422         (L(Src1)): New.
18423         (L(Src2)): Likewise.
18424         (L(1)): Renamed to ...
18425         (L(Src3)): This.
18427 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
18429         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
18430         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
18431         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
18432         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
18433         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
18434         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
18435         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
18436         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
18437         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
18438         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
18439         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
18440         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
18441         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
18442         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
18443         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
18444         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
18445         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
18446         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
18447         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
18448         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
18449         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
18450         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
18451         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
18452         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
18453         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
18454         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
18455         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
18456         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
18457         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
18458         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
18459         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
18460         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
18461         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
18462         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
18463         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
18464         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
18465         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
18466         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
18467         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
18468         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
18469         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
18470         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
18471         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
18472         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
18473         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
18474         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
18475         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
18476         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
18477         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
18478         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
18479         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
18480         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
18481         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
18482         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
18483         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
18484         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
18485         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
18486         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
18487         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
18488         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
18489         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
18490         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
18491         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
18492         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
18493         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
18494         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
18496 2017-10-30  Florian Weimer  <fweimer@redhat.com>
18498         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
18499         always defined.
18500         * io/tst-mkdirat.c (do_test): Likewise.
18501         * io/tst-mkfifoat.c (do_test): Likewise.
18502         * io/tst-mknodat.c (do_test): Likewise.
18503         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
18504         * locale/programs/locale.c (select_dirs): Likewise.
18505         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
18506         * posix/bug-glob2.c (my_readdir): Likewise.
18507         * posix/tst-dir.c (main): Likewise.
18508         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
18509         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
18511 2017-10-30  Florian Weimer  <fweimer@redhat.com>
18513         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
18514         just __USE_GNU.
18516 2017-10-30  Florian Weimer  <fweimer@redhat.com>
18518         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
18519         Convert to support/test-driver.c.
18520         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
18521         New macro parameters.
18522         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
18523         * posix/tst-gnuglob.c: New file.
18524         * posix/tst-gnuglob64.c: Likewise.
18525         * posix/Makefile (tests): Add tst-gnuglob64.
18527 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
18529         [BZ #19485]
18530         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
18531         and use a better translation for March in “mon”.
18532         * localedata/locales/csb_PL: Use more ASCII to improve the
18533         readability of the source.
18535 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
18537         [BZ #13953]
18538         * localedata/locales/km_KH: Use ASCII as much
18539         as possible for better readability of the source and
18540         remove useless comments.
18541         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
18542         was commented out and apparently wrong anyway because it was
18543         using Lao characters. If Buddhist era should be used
18544         for km_KH, a native speaker should write the correct formaat
18545         for Khmer.
18546         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
18547         (According to CLDR, the first weekday for Cambodia is Sunday).
18548         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
18549         (These were using Lao characters which must be wrong. If we get
18550         the correct data from a native speaker, we could add it back, until
18551         then it is better not to have name_mr and name_mrs at all than
18552         having it wrong).
18554 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
18556         * locale/loadlocale.c: Correct size of
18557         _nl_value_type_LC_<category> arrays.
18559 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
18561         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
18562         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
18563         with appropriate macros defined and undefined.
18564         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
18565         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
18566         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
18567         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
18568         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
18570 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
18572         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
18573         "-O2 -march=i586".
18575 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
18577         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
18578         with lowercase letters to make it agree with CLDR.
18580 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
18582         [BZ #15260]
18583         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
18584         first letters of yesstr and nostr in yesexpr and noexpr,
18585         not for the full words.
18586         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
18587         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
18588         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
18589         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
18590         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
18591         first letters of yesstr and nostr in yesexpr and noexpr,
18592         until now only English was matched in yesexpr and noexpr.
18593         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
18594         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
18595         fil but not for tl. As tl and fil are very similar, using fil
18596         is probably better than using English.
18598 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
18600         [BZ #21706]
18601         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
18602         in yesstr and nostr.
18604 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
18606         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
18607         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
18608         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
18609         Likewise.
18610         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
18611         Likewise.
18612         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
18613         Likewise.
18614         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
18615         Likewise.
18616         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18617         (SNANF128X): Likewise.
18619         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
18620         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
18621         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18622         (HUGE_VAL_F32): Likewise.
18623         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18624         (HUGE_VAL_F64): Likewise.
18625         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18626         (HUGE_VAL_F32X): Likewise.
18627         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18628         (HUGE_VAL_F64X): Likewise.
18629         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
18630         (HUGE_VAL_F128X): Likewise.
18632 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
18634         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
18635         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
18636         for the br_FR locale.
18638 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
18640         [BZ #21706]
18641         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
18643 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
18645         * locale/programs/record-status.h: Define globals, and function
18646         prototypes. Move function bodies...
18647         * locale/programs/record-status.c: ... to here. New file.
18648         * iconv/Makefile (iconv_prog-modules): Add record-status.
18649         * locale/Makefile (lib-modules): Likewise.
18650         * iconv/iconv_prog.c: Remove verbose.
18651         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
18652         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
18653         record a warning about ASCII compatibility.
18654         * locale/programs/ld-monetary.c (monetary_finish): If
18655         warn_int_curr_symbol is true then record a warning about the symbol
18656         not being in our ISO 4217 list.
18657         * locale/programs/locale.c: Include record-status.h. Remove verbose.
18658         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
18659         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
18660         (OPT_NO_WARN): Define.
18661         (OPT_WARN): Define.
18662         (options): Add entry for --no-warnings, and --warnings.
18663         (set_warnings): New function to enable/disable warnings.
18664         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
18665         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
18666         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
18667         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
18668         Pass flags to generate_locale.
18669         (generate_locale): Accept new flag argument and pass it to localedef
18670         invocation.
18671         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
18672         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
18674         * localedata/Makefile (test-input-data): Use full file name.
18675         * localedata/da_DK.in: Rename to...
18676         * localedata/da_DK.ISO-8859-1.in: ...this.
18677         * localedata/de_DE.in: Rename to...
18678         * localedata/de_DE.ISO-8859-1.in: ...this.
18679         * localedata/en_US.in: Rename to...
18680         * localedata/en_US.ISO-8859-1.in: ...this.
18681         * localedata/fr_FR.in: Rename to...
18682         * localedata/fr_FR.UTF-8.in: ... this.
18683         * localedata/hr_HR.in: Rename to...
18684         * localedata/hr_HR.ISO-8859-2.in: ...this.
18685         * localedata/hu_HU.in: Rename to...
18686         * localedata/hu_HU.UTF-8.in: ...this.
18687         * localedata/si_LK.in: Rename to...
18688         * localedata/si_LK.UTF-8.in: ...this.
18689         * localedata/sv_SE.in: Rename to...
18690         * localedata/sv_SE.ISO-8859-1.in: ...this.
18691         * localedata/tr_TR.in: Rename to...
18692         * localedata/tr_TR.UTF-8.in: ...this.
18693         * localedata/uk_UA.in: Rename to...
18694         * localedata/uk_UA.UTF-8.in: ...this.
18695         * localedata/sort-test.sh: Test file is locale name with the
18696         suffix.
18698         * localedata/unicode-gen/Makefile (check_i18n): Rename to
18699         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
18700         file.
18701         * localedata/locales/i18n_ctype: Regenerate.
18702         * localedata/locales/tr_TR: Likewise.
18703         * localedata/locales/translit_circle: Likewise.
18704         * localedata/locales/translit_cjk_compat: Likewise.
18705         * localedata/locales/translit_combining: Likewise.
18706         * localedata/locales/translit_compat: Likewise.
18707         * localedata/locales/translit_font: Likewise.
18708         * localedata/locales/translit_fraction: Likewise.
18710 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18712         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
18713         lxvd2x/stxvd2x with lvx/stvx.
18714         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
18716 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
18718         * include/alloc_buffer.h: Replace "if if " with "if " in
18719         comments.
18720         * sysdeps/mips/memcpy.S: Likkewise.
18721         * sysdeps/mips/memset.S: Likewise.
18722         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
18723         Likewise.
18724         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
18725         Likewise.
18726         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
18727         Likewise.
18729 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18731         [BZ #15261]
18732         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
18733         yesexpr and noexpr.
18734         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
18735         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
18736         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
18737         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
18738         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
18739         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
18740         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
18742 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18744         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
18745         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
18746         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
18747         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
18748         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
18749         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
18750         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
18751         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
18752         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
18753         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
18754         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
18755         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
18757 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18759         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
18760         as possible for better readability of the source.
18761         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
18762         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
18763         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
18764         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
18765         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
18766         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
18767         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
18768         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
18769         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
18770         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
18771         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
18772         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
18773         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
18774         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
18775         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
18776         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
18777         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
18778         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
18779         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
18780         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
18781         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
18782         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
18783         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
18784         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
18785         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
18786         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
18787         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
18788         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
18789         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
18790         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
18791         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
18792         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
18793         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
18794         * localedata/locales/en_US (LC_MESSAGES): Likewise.
18795         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
18796         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
18797         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
18798         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
18799         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
18800         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
18801         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
18802         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
18803         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
18804         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
18805         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
18806         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
18807         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
18808         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
18809         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
18810         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
18811         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
18812         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
18813         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
18814         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
18815         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
18816         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
18817         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
18818         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
18819         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
18820         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
18821         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
18822         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
18823         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
18824         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
18825         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
18826         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
18827         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
18828         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
18829         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
18830         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
18831         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
18832         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
18833         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
18834         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
18835         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
18836         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
18837         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
18838         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
18839         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
18840         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
18841         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
18842         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
18843         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
18844         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
18845         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
18846         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
18847         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
18848         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
18849         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
18850         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
18851         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
18852         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
18853         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
18854         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
18855         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
18856         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
18857         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
18858         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
18859         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
18860         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
18861         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
18862         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
18863         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
18864         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
18865         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
18866         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
18867         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
18868         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
18869         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
18870         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
18871         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
18872         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
18873         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
18874         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
18875         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
18876         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
18877         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
18878         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
18879         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
18880         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
18881         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
18882         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
18883         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
18884         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
18885         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
18886         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
18887         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
18888         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
18889         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
18890         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
18891         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
18892         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
18893         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
18894         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
18895         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
18896         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
18897         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
18898         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
18899         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
18900         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
18901         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
18902         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
18903         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
18904         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
18905         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
18906         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
18907         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
18908         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
18909         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
18910         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
18911         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
18912         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
18913         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
18914         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
18915         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
18916         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
18917         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
18918         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
18919         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
18920         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
18921         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
18922         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
18923         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
18924         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
18925         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
18926         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
18927         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
18928         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
18929         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
18930         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
18931         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
18932         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
18933         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
18934         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
18936 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18938         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
18939         (Use first letters of yesstr and nostr correctly instead of using
18940         full words).
18942 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18944         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
18945         (Use first letters of yesstr and nostr correctly).
18947 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18949         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
18950         also check for the first characters of yesstr and nostr.
18951         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
18952         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
18954 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18956         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
18957         also check for Chinese characters.
18959 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18961         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
18962         match also for the contents of yesstr and nostr. As the first letter
18963         of yesstr and nostr is equal, checking only for the first letter
18964         is not enough.
18966 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18968         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
18969         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
18971 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18973         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
18974         of main contributor.
18976 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18978         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
18979         instead of using English.
18981 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18983         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
18984         by including the first letters of nostr and yesexpr in the regexp.
18985         Also make it more readable by using ASCII where possible.
18987 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
18989         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
18990         the first letter of nostr in the regexp. It agrees with CLDR now.
18991         Also make it more readable by using ASCII where possible.
18993 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
18995         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
18996         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
18997         these strings contain a U+17D6 (which somewhat looks like a colon)
18998         instead of a real colon to separate the full words for “yes”
18999         and “no” from the single letter responses.
19001 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19003         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
19004         it agree with CLDR (include the first letter of yesstr).
19005         Also make it more readable by using ASCII where possible.
19007 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19009         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
19010         and improve yesexpr and noexpr. The yesstr and nostr apparently
19011         came from CLDR. And CLDR has a bug there: these strings contain
19012         a U+0903 (which looks like a colon) instead of a real colon
19013         to separate the full words for “yes” and “no” from the single
19014         letter responses.
19016 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19018         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
19019         letters of the full yesstr and nostr in yesexpr and noexpr.
19021 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19023         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
19024         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
19025         * localedata/locales/an_ES: Make source more readable by using ASCII
19026         where possible.
19028 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
19030         [BZ #20952]
19031         * localedata/locales/yuw_PG: New file.
19032         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
19033         * locale/iso-639.def: Add Yau (Uruwa).
19035 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
19037         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
19039 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
19041         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
19042         (__libc_realloc): Likewise.
19043         (_mid_memalign): Likewise.
19044         (__libc_calloc): Likewise.
19046 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
19048         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
19049         by adding the generic +1 and -0 as in all other locales.
19050         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
19051         day names and make it more readable by using ASCII where possible.
19053 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
19055         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
19056         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
19058 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19060         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
19061         WNOHANG in waitpid call.
19063 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
19065         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
19066         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
19068         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
19069         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
19070         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
19071         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
19072         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
19073         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
19074         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
19075         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
19076         variables.
19078 2017-10-23  Michael Collison  <michael.collison@arm.com>
19080         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
19081         with __builtin_sqrt.
19082         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
19083         with __builtin_sqrtf.
19084         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
19085         with __builtin_ceil.
19086         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
19087         with __builtin_ceilf.
19088         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
19089         with __builtin_floor.
19090         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
19091         with __builtin_floorf.
19092         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
19093         with __builtin_fma.
19094         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
19095         with __builtin_fmaf.
19096         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
19097         with __builtin_fmax.
19098         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
19099         with __builtin_fmaxf.
19100         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
19101         with __builtin_fmin.
19102         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
19103         with __builtin_fminf.
19104         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
19105         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
19106         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
19107         with builtin_rint and conversion to int.
19108         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
19109         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
19110         with builtin_llround.
19111         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
19112         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
19113         with builtin_rint and conversion to long int.
19114         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
19115         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
19116         with builtin_lround.
19117         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
19118         with builtin_lroundf.
19119         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
19120         statements with __builtin_nearbyint.
19121         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
19122         statements with __builtin_nearbyintf.
19123         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
19124         with __builtin_rint.
19125         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
19126         with __builtin_rintf.
19127         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
19128         with __builtin_round.
19129         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
19130         with __builtin_roundf.
19131         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
19132         with __builtin_trunc.
19133         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
19134         with __builtin_truncf.
19135         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
19136         and s_l[l]round[f].c too.
19138 2017-10-23  Alan Modra  <amodra@gmail.com>
19140         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
19141         Adjust stack after restoring regs.  Add missing LR cfi_restore.
19143 2017-10-23  Alan Modra  <amodra@gmail.com>
19145         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
19146         Move LR save and frame setup/teardown and LR restore to
19147         immediately around memset call.  Provide cfi.
19149 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19151         * sysdeps/i386/fpu/e_powf.S: Removed.
19152         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
19153         * sysdeps/i386/fpu/w_powf.c: Likewise.
19154         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
19155         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19156         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19157         Add e_powf-sse2.
19158         (CFLAGS-e_powf-sse2.c): New.
19159         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
19160         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
19162 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19164         * sysdeps/i386/fpu/e_log2f.S: Removed.
19165         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
19166         * sysdeps/i386/fpu/w_log2f.c: Likewise.
19167         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
19168         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19169         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19170         Add e_log2f-sse2.
19171         (CFLAGS-e_log2f-sse2.c): New.
19172         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
19173         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
19175 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19177         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19178         Add e_powf-fma.
19179         (CFLAGS-e_powf-fma.c): New.
19180         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
19181         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
19183 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19185         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19186         Add e_log2f-fma.
19187         (CFLAGS-e_log2f-fma.c): New.
19188         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
19189         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
19191 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19193         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19194         Add e_logf-fma.
19195         (CFLAGS-e_logf-fma.c): New.
19196         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
19197         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
19199 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19201         * sysdeps/i386/fpu/e_logf.S: Removed.
19202         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
19203         * sysdeps/i386/fpu/w_logf.c: Likewise.
19204         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
19205         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
19206         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19207         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19208         Add e_logf-sse2.
19209         (CFLAGS-e_logf-sse2.c): New.
19210         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
19211         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
19213 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19215         * sysdeps/i386/fpu/e_exp2f.S: Removed.
19216         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
19217         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
19218         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19219         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19220         Add e_exp2f-sse2.
19221         (CFLAGS-e_exp2f-sse2.c): New.
19222         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
19223         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
19225 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19227         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19228         Add e_exp2f-fma.
19229         (CFLAGS-e_exp2f-fma.c): New.
19230         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
19231         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
19233 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19235         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
19236         * sysdeps/i386/fpu/e_expf.S: Likewise.
19237         * sysdeps/i386/fpu/math_errf.c: Likewise.
19238         * sysdeps/i386/fpu/w_expf.c: Likewise.
19239         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
19240         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
19241         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
19242         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
19243         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19244         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
19245         Remove e_expf-ia32.
19246         (CFLAGS-e_expf-sse2.c): New.
19247         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
19248         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
19250 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
19252         * sysdeps/x86_64/fpu/e_expf.S: Removed.
19253         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
19254         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
19255         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
19256         e_expf.c.
19257         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
19258         New.
19259         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
19260         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
19261         Renamed to ...
19262         (__redirect_expf): This.
19263         (SYMBOL_NAME): Changed to expf.
19264         (__ieee754_expf): Renamed to ...
19265         (__expf): This.
19266         (__GI___expf): This.
19267         (__ieee754_expf): Add strong_alias.
19268         (__expf_finite): Likewise.
19269         (__expf): New.
19270         Include <sysdeps/ieee754/flt-32/e_expf.c>.
19272 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19274         [BZ #22332]
19275         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
19276         unescaping.
19278 2017-10-21  Florian Weimer  <fweimer@redhat.com>
19280         * posix/Makefile (tests): Add tst-glob-tilde.
19281         (tests-special): Add tst-glob-tilde-mem.out
19282         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
19283         (tst-glob-tilde-mem.out): Add mtrace check.
19284         * posix/tst-glob-tilde.c: New file.
19286 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
19288         * bits/floatn-common.h: New file.
19289         * math/Makefile (headers): Add bits/floatn-common.h.
19290         * bits/floatn.h: Include <bits/floatn-common.h>.
19291         * sysdeps/ia64/bits/floatn.h: Likewise.
19292         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
19293         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
19294         * sysdeps/powerpc/bits/floatn.h: Likewise.
19295         * sysdeps/x86/bits/floatn.h: Likewise.
19297 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19299         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
19300         indicates whether compiler emits an warning for alias for
19301         functions with incompatible types.
19303         [BZ #22273]
19304         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
19305         the auxiliary process is terminated by a signal before calling _exit
19306         or execve.
19308 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
19310         [BZ #21265]
19311         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
19312         New.
19313         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
19314         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
19315         and bit_arch_XSAVEC_Usable if needed.
19316         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
19317         and bit_arch_Use_dl_runtime_resolve_opt.
19318         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
19319         Removed.
19320         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
19321         (bit_arch_Prefer_No_AVX512): Updated.
19322         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
19323         (bit_arch_XSAVEC_Usable): New.
19324         (STATE_SAVE_OFFSET): Likewise.
19325         (STATE_SAVE_MASK): Likewise.
19326         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
19327         (cpu_features): Add xsave_state_size and xsave_state_full_size.
19328         (index_arch_Use_dl_runtime_resolve_opt): Removed.
19329         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
19330         (index_arch_XSAVEC_Usable): New.
19331         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
19332         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
19333         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
19334         is enabled.
19335         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
19336         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
19337         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
19338         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
19339         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
19340         _dl_runtime_resolve_xsavec.
19341         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
19342         Removed.
19343         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
19344         instead of VEC_SIZE.
19345         (REGISTER_SAVE_BND0): Removed.
19346         (REGISTER_SAVE_BND1): Likewise.
19347         (REGISTER_SAVE_BND3): Likewise.
19348         (REGISTER_SAVE_RAX): Always defined to 0.
19349         (VMOV): Removed.
19350         (_dl_runtime_resolve_avx): Likewise.
19351         (_dl_runtime_resolve_avx_slow): Likewise.
19352         (_dl_runtime_resolve_avx_opt): Likewise.
19353         (_dl_runtime_resolve_avx512): Likewise.
19354         (_dl_runtime_resolve_avx512_opt): Likewise.
19355         (_dl_runtime_resolve_sse): Likewise.
19356         (_dl_runtime_resolve_sse_vex): Likewise.
19357         (USE_FXSAVE): New.
19358         (_dl_runtime_resolve_fxsave): Likewise.
19359         (USE_XSAVE): Likewise.
19360         (_dl_runtime_resolve_xsave): Likewise.
19361         (USE_XSAVEC): Likewise.
19362         (_dl_runtime_resolve_xsavec): Likewise.
19363         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
19364         Removed.
19365         (_dl_runtime_resolve_avx512_opt): Likewise.
19366         (_dl_runtime_resolve_avx): Likewise.
19367         (_dl_runtime_resolve_avx_opt): Likewise.
19368         (_dl_runtime_resolve_sse): Likewise.
19369         (_dl_runtime_resolve_sse_vex): Likewise.
19370         (_dl_runtime_resolve_fxsave): New.
19371         (_dl_runtime_resolve_xsave): Likewise.
19372         (_dl_runtime_resolve_xsavec): Likewise.
19374 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
19376         [BZ #22320]
19377         CVE-2017-15670
19378         * posix/glob.c (__glob): Fix one-byte overflow.
19380 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
19382         * malloc/malloc.c (sysdep-cancel.h): Add include.
19384 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
19386         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
19388 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
19390         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
19391         (tests): Remove $(objpfx)ga_test depdendency.
19392         * resolv/ga_test.c: Remove file.
19394 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
19396         [BZ #18812]
19397         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
19398         * localedata/locales/kab_DZ: New file.
19400 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
19402         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
19403         _dl_relocate_static_pie instead of _dl_start to compute load
19404         address in static PIE.
19406 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
19408         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
19410 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
19412         [BZ #13605]
19413         * localedata/SUPPORTED: Add shn_MM/UTF-8.
19414         * localedata/locales/shn_MM: New file.
19416 2017-10-20  Florian Weimer  <fweimer@redhat.com>
19418         [BZ #22321]
19419         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
19420         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
19421         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
19422         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
19423         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
19424         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
19426 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
19428         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19430 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
19432         * sysdeps/mips/ieee754/bits/floatn.h: New file.
19434         [BZ #22322]
19435         * sysdeps/mips/bits/long-double.h: Move to ....
19436         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
19438 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
19440         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
19442 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
19443             H.J. Lu  <hongjiu.lu@intel.com>
19445         [BZ #22299]
19446         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
19447         GLRO(dl_platform) to NULL.
19448         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
19449         (modules-names): Add tst-platformmod-1 and
19450         x86_64/tst-platformmod-2.
19451         (CFLAGS-tst-platform-1.c): New.
19452         (CFLAGS-tst-platformmod-1.c): Likewise.
19453         (CFLAGS-tst-platformmod-2.c): Likewise.
19454         (LDFLAGS-tst-platformmod-2.so): Likewise.
19455         ($(objpfx)tst-platform-1): Likewise.
19456         ($(objpfx)tst-platform-1.out): Likewise.
19457         (tst-platform-1-ENV): Likewise.
19458         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
19459         * sysdeps/x86_64/tst-platform-1.c: New file.
19460         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
19461         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
19463 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
19465         [BZ #13994]
19466         * locale/iso-639.def: Add Karbi.
19467         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
19468         * localedata/locales/mjw_IN: New file.
19470 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
19472         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
19473         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
19474         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
19475         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
19476         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
19477         (libm_alias_ldouble_other_r): Also create _Float128 alias.
19478         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
19479         <bits/floatn.h>.
19480         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
19481         (libm_alias_ldouble_other_r): Also create _Float128 alias.
19482         * manual/math.texi (Mathematics): Document additional architecture
19483         support for _Float128.
19484         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19485         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19486         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19487         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19488         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19489         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19490         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19491         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19492         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19493         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19494         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19495         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19496         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19497         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19498         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19500 2017-10-18  Renlin Li  <renlin.li@arm.com>
19502         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
19503         _DYNAMIC symbol to calculate load address.
19505 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
19507         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
19508         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
19509         summary bits.
19510         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
19511         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
19513 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
19515         [BZ #16777]
19516         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
19517         and improve readability by using more ASCII.
19518         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
19519         and improve readability by using more ASCII.
19521 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
19523         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
19524         not all targets support atomics on bool.
19526 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
19528         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
19529         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
19530         __f128.
19531         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
19532         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
19533         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
19534         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
19535         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
19536         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
19538 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19540         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
19541         defines.
19543 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
19545         [BZ #22159]
19546         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
19547         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
19548         (do_check_remalloced_chunk): Fix build bug.
19549         (do_check_malloc_state): Add assert that checks arena->top.
19550         (malloc_consolidate): Remove initialization.
19551         (int_mallinfo): Remove call to malloc_consolidate.
19552          (__libc_mallopt): Clarify why malloc_consolidate is needed.
19554 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
19556         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
19557         (have_fastchunks): Remove.
19558         (clear_fastchunks): Remove.
19559         (set_fastchunks): Remove.
19560         (malloc_state): Add have_fastchunks.
19561         (malloc_init_state): Use have_fastchunks.
19562         (do_check_malloc_state): Remove incorrect invariant checks.
19563         (_int_malloc): Use have_fastchunks.
19564         (_int_free): Likewise.
19565         (malloc_consolidate): Likewise.
19567 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
19569         * malloc/malloc.c (tcache_put): Inline.
19570         (tcache_get): Inline.
19572 2017-10-17  Jordi Mallach  <jordi@gnu.org>
19574         Aurelien Jarno  <aurelien@aurel32.net>
19575         [BZ #2522]
19576         * localedata/locales/ca_ES@valencia: New file.
19577         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
19579 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
19581         [BZ #22296]
19582         * math/math.h: Let signbit use the builtin in C++ mode with gcc
19583         < 6.x
19585 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19587         * scripts/build-many-glibcs.py (Context.add_all_configs):
19588         Add arm-linux-gnueabihf multiarch extra_glibcs.
19590         * sysdeps/generic/ifunc-init.h: New file.
19591         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
19593 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
19595         [BZ #22019]
19596         * localedata/locales/el_GR: Set n_cs_precedes to 0.
19597         * localedata/locales/el_CY: copy "el_GR" because it is identical.
19598         * stdlib/tst-strfmon_l.c: adapt test case.
19600 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
19602         * sysdeps/generic/float128-abi.h: New file.
19603         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
19604         non-__prefixed symbols to ....
19605         * math/Versions: ... here.  Include <float128-abi.h>.
19606         * stdlib/Versions ... and here.  Include <float128-abi.h>
19608 2017-10-16  Florian Weimer  <fweimer@redhat.com>
19610         * version.h (VERSION): Switch to ".9000" as the development
19611         version suffix.
19613 2017-10-16  Florian Weimer  <fweimer@redhat.com>
19615         [BZ #22050]
19616         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
19617         compat_symbol_reference to access non-default version.
19619 2017-10-16  Florian Weimer  <fweimer@redhat.com>
19621         * malloc/Makefile (others-extras): Set to mcheck-init.o.
19623 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
19625         * include/shlib-compat.h (compat_symbol_reference): Update
19626         comment.
19628 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
19630         * math/Makefile (test-types): Add
19631         $(type-float128-$(float128-alias-fcts)).
19632         * math/test-float128.h (TYPE_STR): Define conditional on
19633         [FLT128_MANT_DIG == LDBL_MANT_DIG].
19634         (ULP_IDX): Likewise.
19635         (ULP_I_IDX): Likewise.
19637         * stdlib/strtold.c: Include <bits/floatn.h>
19638         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
19639         and later undefine as macro.  Define as weak alias if
19640         [!USE_WIDE_CHAR].
19641         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
19642         and later undefine as macro.  Define as weak alias if
19643         [USE_WIDE_CHAR].
19644         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
19645         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
19646         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
19647         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
19648         Define and later undefine as macro.  Define as weak alias if
19649         [USE_WIDE_CHAR].
19650         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
19651         <bits/floatn.h>.
19652         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
19653         Define and later undefine as macro.  Define as weak alias if
19654         [!USE_WIDE_CHAR].
19655         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
19656         Define and later undefine as macro.  Define as weak alias if
19657         [USE_WIDE_CHAR].
19659 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
19661         * localedata/collate-test.c (allocate_arrays): Don't use \n in
19662         record_verbose messages.
19664 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
19666         [BZ #22052]
19667         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
19668         to silence -O3 -Wall warning with GCC 7.
19670 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
19672         * Makeconfig (+link-static-before-libc): Use the first of
19673         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
19674         * gmon/Makefile (tests): Add tst-gmon-static.
19675         (tests-static): Likewise.
19676         (CFLAGS-tst-gmon-static.c): New.
19677         (CRT-tst-gmon-static): Likewise.
19678         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
19679         (tst-gmon-static-ENV): Likewise.
19680         (tests-special): Likewise.
19681         ($(objpfx)tst-gmon-static.out): Likewise.
19682         (clean-tst-gmon-static-data): Likewise.
19683         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
19684         * gmon/tst-gmon-static-gprof.sh: New file.
19685         * gmon/tst-gmon-static.c: Likewise.
19687 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
19689         [BZ #22295]
19690         * locale/programs/linereader.c (get_string): Don't warn on
19691         non-symbolic character.
19693         [BZ #22294]
19694         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
19695         int_curr_symbol.
19697         [BZ #22292]
19698         * locale/programs/record-status.h: New file
19699         * locale/programs/locale.c: Add comment.
19700         * locale/programs/charmap-dir.c: Don't include error.h.
19701         (charmap_opendir): Use record_error.
19702         * locale/programs/charmap.c: Don't include error.h.
19703         (charmap_read): Use record_error, and record_warning.
19704         (parse_charmap): Likewise.
19705         * locale/programs/ld-address.c: Don't include error.h.
19706         (address_finish): Use record_error, and record_warning.
19707         * locale/programs/ld-collate.c: Don't include error.h.
19708         (collate_finish): Use record_error, and record_error_at_line.
19709         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
19710         (ctype_class_new): Likewise.
19711         (ctype_map_new): Likewise.
19712         (set_one_default): Likewise.
19713         (set_class_defaults): Likewise.
19714         (translit_flatten): Likewise.
19715         (allocate_arrays): Use record_error, and record_verbose.
19716         * locale/programs/ld-identification.c: Don't include error.h.
19717         (indentation_finish): Use record_error and record_warning.
19718         * locale/programs/ld-measurement.c: Don't include error.h.
19719         (measurement_finish): Use record_error.
19720         * locale/programs/ld-messages.c
19721         (message_finish): Likewise.
19722         * locale/programs/ld-monetary.c
19723         (monetary_finish): Likewise.
19724         * locale/programs/ld-name.c (name_finish): Use record_error
19725         and record_warning.
19726         * locale/programs/ld-numeric.c
19727         (numeric_finish): Use record_error.
19728         * locale/programs/ld-paper.c: Don't include error.h.
19729         (paper_finish): Use record_error.
19730         * locale/programs/ld-telephone.c: Don't include error.h.
19731         (telephone_finish): Use record_error.
19732         * locale/programs/ld-time.c (time_finish): Likewise.
19733         * locale/programs/linereader.h (lr_error): Make inline func.
19734         * locale/programs/localedef.c: Define recorded_warning_count,
19735         and recorded_error_count.
19736         (main): Use record_error. Use recorded_error_count and
19737         recorded_warning_count to issue correct error returns.
19738         (add_to_readlist): Use record_error.
19739         (find_locale): Likewise.
19740         (load_locale): Likewise.
19741         * locale/programs/localedef.h: Remove be_quiet
19742         and WITH_CUR_LOCALE.
19743         * locale/programs/locarchive.c (compare_from_file): Use
19744         record_error.
19745         * locale/programs/locfile.c (write_locale_data): Use
19746         record_error.
19747         * locale/programs/repertoire.c: Dont include error.h.
19748         (repertoire_complain): Use record_error.
19749         * localedata/tst-fmon.sh: Expect failures from localedef.
19750         * localedata/tst-locale.sh: Likewise.
19751         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
19753         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
19754         (REPORTS): Likewise.
19755         (check): Likewise.
19756         (i18n): Rename to...
19757         (i18n_ctype): ...this.
19758         (i18n-report): Rename to...
19759         (i18n_ctype-report): ...this.
19760         * localedata/locales/i18n_ctype: Regenerate.
19761         * localedata/locales/i18n: copy i18n_ctype.
19763 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
19765         * stdlib/strfroml.c: Include <bits/floatn.h>.
19766         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
19767         Define before include of <stdlib.h> and undefine afterwards, then
19768         define as weak alias.
19770         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
19771         Undefine and restore default definition.  Use
19772         libm_alias_ldouble_other.
19774 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
19776         [BZ #22153]
19777         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
19778         in coredumps.
19780 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
19782         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19783         Assign sym_map to be map for local symbols, as TLS relocations
19784         use sym_map to determine whether the symbol is defined and to
19785         extract the TLS information.
19786         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
19787         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
19789 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19791         [BZ #22189]
19792         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
19793         (math_force_eval): Add powerpc version.
19795         [BZ #22142]
19796         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
19797         -DBL_MAX.
19798         (do_test): Likewise.
19799         * stdio-common/tst-printf.sh: Likewise.
19800         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
19801         ifdef clause in order to set the carry bit right.  Replace r0 by
19802         0 without changing the behavior.
19804 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
19806         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
19807         <libm-alias-ldouble.h>.
19808         (fabsl): Define using libm_alias_ldouble.
19809         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
19810         <libm-alias-ldouble.h>.
19811         (fabsl): Define using libm_alias_ldouble.
19813         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
19814         Remove conditional code.
19816         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
19817         Rename to __clog10_internal_l.
19818         (__clog10_internal_l): Define aliases using
19819         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
19820         with __clog10.
19822 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19824         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
19825         * benchtests/sincosf-inputs: New file.
19826         * benchtests/cosf-inputs: New file.
19827         * benchtests/sinf-inputs: New file.
19829 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19831         * posix/tst-spawn.c (do_test): Wait for both children.
19833 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
19835         [BZ #22284]
19836         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
19837         tests-pie): Add tst-gmon-pie.
19838         (CFLAGS-tst-gmon-pie.c): New.
19839         (CRT-tst-gmon-pie): Likewise.
19840         (tst-gmon-pie-ENV): Likewise.
19841         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
19842         ($(objpfx)tst-gmon-pie.out): Likewise.
19843         (clean-tst-gmon-pie-data): Likewise.
19844         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
19845         * gmon/gmon.c [PIC]: Include <link.h>.
19846         [PIC] (callback): New function.
19847         (write_hist): Add an argument for load address.  Subtract load
19848         address from PCs.
19849         (write_call_graph): Likewise.
19850         (write_gmon): Call __dl_iterate_phdr to get load address, pass
19851         it to write_hist and write_call_graph.
19852         * gmon/tst-gmon-pie.c: New file.
19854 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
19856         * math/Makefile (test-types-basic): New variable.
19857         (test-types): Likewise.
19858         (libm-test-support): Use $(test-types) instead of $(types).
19859         (libm-tests-base-normal): Likewise.
19860         (libm-tests-base-finite): Likewise.
19861         (libm-tests-base-inline): Likewise.
19862         (generated): Likewise.
19863         ($(objpfx)libm-test-support-$(t).c): Likewise.
19864         (libm-tests-for-type iterator): Likewise.
19865         (libm-test-support iterator): Likewise.
19866         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
19867         (ulp_idx): Use ULP_IDX.
19868         * math/test-ldouble.h: Include <float.h>.
19869         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
19870         (ULP_IDX): New macro.
19871         (ULP_I_IDX): Likewise.
19872         * math/test-double.h (ULP_IDX): Likewise.
19873         (ULP_I_IDX): Likewise.
19874         * math/test-float.h (ULP_IDX): Likewise.
19875         (ULP_I_IDX): Likewise.
19876         * math/test-float128.h (ULP_IDX): Likewise.
19877         (ULP_I_IDX): Likewise.
19879 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19881         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
19882         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
19883         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
19884         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
19885         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
19886         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
19887         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
19888         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
19889         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
19890         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
19891         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
19892         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
19893         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
19894         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19895         (SINGLE_THREAD_BY_GLOBAL): Define.
19896         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
19897         Likewise.
19898         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
19899         Likewise.
19900         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
19901         Likewise.
19902         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
19903         Likewise.
19904         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
19905         (SINGLE_THREAD_BY_GLOBAL): Likewise.
19906         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
19907         Likewise.
19909 2017-10-11  Andreas Schwab  <schwab@suse.de>
19911         * nis/Makefile (aux): Remove.
19912         * nscd/Makefile (aux): Add nscd_hash.
19913         (nscd-modules): Likewise.
19914         ($(objpfx)nscd): Don't depend on libnsl.
19915         * nscd/nscd_hash.c: New file.
19916         * nscd/nscd_hash.h: Likewise.
19917         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
19918         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
19919         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
19920         instead of <nis/rpcsvc/nis.h>.
19921         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
19923 2017-10-11  Florian Weimer  <fweimer@redhat.com>
19925         [BZ #22078]
19926         Avoid large NSS buffers with many addresses, aliases.
19927         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
19928         using dynarrays and struct alloc_buffer.
19929         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
19930         (tst-nss-files-hosts-multi): Link with -ldl.
19931         * nss/tst-nss-files-hosts-multi.c: New file.
19933 2017-10-11  Florian Weimer  <fweimer@redhat.com>
19935         [BZ #18023]
19936         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
19937         scratch_buffer.  Eliminate gotos.
19939 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
19941         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
19942         libm_alias_ldouble_other.
19943         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
19944         undefine and redefine.
19945         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
19946         (exp10l): Do not define here.
19947         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
19948         (weak_alias): Undefine and redefine.
19949         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
19950         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
19951         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
19952         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
19954         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
19955         [!__fma] (fma): Define using libm_alias_double.
19956         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
19957         [!__fmaf] (fmaf): Define using libm_alias_float.
19958         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
19959         (fmal): Define using libm_alias_ldouble.
19961 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
19963         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
19964         New macro.
19965         (libm_alias_double_other): Likewise.
19966         (libm_alias_double_r): Use libm_alias_double_other_r.
19967         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
19968         New macro.
19969         (libm_alias_float_other): Likewise.
19970         (libm_alias_float_r): Use libm_alias_float_other_r.
19971         * sysdeps/generic/libm-alias-float128.h
19972         (libm_alias_float128_other_r): New macro.
19973         (libm_alias_float128_other): Likewise.
19974         (libm_alias_float128_r): Use libm_alias_float128_other_r.
19975         * sysdeps/generic/libm-alias-ldouble.h
19976         (libm_alias_ldouble_other_r): New macro.
19977         (libm_alias_ldouble_other): Likewise.
19978         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
19979         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
19980         (libm_alias_double_other_r): New macro.
19981         (libm_alias_double_other): Likewise.
19982         (libm_alias_double_r): Use libm_alias_double_other_r.
19983         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
19984         (libm_alias_ldouble_other_r): New macro.
19985         (libm_alias_ldouble_other): Likewise.
19986         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
19987         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
19988         [!USE_AS_COMPAT]: Use libm_alias_double_other.
19989         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
19990         [!USE_AS_COMPAT]: Use libm_alias_float_other.
19991         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
19992         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
19993         * math/w_exp2f.c: Use libm_alias_float_other.
19994         * math/w_expf.c: Likewise.
19995         * math/w_log2f.c: Likewise.
19996         * math/w_logf.c: Likewise.
19997         * math/w_powf.c: Likewise.
19998         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
19999         [!__exp2f]: Use libm_alias_float_other.
20000         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
20001         [!__expf]: Use libm_alias_float_other.
20002         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
20003         [!__log2f]: Use libm_alias_float_other.
20004         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
20005         [!__logf]: Use libm_alias_float_other.
20006         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
20007         [!__powf]: Use libm_alias_float_other.
20009 2017-10-10  Florian Weimer  <fweimer@redhat.com>
20011         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
20012         function.
20013         (_nss_files_gethostbyname3_r): Call it.
20015 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
20017         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
20018         error.  Remove default definition of declare_mgen_alias.
20019         [!declare_mgen_alias_r]: Likewise.
20020         * sysdeps/generic/math-type-macros-double.h
20021         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
20022         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
20023         (declare_mgen_alias_r): Likewise.
20024         * sysdeps/generic/math-type-macros-float128.h
20025         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
20026         * sysdeps/generic/math-type-macros-ldouble.h
20027         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
20028         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
20029         macro.
20030         (declare_mgen_alias_r_s): Likewise.
20031         (declare_mgen_alias_r): Likewise.
20032         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
20033         (lgamma_r): Define using libm_alias_double_r.
20034         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
20035         (lgammaf_r): Define using libm_alias_float_r.
20036         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
20037         (lgammal_r): Define using libm_alias_ldouble_r.
20038         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
20039         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
20041 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20043         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20044         extern declaration.
20046 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
20048         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
20050 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
20052         [BZ #21326]
20053         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
20054         [__cplusplus >= 201103] (__USE_ISOC99): Define.
20055         * math/Makefile (test-math-cxx11): New test.
20056         * math/test-math-cxx11.cc: New file.
20058 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
20060         * login/openpty.c (openpty): Close slave pty file descriptor on error.
20062         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
20063         call to allocate the slave pty file descriptor.
20065 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
20067         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
20068         [!__fma] (fma): Define using libm_alias_double.
20069         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
20070         [!__fma] (fma): Define using libm_alias_double.
20072         * sysdeps/ieee754/float128/float128_private.h: Include
20073         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
20074         (libm_alias_ldouble_r): Undefine and redefine.
20075         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
20076         <libm-alias-ldouble.h>.
20077         (asinhl): Define using libm_alias_ldouble.
20078         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
20079         <libm-alias-ldouble.h>.
20080         (atanl): Define using libm_alias_ldouble.
20081         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
20082         <libm-alias-ldouble.h>.
20083         (cbrtl): Define using libm_alias_ldouble.
20084         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
20085         <libm-alias-ldouble.h>.
20086         (ceill): Define using libm_alias_ldouble.
20087         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
20088         <libm-alias-ldouble.h>.
20089         (copysignl): Define using libm_alias_ldouble.
20090         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
20091         <libm-alias-ldouble.h>.
20092         (cosl): Define using libm_alias_ldouble.
20093         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
20094         <libm-alias-ldouble.h>.
20095         (erfl): Define using libm_alias_ldouble.
20096         (erfcl): Likewise.
20097         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
20098         <libm-alias-ldouble.h>.
20099         (expm1l): Define using libm_alias_ldouble.
20100         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
20101         <libm-alias-ldouble.h>.
20102         (fabsl): Define using libm_alias_ldouble.
20103         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
20104         <libm-alias-ldouble.h>.
20105         (floorl): Define using libm_alias_ldouble.
20106         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
20107         <libm-alias-ldouble.h>.
20108         (fmal): Define using libm_alias_ldouble.
20109         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
20110         <libm-alias-ldouble.h>.
20111         (frexpl): Define using libm_alias_ldouble.
20112         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
20113         libm_alias_ldouble.
20114         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
20115         <libm-alias-ldouble.h>.
20116         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
20117         libm_alias_ldouble.
20118         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
20119         <libm-alias-ldouble.h>.
20120         (getpayloadl): Define using libm_alias_ldouble.
20121         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
20122         <libm-alias-ldouble.h>.
20123         (llrintl): Define using libm_alias_ldouble.
20124         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
20125         <libm-alias-ldouble.h>.
20126         (llroundl): Define using libm_alias_ldouble.
20127         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
20128         <libm-alias-ldouble.h>.
20129         (logbl): Define using libm_alias_ldouble.
20130         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
20131         <libm-alias-ldouble.h>.
20132         (lrintl): Define using libm_alias_ldouble.
20133         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
20134         <libm-alias-ldouble.h>.
20135         (lroundl): Define using libm_alias_ldouble.
20136         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
20137         <libm-alias-ldouble.h>.
20138         (modfl): Define using libm_alias_ldouble.
20139         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
20140         <libm-alias-ldouble.h>.
20141         (nearbyintl): Define using libm_alias_ldouble.
20142         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
20143         <libm-alias-ldouble.h>.
20144         (nextafterl): Define using libm_alias_ldouble.
20145         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
20146         <libm-alias-ldouble.h>.
20147         (nextupl): Define using libm_alias_ldouble.
20148         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
20149         <libm-alias-ldouble.h>.
20150         (remquol): Define using libm_alias_ldouble.
20151         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
20152         <libm-alias-ldouble.h>.
20153         (rintl): Define using libm_alias_ldouble.
20154         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
20155         <libm-alias-ldouble.h>.
20156         (roundevenl): Define using libm_alias_ldouble.
20157         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
20158         <libm-alias-ldouble.h>.
20159         (roundl): Define using libm_alias_ldouble.
20160         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
20161         using libm_alias_ldouble.
20162         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
20163         <libm-alias-ldouble.h>.
20164         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
20165         Define using libm_alias_ldouble.
20166         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
20167         <libm-alias-ldouble.h>.
20168         (sincosl): Define using libm_alias_ldouble.
20169         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
20170         <libm-alias-ldouble.h>.
20171         (sinl): Define using libm_alias_ldouble.
20172         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
20173         <libm-alias-ldouble.h>.
20174         (tanhl): Define using libm_alias_ldouble.
20175         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
20176         <libm-alias-ldouble.h>.
20177         (tanl): Define using libm_alias_ldouble.
20178         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
20179         <libm-alias-ldouble.h>.
20180         (totalorderl): Define using libm_alias_ldouble.
20181         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
20182         <libm-alias-ldouble.h>.
20183         (totalordermagl): Define using libm_alias_ldouble.
20184         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
20185         <libm-alias-ldouble.h>.
20186         (truncl): Define using libm_alias_ldouble.
20187         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
20188         libm_alias_ldouble.
20189         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
20190         libm_alias_ldouble.
20191         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
20192         <libm-alias-ldouble.h>.
20193         (weak_alias): Do not undefine and redefine.
20194         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
20195         (copysignl): Define with long_double_symbol only if [IS_IN
20196         (libc)].
20197         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
20198         <libm-alias-ldouble.h>.
20199         (weak_alias): Do not undefine and redefine.
20200         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
20201         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
20202         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
20203         <libm-alias-ldouble.h>.
20204         (weak_alias): Do not undefine and redefine.
20205         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
20206         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
20207         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
20208         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
20209         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
20210         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
20211         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
20212         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
20213         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
20214         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
20215         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
20216         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
20217         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
20218         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
20219         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
20220         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
20221         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
20222         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
20223         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
20224         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
20225         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
20226         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
20227         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
20228         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
20229         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
20230         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
20232 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
20234         [BZ #22111]
20235         * malloc/malloc.c (tcache_shutting_down): Use bool type.
20236         (tcache_thread_freeres): Set tcache_shutting_down before
20237         freeing the tcache.
20238         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
20239         * malloc/tst-malloc-tcache-leak.c: New file.
20241 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20243         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
20244         back to powerpc32 file.
20245         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
20246         (memrchr): Add __memrchr_power8 to ifunc list.
20247         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
20248         extra bytes for unaligned inputs.
20250 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
20252         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
20253         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
20254         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
20255         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
20256         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
20258 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
20260         * sysdeps/arm/libm-test-ulps: Update.
20262         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
20263         <libm-alias-ldouble.h>.
20264         (asinhl): Define using libm_alias_ldouble.
20265         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
20266         <libm-alias-ldouble.h>.
20267         (cbrtl): Define using libm_alias_ldouble.
20268         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
20269         <libm-alias-ldouble.h>.
20270         (copysignl): Define using libm_alias_ldouble.
20271         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
20272         <libm-alias-ldouble.h>.
20273         (cosl): Define using libm_alias_ldouble.
20274         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
20275         <libm-alias-ldouble.h>.
20276         (erfl): Define using libm_alias_ldouble.
20277         (erfcl): Likewise.
20278         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
20279         <libm-alias-ldouble.h>.
20280         (fmal): Define using libm_alias_ldouble.
20281         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
20282         <libm-alias-ldouble.h>.
20283         (frexpl): Define using libm_alias_ldouble.
20284         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
20285         libm_alias_ldouble.
20286         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
20287         <libm-alias-ldouble.h>.
20288         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
20289         libm_alias_ldouble.
20290         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
20291         <libm-alias-ldouble.h>.
20292         (getpayloadl): Define using libm_alias_ldouble.
20293         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
20294         <libm-alias-ldouble.h>.
20295         (llrintl): Define using libm_alias_ldouble.
20296         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
20297         <libm-alias-ldouble.h>.
20298         (llroundl): Define using libm_alias_ldouble.
20299         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
20300         <libm-alias-ldouble.h>.
20301         (lrintl): Define using libm_alias_ldouble.
20302         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
20303         <libm-alias-ldouble.h>.
20304         (lroundl): Define using libm_alias_ldouble.
20305         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
20306         <libm-alias-ldouble.h>.
20307         (modfl): Define using libm_alias_ldouble.
20308         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
20309         <libm-alias-ldouble.h>.
20310         (nextupl): Define using libm_alias_ldouble.
20311         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
20312         <libm-alias-ldouble.h>.
20313         (remquol): Define using libm_alias_ldouble.
20314         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
20315         <libm-alias-ldouble.h>.
20316         (roundevenl): Define using libm_alias_ldouble.
20317         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
20318         <libm-alias-ldouble.h>.
20319         (roundl): Define using libm_alias_ldouble.
20320         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
20321         using libm_alias_ldouble.
20322         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
20323         <libm-alias-ldouble.h>.
20324         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
20325         <libm-alias-ldouble.h>.
20326         (setpayloadsigl): Define using libm_alias_ldouble.
20327         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
20328         <libm-alias-ldouble.h>.
20329         (sincosl): Define using libm_alias_ldouble.
20330         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
20331         <libm-alias-ldouble.h>.
20332         (sinl): Define using libm_alias_ldouble.
20333         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
20334         <libm-alias-ldouble.h>.
20335         (tanhl): Define using libm_alias_ldouble.
20336         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
20337         <libm-alias-ldouble.h>.
20338         (tanl): Define using libm_alias_ldouble.
20339         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
20340         <libm-alias-ldouble.h>.
20341         (totalorderl): Define using libm_alias_ldouble.
20342         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
20343         <libm-alias-ldouble.h>.
20344         (totalordermagl): Define using libm_alias_ldouble.
20345         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
20346         libm_alias_ldouble.
20347         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
20348         libm_alias_ldouble.
20350 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
20352         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
20353         memmove_falkor.
20354         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
20355         (__libc_ifunc_impl_list): Likewise.
20356         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
20357         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
20359         * benchtests/bench-memmove-walk.c: New file.
20360         * benchtests/Makefile (string-benchset): Add it.
20362         * benchtests/bench-memset-walk.c: New file.
20363         * benchtests/Makefile (string-benchset): Add it.
20365         * benchtests/bench-memcpy-walk.c: New file.
20366         * benchtests/Makefile (string-benchset): Add it.
20368 2017-10-05  Florian Weimer  <fweimer@redhat.com>
20370         nscd: Eliminate compilation time dependency in the build output.
20371         * nscd/nscd_stat.c (STATDATA_VERSION)
20372         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
20373         (STATDATA_VERSION_FULL): New macro definitions.
20374         (compilation): Remove.
20375         (struct statdata): Adjust version member.
20376         (send_stats): Set version from STATDATA_VERSION_FULL.
20377         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
20379 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
20381         * configure.ac (--enable-add-ons): Remove option.
20382         (machine): Do not mention add-ons in comment.
20383         (LIBC_PRECONFIGURE): Likewise.
20384         (add_ons): Remove variable and sanity checks and logic to locate
20385         add-ons.
20386         (add_ons_automatic): Remove variable.
20387         (configured_add_ons): Likewise.
20388         (add_ons_sfx): Likewise.
20389         (add_ons_pfx): Likewise.
20390         (add_on_subdirs): Likewise.
20391         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
20392         consideration of add-ons in Implies handling.
20393         (sysdeps_add_ons): Likewise.
20394         * configure: Regenerated.
20395         * libidn/configure.ac: Remove.
20396         * libidn/configure: Likewise.
20397         * sysdeps/unix/inet/configure.ac: New file.
20398         * sysdeps/unix/inet/configure: New generated file.
20399         * sysdeps/unix/inet/Subdirs: Add libidn.
20400         * Makeconfig (sysdeps-srcdirs): Remove variable.
20401         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
20402         ($(common-objpfx)config.status): Do not depend on add-on files.
20403         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
20404         comment.
20405         (all-subdirs): Do not include $(add-on-subdirs).
20406         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
20407         * config.make.in (add-ons): Remove variable.
20408         (add-on-subdirs): Likewise.
20409         (sysdeps-add-ons): Likewise.
20410         * manual/Makefile (add-chapters): Remove.
20411         ($(objpfx)texis): Do not depend on $(add-chapters).
20412         (nonexamples): Do not handle $(add-chapters).
20413         (examples): Do not handle $(add-ons).
20414         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
20415         libc-texinfo.sh.
20416         * manual/install.texi (Installation): Do not mention add-ons.
20417         (--enable-add-ons): Do not document configure option.
20418         * INSTALL: Regenerated.
20419         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
20420         * manual/maint.texi (Hierarchy Conventions): Do not mention
20421         add-ons.
20422         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
20423         --enable-add-ons.
20424         * scripts/gen-sorted.awk: Do not handle Subdirs files from
20425         add-ons.
20426         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
20427         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
20429 2017-10-05  Andreas Schwab  <schwab@suse.de>
20431         [BZ #15142]
20432         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
20433         (_IO_flush_all_lockp): Always lock list_all_lock.
20434         (_IO_flush_all_linebuffered): Likewise.
20435         (_IO_unbuffer_all): Likewise.
20437 2017-10-05  Florian Weimer  <fweimer@redhat.com>
20439         [BZ #15436]
20440         Do not flush stdio streams on abort.
20441         * stdlib/abort.c (fflush): Remove macro definition.
20442         (abort): Remove stages related to stdio flushing.
20444 2017-10-05  Florian Weimer  <fweimer@redhat.com>
20446         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
20448 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
20450         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
20452 2017-10-05  Florian Weimer  <fweimer@redhat.com>
20454         * support/support_format_hostent.c (support_format_hostent): Add
20455         more error information for NETDB_INTERNAL.
20457 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
20459         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
20460         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
20461         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
20462         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
20463         AC_DEFINE if multi-arch is enabled.
20464         * sysdeps/i386/configure: Regenerated.
20466 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
20468         * Makeconfig (+link-static-before-libc): Use
20469         $(DEFAULT-LDFLAGS-$(@F)).
20470         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
20471         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
20472         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
20474 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
20476         * elf/Makefile (tests): Add tst-main1.
20477         (modules-names): Add tst-main1mod.
20478         ($(objpfx)tst-main1): New.
20479         (CRT-tst-main1): Likewise.
20480         (LDFLAGS-tst-main1): Likewise.
20481         (LDLIBS-tst-main1): Likewise.
20482         (tst-main1mod.so-no-z-defs): Likewise.
20483         * elf/tst-main1.c: New file.
20484         * elf/tst-main1mod.c: Likewise.
20486 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
20488         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
20490 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
20492         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
20493         (fma): Define using libm_alias_double.
20494         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
20495         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
20496         <math_ldbl_opt.h>.
20497         (fmal): Do not define as compat symbol here.
20498         * sysdeps/alpha/fpu/s_fma.c: New file.
20500 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20502         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
20504 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
20506         [BZ #22229]
20507         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20508         <math_ldbl_opt.h>
20509         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
20510         and libc.
20511         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
20512         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20513         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
20514         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
20515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20516         Include <math_ldbl_opt.h>
20517         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
20518         and libc.
20519         (compat_symbol): Undefine and redefine.
20520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20521         <math_ldbl_opt.h>
20522         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20523         (compat_symbol): Undefine and redefine.
20524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
20525         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
20526         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
20527         GLIBC_2_1 for libm.
20528         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
20529         GLIBC_2.0 copysignl symbol.
20530         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
20531         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
20533         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
20535 2017-10-04  Florian Weimer  <fweimer@redhat.com>
20537         * scripts/check-local-headers.sh: Ignore nspr4 header file
20538         directory in addition to nspr.
20540 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
20542         [BZ #17956]
20543         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
20544         * configure: Regenerate.
20545         * crypt/Makefile (nss-cpp-flags): New variable.
20546         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
20547         (CPPFLAGS-md5-crypt.c): Use it.
20548         * scripts/check-local-headers.sh: Ignore nspr header file
20549         directory.
20551 2017-10-04  Andreas Schwab  <schwab@suse.de>
20553         * nis/Makefile (services): Remove compat.
20554         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
20555         ($(objpfx)libnss_compat.so): Remove rule.
20556         * nis/Versions (libnss_compat): Remove.
20557         * nss/Makefile (services): Add compat.
20558         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
20559         * nss/Versions (libnss_compat): Define.
20560         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
20561         Don't include <rpc/types.h>.  Replace bool_t by bool.
20562         * nss/nss_compat/compat-initgroups.c: Likewise.
20563         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
20564         instead of <rpcsrv/ypclnt.h>.
20565         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
20566         yp_get_default_domain.
20567         * nss/nss_compat/compat-pwd.c: Likewise.
20568         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
20569         yp_get_default_domain.
20570         * nss/nss_compat/nisdomain.c: New file.
20571         * nss/nss_compat/nisdomain.h: Likewise.
20573 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20575         [BZ #22244]
20576         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
20577         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
20579 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20581         [BZ #22243]
20582         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
20583         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
20585 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20587         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
20588         "movl main@GOTOFF(%ebx), %eax".
20590 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20592         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
20593         allow undefined _DYNAMIC in PIE libc.a.
20594         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
20595         Likewse.
20597 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20599         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
20600         check _DYNAMIC.
20602 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20604         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
20605         check _DYNAMIC.
20607 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20609         * math/test-math-iscanonical.cc (error): Replace bool with int.
20611 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
20613         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
20614         (modf): Define using libm_alias_double, only if [!__modf].
20615         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
20616         <libm-alias-double.h>.
20617         (modf): Define using libm_alias_double, only if [!__modf].
20618         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
20619         compat symbol here.
20620         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
20621         (weak_alias): Do not undefine and redefine.
20622         (strong_alias): Likewise.
20623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
20624         (weak_alias): Likewise.
20625         (strong_alias): Likewise.
20627         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
20628         (logb): Define using libm_alias_double, only if [!__logb].
20629         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
20630         <libm-alias-double.h>.
20631         (logb): Define using libm_alias_double, only if [!__logb].
20632         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
20633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
20634         (weak_alias): Do not undefine and redefine.
20635         (strong_alias): Likewise.
20636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
20637         (weak_alias): Likewise.
20638         (strong_alias): Likewise.
20640 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20642         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
20643         Check SHARED instead PIC.
20645 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
20647         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
20648         [!__fmaf] (fmaf): Define using libm_alias_float.
20650         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
20651         (frexp): Define using libm_alias_double.
20652         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
20653         <libm-alias-double.h>.
20654         (frexp): Define using libm_alias_double.
20655         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
20656         compat symbol here.
20658 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
20660         [BZ #22235]
20661         * math/math.h: Trivial fix for unbalanced parentheses in comment.
20662         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
20663         (CFLAGS-test-math-iscanonical.cc): New variable.
20664         * math/test-math-iscanonical.cc: New file.
20665         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
20666         Provide a C++ implementation based on function overloading,
20667         rather than using __MATH_TG, which uses C-only builtins.
20668         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
20669         Likewise.
20670         * sysdeps/powerpc/powerpc64le/Makefile
20671         (CFLAGS-test-math-iscanonical.cc): New variable.
20673 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
20675         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
20676         (ceil): Define using libm_alias_double.
20677         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
20678         (floor): Define using libm_alias_double.
20679         * sysdeps/ieee754/dbl-64/s_llround.c: Include
20680         <libm-alias-double.h>.
20681         (llround): Define using libm_alias_double.
20682         * sysdeps/ieee754/dbl-64/s_lround.c: Include
20683         <libm-alias-double.h>.
20684         (lround): Define using libm_alias_double.
20685         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
20686         <libm-alias-double.h>.
20687         (nearbyint): Define using libm_alias_double.
20688         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
20689         <libm-alias-double.h>.
20690         (remquo): Define using libm_alias_double.
20691         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
20692         (rint): Define using libm_alias_double.
20693         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
20694         (round): Define using libm_alias_double.
20695         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
20696         (trunc): Define using libm_alias_double.
20697         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
20698         <libm-alias-double.h>.
20699         (ceil): Define using libm_alias_double.
20700         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
20701         <libm-alias-double.h>.
20702         (floor): Define using libm_alias_double.
20703         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
20704         <libm-alias-double.h>.
20705         (llround): Define using libm_alias_double.
20706         [_LP64] (lround): Likewise.
20707         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
20708         <libm-alias-double.h>.
20709         [!_LP64] (lround): Define using libm_alias_double.
20710         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
20711         <libm-alias-double.h>.
20712         (nearbyint): Define using libm_alias_double.
20713         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
20714         <libm-alias-double.h>.
20715         (remquo): Define using libm_alias_double.
20716         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
20717         <libm-alias-double.h>.
20718         (rint): Define using libm_alias_double.
20719         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
20720         <libm-alias-double.h>.
20721         (round): Define using libm_alias_double.
20722         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
20723         <libm-alias-double.h>.
20724         (trunc): Define using libm_alias_double.
20725         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
20726         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
20727         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
20728         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
20729         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
20730         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
20731         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
20732         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
20733         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
20735 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20737         * math/w_remainder.c: New file.
20738         * math/w_remainderf.c: New file.
20739         * math/w_remainderl.c: New file.
20741 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
20743         * elf/rtld.c (BOOTSTRAP_MAP): New.
20744         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
20745         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
20746         Likewise.
20747         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
20748         Likewise.
20749         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
20750         Likewise.
20752 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20754         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
20755         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
20756         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
20757         rtld_hidden_data_ver): Define to empty.
20758         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
20759         __assert_perror_fail): Likewise.
20760         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
20761         (__rewinddir): Likewise.
20762         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
20763         (__profile_frequency): Likewise.
20764         * include/setjmp.h (__sigsetjmp): Likewise.
20765         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
20766         __libc_sigaction): Likewise.
20767         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
20768         not set hidden attribute.
20769         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
20770         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
20771         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
20772         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
20773         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
20774         __fxstatat64): Likewise.
20775         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
20776         (__uname): Likewise.
20777         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
20778         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
20779         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
20780         (NO_RTLD_HIDDEN): Set.
20781         * sysdeps/mach/hurd/configure: Refresh.
20782         * config.h.in: Refresh.
20784 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
20786         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
20787         (atan): Define using libm_alias_double.
20788         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
20789         (tan): Define using libm_alias_double.
20790         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
20791         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
20793         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
20794         define as weak alias of __atan.  Do not define any aliases if
20795         [__atan].
20796         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
20797         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
20798         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
20799         as weak alias of __tan.  Do not define any aliases if [__tan].
20800         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
20801         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
20802         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
20803         __atan.
20804         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
20805         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
20806         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
20807         and define as weak alias of __atan.
20808         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
20809         __atan.
20810         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
20811         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
20812         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
20813         define as weak alias of __tan.
20815 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20817         * math/w_lgamma.c: New file.
20818         * math/w_lgammaf.c: New file.
20819         * math/w_lgammal.c: New file.
20821 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20823         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
20824         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
20825         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
20826         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
20827         * sysdeps/ieee754/flt-32/w_logf.c: New file.
20828         * sysdeps/ieee754/flt-32/w_powf.c: New file.
20829         * sysdeps/i386/fpu/w_log2f.c: New file.
20830         * sysdeps/i386/fpu/w_logf.c: New file.
20831         * sysdeps/i386/fpu/w_powf.c: New file.
20832         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
20833         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
20834         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
20836 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20837             H.J. Lu  <hongjiu.lu@intel.com>
20839         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
20840         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
20841         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
20842         * sysdeps/ieee754/flt-32/w_expf.c: New file.
20843         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
20844         the new expf code.
20845         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
20846         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
20847         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
20848         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
20849         * sysdeps/i386/fpu/w_exp2f.c: New file.
20850         * sysdeps/i386/fpu/w_expf.c: New file.
20851         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
20852         * sysdeps/x86_64/fpu/w_expf.c: New file.
20854 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20856         * math/Versions (logf): New libm symbol at GLIBC_2.27.
20857         (log2f): Likewise.
20858         (powf): Likewise.
20859         * math/w_log2f.c: New file.
20860         * math/w_logf.c: New file.
20861         * math/w_powf.c: New file.
20862         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
20863         * math/w_logf_compat.c (__logf_compat): Likewise.
20864         * math/w_powf_compat.c (__powf_compat): Likewise.
20865         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
20866         * sysdeps/ia64/fpu/e_logf.S: Likewise.
20867         * sysdeps/ia64/fpu/e_powf.S: Likewise.
20868         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
20869         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20870         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20871         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20872         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20873         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20874         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20875         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20876         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20877         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20878         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20879         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20881         Likewise.
20882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20883         Likewise.
20884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20885         Likewise.
20886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20887         Likewise.
20888         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20889         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20890         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20891         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20892         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20894         Likewise.
20895         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20896         Likewise.
20897         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20898         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20899         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20901 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20903         * sysdeps/powerpc/powerpc64/multiarch/Makefile
20904         (sysdep_routines): Add memrchr_power8.
20905         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
20906         (memrchr): Add __memrchr_power8 to list of memrchr functions.
20907         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
20908         New file.
20909         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
20910         (memrchr): Add __memrchr_power8 to ifunc list.
20911         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
20913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20915         [BZ #18822]
20916         * sysdeps/unix/sysv/linux/posix_fadvise64.c
20917         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
20918         libc_hidden_def.
20919         * sysdeps/unix/sysv/linux/posix_fallocate64.c
20920         (__posix_fallocate64_l64): Likewise.
20922 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20924         [BZ #18822]
20925         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20926         (__sched_setaffinity_new): Add libc_hidden_proto and
20927         libc_hidden_def.
20929 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20931         [BZ #18822]
20932         * include/glob.h (__glob64): Add libc_hidden_proto.
20933         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
20934         libc_hidden_def.
20936 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20938         [BZ #18822]
20939         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
20940         attribute_hidden.
20942 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20944         [BZ #18822]
20945         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
20947 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20949         [BZ #18822]
20950         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
20951         libc_hidden_def.
20953 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20955         [BZ #18822]
20956         * csu/version.c (__libc_print_version): Add attribute_hidden.
20958 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20960         [BZ #18822]
20961         * include/libc-internal.h (__init_misc): Add attribute_hidden.
20963 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20965         [BZ #18822]
20966         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
20968 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20970         [BZ #18822]
20971         * nscd/nscd_helper.c (__nis_hash): New prototype.
20973 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20975         [BZ #18822]
20976         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
20977         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
20978         libc_hidden_def.
20979         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
20980         * termios/tcgetattr.c (__tcgetattr): Likewise.
20982 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20984         [BZ #18822]
20985         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
20986         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
20987         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
20988         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
20989         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
20991 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20993         [BZ #18822]
20994         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
20996 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
20998         [BZ #18822]
20999         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
21000         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
21002 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21004         [BZ #18822]
21005         * intl/hash-string.h (__hash_string): Add attribute_hidden.
21007 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21009         [BZ #18822]
21010         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
21011         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
21013 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21015         [BZ #18822]
21016         * include/ifreq.h: New file.
21017         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
21018         (__ifreq): Likewise.
21019         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
21020         (__ifreq): Likewise.
21022 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21024         [BZ #18822]
21025         * include/idna.h: New file.
21026         * inet/getnameinfo.c: Include <idna.h> instead of
21027         <libidn/idna.h>.
21028         (__idna_to_unicode_lzlz): Removed.
21029         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
21030         <libidn/idna.h>.
21031         (__idna_to_ascii_lz): Removed.
21032         (__idna_to_unicode_lzlz): Likewise.
21034 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21036         [BZ #18822]
21037         * include/plural-exp.h: New file.
21038         * intl/plural-exp.c: Include <plural-exp.h> instead of
21039         "plural-exp.h".
21041 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21043         [BZ #18822]
21044         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
21045         "getsourcefilter.h".
21046         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
21047         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
21048         "getsourcefilter.h".
21049         (__get_sol): Removed.
21051 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21053         [BZ #18822]
21054         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
21055         to ...
21056         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
21058 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21060         [BZ #18822]
21061         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
21062         attribute_hidden.
21064 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21066         [BZ #18822]
21067         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
21069 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21071         [BZ #18822]
21072         * include/search.h (__tdestroy): Add libc_hidden_proto.
21073         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
21075 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21077         [BZ #18822]
21078         * include/assert.h (__assert_fail_base): Add attribute_hidden.
21080 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21082         [BZ #18822]
21083         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
21084         attribute_hidden.
21086 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21088         [BZ #18822]
21089         * include/signal.h (__kill): Add libc_hidden_proto.
21090         (__sigblock): Likewise.
21091         (__sigprocmask): Likewise.
21092         (__sigaltstack): Likewise.
21093         * signal/kill.c (__kill): Add libc_hidden_def.
21094         * signal/sigblock.c (__sigblock): Likewise.
21095         * signal/sigprocmask.c (__sigprocmask): Likewise.
21096         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
21097         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
21098         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
21099         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
21100         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
21101         Likewise.
21102         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
21103         Likewise.
21104         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
21105         (__sigprocmask): Likewise.
21106         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
21107         Likewise.
21108         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
21109         (__sigprocmask): Likewise.
21110         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
21111         Likewise.
21113 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21115         [BZ #18822]
21116         * include/string.h (__strsep): Add libc_hidden_proto.
21117         * string/strsep.c (__strsep): Add libc_hidden_def.
21119 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21121         [BZ #18822]
21122         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
21123         attribute_hidden.
21124         (__spawni): Likewise.
21126 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21128         [BZ #18822]
21129         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
21130         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
21131         libc_hidden_def.
21133 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21135         [BZ #18822]
21136         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
21138 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21140         [BZ #18822]
21141         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
21142         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
21143         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
21144         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
21145         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
21146         Likewise.
21147         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
21148         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
21150 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21152         [BZ #18822]
21153         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
21154         (__dcigettext): Likewise.
21156 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21158         [BZ #18822]
21159         * include/sys/sysinfo.h (__get_nprocs_conf): Add
21160         libc_hidden_proto.
21161         (__get_nprocs): Likewise.
21162         (__get_phys_pages): Likewise.
21163         (__get_avphys_pages): Likewise.
21164         (__get_child_max): Add attribute_hidden.
21165         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
21166         (__get_nprocs): Likewise.
21167         (__get_phys_pages): Likewise.
21168         (__get_avphys_pages): Likewise.
21169         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
21170         libc_hidden_def.
21171         (__get_nprocs): Likewise.
21172         (__get_phys_pages): Likewise.
21173         (__get_avphys_pages): Likewise.
21174         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
21175         libc_hidden_def.
21176         (__get_nprocs_conf): Likewise.
21177         (__get_phys_pages): Likewise.
21178         (__get_avphys_pages): Likewise.
21180 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21182         [BZ #18822]
21183         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
21184         attribute_hidden.
21185         (__netlink_close): Likewise.
21186         (__netlink_free_handle): Likewise.
21187         (__netlink_request): Likewise.
21189 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21191         [BZ #18822]
21192         * include/rpc/rpc.h (__rpc_thread_variables): Add
21193         attribute_hidden.
21194         (__rpc_thread_svc_cleanup): Likewise.
21195         (__rpc_thread_clnt_cleanup): Likewise.
21196         (__rpc_thread_key_cleanup): Likewise.
21198 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21200         [BZ #18822]
21201         * include/sys/uio.h (__readv): Add libc_hidden_proto.
21202         (__writev): Likewise.
21203         * misc/readv.c (__readv): Add libc_hidden_def.
21204         * misc/writev.c (__writev): Likewise.
21205         * sysdeps/posix/readv.c (__readv): Likewise.
21206         * sysdeps/posix/writev.c (__writev): Likewise.
21207         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
21208         (__readv): Likewise.
21209         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
21210         (__writev): Likewise.
21212 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21214         [BZ #18822]
21215         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
21216         (__regcomp): Add libc_hidden_proto.
21217         (__regexec): Likewise.
21218         (__regfree): Likewise.
21219         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
21220         (__regfree): Likewise.
21221         * posix/regexec.c (__regexec): Likewise.
21223 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21225         [BZ #18822]
21226         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
21227         (__getutent): Likewise.
21228         (__getutid): Likewise.
21229         (__getutline): Likewise.
21230         (__pututline): Likewise.
21231         (__getutent_r): Likewise.
21232         (__getutid_r): Likewise.
21233         (__getutline_r): Likewise.
21234         (__utmpname): Add attribute_hidden.
21235         (__setutent): Likewise.
21236         (__endutent): Likewise.
21237         * login/getutent.c (__getutent): Add libc_hidden_def.
21238         * login/getutent_r.c (__getutent_r): Likewise.
21239         (__pututline): Likewise.
21240         * login/getutid.c (__getutid): Likewise.
21241         * login/getutid_r.c (__getutid_r): Likewise.
21242         * login/getutline.c (__getutline): Likewise.
21243         * login/getutline_r.c (__getutline_r): Likewise.
21244         * login/updwtmp.c (__updwtmp): Likewise.
21246 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21248         [BZ #18822]
21249         * include/dirent.h (__opendir): Always add attribute_hidden.
21250         (__fdopendir): Likewise.
21251         (__closedir): Likewise.
21252         (__readdir): Likewise.
21253         (__readdir64): Add libc_hidden_proto.
21254         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
21255         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
21256         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
21257         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
21258         New alias.
21260 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21262         [BZ #18822]
21263         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
21264         * include/netdb.h (__gethostbyaddr_r): Likewise.
21265         (__gethostbyname_r): Likewise.
21266         (__gethostbyname2_r): Likewise.
21267         (__getnetbyaddr_r): Likewise.
21268         (__getnetbyname_r): Likewise.
21269         (__getservbyname_r): Likewise.
21270         (__getservbyport_r): Likewise.
21271         (__getprotobyname_r): Likewise.
21272         (__getprotobynumber_r): Likewise.
21273         (__getnetgrent_r): Likewise.
21274         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
21275         (__getrpcbynumber_r): Likewise.
21276         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
21278 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21280         [BZ #18822]
21281         * include/stdio.h (__fcloseall): Add attribute_hidden.
21282         (__getline): Likewise.
21283         (__path_search): Likewise.
21284         (__gen_tempname): Likewise.
21285         (__libc_message): Likewise.
21286         (__flockfile): Likewise.
21287         (__funlockfile): Likewise.
21288         (__fxprintf): Likewise.
21289         (__fxprintf_nocancel): Likewise.
21291 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21293         [BZ #18822]
21294         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
21295         (__sgetsgent_r): Likewise.
21297 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21299         [BZ #18822]
21300         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
21301         (__statfs64): Likewise.
21302         (__fstatfs64): Likewise.
21303         * include/sys/statvfs.h (__statvfs64): Likewise.
21304         (__fstatvfs64): Likewise.
21305         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
21306         (__statfs_filesize_max): Likewise.
21307         (__statfs_symlinks): Likewise.
21308         (__statfs_chown_restricted): Likewise.
21310 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21312         [BZ #18822]
21313         * include/time.h (__tzstring): Add attribute_hidden.
21314         (__tzfile_read): Likewise.
21315         (__tzfile_compute): Likewise.
21316         (__tzfile_default): Likewise.
21317         (__tzset_parse_tz): Likewise.
21318         (__offtime): Likewise.
21319         (__asctime_r): Likewise.
21320         (__tzset): Likewise.
21321         (__tz_convert): Likewise.
21322         (__getdate_r): Likewise.
21323         (__getclktck): Likewise.
21325 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21327         [BZ #18822]
21328         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
21329         (__nscd_unmap): Likewise.
21330         (__nscd_cache_search): Likewise.
21331         (__nscd_get_nl_timestamp): Likewise.
21332         (__nscd_getpwnam_r): Likewise.
21333         (__nscd_getpwuid_r): Likewise.
21334         (__nscd_getgrnam_r): Likewise.
21335         (__nscd_getgrgid_r): Likewise.
21336         (__nscd_gethostbyname_r): Likewise.
21337         (__nscd_gethostbyname2_r): Likewise.
21338         (__nscd_gethostbyaddr_r): Likewise.
21339         (__nscd_getai): Likewise.
21340         (__nscd_getgrouplist): Likewise.
21341         (__nscd_getservbyname_r): Likewise.
21342         (__nscd_getservbyport_r): Likewise.
21343         (__nscd_innetgr): Likewise.
21344         (__nscd_setnetgrent): Likewise.
21346 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21348         [BZ #18822]
21349         * include/gmp.h: Declare internal functions only if _ISOMAC is
21350         undefined.
21351         (__mpn_extract_double): Add attribute_hidden.
21352         (__mpn_extract_long_double): Likewise.
21353         (__mpn_extract_float128): Likewise.
21354         (__mpn_construct_float): Likewise.
21355         (__mpn_construct_double): Likewise.
21356         (__mpn_construct_long_double): Likewise.
21357         (__mpn_construct_float128): Likewise.
21358         (mpn_add_1): Likewise.
21359         (mpn_addmul_1): Likewise.
21360         (mpn_add_n): Likewise.
21361         (mpn_cmp): Likewise.
21362         (mpn_divrem): Likewise.
21363         (mpn_lshift): Likewise.
21364         (mpn_mul): Likewise.
21365         (mpn_mul_1): Likewise.
21366         (mpn_rshift): Likewise.
21367         (mpn_sub_1): Likewise.
21368         (mpn_submul_1): Likewise.
21369         (mpn_sub_n): Likewise.
21371 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21373         [BZ #18822]
21374         * include/wchar.h (__wcsnlen): Add attribute_hidden.
21375         (__wcscat): Likewise.
21376         (__btowc): Likewise.
21377         (__wcrtomb): Likewise.
21378         (__mbsrtowcs): Likewise.
21379         (__wcsrtombs): Likewise.
21380         (__mbsnrtowcs): Likewise.
21381         (__wcsnrtombs): Likewise.
21382         (__wcsncpy): Likewise.
21383         (__wcpncpy): Likewise.
21384         (__wmemcpy): Likewise.
21385         (__wmempcpy): Likewise.
21386         (__wmemmove): Likewise.
21387         (__wcschrnul): Likewise.
21388         (__vfwscanf): Likewise.
21389         (__vswprintf): Likewise.
21390         (__fwprintf): Likewise.
21391         (__vfwprintf): Likewise.
21393 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21395         [BZ #18822]
21396         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
21397         (__getgrgid_r): Likewise.
21398         (__getgrnam_r): Likewise.
21399         * include/pwd.h (__getpwuid_r): Likewise.
21400         (__getpwnam_r): Likewise.
21401         (__fgetpwent_r): Likewise.
21402         * include/shadow.h (__getspnam_r): Likewise.
21403         (__sgetspent_r): Likewise.
21404         (__fgetspent_r): Likewise.
21406 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21408         [BZ #18822]
21409         * include/unistd.h (__access): Add attribute_hidden.
21410         (__lseek64): Likewise.
21411         (__libc_pread64): Likewise.
21412         (__pipe2): Likewise.
21413         (__sleep): Likewise.
21414         (__chdir): Likewise.
21415         (__fchdir): Likewise.
21416         (__getcwd): Likewise.
21417         (__rmdir): Likewise.
21418         (__execvpe): Likewise.
21419         (__execve): Likewise.
21420         (__setsid): Likewise.
21421         (__getuid): Likewise.
21422         (__geteuid): Likewise.
21423         (__getgid): Likewise.
21424         (__getegid): Likewise.
21425         (__getgroups): Likewise.
21426         (__group_member): Likewise.
21427         (__ttyname_r): Likewise.
21428         (__isatty): Likewise.
21429         (__readlink): Likewise.
21430         (__unlink): Likewise.
21431         (__gethostname): Likewise.
21432         (__profil): Likewise.
21433         (__getdtablesize): Likewise.
21434         (__brk): Likewise.
21435         (__ftruncate): Likewise.
21436         (__ftruncate64): Likewise.
21438 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21440         [BZ #18822]
21441         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
21442         * argp/argp-fs-xinl.c: Likewise.
21443         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
21444         * argp/argp-parse.c: Include <argp.h>.
21445         * argp/argp-xinl.c: Likewise.
21446         * include/argp-fmtstream.h: New file.
21447         * include/argp.h (__argp_error): Add attribute_hidden.
21448         (__argp_failure): Likewise.
21449         (__argp_input): Likewise.
21450         (__argp_state_help): Likewise.
21452 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21454         [BZ #18822]
21455         * include/wchar.h (____wcstof_l_internal): New prototype.
21456         (____wcstod_l_internal): Likewise.
21457         (____wcstold_l_internal): Likewise.
21458         (____wcstol_l_internal): Likewise.
21459         (____wcstoul_l_internal): Likewise.
21460         (____wcstoll_l_internal): Likewise.
21461         (____wcstoull_l_internal): Likewise.
21462         (____wcstof128_l_internal): Likewise.
21463         * sysdeps/ieee754/float128/wcstof128.c
21464         (____wcstof128_l_internal): Removed.
21465         * sysdeps/ieee754/float128/wcstof128_l.c
21466         (____wcstof128_l_internal): Likewise.
21467         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
21468         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
21469         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
21470         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
21471         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
21472         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
21473         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
21474         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
21475         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
21476         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
21478 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21480         [BZ #18822]
21481         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
21482         instead of <sys/statvfs.h>.
21483         (__internal_statvfs): Removed.
21484         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
21485         instead of <sys/statvfs.h>.
21486         (__internal_statvfs64): Removed.
21487         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
21488         "internal_statvfs.h" instead of <sys/statvfs.h>.
21489         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
21490         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
21491         instead of <sys/statvfs.h>.
21492         (__internal_statvfs): Removed.
21493         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
21494         instead of <sys/statvfs.h>.
21495         (__internal_statvfs64): Removed.
21497 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21499         [BZ #18822]
21500         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
21501         (__gconv_close): Likewise.
21502         (__gconv): Likewise.
21503         (__gconv_find_transform): Likewise.
21504         (__gconv_lookup_cache): Likewise.
21505         (__gconv_compare_alias_cache): Likewise.
21506         (__gconv_load_cache): Likewise.
21507         (__gconv_get_path): Likewise.
21508         (__gconv_close_transform): Likewise.
21509         (__gconv_release_cache): Likewise.
21510         (__gconv_find_shlib): Likewise.
21511         (__gconv_release_shlib): Likewise.
21512         (__gconv_get_builtin_trans): Likewise.
21513         (__gconv_compare_alias): Likewise.
21514         * include/dlfcn.h (_dlerror_run): Likewise.
21515         * include/stdio.h (__fortify_fail_abort): Likewise.
21516         * include/time.h (__tz_compute): Likewise.
21517         (__strptime_internal): Likewise.
21518         * intl/gettextP.h (_nl_find_domain): Likewise.
21519         (_nl_load_domain): Likewise.
21520         (_nl_find_msg): Likewise.
21521         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
21522         (EXTRACT_PLURAL_EXPRESSION): Likewise.
21523         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
21524         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
21525         (__gai_find_request): Likewise.
21526         (__gai_remove_request): Likewise.
21527         (__gai_notify): Likewise.
21528         (__gai_notify_only): Likewise.
21529         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
21530         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
21531         (_dl_non_dynamic_init): Likewise.
21532         (_dl_aux_init): Likewise.
21533         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
21534         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
21535         Likewise.
21536         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
21537         (__wcsmbs_clone_conv): Likewise.
21538         (__wcsmbs_named_conv): Likewise.
21540 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21542         [BZ #18822]
21543         * include/stdlib.h (__random): Add attribute_hidden.
21544         (__random_r): Likewise.
21545         (__srandom_r): Likewise.
21546         (__initstate_r): Likewise.
21547         (__setstate_r): Likewise.
21548         (__erand48_r): Likewise.
21549         (__nrand48_r): Likewise.
21550         (__jrand48_r): Likewise.
21551         (__srand48_r): Likewise.
21552         (__seed48_r): Likewise.
21553         (__lcong48_r): Likewise.
21554         (__drand48_iterate): Likewise.
21555         (__setenv): Likewise.
21556         (__unsetenv): Likewise.
21557         (__clearenv): Likewise.
21558         (__ptsname_r): Likewise.
21559         (__posix_openpt): Likewise.
21560         (__add_to_environ): Likewise.
21561         (__realpath): Add libc_hidden_proto.
21562         (__ecvt_r): Likewise.
21563         (__fcvt_r): Likewise.
21564         (__qecvt_r): Likewise.
21565         (__qfcvt_r): Likewise.
21566         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
21567         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
21569 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
21571         [BZ #18822]
21572         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
21573         * include/time.h (__mktime_internal): Likewise.
21574         * libio/iolibio.h (__fopen_internal): Likewise.
21576 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
21578         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
21579         pointer in frame.
21580         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
21581         Correct offset used to restore PIC register.
21583 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
21585         [BZ libc/22165]
21586         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
21587         code to load address of __getcontext_ret when generating PIC code.
21589 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
21591         * elf/Makefile (tests-static-internal): Add
21592         tst-tls1-static-non-pie.
21593         (LDFLAGS-tst-tls1-static-non-pie): New.
21594         * elf/tst-tls1-static-non-pie.c: New file.
21596 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
21598         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
21599         (asinh): Define using libm_alias_double.
21600         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
21601         (cbrt): Define using libm_alias_double.
21602         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
21603         <libm-alias-double.h>.
21604         (copysign): Define using libm_alias_double.
21605         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
21606         (erf): Define using libm_alias_double.
21607         (erfc): Likewise.
21608         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
21609         (expm1): Define using libm_alias_double.
21610         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
21611         (fabs): Define using libm_alias_double.
21612         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
21613         libm_alias_double.
21614         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
21615         <libm-alias-double.h>.
21616         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
21617         libm_alias_double.
21618         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
21619         <libm-alias-double.h>.
21620         (getpayload): Define using libm_alias_double.
21621         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
21622         <libm-alias-double.h>.
21623         (llrint): Define using libm_alias_double.
21624         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
21625         (lrint): Define using libm_alias_double.
21626         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
21627         <libm-alias-double.h>.
21628         (nextup): Define using libm_alias_double.
21629         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
21630         <libm-alias-double.h>.
21631         (roundeven): Define using libm_alias_double.
21632         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
21633         libm_alias_double.
21634         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
21635         <libm-alias-double.h>.
21636         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
21637         using libm_alias_double.
21638         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
21639         (cos): Define using libm_alias_double.
21640         (sin): Likewise.
21641         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
21642         <libm-alias-double.h>.
21643         (sincos): Define using libm_alias_double.
21644         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
21645         (tanh): Define using libm_alias_double.
21646         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
21647         <libm-alias-double.h>.
21648         (totalorder): Define using libm_alias_double.
21649         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
21650         <libm-alias-double.h>.
21651         (totalordermag): Define using libm_alias_double.
21652         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
21653         libm_alias_double.
21654         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
21655         libm_alias_double.
21656         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
21657         <libm-alias-double.h>.
21658         (getpayload): Define using libm_alias_double.
21659         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
21660         <libm-alias-double.h>.
21661         (roundeven): Define using libm_alias_double.
21662         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
21663         <libm-alias-double.h>.
21664         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
21665         <libm-alias-double.h>.
21666         (totalorder): Define using libm_alias_double.
21667         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
21668         <libm-alias-double.h>.
21669         (totalordermag): Define using libm_alias_double.
21670         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
21671         libc compat symbol here.
21672         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
21673         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
21674         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
21675         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
21676         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
21677         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
21678         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
21679         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
21680         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
21681         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
21683 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
21685         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
21686         _dl_relocate_static_pie instead of _dl_start to compute load
21687         address in static PIE.  Return 0 if _DYNAMIC is undefined for
21688         static executable.
21690 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
21692         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
21693         _DYNAMIC is undefined for static executable.
21695 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
21697         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
21699 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
21701         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21703 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
21705         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21706         (__ieee754_lgamma_r): Use fabs rather than __fabs.
21707         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
21708         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
21709         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21710         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
21711         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
21712         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
21713         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
21714         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
21715         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
21716         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
21717         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
21718         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
21719         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
21720         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
21721         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
21723 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
21725         * math/bits/cmathcalls.h (cimag): Remove inline.
21726         (creal): Remove inline.
21727         (conj): Remove inline.
21729 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21731         * math/Makefile (type-float-routines): Add e_powf_log2_data.
21732         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
21733         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
21734         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
21735         (issignalingf_inline): Likewise.
21736         (POWF_LOG2_TABLE_BITS): Likewise.
21737         (POWF_LOG2_POLY_ORDER): Likewise.
21738         (POWF_SCALE_BITS): Likewise.
21739         (POWF_SCALE): Likewise.
21740         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
21741         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
21742         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
21744 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21746         * math/Makefile (type-float-routines): Add e_log2f_data.
21747         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
21748         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
21749         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
21750         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
21751         * sysdeps/i386/fpu/e_log2f_data.c: New file.
21752         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
21753         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
21755 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21757         * math/Makefile (type-float-routines): Add e_logf_data.
21758         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
21759         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
21760         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
21761         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
21762         * sysdeps/i386/fpu/e_logf_data.c: New file.
21763         * sysdeps/ia64/fpu/e_logf_data.c: New file.
21764         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
21766 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
21768         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
21769         undefined _DYNAMIC in PIE libc.a.
21770         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
21771         Likewse.
21773 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
21775         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
21776         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
21777         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
21778         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
21779         (__signbit): Remove.
21780         (__signbitl): Remove.
21781         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
21782         (__signbit): Remove.
21783         (__signbitl): Remove.
21784         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
21785         (__signbit): Remove.
21786         (__signbitl): Remove.
21787         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
21788         (__signbit): Remove.
21789         (__signbitl): Remove.
21790         * sysdeps/tile/bits/mathinline.h: Delete file.
21791         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
21792         (__signbit): Remove.
21793         (__signbitl): Remove.
21795 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
21797         * math/math.h: Improve handling of C99 isgreater macros.
21798         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
21799         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
21800         * sysdeps/powerpc/bits/mathinline.h: Likewise.
21801         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
21802         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
21804 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21806         * sysdeps/aarch64/libm-test-ulps: Update.
21808 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
21810         [BZ #22225]
21811         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
21812         math_opt_barrier on argument when doing arithmetic on it.
21813         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
21814         Likewise.  Use math_force_eval not math_opt_barrier after
21815         arithmetic.
21816         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
21817         math_opt_barrier on argument when doing arithmetic on it.
21818         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
21819         Likewise.
21821 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
21823         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
21824         libc_hidden_def.
21825         (__freeifaddrs): Likewise.
21827 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21829         * include/dirent.h (__dirfd): New declaration.
21830         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
21831         alias.
21832         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
21833         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
21834         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
21835         * include/unistd.h (__revoke): New declaration.
21836         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
21837         alias.
21838         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
21839         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
21840         revoke.
21841         * include/dirent.h (__seekdir): New declaration.
21842         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
21843         redefine as weak alias.
21844         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
21845         of seekdir.
21846         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
21847         and use libc_hidden_def on them.
21848         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
21849         them.
21850         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
21851         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
21852         instead of getifaddrs and freeifaddrs.
21854 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
21856         [BZ #18822]
21857         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
21858         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
21859         (__dso_handle): Remove declaration.
21860         * dlfcn/tstatexit.c (__dso_handle): Removed.
21861         (main): Don't check __dso_handle.
21862         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
21863         (main): Don't check __dso_handle.
21864         * include/dso_handle.h: New file.
21865         * malloc/mtrace.c: Include <dso_handle.h>.
21866         (mtrace): Pass __dso_handle directly.
21867         * nptl/pthread_atfork.c: Include <dso_handle.h>.
21868         (__dso_handle): Remove declaration.
21869         (__pthread_atfork): Pass __dso_handle directly.
21870         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
21871         (__dso_handle): Removed.
21872         * posix/wordexp-test.c: Include <dso_handle.h>.
21873         (__dso_handle): Remove declaration.
21874         (__app_register_atfork): Pass __dso_handle directly.
21875         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
21876         (__dso_handle): Remove declaration.
21877         (at_quick_exit): Pass __dso_handle directly.
21878         * stdlib/atexit.c: Include <dso_handle.h>.
21879         (__dso_handle): Remove declaration.
21880         (atexit): Pass __dso_handle directly.
21881         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
21882         (__dso_handle): Removed.
21884 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
21886         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
21887         using VDSO.
21889 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
21891         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
21892         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
21893         values to correct default value for given type.
21895 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
21897         [BZ #22101]
21898         * elf/Makefile (tests): Add tst-debug1.
21899         ($(objpfx)tst-debug1): New.
21900         ($(objpfx)tst-debug1.out): Likewise.
21901         ($(objpfx)tst-debug1mod1.so): Likewise.
21902         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
21903         with p_filesz == 0.
21904         * elf/tst-debug1.c: New file.
21906 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
21908         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
21909         Define using __ifunc.
21911 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21913         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
21914         exp2f() values.
21916 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
21918         [BZ #22156]
21919         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
21921 2017-09-26  Florian Weimer  <fweimer@redhat.com>
21923         * resolv/Makefile (tests-internal): Fix typo in comment.
21925 2017-09-26  Florian Weimer  <fweimer@redhat.com>
21927         * resolv/nss_dns/dns-host.c: Fix typo in comment.
21929 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21931         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
21932         Use an union instead of a max_align_t array for __space,
21933         so that __space is the same size on all platforms.
21934         * malloc/scratch_buffer_grow_preserve.c
21935         (__libc_scratch_buffer_grow_preserve): Likewise.
21937         [BZ #22183]
21938         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
21939         version to 2.
21940         * posix/Makefile (routines): Add glob-lstat-compat and
21941         glob64-lstat-compat.
21942         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
21943         * posix/glob-lstat-compat.c: New file.
21944         * posix/glob64-lstat-compat.c: Likewise.
21945         * posix/tst-glob_lstat_compat.c: Likewise.
21946         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
21947         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
21948         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
21949         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
21950         Likewise.
21951         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
21952         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
21953         * posix/glob.c (glob_lstat): New function.
21954         (glob): Rename to __glob and add versioned symbol to 2.27.
21955         (glob_in_dir): Use glob_lstat.
21956         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
21957         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21958         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
21959         2.27.
21960         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
21961         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
21962         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
21963         gl_lstat on glob call.
21964         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
21965         and glob64 symbols.
21966         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21967         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21968         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21969         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21970         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21971         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21972         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21973         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21974         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
21975         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21976         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21977         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21979         Likewise.
21980         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
21981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
21982         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21983         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21984         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21985         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21986         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
21988         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
21989         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21990         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21991         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21993 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
21995         * configure.ac (AS): Require binutils 2.25 or later.
21996         * configure: Regenerated.
21998 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
22000         [BZ #22207]
22001         * stdlib/test-atexit-race-common.c (do_test): Minimize required
22002         VM size.
22004 2017-09-25  DJ Delorie  <dj@redhat.com>
22006         [BZ #22161]
22007         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
22008         resetting timeout.
22010 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
22012         * sysdeps/ieee754/dbl-64/sincos32.h
22013         [SINCCOS32_H]: Remove define.
22014         [SINCOS32_H]: Define.
22016 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22018         * math/Versions (expf): New libm symbol at GLIBC_2.27.
22019         (exp2f): Likewise.
22020         * math/w_exp2f.c: New file.
22021         * math/w_expf.c: New file.
22022         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
22023         * math/w_expf_compat.c (__expf_compat): Likewise.
22024         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
22025         * sysdeps/ia64/fpu/e_expf.S: Likewise.
22026         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
22027         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22028         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22029         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22030         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22031         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22032         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22033         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22034         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22035         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22036         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22037         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22039         Likewise.
22040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22041         Likewise.
22042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22043         Likewise.
22044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22045         Likewise.
22046         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22047         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22048         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22049         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22050         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22051         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22052         Likewise.
22053         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22054         Likewise.
22055         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22056         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22057         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22059 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22061         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
22062         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
22063         (roundtoint, converttoint): Likewise.
22064         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
22065         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
22066         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
22067         * sysdeps/ieee754/flt-32/math_config.h: New file.
22068         * sysdeps/ieee754/flt-32/math_errf.c: New file.
22069         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
22070         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
22071         * sysdeps/i386/fpu/math_errf.c: New file.
22072         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
22073         * sysdeps/ia64/fpu/math_errf.c: New file.
22074         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
22075         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
22077 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22079         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
22080         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
22081         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
22082         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
22083         to make sure that these symbols are defined.
22084         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
22085         of <limits.h>
22086         (__need_NULL): Do not define.
22087         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
22088         alignment.
22089         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
22090         CMGROUP_MAX, cmsgcred): Do not define.
22091         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
22092         NULL.
22093         * bits/socket.h: Likewise.
22094         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
22095         __gettimeofday instead of gettimeofday.
22096         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
22097         instead of settimeofday.
22099 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
22101         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
22102         (asinhf): Define using libm_alias_float.
22103         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
22104         (atanf): Define using libm_alias_float.
22105         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
22106         (cbrtf): Define using libm_alias_float.
22107         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
22108         (ceilf): Define using libm_alias_float.
22109         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
22110         <libm-alias-float.h>.
22111         (copysignf): Define using libm_alias_float.
22112         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
22113         (cosf): Define using libm_alias_float.
22114         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
22115         (erff): Define using libm_alias_float.
22116         (erfcf): Likewise.
22117         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
22118         (expm1f): Define using libm_alias_float.
22119         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
22120         (fabsf): Define using libm_alias_float.
22121         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
22122         (floorf): Define using libm_alias_float.
22123         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
22124         (frexpf): Define using libm_alias_float.
22125         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
22126         libm_alias_float.
22127         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
22128         <libm-alias-float.h>.
22129         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
22130         libm_alias_float.
22131         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
22132         <libm-alias-float.h>.
22133         (getpayloadf): Define using libm_alias_float.
22134         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
22135         <libm-alias-float.h>.
22136         (llrintf): Define using libm_alias_float.
22137         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
22138         <libm-alias-float.h>.
22139         (llroundf): Define using libm_alias_float.
22140         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
22141         (logbf): Define using libm_alias_float.
22142         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
22143         (lrintf): Define using libm_alias_float.
22144         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
22145         (lroundf): Define using libm_alias_float.
22146         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
22147         (modff): Define using libm_alias_float.
22148         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
22149         <libm-alias-float.h>.
22150         (nearbyintf): Define using libm_alias_float.
22151         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
22152         <libm-alias-float.h>.
22153         (nextafterf): Define using libm_alias_float.
22154         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
22155         <libm-alias-float.h>.
22156         (nextupf): Define using libm_alias_float.
22157         * sysdeps/ieee754/flt-32/s_remquof.c: Include
22158         <libm-alias-float.h>.
22159         (remquof): Define using libm_alias_float.
22160         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
22161         (rintf): Define using libm_alias_float.
22162         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
22163         <libm-alias-float.h>.
22164         (roundevenf): Define using libm_alias_float.
22165         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
22166         (roundf): Define using libm_alias_float.
22167         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
22168         using libm_alias_float.
22169         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
22170         <libm-alias-float.h>.
22171         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
22172         Define using libm_alias_float.
22173         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
22174         <libm-alias-float.h>.
22175         (sincosf): Define using libm_alias_float.
22176         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
22177         (sinf): Define using libm_alias_float.
22178         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
22179         (tanf): Define using libm_alias_float.
22180         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
22181         (tanhf): Define using libm_alias_float.
22182         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
22183         <libm-alias-float.h>.
22184         (totalorderf): Define using libm_alias_float.
22185         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
22186         <libm-alias-float.h>.
22187         (totalordermagf): Define using libm_alias_float.
22188         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
22189         (truncf): Define using libm_alias_float.
22190         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
22191         libm_alias_float.
22192         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
22193         libm_alias_float.
22195 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22197         [BZ #22146]
22198         math/math.h: Let fpclassify use the builtin in C++ mode, even
22199         when optimazing for size.
22201 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
22203         * csu/Makefile (generated): Do not add version-info.h.
22204         (before-compile): Likewise.
22205         (all-Banner-files): Remove variable.
22206         ($(objpfx)version-info.h): Remove rule.
22207         * csu/version.c (banner): Do not include "version-info.h".
22208         * libidn/Banner: Remove.
22209         * manual/contrib.texi (Simon Josefsson): New entry.
22211 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22213         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
22214         Remove conditionals on LDBL_MANT_DIG.
22215         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
22216         (__ieee754_lgammal_r): Likewise.
22218 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22220         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
22221         _Float128 and L().
22222         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
22223         _Float128 and L(). Replace _Float128 with long double and L(x)
22224         with xL, throughout the file.
22225         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
22226         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
22227         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
22228         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
22230 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22232         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
22233         sysdeps/ieee754/ldbl-128ibm.
22234         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
22235         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
22236         of including it.  Keep _Float128 and L() intact.  These will be
22237         reviewed by a separate patch.
22238         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
22239         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
22240         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
22241         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
22243 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22245         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
22246         (__finitef128): Define to __redirect___finitef128.
22247         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
22248         (__isinff128): Define to __redirect___isinff128.
22249         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
22250         (__isnanf128): Define to __redirect___isnanf128.
22252 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
22254         * sysdeps/powerpc/powerpc64le/Makefile
22255         (CFLAGS-tst-strtod-nan-locale.c): New variable.
22256         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
22258 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
22259             Carlos O'Donell  <carlos@redhat.com>
22261         [BZ #22180]
22262         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
22263         * stdlib/test-dlclose-exit-race.c: New file.
22264         * stdlib/test-dlclose-exit-race-helper.c: New file.
22265         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
22267 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
22269         * crypt/Banner: Remove file.
22270         * nptl/Banner: Likewise.
22271         * resolv/Banner: Likewise.
22272         * soft-fp/Banner: Likewise.
22273         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
22274         ($(objpfx)version.d): Remove dependency on banner.h.
22275         ($(objpfx)version.os): Likewise.
22276         * nptl/version.c (banner): Do not include banner.h.
22277         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
22278         Jelinek and BIND code.
22280 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
22281             Carlos O'Donell  <carlos@redhat.com>
22283         * support/xdlfcn.h: New file.
22284         * support/xdlfcn.c: New file.
22285         * support/Makefile (libsupport-routines): Add xdlfcn.
22286         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
22288 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
22290         [BZ #20142]
22291         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22292         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
22293         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
22294         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
22295         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
22296         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
22297         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
22298         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
22300 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
22301             Ricky Zhou  <rickyz@google.com>
22302             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
22304         [BZ #14333]
22305         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
22306         Remove atomics.
22307         (__new_exitfn): Fail registration when we finished at_exit processing.
22308         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
22309         * stdlib/on_exit.c (__on_exit): Likewise.
22310         * stdlib/exit.c (__exit_funcs_done): New variable.
22311         (__run_exit_handlers): Use __exit_funcs_lock.
22312         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
22313         declarations.
22314         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
22315         (test-cxa_atexit-race, test-on_exit-race): New tests.
22316         * stdlib/test-atexit-race-common.c: New file.
22317         * stdlib/test-atexit-race.c: New file.
22318         * stdlib/test-at_quick_exit-race.c: New file.
22319         * stdlib/test-cxa_atexit-race.c: New file.
22320         * stdlib/test-on_exit-race.c: New file.
22322 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22324         * benchtests/Makefile: Add exp2f and log2f benchmarks.
22325         * benchtests/exp2f-inputs: Copy of expf-inputs.
22326         * benchtests/log2f-inputs: Copy of logf-inputs.
22328 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
22330         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
22331         Explicitly take address of first element of array arguments in
22332         call to INLINE_SYSCALL.
22334 2017-09-19  Andreas Schwab  <schwab@suse.de>
22336         [BZ #22134]
22337         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
22338         execveat first.
22339         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
22340         unimplemented.
22341         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
22342         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
22343         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
22344         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
22345         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22346         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
22347         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22348         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
22349         * posix/Makefile (tests): Add tst-fexecve.
22350         * posix/tst-fexecve.c: New file.
22352 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
22354         * benchtests/Makefile: Add logf benchmark.
22355         * benchtests/logf-inputs: Add reduced trace from wrf_r.
22357 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
22359         * benchtests/Makefile: Add expf benchmark.
22360         * benchtests/expf-inputs: Add reduced trace from wrf_r.
22362 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
22364         * csu/Makefile: Add -funwind-tables to libc-start.c.
22365         * debug/Makefile: Add -funwind-tables to backtrace.c.
22366         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
22367         * sysdeps/arm/Makefile: Likewise.
22368         * sysdeps/i386/Makefile: Likewise.
22369         * sysdeps/m68k/Makefile: Likewise.
22370         * sysdeps/mips/Makefile: Likewise.
22371         * sysdeps/nios2/Makefile: Likewise.
22372         * sysdeps/sh/Makefile: Likewise.
22373         * sysdeps/sparc/Makefile: Likewise.
22375 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
22377         * benchtests/Makefile (bench-math): Add trunc and truncf.
22378         (CFLAGS-bench-trunc.c): New variable.
22379         (CFLAGS-bench-truncf.c): Likewise.
22380         * benchtests/trunc-inputs: New file.
22381         * benchtests/truncf-inputs: Likewise.
22383 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22385         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
22387 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
22389         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
22390         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
22391         redefine.
22392         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
22393         (exp10l): Define as weak alias.
22394         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
22395         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
22396         and redefine.
22397         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
22398         (remainderl): Define as weak alias.
22400         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
22401         (fmal): Define using libm_alias_ldouble.
22402         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
22403         (acoshl): Define using libm_alias_ldouble.
22404         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
22405         (acosl): Define using libm_alias_ldouble.
22406         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
22407         (asinl): Define using libm_alias_ldouble.
22408         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
22409         (atan2l): Define using libm_alias_ldouble.
22410         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
22411         (atanhl): Define using libm_alias_ldouble.
22412         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
22413         (coshl): Define using libm_alias_ldouble.
22414         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
22415         (exp10l): Define using libm_alias_ldouble.
22416         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
22417         (exp2l): Define using libm_alias_ldouble.
22418         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
22419         (expl): Define using libm_alias_ldouble.
22420         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
22421         (fmodl): Define using libm_alias_ldouble.
22422         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
22423         (hypotl): Define using libm_alias_ldouble.
22424         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
22425         (j0l): Define using libm_alias_ldouble.
22426         (y0l): Likewise.
22427         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
22428         (j1l): Define using libm_alias_ldouble.
22429         (y1l): Likewise.
22430         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
22431         (jnl): Define using libm_alias_ldouble.
22432         (ynl): Likewise.
22433         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
22434         (log10l): Define using libm_alias_ldouble.
22435         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
22436         (log2l): Define using libm_alias_ldouble.
22437         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
22438         (logl): Define using libm_alias_ldouble.
22439         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
22440         (powl): Define using libm_alias_ldouble.
22441         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
22442         (remainderl): Define using libm_alias_ldouble.
22443         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
22444         (sinhl): Define using libm_alias_ldouble.
22445         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
22446         (sqrtl): Define using libm_alias_ldouble.
22447         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
22448         (tgammal): Define using libm_alias_ldouble.
22449         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
22450         (exp10l): Do not use long_double_symbol here.
22451         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
22452         [LIBM_SVID_COMPAT] (remainderl): Likewise.
22453         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
22454         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
22455         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
22456         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
22457         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
22458         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
22459         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
22460         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
22461         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
22462         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
22463         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
22464         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
22465         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
22466         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
22467         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
22468         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
22469         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
22470         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
22471         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
22472         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
22474 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
22476         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
22477         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
22479 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22481         * io/read.c (read): Add libc_hidden_weak.
22482         * sysdeps/mach/hurd/read.c (read): Likewise.
22483         * io/write.c (write): Likewise.
22484         * sysdeps/mach/hurd/write.c (write): Likewise.
22485         * io/pread64.c (__pread64): Likewise.
22486         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
22487         * posix/pread64.c (__pread64): Add libc_hidden_def.
22489 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22491         * benchtests/scripts/compare_strings.py: New option -g.
22492         (draw_graph): Print a message that a graph is being generated.
22493         (process_results): Generate graph only if -g is passed.
22494         (main): Process option -g.
22496         * benchtests/scripts/compare_strings.py (process_results):
22497         Better spacing for output.
22499         * benchtests/scripts/compare_strings.py: Use argparse.
22500         * benchtests/README: Document existence of compare_strings.py.
22502 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
22504         * math/s_fma.c: Include <libm-alias-double.h>.
22505         (fma): Define using libm_alias_double.
22506         * math/s_nextafter.c: Include <libm-alias-double.h>.
22507         (nextafter): Define using libm_alias_double.
22508         * math/w_acos_compat.c: Include <libm-alias-double.h>.
22509         (acos): Define using libm_alias_double.
22510         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
22511         (aocsh): Define using libm_alias_double.
22512         * math/w_asin_compat.c: Include <libm-alias-double.h>.
22513         (asin): Define using libm_alias_double.
22514         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
22515         (atan2): Define using libm_alias_double.
22516         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
22517         (atanh): Define using libm_alias_double.
22518         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
22519         (cosh): Define using libm_alias_double.
22520         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
22521         (exp10): Define using libm_alias_double.
22522         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
22523         (exp2): Define using libm_alias_double.
22524         * math/w_exp_compat.c: Include <libm-alias-double.h>.
22525         (exp): Define using libm_alias_double.
22526         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
22527         (fmod): Define using libm_alias_double.
22528         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
22529         (hypot): Define using libm_alias_double.
22530         * math/w_j0_compat.c: Include <libm-alias-double.h>.
22531         (j0): Define using libm_alias_double.
22532         (y0): Likewise.
22533         * math/w_j1_compat.c: Include <libm-alias-double.h>.
22534         (j1): Define using libm_alias_double.
22535         (y1): Likewise.
22536         * math/w_jn_compat.c: Include <libm-alias-double.h>.
22537         (jn): Define using libm_alias_double.
22538         (yn): Likewise.
22539         * math/w_log10_compat.c: Include <libm-alias-double.h>.
22540         (log10): Define using libm_alias_double.
22541         * math/w_log2_compat.c: Include <libm-alias-double.h>.
22542         (log2): Define using libm_alias_double.
22543         * math/w_log_compat.c: Include <libm-alias-double.h>.
22544         (log): Define using libm_alias_double.
22545         * math/w_pow_compat.c: Include <libm-alias-double.h>.
22546         (pow): Define using libm_alias_double.
22547         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
22548         (remainder): Define using libm_alias_double.
22549         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
22550         (sinh): Define using libm_alias_double.
22551         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
22552         (sqrt): Define using libm_alias_double.
22553         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
22554         (tgamma): Define using libm_alias_double.
22555         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
22556         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
22557         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
22558         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
22559         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
22560         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
22561         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
22562         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
22563         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
22564         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
22565         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
22566         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
22567         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
22568         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
22569         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
22570         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
22571         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
22572         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
22573         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
22574         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
22575         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
22576         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
22577         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
22578         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
22579         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
22581         * math/e_acoshl.c: Remove.
22582         * math/e_acosl.c: Likewise.
22583         * math/e_asinl.c: Likewise.
22584         * math/e_atan2l.c: Likewise.
22585         * math/e_atanhl.c: Likewise.
22586         * math/e_coshl.c: Likewise.
22587         * math/e_expl.c: Likewise.
22588         * math/e_fmodl.c: Likewise.
22589         * math/e_gammal_r.c: Likewise.
22590         * math/e_hypotl.c: Likewise.
22591         * math/e_j0l.c: Likewise.
22592         * math/e_j1l.c: Likewise.
22593         * math/e_jnl.c: Likewise.
22594         * math/e_lgammal_r.c: Likewise.
22595         * math/e_log10l.c: Likewise.
22596         * math/e_log2l.c: Likewise.
22597         * math/e_logl.c: Likewise.
22598         * math/e_powl.c: Likewise.
22599         * math/e_rem_pio2l.c: Likewise.
22600         * math/e_sinhl.c: Likewise.
22601         * math/e_sqrtf128.c: Likewise.
22602         * math/e_sqrtl.c: Likewise.
22603         * math/k_cosl.c: Likewise.
22604         * math/k_sinl.c: Likewise.
22605         * math/k_tanl.c: Likewise.
22606         * math/s_asinhl.c: Likewise.
22607         * math/s_atanl.c: Likewise.
22608         * math/s_cbrtl.c: Likewise.
22609         * math/s_erfl.c: Likewise.
22610         * math/s_expm1l.c: Likewise.
22611         * math/s_log1pl.c: Likewise.
22612         * math/s_tanhl.c: Likewise.
22614 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22616         [BZ #21745]
22617         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
22618         [$(subdir) = math] (sysdep_calls): New variable.  Has the
22619         previous contents of sysdep_routines, but re-sorted..
22620         [$(subdir) = math] (sysdep_routines): Re-use the contents from
22621         sysdep_calls.
22622         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
22623         defined in sysdep_calls and replace by the respective m_* names.
22624         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
22625         (compat_symbol): Undefine to avoid duplicated compat symbols in
22626         libc.
22628 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
22630         * math/s_fmaf.c: Include <libm-alias-float.h>.
22631         (fmaf): Define using libm_alias_float.
22632         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
22633         (acosf): Define using libm_alias_float.
22634         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
22635         (acoshf): Define using libm_alias_float.
22636         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
22637         (asinf): Define using libm_alias_float.
22638         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
22639         (atan2f): Define using libm_alias_float.
22640         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
22641         (atanhf): Define using libm_alias_float.
22642         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
22643         (coshf): Define using libm_alias_float.
22644         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
22645         (exp10f): Define using libm_alias_float.
22646         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
22647         (fmodf): Define using libm_alias_float.
22648         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
22649         (hypotf): Define using libm_alias_float.
22650         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
22651         (j0f): Define using libm_alias_float.
22652         (y0f): Likewise.
22653         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
22654         (j1f): Define using libm_alias_float.
22655         (y1f): Likewise.
22656         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
22657         (jnf): Define using libm_alias_float.
22658         (ynf): Likewise.
22659         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
22660         (log10f): Define using libm_alias_float.
22661         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
22662         (log2f): Define using libm_alias_float.
22663         * math/w_logf_compat.c: Include <libm-alias-float.h>.
22664         (logf): Define using libm_alias_float.
22665         * math/w_powf_compat.c: Include <libm-alias-float.h>.
22666         (powf): Define using libm_alias_float.
22667         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
22668         (remainderf): Define using libm_alias_float.
22669         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
22670         (sinhf): Define using libm_alias_float.
22671         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
22672         (sqrtf): Define using libm_alias_float.
22673         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
22674         (tgammaf): Define using libm_alias_float.
22676 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
22678         * include/math.h (roundeven): Change hidden_proto call to
22679         __roundeven.
22680         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
22681         alias.
22682         [NO_LONG_DOUBLE] (__j0l): New strong alias.
22683         (y0): Rename to __y0 and define as weak alias.
22684         [NO_LONG_DOUBLE] (__y0l): New strong alias.
22685         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
22686         alias.
22687         (y0f): Rename to __y0f and define as weak alias.
22688         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
22689         alias.
22690         [NO_LONG_DOUBLE] (__j1l): New strong alias.
22691         (y1): Rename to __y1 and define as weak alias.
22692         [NO_LONG_DOUBLE] (__y1l): New strong alias.
22693         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
22694         alias.
22695         (y1f): Rename to __y1f and define as weak alias.
22696         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
22697         alias.
22698         [NO_LONG_DOUBLE] (__jnl): New strong alias.
22699         (yn): Rename to __yn and define as weak alias.
22700         [NO_LONG_DOUBLE] (__ynl): New strong alias.
22701         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
22702         alias.
22703         (ynf): Rename to __ynf and define as weak alias.
22704         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
22705         (fromfp): Define as weak alias.
22706         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
22707         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
22708         (fromfpx): Define as weak alias.
22709         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
22710         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
22711         __getpayload and define as weak alias.
22712         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
22713         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
22714         __roundeven and define as weak alias.
22715         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
22716         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
22717         __setpayload.
22718         (setpayload): Define as weak alias.
22719         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
22720         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
22721         __setpayloadsig.
22722         (setpayloadsig): Define as weak alias.
22723         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
22724         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
22725         __totalorder and define as weak alias.
22726         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
22727         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
22728         to __totalordermag and define as weak alias.
22729         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
22730         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
22731         (ufromfp): Define as weak alias.
22732         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
22733         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
22734         __ufromfpx.
22735         (ufromfpx): Define as weak alias.
22736         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
22737         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
22738         Rename to __getpayload and define as weak alias.
22739         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
22740         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
22741         Rename to __roundeven and define as weak alias.
22742         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
22743         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
22744         Rename to __totalorder and define as weak alias.
22745         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
22746         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
22747         (totalordermag): Rename to __totalordermag and define as weak
22748         alias.
22749         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
22750         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
22751         macro.
22752         (__roundevenl): Likewise.
22753         (__totalorderl): Likewise.
22754         (__totalordermagl): Likewise
22755         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
22756         __fromfpf128.
22757         (fromfpf128): Define as weak alias.
22758         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
22759         __fromfpxf128.
22760         (fromfpxf128): Define as weak alias.
22761         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
22762         __setpayloadf128.
22763         (setpayloadf128): Define as weak alias.
22764         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
22765         __setpayloadsigf128.
22766         (setpayloadsigf128): Define as weak alias.
22767         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
22768         __ufromfpf128.
22769         (ufromfpf128): Define as weak alias.
22770         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
22771         __ufromfpxf128.
22772         (ufromfpxf128): Define as weak alias.
22773         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
22774         (fromfpf): Define as weak alias.
22775         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
22776         __fromfpxf.
22777         (fromfpxf): Define as weak alias.
22778         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
22779         __getpayloadf and define as weak alias.
22780         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
22781         __roundevenf and define as weak alias.
22782         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
22783         __setpayloadf.
22784         (setpayloadf): Define as weak alias.
22785         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
22786         __setpayloadsigf.
22787         (setpayloadsigf): Define as weak alias.
22788         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
22789         __totalorderf and define as weak alias.
22790         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
22791         Rename to __totalordermagf and define as weak alias.
22792         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
22793         __ufromfpf.
22794         (ufromfpf): Define as weak alias.
22795         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
22796         __ufromfpxf.
22797         (ufromfpxf): Define as weak alias.
22798         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
22799         __fromfpl.
22800         (fromfpl): Define as weak alias.
22801         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
22802         __fromfpxl.
22803         (fromfpxl): Define as weak alias.
22804         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
22805         to __getpayloadl and define as weak alias.
22806         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
22807         __roundevenl and define as weak alias.
22808         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
22809         __setpayloadl.
22810         (setpayloadl): Define as weak alias.
22811         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
22812         __setpayloadsigl.
22813         (setpayloadsigl): Define as weak alias.
22814         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
22815         to __totalorderl and define as weak alias.
22816         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
22817         Rename to __totalordermagl and define as weak alias.
22818         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
22819         __ufromfpl.
22820         (ufromfpl): Define as weak alias.
22821         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
22822         __ufromfpxl.
22823         (ufromfpxl): Define as weak alias.
22824         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
22825         __fromfpl.
22826         (fromfpl): Define as weak alias.
22827         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
22828         __fromfpxl.
22829         (fromfpxl): Define as weak alias.
22830         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
22831         Rename to __getpayloadl and define as weak alias.
22832         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
22833         to __roundevenl and define as weak alias.  Call __roundeven
22834         instead of roundeven.
22835         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
22836         __setpayloadl.
22837         (setpayloadl): Define as weak alias.
22838         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
22839         __setpayloadsigl.
22840         (setpayloadsigl): Define as weak alias.
22841         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
22842         Rename to __totalorderl and define as weak alias.
22843         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
22844         Rename to __totalordermagl and define as weak alias.
22845         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
22846         __ufromfpl.
22847         (ufromfpl): Define as weak alias.
22848         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
22849         __ufromfpxl.
22850         (ufromfpxl): Define as weak alias.
22851         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
22852         __fromfpl.
22853         (fromfpl): Define as weak alias.
22854         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
22855         __fromfpxl.
22856         (fromfpxl): Define as weak alias.
22857         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
22858         __getpayloadl and define as weak alias.
22859         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
22860         __roundevenl and define as weak alias.
22861         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
22862         __setpayloadl.
22863         (setpayloadl): Define as weak alias.
22864         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
22865         __setpayloadsigl.
22866         (setpayloadsigl): Define as weak alias.
22867         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
22868         __totalorderl and define as weak alias.
22869         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
22870         Rename to __totalordermagl and define as weak alias.
22871         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
22872         __ufromfpl.
22873         (ufromfpl): Define as weak alias.
22874         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
22875         __ufromfpxl.
22876         (ufromfpxl): Define as weak alias.
22878 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
22880         * benchtests/bench-string.h (realloc_bufs): New function.
22881         (test_init): Call it.
22882         * benchtests/bench-memset-large.c (do_test): Likewise.
22883         * benchtests/bench-memset.c (do_test): Likewise.
22885         * benchtests/bench-memset-large.c: Print output in JSON
22886         format.
22887         * benchtests/bench-memset.c: Likewise.
22889 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
22891         [BZ #21084]
22892         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
22893         * iconvdata/Makefile: Add IBM858.
22894         * iconvdata/gconv-modules: Likewise.
22895         * iconvdata/tst-tables.sh: Likewise.
22896         * iconvdata/ibm858.c: New file.
22897         * localedata/charmaps/IBM858: Likewise.
22899 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
22901         [BZ #22023]
22902         * locales/niu_NZ (LC_TIME): copy "niu_NU".
22903         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
22905 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
22907         [BZ #22112]
22908         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
22909         and add tel_int_fmt.
22911 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
22913         * sysdeps/generic/libm-alias-float128.h: New file.
22914         * sysdeps/generic/math-type-macros-float128.h: Include
22915         <libm-alias-float128.h>.
22916         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
22918 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
22920         * sysdeps/generic/libm-alias-ldouble.h: New file.
22921         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
22922         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
22923         * sysdeps/generic/math-type-macros-ldouble.h: Include
22924         <libm-alias-ldouble.h>.
22925         [!declare_mgen_alias] (declare_mgen_alias): Define to use
22926         libm_alias_ldouble.
22928 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
22930         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
22931         * math/w_exp_compat.c: ... here.
22932         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
22933         * math/w_expf_compat.c: ... here.
22934         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
22935         * math/w_expl_compat.c: ... here.
22936         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
22937         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
22938         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
22939         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
22941 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
22943         * math/w_scalbln_template.c (strong_alias): Do not undefine and
22944         redefine.
22945         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
22946         macro.
22947         (ldexpl): Only define as compat symbol for libc, not libm.
22948         (scalbnl): Define as compat symbol for libc here.
22949         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
22950         define for [IS_IN (libc)].
22951         (__ldexpl_2): Remove alias.
22952         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
22953         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
22954         name in long_double_symbol call.
22955         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
22956         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
22957         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
22958         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
22959         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
22960         Remove macro.
22961         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
22962         Define as compat symbol.
22964 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
22966         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
22967         * sysdeps/unix/sysv/linux/alpha/Makefile
22968         [$(subdir) = csu] (sysdep_routines): Remove rule.
22970 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
22972         * sysdeps/generic/libm-alias-double.h: New file.
22973         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
22974         * sysdeps/generic/math-type-macros-double.h: Include
22975         <libm-alias-double.h>.
22976         [declare_mgen_alias] (declare_mgen_alias): Define to use
22977         libm_alias_double.
22978         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
22979         (M_LIBM_NEED_COMPAT): Remove macro.
22980         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
22981         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
22982         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
22983         code.
22984         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22985         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22986         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22987         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22988         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22989         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22990         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22991         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22992         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22993         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22994         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22995         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22996         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22997         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22998         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
22999         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23000         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23001         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23002         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23003         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23004         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23005         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23006         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23007         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23008         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23009         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23010         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
23011         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
23012         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
23013         macro.
23014         (declare_mgen_alias): New macro.
23015         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
23016         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
23017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
23018         (M_LIBM_NEED_COMPAT): Remove macro.
23019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
23020         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
23021         <first-versions.h>.
23022         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
23023         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
23025 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
23027         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
23028         (declare_mgen_alias_2): Remove.
23029         * sysdeps/generic/math-type-macros-double.h
23030         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
23031         Likewise.
23032         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
23033         alias.
23034         (ldexp): Define with declare_mgen_alias.
23035         (scalbn): Likewise.
23037 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
23039         * grp/initgroups.c: Include config.h.
23040         (DEFAULT_CONFIG): New macro.
23041         (internal_getgrouplist): Use DEFAULT_CONFIG.
23042         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23043         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
23044         (DEFAULT_DEFCONFIG): New macro.
23045         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
23046         * nss/grp-lookup.c: Include config.h
23047         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
23048         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
23049         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
23050         * manual/nss.texi: Update default values section.
23052 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
23054         [BZ #21967]
23055         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
23056         New.
23057         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
23058         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
23059         Handle MathVec_Prefer_No_AVX512.
23060         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
23061         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
23062         is set.
23064 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23066         * posix/sched_primax.c (__sched_get_priority_max): Add
23067         libc_hidden_def.
23068         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
23069         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
23070         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
23071         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
23072         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
23073         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
23074         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
23075         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
23076         Add aliases.
23078 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
23080         * sysdeps/generic/libm-alias-float.h: New file.
23081         * sysdeps/generic/math-type-macros-float.h: Include
23082         <libm-alias-float.h>.
23083         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
23085 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
23087         [BZ #22093]
23088         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
23089         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
23090         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
23091         (HWCAP_IMPORTANT): Likewise.
23092         (HWCAP_X86_64): New enum.
23093         (HWCAP_X86_AVX512_1): Updated.
23094         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
23095         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
23096         (modules-names): Add x86_64/tst-x86_64mod-1.
23097         (LDFLAGS-tst-x86_64mod-1.so): New.
23098         ($(objpfx)tst-x86_64-1): Likewise.
23099         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
23100         (tst-x86_64-1-clean): Likewise.
23101         * sysdeps/x86_64/tst-x86_64-1.c: New file.
23102         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
23104 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
23106         * po/sv.po: Update translations.
23107         * po/fr.po: Likewise.
23109 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23111         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
23112         seconds.
23113         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
23114         seconds.
23115         * elf/rtld-Rules: Fix $(error) use.
23117 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
23119         [BZ #14925]
23120         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
23121         * locale/iso-639.def: Change “Bengali” to “Bangla”.
23122         * localedata/locales/bn_BD: “Bengali” was still used in some
23123         comments. Change it to “Bangla”.
23125 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
23127         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
23129 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
23131         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
23132         thunderx2t99p1 to list of cpu names.
23133         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
23134         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
23136 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
23138         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
23139         Use strcmp instead of tunable_is_name.
23141 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
23143         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
23144         (F_GET_RW_HINT): New macro.
23145         [__USE_GNU] (F_SET_RW_HINT): Likewise.
23146         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
23147         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
23148         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
23149         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
23150         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
23151         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
23152         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
23153         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
23155         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
23156         (F_ADD_SEALS): New macro.
23157         [__USE_GNU] (F_GET_SEALS): Likewise.
23158         [__USE_GNU] (F_SEAL_SEAL): Likewise.
23159         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
23160         [__USE_GNU] (F_SEAL_GROW): Likewise.
23161         [__USE_GNU] (F_SEAL_WRITE): Likewise.
23163 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23165         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
23166         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
23167         * posix/glob_internal.h (__glob_pattern_type):
23168         * posix/glob.c (glob):
23169         * posix/glob_pattern_p.c (__glob_pattern_p):
23170         Use them.
23172         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
23173         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
23174         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
23175         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
23176         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
23177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
23178         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
23179         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
23180         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
23181         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
23182         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
23183         * sysdeps/wordsize-64/glob.c: Likewise.
23184         * sysdeps/wordsize-64/glob64.c: Likewise.
23185         * sysdeps/wordsize-64/globfree.c: Likewise.
23186         * sysdeps/wordsize-64/globfree64.c: Likewise.
23187         * sysdeps/unix/sysv/linux/glob.c: New file.
23188         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
23189         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
23190         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
23191         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
23192         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
23193         adds !GLOB_NO_OLD_VERSION as an extra condition.
23194         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
23195         using relative path instead of absolute one.
23196         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
23197         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
23198         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
23199         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
23200         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
23201         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
23203         [BZ #1062]
23204         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
23205         (glob): Use the same scratch buffer for both getlogin_r and
23206         getpwnam_r.  Don’t require preallocation of the login name.  This
23207         simplifies storage allocation, and corrects the handling of
23208         long login names.
23210         [BZ #1062]
23211         * posix/glob.c (glob): Port recent patches to platforms
23212         lacking getpwnam_r.
23213         (glob): Fix longstanding misuse of errno after getpwnam_r, which
23214         returns an error number rather than setting errno.
23216         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
23217         instead of GCC extension.
23218         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
23219         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
23220         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
23222         [BZ #866]
23223         [BZ #1062]
23224         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
23225         * posix/bug-glob1.c: Remove file.
23226         * posix/tst-glob_symlinks.c: New file.
23227         * posix/glob.c (__lstat64): New macro.
23228         (is_dir): New function.
23229         (glob, glob_in_dir): Match symlinks even if they are dangling.
23230         (link_stat, link_exists_p): Remove.  All uses removed.
23232         [BZ #1062]
23233         [BZ #19971]
23234         * posix/glob.c (struct readdir_result): Remove skip_entry member.
23235         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
23236         All uses removed.
23238         [BZ #1062]
23239         CVE-2017-15671
23240         * posix/Makefile (routines): Add globfree, globfree64, and
23241         glob_pattern_p.
23242         * posix/flexmember.h: New file.
23243         * posix/glob_internal.h: Likewise.
23244         * posix/glob_pattern_p.c: Likewise.
23245         * posix/globfree.c: Likewise.
23246         * posix/globfree64.c: Likewise.
23247         * sysdeps/gnu/globfree64.c: Likewise.
23248         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
23249         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
23250         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
23251         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
23252         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
23253         * sysdeps/wordsize-64/globfree.c: Likewise.
23254         * sysdeps/wordsize-64/globfree64.c: Likewise.
23255         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
23256         [NDEBUG): Remove comments.
23257         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
23258         (dirent_type): New type.  Use uint_fast8_t not
23259         uint8_t, as C99 does not require uint8_t.
23260         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
23261         (struct readdir_result): Use dirent_type.  Do not define skip_entry
23262         unless it is needed; this saves a byte on platforms lacking d_ino.
23263         (readdir_result_type, readdir_result_skip_entry):
23264         New functions, replacing ...
23265         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
23266          these functions, which were removed.  This makes the callers
23267         easier to read.  All callers changed.
23268         (D_INO_TO_RESULT): Now empty if there is no d_ino.
23269         (size_add_wrapv, glob_use_alloca): New static functions.
23270         (glob, glob_in_dir): Check for size_t overflow in several places,
23271         and fix some size_t checks that were not quite right.
23272         Remove old code using SHELL since Bash no longer
23273         uses this.
23274         (glob, prefix_array): Separate MS code better.
23275         (glob_in_dir): Remove old Amiga and VMS code.
23276         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
23277         separate files.
23278         (glob_in_dir): Do not rely on undefined behavior in accessing
23279         struct members beyond their bounds.  Use a flexible array member
23280         instead
23281         (link_stat): Rename from link_exists2_p and return -1/0 instead of
23282         0/1.  Caller changed.
23283         (glob): Fix memory leaks.
23284         * posix/glob64 (globfree64): Move to separate file.
23285         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
23286         (globfree64): Remove hidden alias.
23287         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
23288         oldglob.
23289         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
23290         separate file.
23291         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
23292         define.
23293         Move compat code to separate file.
23294         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
23295         separate file.
23297 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
23299         * resolv/tst-resolv-qtypes.c (domain): Changed to
23300         "const char domain[] =".
23302 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
23304         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
23305         version to 3.1.6.
23307         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
23308         (TCP_MD5SIG_EXT): Likewise.
23309         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
23310         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
23311         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
23313         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
23315 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
23317         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
23319 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
23321         [BZ #22100]
23322         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
23324 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23326         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
23327         before assuming that the file is empty.  Avoid testing buffer content
23328         when nread == 0.
23330 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23332         [BZ #18858]
23333         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
23334         Remove define.
23335         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
23336         Likewise.
23337         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
23338         Likewise.
23339         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
23340         Likewise.
23341         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
23342         Likewise.
23343         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
23344         Likewise.
23345         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
23346         Likewise.
23348 2017-09-06  Florian Weimer  <fweimer@redhat.com>
23350         * malloc/dynarray_emplace_enlarge.c
23351         (__libc_dynarray_emplace_enlarge): Add missing else.
23353 2017-09-06  Florian Weimer  <fweimer@redhat.com>
23355         [BZ #22096]
23356         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
23357         case of failure to obtain the global conf object.
23359 2017-09-06  Florian Weimer  <fweimer@redhat.com>
23361         [BZ #22095]
23362         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
23363         dynarray allocation failure.
23365 2017-09-06  Florian Weimer  <fweimer@redhat.com>
23367         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
23368         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
23369         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
23370         New functions.
23371         (response): Call them.  Add 'p', '6' flag processing.
23372         (test_reverse): New function.
23373         (test_get2_any): Call it.
23374         (test_no_inet6): Add 'p' test.
23375         (test_inet6): Likewise.
23377 2017-09-06  Florian Weimer  <fweimer@redhat.com>
23379         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
23380         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
23381         the QNAME.
23382         (test_gai): Adjust query names.  Add additional tests.
23383         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
23384         test_get2.  Adjust query names.  Add additional tests.
23385         (test_no_inet6): New function, extracted from threadfunc.
23386         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
23387         Add additional tests.
23389 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
23391         [BZ #22070]
23392         * localedata/unicode-gen/utf8_gen.py: Set the width for
23393         characters with Prepended_Concatenation_Mark property to 1
23394         * localedata/charmaps/UTF-8: Updated using the improved script.
23396 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
23398         [BZ #21750]
23399         * localedata/unicode-gen/utf8_gen.py: Improve the script to
23400         use the range notation for all ranges of neighbouring characters
23401         with the same width.
23403 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
23405         * sysdeps/generic/math-type-macros-double.h: Include
23406         <math-svid-compat.h>.
23407         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
23408         * sysdeps/generic/math-type-macros-float.h: Include
23409         <math-svid-compat.h>.
23410         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
23411         * sysdeps/generic/math-type-macros-ldouble.h: Include
23412         <math-svid-compat.h>.
23413         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
23414         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
23415         condition.
23416         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
23417         * math/w_acosf_compat.c: Likewise.
23418         * math/w_acosh_compat.c: Likewise.
23419         * math/w_acoshf_compat.c: Likewise.
23420         * math/w_acoshl_compat.c: Likewise.
23421         * math/w_acosl_compat.c: Likewise.
23422         * math/w_asin_compat.c: Likewise.
23423         * math/w_asinf_compat.c: Likewise.
23424         * math/w_asinl_compat.c: Likewise.
23425         * math/w_atan2_compat.c: Likewise.
23426         * math/w_atan2f_compat.c: Likewise.
23427         * math/w_atan2l_compat.c: Likewise.
23428         * math/w_atanh_compat.c: Likewise.
23429         * math/w_atanhf_compat.c: Likewise.
23430         * math/w_atanhl_compat.c: Likewise.
23431         * math/w_cosh_compat.c: Likewise.
23432         * math/w_coshf_compat.c: Likewise.
23433         * math/w_coshl_compat.c: Likewise.
23434         * math/w_exp10_compat.c: Likewise.
23435         * math/w_exp10f_compat.c: Likewise.
23436         * math/w_exp10l_compat.c: Likewise.
23437         * math/w_exp2_compat.c: Likewise.
23438         * math/w_exp2f_compat.c: Likewise.
23439         * math/w_exp2l_compat.c: Likewise.
23440         * math/w_fmod_compat.c: Likewise.
23441         * math/w_fmodf_compat.c: Likewise.
23442         * math/w_fmodl_compat.c: Likewise.
23443         * math/w_hypot_compat.c: Likewise.
23444         * math/w_hypotf_compat.c: Likewise.
23445         * math/w_hypotl_compat.c: Likewise.
23446         * math/w_j0_compat.c: Likewise.
23447         * math/w_j0f_compat.c: Likewise.
23448         * math/w_j0l_compat.c: Likewise.
23449         * math/w_j1_compat.c: Likewise.
23450         * math/w_j1f_compat.c: Likewise.
23451         * math/w_j1l_compat.c: Likewise.
23452         * math/w_jn_compat.c: Likewise.
23453         * math/w_jnf_compat.c: Likewise.
23454         * math/w_jnl_compat.c: Likewise.
23455         * math/w_lgamma_r_compat.c: Likewise.
23456         * math/w_lgammaf_r_compat.c: Likewise.
23457         * math/w_lgammal_r_compat.c: Likewise.
23458         * math/w_log10_compat.c: Likewise.
23459         * math/w_log10f_compat.c: Likewise.
23460         * math/w_log10l_compat.c: Likewise.
23461         * math/w_log2_compat.c: Likewise.
23462         * math/w_log2f_compat.c: Likewise.
23463         * math/w_log2l_compat.c: Likewise.
23464         * math/w_log_compat.c: Likewise.
23465         * math/w_logf_compat.c: Likewise.
23466         * math/w_logl_compat.c: Likewise.
23467         * math/w_pow_compat.c: Likewise.
23468         * math/w_powf_compat.c: Likewise.
23469         * math/w_powl_compat.c: Likewise.
23470         * math/w_remainder_compat.c: Likewise.
23471         * math/w_remainderf_compat.c: Likewise.
23472         * math/w_remainderl_compat.c: Likewise.
23473         * math/w_sinh_compat.c: Likewise.
23474         * math/w_sinhf_compat.c: Likewise.
23475         * math/w_sinhl_compat.c: Likewise.
23476         * math/w_sqrt_compat.c: Likewise.
23477         * math/w_sqrtf_compat.c: Likewise.
23478         * math/w_sqrtl_compat.c: Likewise.
23479         * math/w_tgamma_compat.c: Likewise.
23480         * math/w_tgammaf_compat.c: Likewise.
23481         * math/w_tgammal_compat.c: Likewise.
23482         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
23483         [LIBM_SVID_COMPAT].
23484         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
23485         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
23486         [LIBM_SVID_COMPAT].
23487         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
23488         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
23489         [LIBM_SVID_COMPAT].
23490         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
23491         * sysdeps/i386/fpu/w_sqrt.c: New file.
23492         * sysdeps/ia64/fpu/w_acos.c: Likewise.
23493         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
23494         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
23495         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
23496         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
23497         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
23498         * sysdeps/ia64/fpu/w_asin.c: Likewise.
23499         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
23500         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
23501         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
23502         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
23503         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
23504         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
23505         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
23506         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
23507         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
23508         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
23509         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
23510         * sysdeps/ia64/fpu/w_exp.c: Likewise.
23511         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
23512         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
23513         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
23514         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
23515         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
23516         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
23517         * sysdeps/ia64/fpu/w_expf.c: Likewise.
23518         * sysdeps/ia64/fpu/w_expl.c: Likewise.
23519         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
23520         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
23521         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
23522         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
23523         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
23524         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
23525         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
23526         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
23527         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
23528         * sysdeps/ia64/fpu/w_log.c: Likewise.
23529         * sysdeps/ia64/fpu/w_log10.c: Likewise.
23530         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
23531         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
23532         * sysdeps/ia64/fpu/w_log2.c: Likewise.
23533         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
23534         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
23535         * sysdeps/ia64/fpu/w_logf.c: Likewise.
23536         * sysdeps/ia64/fpu/w_logl.c: Likewise.
23537         * sysdeps/ia64/fpu/w_pow.c: Likewise.
23538         * sysdeps/ia64/fpu/w_powf.c: Likewise.
23539         * sysdeps/ia64/fpu/w_powl.c: Likewise.
23540         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
23541         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
23542         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
23543         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
23544         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
23545         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
23546         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
23547         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
23548         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
23549         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
23550         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
23551         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
23552         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
23553         [LIBM_SVID_COMPAT].
23554         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
23555         * sysdeps/ieee754/k_standard.c: Likewise.
23556         * sysdeps/ieee754/k_standardf.c: Likewise.
23557         * sysdeps/ieee754/k_standardl.c: Likewise.
23558         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
23559         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
23560         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
23561         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
23562         long_double_symbol call on [LIBM_SVID_COMPAT].
23563         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
23564         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
23565         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
23566         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
23567         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
23568         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
23569         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
23570         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
23571         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
23572         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
23573         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
23574         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
23575         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
23576         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
23577         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
23578         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
23579         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
23580         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
23581         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
23582         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
23583         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
23584         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
23586 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
23588         * include/shlib-compat.h (TEST_COMPAT): New Macro.
23589         * malloc/tst-mallocstate.c: Convert from test-skeleton
23590         to test-driver.  Ifdef code using TEST_COMPAT macro.
23591         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
23592         * math/test-matherr.c: Likewise.
23594 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
23596         [BZ #22086]
23597         * debug/pcprofiledump.c (main): Use byte-swapped mask when
23598         comparing word with byte-swapped constant.
23600 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
23602         [BZ #20498]
23603         * locale/iso-639.def: add Miskito.
23604         * localedata/SUPPORTED: Add miq_NI/UTF-8.
23605         * localedata/locales/miq_NI: New file.
23607 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
23609         [BZ #18822]
23610         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
23611         (__mkdir): Likewise.
23612         * io/chmod.c (__chmod): Add libc_hidden_def.
23613         * io/mkdir.c (__mkdir): Likewise.
23614         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
23615         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
23616         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
23617         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
23619 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
23621         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
23622         version to 4.13.
23624         [BZ #22082]
23625         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
23626         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
23628 2017-09-04  Florian Weimer  <fweimer@redhat.com>
23630         * math/math.h: Issue warning if log is defined.
23632 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
23634         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
23635         kernel version to 4.13.
23637 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
23639         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
23640         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
23641         parameter.
23642         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
23643         just <bits/types.h>.
23644         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
23645         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
23646         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
23647         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
23648         * misc/preadv2.c: Include <errno.h>.
23649         * misc/preadv64v2.c: Include <errno.h>.
23650         * misc/pwritev2.c: Include <errno.h>.
23651         * misc/pwritev64v2.c: Include <errno.h>.
23652         * sysdeps/posix/preadv2.c: Include <errno.h>.
23653         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
23654         Fix <unistd.h> inclusion.
23655         * sysdeps/posix/pwritev2.c: Include <errno.h>.
23656         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
23657         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
23658         __strtoul_internal): New functions.
23659         * sysdeps/posix/pause.c: Include <sigsetops.h>.
23660         * sysdeps/posix/system.c: Include <sigsetops.h>.
23661         * sysdeps/mach/hurd/i386/Makefile
23662         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
23663         [$(subdir) = csu] (sysdep-only-routines): Likewise.
23664         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
23665         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
23666         __feraiseexcept_renamed to feraiseexcept instead of
23667         __GI_feraiseexcept.
23668         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
23669         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
23670         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
23671         RWF_NOWAIT): Define to 0 if undefined already.
23672         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
23673         boils down to 0.
23674         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
23675         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
23677 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
23679         * manual/math.texi (pow10): Do not document.
23680         (pow10f): Likewise.
23681         (pow10l): Likewise.
23682         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
23683         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
23684         * math/libm-test-exp10.inc (pow10_test): Remove.
23685         (do_test): Do not call pow10.
23686         * math/w_exp10_compat.c (pow10): Make into compat symbol.
23687         [NO_LONG_DOUBLE] (pow10l): Likewise.
23688         * math/w_exp10f_compat.c (pow10f): Likewise.
23689         * math/w_exp10l_compat.c (pow10l): Likewise.
23690         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
23691         (pow10): Make into compat symbol.
23692         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
23693         (pow10f): Make into compat symbol.
23694         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
23695         (pow10l): Make into compat symbol.
23696         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
23697         pow10.
23698         (CFLAGS-nldbl-pow10.c): Remove variable..
23699         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
23700         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
23701         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
23702         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
23703         Undefine and redefine.
23704         (pow10l): Make into compat symbol.
23705         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
23706         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
23707         * sysdeps/arm/libm-test-ulps: Likewise.
23708         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
23709         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23710         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23711         * sysdeps/microblaze/libm-test-ulps: Likewise.
23712         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
23713         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23714         * sysdeps/nios2/libm-test-ulps: Likewise.
23715         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23716         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
23717         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
23718         * sysdeps/sh/libm-test-ulps: Likewise.
23719         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
23720         * sysdeps/tile/libm-test-ulps: Likewise.
23721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23723 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
23725         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
23727 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
23729         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
23730         "../ChangeLog.old/ChangeLog.8".
23731         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
23732         "../ChangeLog.old/ChangeLog.14".
23734 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
23736         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
23737         Threads Library.
23739 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
23741         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
23743 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
23745         * csu/version.c (banner): Remove "by Roland McGrath et al.".
23746         * nptl/Banner: Remove "by Ulrich Drepper et al.".
23748 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
23750         * stdlib/tst-atexit-common.c (do_test): Test support for at least
23751         32 atexit handlers.
23753 2017-09-01  Zack Weinberg  <zackw@panix.com>
23755         * math/math.h (HUGE_VAL): Improve commentary.
23757 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23758             Andreas Schwab  <schwab@suse.de>
23760         [BZ #21530]
23761         * include/stdio.h (__gen_tempfd): New function.
23762         * stdio-common/Makefile (routines): Add gentempfd.
23763         * stdio-common/gentempfd.c: New file.
23764         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
23765         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
23766         unnamed file first.
23768 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23770         [BZ #21915]
23771         [BZ #21922]
23772         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
23773         result to determine success or failure, not the errno value.
23774         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
23775         (tst-nss-files-hosts-erange): Link with -ldl.
23776         * nss/tst-nss-files-hosts-erange.c: New file.
23777         * nss/tst-resolv-basic.c (response): Handle nodata.example.
23778         (do_test): Add NO_DATA tests.
23779         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
23780         (do_test): Call it.
23782 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23784         [BZ #21922]
23785         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
23786         coming from gethostbyname2_r.
23788 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23790         * support/namespace.h (struct support_chroot_configuration): Add
23791         hosts, host_conf.
23792         (struct support_chroot): Add path_hosts, path_host_conf.
23793         * support/support_chroot.c (write_file): New function.
23794         (support_chroot_create): Call it to process /etc/resolv.conf,
23795         /etc/hosts, /etc/host.conf.
23796         (support_chroot_free): Update.
23798 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23800         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
23801         status indicates it is set.
23803 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23805         [BZ #20532]
23806         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
23807         function lookup failures more reliable.
23809 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23811         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
23812         (getcanonname): Likewise.
23813         (gaih_inet): Likewise.
23815 2017-09-01  Florian Weimer  <fweimer@redhat.com>
23817         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
23818         (getcanonname): Likewise.
23819         (gaih_inet): Likewise.
23821 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
23822             Richard Henderson <rth@twiddle.net>
23824         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
23825         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
23826         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
23827         (IREG_SIZE, OREG_SIZE): New macros.
23828         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
23829         (IREG_SIZE, OREG_SIZE): New macros.
23830         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
23831         (IREG_SIZE): New macro.
23832         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
23833         (IREG_SIZE): New macro.
23834         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
23835         New includes.
23836         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
23837         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
23838         (__CONCATX): Handle exceptions correctly on large values that may
23839         set FE_INVALID.
23840         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
23841         Initialize if not already set.
23842         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
23844 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
23846         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
23847         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
23848         Likewise.
23849         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
23850         Likewise.
23851         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
23852         Likewise.
23853         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
23854         Likewise.
23855         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
23856         Likewise.
23857         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
23858         Likewise.
23859         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
23860         Likewise.
23861         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
23862         (NO_CANCELLATION): Likewise.
23863         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
23864         Likewise.
23865         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
23866         Likewise.
23867         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
23868         Likewise.
23869         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
23870         (NO_CANCELLATION): Likewise.
23871         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
23872         (NO_CANCELLATION): Likewise.
23873         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
23874         Likewise
23875         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
23876         Likewise.
23877         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
23878         Likewise.
23879         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
23880         Likewise.
23881         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
23882         hidden prototype.
23883         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
23884         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
23886 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
23888         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
23889         in resolver call.
23891 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23893         * include/libc-symbols.h (internal_function): Remove.
23895 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23897         * stdlib/fmtmsg.c (internal_addseverity): Remove
23898         internal_function.
23900 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23902         * stdio-common/printf_fp.c (group_number): Remove
23903         internal_function.
23904         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
23906 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23908         * posix/fnmatch.c (internal_function): Remove definition.
23909         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
23910         * posix/regcomp.c (peek_token, init_word_char)
23911         (duplicate_node_closure, fetch_token, peek_token)
23912         (peek_token_bracket, build_range_exp, build_collating_symbol):
23913         Likewise.
23914         * posix/regex_internal.c (re_string_construct_common)
23915         (create_ci_newstate, create_cd_newstate, re_string_allocate)
23916         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
23917         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
23918         (re_string_translate_buffer, re_string_reconstruct)
23919         (re_string_peek_byte_case, re_string_fetch_byte_case)
23920         (re_string_destruct, re_string_context_at, re_node_set_alloc)
23921         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
23922         (re_node_set_add_intersect, re_node_set_init_union)
23923         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
23924         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
23925         (re_dfa_add_node, calc_state_hash, re_acquire_state)
23926         (re_acquire_state_context): Likewise.
23927         * posix/regex_internal.h (internal_function): Remove definition.
23928         (re_string_realloc_buffers, build_wcs_buffer)
23929         (build_wcs_upper_buffer, build_upper_buffer)
23930         (re_string_translate_buffer, re_string_context_at)
23931         (re_string_char_size_at, re_string_wchar_at)
23932         (re_string_elem_size_at): Likewise.
23933         * posix/regexec.c (match_ctx_init, match_ctx_clean)
23934         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
23935         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
23936         (re_search_internal, re_search_2_stub, re_search_stub)
23937         (re_copy_regs, prune_impossible_nodes, check_matching)
23938         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
23939         (free_fail_stack_return, sift_states_iter_mb)
23940         (sift_states_backward, build_sifted_states)
23941         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
23942         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
23943         (check_subexp_limits, sift_states_bkref, merge_state_array)
23944         (find_recover_state, transit_state, merge_state_with_log)
23945         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
23946         (transit_state_mb, transit_state_bkref, get_subexp)
23947         (get_subexp_sub, find_subexp_node, check_arrival)
23948         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
23949         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
23950         (check_node_accept_bytes, find_collation_sequence_value)
23951         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
23952         (acquire_init_state_context, check_halt_node_context)
23953         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
23954         (sub_epsilon_src_nodes): Likewise.
23955         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
23956         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
23957         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
23958         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
23959         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
23960         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
23961         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
23962         * sysdeps/posix/ttyname.c (getttyname): Likewise.
23963         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
23964         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
23965         (PREADV): Likewise.
23966         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
23967         (PREADV): Likewise.
23968         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
23969         (PWRITEV): Likewise.
23970         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
23971         (PWRITEV): Likewise.
23972         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
23973         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
23975 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23977         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
23978         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
23979         Remove internal_function.
23980         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
23981         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
23982         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
23983         (__deallocate_stack, __libc_pthread_init)
23984         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
23985         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
23986         (__libc_disable_asynccancel, __librt_disable_asynccancel):
23987         Likewise.
23988         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
23989         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
23990         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
23991         Likewise.
23992         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
23993         (__pthread_mutex_unlock_usercnt): Likewise.
23995 2017-08-31  Florian Weimer  <fweimer@redhat.com>
23997         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
23998         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
23999         (fts_safe_changedir): Remove internal_function.
24000         * io/ftw.c (internal_function): Remove definition.
24001         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
24003 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24005         * inet/deadline.c (__deadline_current_time)
24006         (__deadline_from_timeval, __deadline_to_ms): Remove
24007         internal_function.
24008         * inet/getnameinfo.c (nrl_domainname): Likewise.
24009         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
24010         * inet/inet6_option.c (add_pad): Likewise.
24011         * inet/net-internal.h (__deadline_current_time)
24012         (__deadline_from_timeval, __deadline_to_ms): Likewise.
24013         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
24014         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
24015         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
24017 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
24019         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
24020         include <bits/nan.h>.
24021         * math/Makefile (headers): Remove bits/nan.h.
24022         * bits/nan.h: Remove.
24023         * sysdeps/ieee754/bits/nan.h: Likewise.
24024         * sysdeps/mips/bits/nan.h: Likewise.
24026         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
24027         not include <bits/inf.h>.
24028         * math/Makefile (headers): Remove bits/inf.h.
24029         * bits/inf.h: Remove.
24030         * sysdeps/ieee754/bits/inf.h: Likewise.
24032         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
24033         bits/huge_vall.h or bits/huge_val_flt128.h.
24034         (HUGE_VAL): Define directly here.
24035         [__USE_ISOC99] (HUGE_VALF): Likewise.
24036         [__USE_ISOC99] (HUGE_VALL): Likewise.
24037         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24038         (HUGE_VAL_F128): Likewise.
24039         * math/Makefile (headers): Remove bits/huge_val.h,
24040         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
24041         * bits/huge_val.h: Remove.
24042         * bits/huge_val_flt128.h: Likewise.
24043         * bits/huge_valf.h: Likewise.
24044         * bits/huge_vall.h: Likewise.
24045         * sysdeps/ia64/bits/huge_vall.h: Likewise.
24046         * sysdeps/ieee754/bits/huge_val.h: Likewise.
24047         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
24048         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
24049         * sysdeps/sh/bits/huge_val.h: Likewise.
24050         * sysdeps/sparc/bits/huge_vall.h: Likewise.
24051         * sysdeps/x86/bits/huge_vall.h: Likewise.
24053 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24055         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
24056         internal_function.
24057         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
24058         Likewise.
24059         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
24060         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
24061         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
24062         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
24063         * elf/dl-fini.c (_dl_sort_fini): Likewise.
24064         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
24065         * elf/dl-libc.c (dlerror_run): Likewise.
24066         * elf/dl-load.c (add_name_to_object, decompose_rpath)
24067         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
24068         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
24069         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
24070         Likewise.
24071         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
24072         (_dl_higher_prime_number, _dl_strtoul): Likewise.
24073         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
24074         * elf/dl-profile.c (_dl_start_profile): Likewise.
24075         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
24076         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
24077         Likewise.
24078         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
24079         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
24080         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
24081         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
24082         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
24083         (_dl_allocate_tls_storage): Likewise.
24084         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
24085         (_dl_check_all_versions): Likewise.
24086         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
24087         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
24088         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
24089         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24090         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
24091         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
24092         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
24093         internal_function from __dl_start.
24094         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
24095         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
24096         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
24097         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
24098         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
24099         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
24100         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
24101         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
24102         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
24103         (_dl_next_ld_env_entry, _dl_important_hwcaps)
24104         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
24105         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
24106         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
24107         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
24108         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
24109         Likewise.
24110         (struct rtld_global_ro): Remove internal_function from the
24111         _dl_lookup_symbol_x member.
24112         (_dl_symbol_value): Remove.  No longer defined anywhere.
24113         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
24114         internal_function.
24115         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24116         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
24117         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
24118         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
24119         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
24120         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
24121         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
24122         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
24123         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
24124         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
24125         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
24126         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
24128 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24130         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
24131         Remove internal_function.
24132         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
24133         Likewise.
24134         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
24135         Likewise.
24137 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24139         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
24140         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
24141         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
24143 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24145         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
24146         (__gai_enqueue_request): Remove internal_function.
24147         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
24148         (__gai_remove_request, __gai_notify, __gai_notify_only)
24149         (__gai_sigqueue): Likewise.
24150         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
24151         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
24152         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
24153         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
24154         Likewise.
24156 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24158         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
24159         * include/dirent.h (__opendirat, __getdents, __getdents64)
24160         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
24161         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
24162         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
24163         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
24164         Likewise.
24165         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
24167 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24169         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
24170         internal_function.
24171         (GETCWD_RETURN_TYPE): Likewise.
24173 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24175         * include/time.h (__tz_compute, __strptime_internal): Remove
24176         internal_function.
24177         * time/strptime_l.c (__strptime_internal): Likewise.
24178         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
24180 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24182         * iconv/gconv.c (__gconv): Remove internal_function.
24183         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
24184         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
24185         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
24186         (__gconv_release_cache): Likewise.
24187         * iconv/gconv_close.c (__gconv_close): Likewise.
24188         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
24189         (read_conf_file, __gconv_get_path): Likewise.
24190         * iconv/gconv_db.c (derivation_lookup, add_derivation)
24191         (__gconv_release_step, gen_steps, increment_counter)
24192         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
24193         (__gconv_close_transform, free_modules_db): Likewise.
24194         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
24195         Likewise.
24196         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
24197         (__gconv_find_transform, __gconv_lookup_cache)
24198         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
24199         (__gconv_close_transform, __gconv_release_cache)
24200         (__gconv_loaded_object, __gconv_release_shlib)
24201         (__gconv_compare_alias): Likewise.
24202         * iconv/gconv_open.c (__gconv_open): Likewise.
24203         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
24204         * iconv/iconvconfig.c (add_module): Likewise.
24205         * intl/dcigettext.c (plural_lookup, guess_category_value)
24206         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
24207         * intl/eval-plural.h (plural_eval): Likewise.
24208         * intl/finddomain.c (_nl_find_domain): Likewise.
24209         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
24210         (_nl_load_domain, _nl_find_msg): Likewise.
24211         (internal_function): Remove definition.
24212         * intl/loadinfo.h (internal_function): Likewise.
24213         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
24214         internal_function.
24215         * intl/localealias.c (internal_function): Remove definition.
24216         (read_alias_file): Remove internal_function.
24217         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
24218         * intl/plural-exp.h (internal_function): Remove definition.
24219         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
24220         internal_function.
24221         * intl/plural.c: Regenerate.
24222         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
24223         * locale/coll-lookup.c (__collidx_table_lookup)
24224         (__collseq_table_lookup): Likewise.
24225         * locale/coll-lookup.h (__collidx_table_lookup)
24226         (__collseq_table_lookup): Likewise.
24227         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
24228         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
24229         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
24230         (_nl_unload_locale): Likewise.
24231         * locale/localeinfo.h (struct __locale_data): Remove
24232         internal_function from cleanup member.
24233         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
24234         (_nl_remove_locale, _nl_load_locale_from_archive)
24235         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
24236         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
24237         (_nl_cleanup_time): Remove internal_function.
24238         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
24239         (_nl_parse_alt_digit): Likewise.
24240         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
24241         (_nl_select_era_entry): Likewise.
24242         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
24243         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
24244         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
24245         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
24246         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
24248 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24250         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
24251         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
24252         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
24253         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
24254         Likewise.
24255         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
24256         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
24257         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
24258         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
24259         Likewise.
24260         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
24262 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24264         * misc/getttyent.c (skip, value): Remove internal_function.
24265         * misc/syslog.c (openlog_internal): Likewise.
24266         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
24268 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24270         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
24271         (__nss_rewrite_field): Remove internal_function.
24272         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
24273         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
24274         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
24275         * nss/nsswitch.c (nss_parse_file, nss_getline)
24276         (nss_parse_service_list, nss_new_service): Likewise.
24277         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
24278         * nss/valid_field.c (__nss_valid_field): Likewise.
24279         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24281 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24283         * malloc/arena.c (__malloc_fork_lock_parent)
24284         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
24285         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
24286         internal_function from defintions.
24287         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
24288         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
24289         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
24290         internal_function from declarations.
24291         * malloc/malloc.c (internal_function): Do not define.
24292         (mem2mem_check): Remove internal_function from declaration.
24293         (munmap_chunk, mremap_chunk): Remove internal_function.
24294         * malloc/mtrace.c (tr_where): Likewise.
24296 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24298         * include/rpc/pmap_clnt.h (__get_socket): Remove
24299         internal_function.
24300         * sunrpc/auth_des.c (synchronize): Likewise.
24301         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
24302         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
24303         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
24304         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
24305         (key_call): Likewise.
24306         * sunrpc/pm_getport.c (__get_socket): Likewise.
24307         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
24308         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
24309         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
24310         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
24311         (invalidate): Likewise.
24312         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
24313         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
24314         (set_input_fragment, get_input_bytes): Likewise.
24316 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24318         * malloc/malloc.c (_int_free): Remove locked variable and related
24319         asserts.
24321 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
24323         [BZ #22051]
24324         * Makerules (build-module-helper-objlist): Filter out
24325         $(elf-objpfx)sofini.os.
24326         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
24327         needed.
24329 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24331         * libio/fcloseall.c: Assume weak_alias is defined.
24332         * libio/feof.c: Likewise.
24333         * libio/fileno.c: Likewise.
24334         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
24335         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
24336         definitions.
24337         (_IO_file_open): Call __open directly.
24338         (_IO_new_file_sync): Assume ESPIPE is defined.
24339         (_IO_file_seekoff_maybe_mmap): Call __read directly.
24340         (_IO_new_file_write): Call __write directly.
24341         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
24342         * libio/ftello64.c (__ftello64): Assume EIO is defined.
24343         * libio/genops.c: Assume _LIBC is defined.
24344         (save_for_backup): Remove internal_function.
24345         * libio/getc.c: Assume weak_alias is defined.
24346         * libio/getwc.c: Likewise.
24347         * libio/iofclose.c: Assume _LIBC is defined.
24348         * libio/iofdopen.c: Likewise.
24349         (_IO_fcntl): Remove macro definition.
24350         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
24351         Call __fcntl directly.
24352         * libio/iofflush.c: Assume weak_alias is defined.
24353         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
24354         defined.
24355         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
24356         * libio/iofgets.c: Likewise.
24357         * libio/iofopen.c: Assume _LIBC is defined.
24358         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
24359         * libio/iofputs.c: Assume weak_alias is defined.
24360         * libio/iofread.c: Likewise.
24361         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
24362         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
24363         * libio/ioftell.c: Assume weak_alias is defined.
24364         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
24365         * libio/iofwide.c: Assume _LIBC is defined.
24366         (_IO_fwide): Drop SHARED conditional because it is implied by
24367         SHLIB_COMPAT.
24368         * libio/iofwrite.c: Assume weak_alias is defined.
24369         * libio/iogetdelim.c: Likewise.
24370         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
24371         * libio/iogetwline.c (wmemcpy): Remove macro definition.
24372         (_IO_getwline): Call __wmemcpy directly.
24373         * libio/iopopen.c: Assume _LIBC is defined.
24374         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
24375         (_IO_close): Remove macro definitions.
24376         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
24377         _exit directly.
24378         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
24379         directly.
24380         * libio/ioputs.c: Assume weak_alias is defined.
24381         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
24382         * libio/iosetbuffer.c: Assume weak_alias is defined.
24383         * libio/iosetvbuf.c: Likewise.
24384         * libio/ioungetc.c: Likewise.
24385         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
24386         libc_hidden_def, libc_hidden_weak, NULL are defined.
24387         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
24388         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
24389         defined.
24390         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
24391         definitions.
24392         (_IO_old_file_init_internal): Drop SHARED conditional because it
24393         is implied by SHLIB_COMPAT.
24394         (_IO_old_file_fopen): Call __open directly.
24395         (_IO_old_file_sync): Assume ESPIPE is defined.
24396         (_IO_old_file_write): Call __write directly.
24397         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
24398         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
24399         Call __fcntl directly.
24400         * libio/oldiofgetpos.c: Assume weak_alias is defined.
24401         (_IO_old_fgetpos): Assume EIO is defined.
24402         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
24403         (_IO_old_fgetpos64): Assume EIO is defined.
24404         * libio/oldiofsetpos.c: Assume weak_alias is defined.
24405         (_IO_old_fsetpos): Assume EIO is defined.
24406         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
24407         (_IO_old_fsetpos64): Assume EIO is defined.
24408         * libio/oldiopopen.c:  Assume _LIBC is defined.
24409         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
24410         (_IO_close): Remove macro definitions.
24411         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
24412         directly.
24413         (_IO_old_proc_close): Call __close, __waitpid directly.
24414         * libio/put.c: Assume weak_alias is defined.
24415         * libio/stdfiles.c: Assume _LIBC is defined.
24416         * libio/stdio.c: Likewise.
24417         * libio/wfileops.c: Likewise.
24418         (_IO_wfile_sync): Assume ESPIPE is defined.
24419         * libio/wgenops.c: Assume _LIBC is defined.
24420         (save_for_wbackup): Remove internal_function.
24422 2017-08-31  Florian Weimer  <fweimer@redhat.com>
24424         * malloc/malloc.c (top_check): Change return type to void.  Remove
24425         internal_function.
24426         * malloc/hooks.c (top_check): Likewise.
24427         (malloc_check, realloc_check, memalign_check): Adjust.
24429 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
24431         [BZ #21457]
24432         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
24433         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
24434         sigcontext and namespace requirements.
24435         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
24436         * sysdeps/m68k/sys/ucontext.h: Likewise.
24437         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
24438         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
24439         <bits/sigcontext.h>.
24440         (__ctx): Define earlier.
24441         (mcontext_t): Define structure contents rather than using struct
24442         sigcontext.
24443         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
24444         __glibc_reserved1 instead of __reserved.
24445         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
24446         <bits/sigcontext.h>.
24447         (__ctx): Define earlier.
24448         (mcontext_t): Define structure contents rather than using struct
24449         sigcontext.
24450         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
24451         mcontext_t instead of struct sigcontext.
24452         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
24453         <bits/sigcontext.h>.
24454         (__ctx): Define earlier.
24455         (mcontext_t): Define structure contents rather than using struct
24456         sigcontext.
24457         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
24458         <bits/sigcontext.h>.
24459         (__ctx): Define earlier.
24460         (mcontext_t): Define structure contents rather than using struct
24461         sigcontext.
24462         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
24463         mcontext_t instead of struct sigcontext.
24464         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
24465         mcontext_t instead of struct sigcontext.
24466         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
24467         <bits/sigcontext.h>.
24468         (__ctx): New macro.
24469         (struct __ia64_fpreg_mcontext): New type.
24470         (mcontext_t): Define structure contents rather than using struct
24471         sigcontext.
24472         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
24473         (uc_sigmask): Define using __ctx.
24474         (uc_stack): Likewise.
24475         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
24476         <bits/sigcontext.h>.
24477         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
24478         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
24479         <bits/sigcontext.h>.
24480         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
24481         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
24482         <bits/sigcontext.h>.
24483         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
24484         <bits/sigcontext.h>.
24485         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
24486         <bits/sigcontext.h>.
24487         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
24488         <bits/sigcontext.h>.
24489         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
24490         <bits/sigcontext.h>.
24491         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
24492         <bits/sigcontext.h>.
24493         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
24494         <bits/sigcontext.h>.
24495         (__ctx): Define earlier.
24496         (mcontext_t): Define structure contents rather than using struct
24497         sigcontext.
24498         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
24499         <bits/sigcontext.h>.  Include <bits/types.h>.
24500         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
24501         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
24502         (test-xfail-XPG42/ucontext.h/conform): Likewise.
24503         (test-xfail-UNIX98/signal.h/conform): Likewise.
24504         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
24505         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
24506         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
24507         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
24508         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
24509         (test-xfail-POSIX2008/signal.h/conform): Likewise.
24510         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
24511         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
24512         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
24514 2017-08-30  Florian Weimer  <fweimer@redhat.com>
24516         * malloc/dynarray_emplace_enlarge.c
24517         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
24518         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
24519         * malloc/tst-dynarray.c (test_long_overflow): New function.
24520         (do_test): Call it.
24522 2017-08-30  Florian Weimer  <fweimer@redhat.com>
24524         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
24525         (set_arena_corrupt): Remove definitions.
24526         (mtrim): Do not check for corrupt arena.
24527         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
24528         Likewise.
24530 2017-08-30  Florian Weimer  <fweimer@redhat.com>
24532         [BZ #21754]
24533         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
24534         check_action.
24535         (ptmalloc_init): Do not set or use check_action.
24536         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
24537         call to malloc_printerr.  Remove return statement.
24538         (free_check): Likewise.  Remove arena unlock.
24539         (top_check): Update comment.  Adjust call to malloc_printerr.
24540         Remove heap repair code.
24541         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
24542         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
24543         (sysmalloc): Adjust call to malloc_printerr.
24544         (munmap_chunk, __libc_realloc): Likewise.  Remove return
24545         statement.
24546         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
24547         Remove errout label and corresponding gotos.
24548         (_int_free): Likewise.  Remove arena unlock.
24549         (do_set_mallopt_check): Do not set check_action.
24550         (malloc_printerr): Adjust parameter list.  Do not mark arena as
24551         corrupt.
24552         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
24553         comment.
24554         * manual/probes.texi (Memory Allocation Probes): Remove
24555         memory_mallopt_check_action.
24557 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
24559         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
24560         Use pointer to uint64_t instead of long int for sp.
24562 2017-08-30  Florian Weimer  <fweimer@redhat.com>
24564         [BZ #21754]
24565         * malloc/malloc.c (malloc_printerr): Always terminate the process,
24566         without printing a backtrace.  Do not leak any information in the
24567         error message.
24568         * manual/memory.texi (Heap Consistency Checking): Update.
24569         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
24571 2017-08-30  Florian Weimer  <fweimer@redhat.com>
24573         Do not scale NPTL tests with available number of CPUs.
24574         * nptl/tst-cond16.c (count): Set to constant value of 8.
24575         * nptl/tst-cond18.c (count): Likewise.
24577 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
24579         [BZ #22035]
24580         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
24581         Define to take a second argument that is a macro that
24582         concatentates a suffix, not the suffix itself.
24583         (__CONCAT_d): New macro.
24584         (__CONCAT_f): Likewise.
24585         (__CONCAT_l): Likewise.
24587 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
24589         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
24590         by child.
24592 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24593             Aurelien Jarno  <aurelien@aurel32.net>
24594             Maciej W. Rozycki  <macro@imgtec.com>
24596         [BZ #21956]
24597         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
24598         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
24599         `mips16-syscall6' and `mips16-syscall7'.
24600         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
24601         (CFLAGS-mips16-syscall7.c): Remove.
24602         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
24603         Remove `__mips16_syscall5', `__mips16_syscall6' and
24604         `__mips16_syscall7'.
24605         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
24606         (__mips16_syscall0): Rename `__mips16_syscall_return' to
24607         `__mips_syscall_return'.
24608         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
24609         (__mips16_syscall1): Likewise.
24610         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
24611         (__mips16_syscall2): Likewise.
24612         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
24613         (__mips16_syscall3): Likewise.
24614         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
24615         (__mips16_syscall4): Likewise.
24616         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
24617         Remove.
24618         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
24619         Remove.
24620         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
24621         Remove.
24622         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
24623         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
24624         `__mips16_syscall5'.  Remove prototype.
24625         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
24626         `__mips16_syscall6'.  Remove prototype.
24627         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
24628         `__mips16_syscall7'.  Remove prototype.
24629         (__nomips16, __mips16_syscall_return): Move to...
24630         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
24631         (__nomips16, __mips_syscall_return): ... here.
24632         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
24633         `__mips16_syscall_return' to `__mips_syscall_return'.
24634         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
24635         `internal_syscall##nr'.
24636         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
24637         `internal_syscall##nr'.
24638         (FORCE_FRAME_POINTER): Remove.
24639         (__mips_syscall5): New prototype.
24640         (internal_syscall5): Rewrite to call `__mips_syscall5'.
24641         (__mips_syscall6): New prototype.
24642         (internal_syscall6): Rewrite to call `__mips_syscall6'.
24643         (__mips_syscall7): New prototype.
24644         (internal_syscall7): Rewrite to call `__mips_syscall7'.
24645         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
24646         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
24647         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
24648         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
24649         (sysdep_routines): Add libc-do-syscall.
24650         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
24651         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
24653 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24655         [BZ #21672]
24656         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
24657         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
24658         (advise_stack_range): New function.
24659         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
24660         stack non required to advise_stack_range at allocatestack.c
24662 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24664         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
24666 2017-08-29  Florian Weimer  <fweimer@redhat.com>
24668         [BZ #22026]
24669         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
24670         __end_fct.  Mangle __end_fct after setting it to NULL.
24671         * iconv/Makefile (tests): Add tst-gconv-init-failure.
24672         (modules-names, modules-names-tests): Add
24673         tst-gconv-init-failure-mod.
24674         (gconv-modules): New target.
24675         (tst-gconv-init-failure-mod.so): Link against libsupport.
24676         (tst-gconv-init-failure): Depend on gconv-modules,
24677         tst-gconv-init-failure-mod.so.
24678         * iconv/tst-gconv-init-failure-mod.c: New file.
24679         * iconv/tst-gconv-init-failure.c: Likewise.
24680         * iconv/test-gconv-modules: Likewise.
24682 2017-08-29  Florian Weimer  <fweimer@redhat.com>
24684         [BZ #22025]
24685         * iconv/gconv_db.c (free_derivation): Remove redundant
24686         parentheses.
24687         (gen_steps): Unconditionally mangle __btowc_fct after
24688         initialization.
24689         (increment_counter): Likewise.  Do not call init_fct for internal
24690         modules.
24692 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
24694         [BZ #22028]
24695         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
24696         (_MSUF_): Remove macro.
24697         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
24698         Likewise.
24699         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
24700         (__REDIRFROM_X): New macro.
24701         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
24702         Likewise.
24703         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
24704         (__REDIRTO_X): Likewise.
24705         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
24706         arguments.
24707         (__MATH_REDIRCALL_2): Likewise.
24708         (__MATH_REDIRCALL_INTERNAL): Likewise.
24709         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
24710         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
24711         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
24712         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
24713         * math/test-finite-macros.c: New file.
24714         * math/Makefile (tests): Add test-finite-macros.
24715         (CFLAGS-test-finite-macros.c): New variable.
24717 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
24718             Jeff Law  <law@redhat.com>
24720         [BZ #22025]
24721         Mangle NULL pointers in iconv/gconv.
24722         * iconv/gconv_cache.c (find_module): Demangle init_fct before
24723         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
24724         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
24725         is non-NULL before demangling the end_fct.  Check for NULL
24726         end_fct after demangling.
24727         (__gconv_release_step): Demangle the end_fct before checking
24728         it for NULL.   Remove assert on __shlibc_handle != NULL.
24729         (gen_steps): Don't check btowc_fct for NULL before mangling.
24730         Demangle init_fct before checking for NULL.
24731         (increment_counter): Likewise.
24732         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
24733         end_fct for NULL before mangling.
24734         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
24735         for NULL.
24737 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
24739         [BZ #21971]
24740         * locale/iso-639.def: add Morisyen.
24742 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24744         [BZ #21930]
24745         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
24746         (iszero): New C++ implementation that does not use
24747         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
24748         signaling nans are enabled, since __builtin_types_compatible_p
24749         is a C-only feature.
24750         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
24751         defined, include ieee754_float128.h for access to the union and
24752         member ieee854_float128.ieee.
24753         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
24754         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
24755         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
24756         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
24757         options of test-math-zero on powerpc64le.
24759 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
24761         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24762         Change double to float.
24764 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
24766         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
24767         unconditional.
24768         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
24769         conditional code; define contents only for [LIBM_SVID_COMPAT].
24771 2017-08-28  Florian Weimer  <fweimer@redhat.com>
24773         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
24774         (abi-lp64_be-options): Remove.
24775         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
24776         (abi-hard-options): Likewise.
24777         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
24778         (abi-o32_hard-options, abi-o32_soft_2008-options)
24779         (abi-o32_hard_2008-options, abi-n32_soft-options)
24780         (abi-n32_hard-options, abi-n32_soft_2008-options)
24781         (abi-n32_hard_2008-options, abi-n64_soft-options)
24782         (abi-n64_hard-options, abi-n64_soft_2008-options)
24783         (abi-n64_hard_2008-options): Likewise.
24784         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
24785         (abi-64-v1-options, abi-64-v2-options): Likewise.
24786         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
24787         (abi-64-options): Likewise.
24788         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
24789         (abi-64-options): Likewise.
24790         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
24791         (abi-64-options): Likewise.
24792         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
24793         (abi-64-options, abi-x32-options): Likewise.
24795 2017-08-28  Florian Weimer  <fweimer@redhat.com>
24797         Store supported list of SYS_* system calls in the source tree.
24798         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
24799         (bits/syscall.h): Generate from list file.
24800         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
24801         [$(subdir) = misc] (tests): Add tst-syscall-list.
24802         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
24803         [$(subdir) = misc] (tst-syscall-list-macros.list)
24804         [$(subdir) = misc] (tst-syscall-list-nr.list)
24805         (tst-syscall-list-sys.list): Helper targets for new
24806         tst-syscall-list test.
24807         [$(subdir) = misc] (tst-syscall-list.out): Run test script
24808         tst-syscall-list.sh.
24809         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
24810         target. Do not include bits/syscall.d.
24811         [$(subdir) = misc] (generated): Do not update.
24812         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
24813         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
24814         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
24815         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
24817 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
24819         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
24820         (tst-cxa_atexit, tst-on_exit): Likewise.
24821         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
24822         tst-cxa_atexit, and tst-on_exit.
24823         * stdlib/tst-atexit-common.c: New file.
24824         * stdlib/tst-atexit.c: New file.
24825         * stdlib/tst-at_quick_exit.c: New file.
24826         * stdlib/tst-cxa_atexit.c: New file.
24827         * stdlib/tst-on_exit.c: New file.
24829 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24831         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
24832         * mach/stack_chk_fail_local.c: New file.
24833         * hurd/stack_chk_fail_local.c: New file.
24834         * mach/Machrules ($(interface-library)-routines): Add
24835         stack_chk_fail_local.
24836         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
24837         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
24838         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
24839         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
24840         * hurd/Makefile (CFLAGS-hurdstartup.o,
24841         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
24843 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
24845         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
24846         (index_cpu_*, index_arch_*): Removed.
24848 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24850         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
24851         Use uint64_t instead of unsigned long.
24853 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
24855         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
24856         [__HAVE_DISTINCT_FLOAT128].
24858         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
24859         of <bits/math-finite.h>.
24860         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
24861         inclusion of <bits/math-finite.h>.
24862         * math/bits/math-finite.h (__REDIRTO_X): Do not define
24863         conditionally on [__MATH_DECLARING_LDOUBLE && defined
24864         __NO_LONG_DOUBLE_MATH].
24865         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
24866         (__MATH_REDIRCALL_2): Likewise.
24867         (__MATH_REDIRCALL_INTERNAL): Likewise.
24868         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
24869         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
24870         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
24872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
24873         Remove file.
24874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
24875         Likewise.
24876         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
24877         Likewise.
24878         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
24879         Likewise.
24880         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
24881         Likewise.
24882         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
24883         Likewise.
24884         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
24885         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
24886         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
24887         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
24888         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
24889         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
24890         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
24891         w_sqrtf_compat-ppc32.
24893 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24895         * math/math.h [defined __cplusplus] (issignaling): In the long
24896         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
24897         is not defined.  Call __issignaling, otherwise.
24899 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24901         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
24902         syscall definitions and replace __builtin_expect with __glibc_likely.
24903         * sysdeps/unix/syscall-template.S: Update comment about cancellable
24904         syscall.
24905          (SYSCALL_CANCELLABLE): Removedefinition
24906         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
24907         definition.
24908         (PSEUDO_END): Likewise.
24909         [IS_IN (libpthread)] (CENABLE): Likewise.
24910         [IS_IN (libpthread)] (CDISABLE): Likewise.
24911         [IS_IN (libc)] (CENABLE): Likewise.
24912         [IS_IN (libc)] (CENABLE): Likewise.
24913         [IS_IN (librt)] (CDISABLE): Likewise.
24914         [IS_IN (librt)] (CDISABLE): Likewise.
24915         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24916         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
24917         definition.
24918         (PSEUDO_END): Likewise.
24919         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
24920         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
24921         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
24922         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
24923         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
24924         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
24925         (CENABLE): Likewise.
24926         (CDISABLE): Likewise.
24927         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24928         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
24929         defintion.
24930         (PSEUDO_END): Likewise.
24931         [IS_IN (libpthread)] (CENABLE): Likewise.
24932         [IS_IN (libpthread)] (CDISABLE): Likewise.
24933         [IS_IN (libc)] (CENABLE): Likewise.
24934         [IS_IN (libc)] (CENABLE): Likewise.
24935         [IS_IN (librt)] (CDISABLE): Likewise.
24936         [IS_IN (librt)] (CDISABLE): Likewise.
24937         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24938         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
24939         definition.
24940         (PSEUDO_END): Likewise.
24941         [IS_IN (libpthread)] (CENABLE): Likewise.
24942         [IS_IN (libpthread)] (CDISABLE): Likewise.
24943         [IS_IN (libc)] (CENABLE): Likewise.
24944         [IS_IN (libc)] (CENABLE): Likewise.
24945         [IS_IN (librt)] (CDISABLE): Likewise.
24946         [IS_IN (librt)] (CDISABLE): Likewise.
24947         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24948         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
24949         definition.
24950         (PSEUDO_END): Likewise.
24951         [IS_IN (libpthread)] (CENABLE): Likewise.
24952         [IS_IN (libpthread)] (CDISABLE): Likewise.
24953         [IS_IN (libc)] (CENABLE): Likewise.
24954         [IS_IN (libc)] (CENABLE): Likewise.
24955         [IS_IN (librt)] (CDISABLE): Likewise.
24956         [IS_IN (librt)] (CDISABLE): Likewise.
24957         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24958         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
24959         definition.
24960         (PSEUDO_END): Likewise.
24961         [IS_IN (libpthread)] (CENABLE): Likewise.
24962         [IS_IN (libpthread)] (CDISABLE): Likewise.
24963         [IS_IN (libc)] (CENABLE): Likewise.
24964         [IS_IN (libc)] (CENABLE): Likewise.
24965         [IS_IN (librt)] (CDISABLE): Likewise.
24966         [IS_IN (librt)] (CDISABLE): Likewise.
24967         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24968         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
24969         definition.
24970         (PSEUDO_END): Likewise.
24971         [IS_IN (libpthread)] (CENABLE): Likewise.
24972         [IS_IN (libpthread)] (CDISABLE): Likewise.
24973         [IS_IN (libc)] (CENABLE): Likewise.
24974         [IS_IN (libc)] (CENABLE): Likewise.
24975         [IS_IN (librt)] (CDISABLE): Likewise.
24976         [IS_IN (librt)] (CDISABLE): Likewise.
24977         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24978         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
24979         definition.
24980         (PSEUDO_END): Likewise.
24981         [IS_IN (libpthread)] (CENABLE): Likewise.
24982         [IS_IN (libpthread)] (CDISABLE): Likewise.
24983         [IS_IN (libc)] (CENABLE): Likewise.
24984         [IS_IN (libc)] (CENABLE): Likewise.
24985         [IS_IN (librt)] (CDISABLE): Likewise.
24986         [IS_IN (librt)] (CDISABLE): Likewise.
24987         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
24988         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
24989         Remove definition.
24990         (PSEUDO_END): Likewise.
24991         [IS_IN (libpthread)] (CENABLE): Likewise.
24992         [IS_IN (libpthread)] (CDISABLE): Likewise.
24993         [IS_IN (libc)] (CENABLE): Likewise.
24994         [IS_IN (libc)] (CENABLE): Likewise.
24995         [IS_IN (librt)] (CDISABLE): Likewise.
24996         [IS_IN (librt)] (CDISABLE): Likewise.
24997         (SINGLE_THREAD_P): Likewise.
24998         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
24999         definition.
25000         (PSEUDO_END): Likewise.
25001         [IS_IN (libpthread)] (CENABLE): Likewise.
25002         [IS_IN (libpthread)] (CDISABLE): Likewise.
25003         [IS_IN (libc)] (CENABLE): Likewise.
25004         [IS_IN (libc)] (CENABLE): Likewise.
25005         [IS_IN (librt)] (CDISABLE): Likewise.
25006         [IS_IN (librt)] (CDISABLE): Likewise.
25007         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25008         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
25009         definition.
25010         (PSEUDO_END): Likewise.
25011         [IS_IN (libpthread)] (CENABLE): Likewise.
25012         [IS_IN (libpthread)] (CDISABLE): Likewise.
25013         [IS_IN (libc)] (CENABLE): Likewise.
25014         [IS_IN (libc)] (CENABLE): Likewise.
25015         [IS_IN (librt)] (CDISABLE): Likewise.
25016         [IS_IN (librt)] (CDISABLE): Likewise.
25017         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25018         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
25019         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
25020         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
25021         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
25022         definition.
25023         (PSEUDO_END): Likewise.
25024         [IS_IN (libpthread)] (CENABLE): Likewise.
25025         [IS_IN (libpthread)] (CDISABLE): Likewise.
25026         [IS_IN (libc)] (CENABLE): Likewise.
25027         [IS_IN (libc)] (CENABLE): Likewise.
25028         [IS_IN (librt)] (CDISABLE): Likewise.
25029         [IS_IN (librt)] (CDISABLE): Likewise.
25030         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25031         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
25032         definition.
25033         (PSEUDO_END): Likewise.
25034         [IS_IN (libpthread)] (CENABLE): Likewise.
25035         [IS_IN (libpthread)] (CDISABLE): Likewise.
25036         [IS_IN (libc)] (CENABLE): Likewise.
25037         [IS_IN (libc)] (CENABLE): Likewise.
25038         [IS_IN (librt)] (CDISABLE): Likewise.
25039         [IS_IN (librt)] (CDISABLE): Likewise.
25040         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25041         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
25042         definition.
25043         (PSEUDO_END): Likewise.
25044         [IS_IN (libpthread)] (CENABLE): Likewise.
25045         [IS_IN (libpthread)] (CDISABLE): Likewise.
25046         [IS_IN (libc)] (CENABLE): Likewise.
25047         [IS_IN (libc)] (CENABLE): Likewise.
25048         [IS_IN (librt)] (CDISABLE): Likewise.
25049         [IS_IN (librt)] (CDISABLE): Likewise.
25050         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25051         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
25052         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
25053         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
25054         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
25055         definition.
25056         (PSEUDO_END): Likewise.
25057         [IS_IN (libpthread)] (CENABLE): Likewise.
25058         [IS_IN (libpthread)] (CDISABLE): Likewise.
25059         [IS_IN (libc)] (CENABLE): Likewise.
25060         [IS_IN (libc)] (CENABLE): Likewise.
25061         [IS_IN (librt)] (CDISABLE): Likewise.
25062         [IS_IN (librt)] (CDISABLE): Likewise.
25063         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25064         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
25065         definition.
25066         (PSEUDO_END): Likewise.
25067         [IS_IN (libpthread)] (CENABLE): Likewise.
25068         [IS_IN (libpthread)] (CDISABLE): Likewise.
25069         [IS_IN (libc)] (CENABLE): Likewise.
25070         [IS_IN (libc)] (CENABLE): Likewise.
25071         [IS_IN (librt)] (CDISABLE): Likewise.
25072         [IS_IN (librt)] (CDISABLE): Likewise.
25073         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
25075 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25077         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
25079 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25081         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
25083 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25085         [BZ #21982]
25086         * string/stratcliff.c (do_test): Declare size, nchars, inner,
25087         middle and outer with size_t instead of int.  Repleace %d and
25088         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
25089         "MAX (outer, nchars - 64)" to support unsigned outer and
25090         nchars.  Also exit loop when outer == 0.
25092 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25094         * include/fcntl.h (__fcntl_nocancel): Remove definition.
25095         * include/signal.h (__sigsuspend_nocancel): Likewise.
25096         * include/time.h (__nanosleep_nocancel): Likewise.
25097         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
25098         * login/utmp_file.c: Include non cancellable syscall header.
25099         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
25100         prototype.
25102 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
25104         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
25105         .byte sequences with AVX512F instructions.
25106         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
25107         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
25108         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
25109         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
25110         Likewise.
25111         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
25112         Likewise.
25114 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25115             Steve Ellcey  <sellcey@cavium.com>
25117         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
25118         Use PTR_REG macro in cmp instruction.
25120 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25122         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
25123         Change the return type of the ifunc resolver to match the return
25124         type of the target function.
25126 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25128         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
25129         (preadv64): Likewise.
25130         (pwrite64(: Likewise.
25131         (pwritev64): Likewise.
25133         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
25134         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
25135         (LOAD_ARGS_0): Likewise.
25136         (LOAD_ARGS_1): Likewise.
25137         (LOAD_ARGS_2): Likewise.
25138         (LOAD_ARGS_3): Likewise.
25139         (LOAD_ARGS_4): Likewise.
25140         (LOAD_ARGS_5): Likewise.
25141         (LOAD_ARGS_6): Likewise.
25142         (LOAD_REGS_0): Likewise.
25143         (LOAD_REGS_1): Likewise.
25144         (LOAD_REGS_2): Likewise.
25145         (LOAD_REGS_3): Likewise.
25146         (LOAD_REGS_4): Likewise.
25147         (LOAD_REGS_5): Likewise.
25148         (LOAD_REGS_6): Likewise.
25149         (ASM_ARGS_0): Likewise.
25150         (ASM_ARGS_1): Likewise.
25151         (ASM_ARGS_2): Likewise.
25152         (ASM_ARGS_3): Likewise.
25153         (ASM_ARGS_4): Likewise.
25154         (ASM_ARGS_5): Likewise.
25155         (ASM_ARGS_6): Likewise.
25156         (LOAD_ARGS_TYPES_1): Likewise.
25157         (LOAD_ARGS_TYPES_2): Likewise.
25158         (LOAD_ARGS_TYPES_3): Likewise.
25159         (LOAD_ARGS_TYPES_4): Likewise.
25160         (LOAD_ARGS_TYPES_5): Likewise.
25161         (LOAD_ARGS_TYPES_6): Likewise.
25162         (LOAD_REGS_TYPES_1): Likewise.
25163         (LOAD_REGS_TYPES_2): Likewise.
25164         (LOAD_REGS_TYPES_3): Likewise.
25165         (LOAD_REGS_TYPES_4): Likewise.
25166         (LOAD_REGS_TYPES_5): Likewise.
25167         (LOAD_REGS_TYPES_6): Likewise.
25168         (TYPEFY): New define.
25169         (ARGIFY): Likewise.
25170         (internal_syscall0): Likewise.
25171         (internal_syscall1): Likewise.
25172         (internal_syscall2): Likewise.
25173         (internal_syscall3): Likewise.
25174         (internal_syscall4): Likewise.
25175         (internal_syscall5): Likewise.
25176         (internal_syscall6): Likewise.
25177         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
25178         (INTERNAL_SYSCALL_NCS): Remove define.
25179         (internal_syscall1): Add define.
25181 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25183         * math/w_remainder_compat.c: Remove duplicate inclusion of
25184         math-svid-compat.h.
25185         * math/w_remainderf_compat.c: Likewise.
25186         * math/w_remainderl_compat.c: Likewise.
25188 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25190         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25192 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
25194         [BZ #21684]
25195         * math/tgmath.h (__floating_type): Simplify definitions.
25196         (__real_integer_type): New macro.
25197         (__complex_integer_type): Likewise.
25198         (__expr_is_real): Likewise.
25199         (__tgmath_real_type_sub): Update comment to describe handling of
25200         complex types.
25201         (__tgmath_complex_type_sub): New macro.
25202         (__tgmath_complex_type): Likewise.
25203         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25204         (__TGMATH_CF128): Use __expr_is_real.
25205         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
25206         __expr_is_real.
25207         (__TGMATH_BINARY_REAL_IMAG): Likewise.
25208         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
25209         * math/gen-tgmath-tests.py (Type.create_type): Create complex
25210         integer types.
25212 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25214         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
25215         macro.
25216         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
25217         alias.
25218         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
25219         Likewise.
25221         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
25222         nanosleep_not_cancel with __nanosleep_nocancel.
25223         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
25224         (__nanosleep_nocancel): New macro.
25225         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
25226         function.
25227         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
25228         macro.
25229         (__nanosleep_nocancel): New prototype.
25231         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
25232         pause_not_cancel with __pause_nocancel.
25233         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
25234         (__pause_nocancel): New macro.
25235         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
25236         macro.
25237         (__pause_nocancel): New prototype.
25238         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
25240 2017-08-22  Martin Sebor  <msebor@redhat.com>
25242         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
25243         to return a pointer to the same type as the target function.
25245 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
25247         [BZ #18822]
25248         [BZ #21986]
25249         * include/printf.h (__printf_fphex): Add attribute_hidden.
25250         (__guess_grouping): New prototype.
25251         * stdio-common/printf_fp.c (__guess_grouping): Removed.
25252         * stdio-common/reg-printf.c (__register_printf_specifier): Add
25253         libc_hidden_proto and libc_hidden_def.
25254         * stdlib/strfmon_l.c (__guess_grouping): Removed.
25255         (__vstrfmon_l): Remove the third argument passed to
25256         __guess_grouping.
25258 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25260         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
25261         definition for issignaling that does not rely on __MATH_TG,
25262         since __MATH_TG uses __builtin_types_compatible_p, which is only
25263         available in C mode.
25264         (CFLAGS-test-math-issignaling.cc): New variable.
25265         * math/Makefile [CXX] (tests): Add test-math-issignaling.
25266         * math/test-math-issignaling.cc: New test for C++ implementation
25267         of type-generic issignaling.
25268         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
25269         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
25270         options of test-math-issignaling on powerpc64le.
25272 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
25274         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
25275         building libc.a.
25276         (hidden_proto): Likewise.
25277         (hidden_tls_proto): Likewise.
25278         (__hidden_proto): Likewise.
25280 2017-08-22  Florian Weimer  <fweimer@redhat.com>
25282         math: Statically link tests of internal functionality.
25283         * math/Makefile (tests): Remove atest-exp, atest-sincos,
25284         atest-exp2.
25285         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
25286         (gmp-objs): Remove assignment.
25287         (atest-exp, atest-sincos, atest-exp2): Remove targets.
25289 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
25291         [BZ #21987]
25292         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
25293         and copy to ...
25294         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
25295         ... here.
25296         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
25297         ... and here.
25299         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
25300         variable definitions above inclusion of ../Rules.
25302 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
25304         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
25305         case calling __builtin_unreachable.
25307 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25309         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
25310         __waitpid_nocancel.
25311         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
25312         (__waitpid_nocancel): New macro.
25313         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
25314         macro.
25315         (__waitpid_nocancel): Replace macro with a function.
25316         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
25317         function.
25319         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
25320         __fcntl_nocancel.
25321         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
25322         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
25324         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
25325         __writev_nocancel_nostatus.
25326         (write_call_graph): Likewise.
25327         (write_bb_counts): Likewise.
25328         * resolv/herror.c (herror): Likewise.
25329         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
25330         macro.
25331         (__writev_nocancel_nostatus): New macro.
25332         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
25333         Remove macro.
25334         (__writev_nocancel_nostatus): New function.
25336 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
25338         Revert:
25339         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25341         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
25342         building libc.a.
25343         (hidden_proto): Likewise.
25344         (hidden_tls_proto): Likewise.
25345         (__hidden_proto): Likewise.
25347         [BZ #21973]
25348         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
25349         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
25350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
25351         Likewise.
25352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
25353         Likewise.
25354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
25355         Likewise.
25356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
25357         Likewise.
25358         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
25359         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
25360         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
25361         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
25362         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25363         GLIBC_2.0 sqrtl symbol.
25365         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
25366         [__USE_MISC] (_LIB_VERSION): Likewise.
25367         [__USE_MISC] (struct exception): Likewise.
25368         [__USE_MISC] (matherr): Likewise.
25369         [__USE_MISC] (DOMAIN): Likewise.
25370         [__USE_MISC] (SING): Likewise.
25371         [__USE_MISC] (OVERFLOW): Likewise.
25372         [__USE_MISC] (UNDERFLOW): Likewise.
25373         [__USE_MISC] (TLOSS): Likewise.
25374         [__USE_MISC] (PLOSS): Likewise.
25375         [__USE_MISC] (HUGE): Likewise.
25376         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
25377         * math/math-svid-compat.h: New file.
25378         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
25379         and matherrl.
25380         * include/math.h [!_ISOMAC] (__matherr): Remove.
25381         * manual/arith.texi (FP Exceptions): Do not document matherr.
25382         * math/Makefile (tests): Change test-matherr to test-matherr-3.
25383         (tests-internal): New variable.
25384         (install-lib): Do not add libieee.a.
25385         (non-lib.a): Likewise.
25386         (extra-objs): Do not add libieee.a and ieee-math.o.
25387         (CPPFLAGS-s_lib_version.c): Remove variable.
25388         ($(objpfx)libieee.a): Remove rule.
25389         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
25390         * math/ieee-math.c: Remove.
25391         * math/libm-test-support.c (matherr): Remove.
25392         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
25393         and license notices.  Include <math-svid-compat.h> and
25394         <shlib-compat.h>.
25395         (matherr): Undefine as macro.  Use compat_symbol_reference.
25396         (_LIB_VERSION): Likewise.
25397         * math/test-matherr-2.c: New file.
25398         * math/test-matherr-3.c: Likewise.
25399         * sysdeps/generic/math_private.h (__kernel_standard): Remove
25400         declaration.
25401         (__kernel_standard_f): Likewise.
25402         (__kernel_standard_l): Likewise.
25403         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
25404         <math_private.h>.  Include <math-svid-compat.h>.
25405         (_LIB_VERSION): Undefine as macro.
25406         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
25407         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
25408         [LIBM_SVID_COMPAT], use compat_symbol.
25409         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
25410         <math_private.h>.  Include <math-svid-compat.h>.
25411         (matherr): Undefine as macro.
25412         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
25413         compat_symbol.
25414         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
25415         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
25416         compat_symbol_reference.
25417         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
25418         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
25419         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
25420         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
25421         (MATHERR_D): Remove declaration.
25422         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
25423         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
25424         [LIBM_BUILD] (pmatherrf): Likewise.
25425         [LIBM_BUILD] (pmatherr): Likewise.
25426         [LIBM_BUILD] (pmatherrl): Likewise.
25427         (DOMAIN): Likewise.
25428         (SING): Likewise.
25429         (OVERFLOW): Likewise.
25430         (UNDERFLOW): Likewise.
25431         (TLOSS): Likewise.
25432         (PLOSS): Likewise.
25433         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
25434         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
25435         compat_symbol.
25436         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
25437         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
25438         compat_symbol.
25439         * math/lgamma-compat.h: Include <math-svid-compat.h>.
25440         * math/w_acos_compat.c: Likewise.
25441         * math/w_acosf_compat.c: Likewise.
25442         * math/w_acosh_compat.c: Likewise.
25443         * math/w_acoshf_compat.c: Likewise.
25444         * math/w_acoshl_compat.c: Likewise.
25445         * math/w_acosl_compat.c: Likewise.
25446         * math/w_asin_compat.c: Likewise.
25447         * math/w_asinf_compat.c: Likewise.
25448         * math/w_asinl_compat.c: Likewise.
25449         * math/w_atan2_compat.c: Likewise.
25450         * math/w_atan2f_compat.c: Likewise.
25451         * math/w_atan2l_compat.c: Likewise.
25452         * math/w_atanh_compat.c: Likewise.
25453         * math/w_atanhf_compat.c: Likewise.
25454         * math/w_atanhl_compat.c: Likewise.
25455         * math/w_cosh_compat.c: Likewise.
25456         * math/w_coshf_compat.c: Likewise.
25457         * math/w_coshl_compat.c: Likewise.
25458         * math/w_exp10_compat.c: Likewise.
25459         * math/w_exp10f_compat.c: Likewise.
25460         * math/w_exp10l_compat.c: Likewise.
25461         * math/w_exp2_compat.c: Likewise.
25462         * math/w_exp2f_compat.c: Likewise.
25463         * math/w_exp2l_compat.c: Likewise.
25464         * math/w_fmod_compat.c: Likewise.
25465         * math/w_fmodf_compat.c: Likewise.
25466         * math/w_fmodl_compat.c: Likewise.
25467         * math/w_hypot_compat.c: Likewise.
25468         * math/w_hypotf_compat.c: Likewise.
25469         * math/w_hypotl_compat.c: Likewise.
25470         * math/w_j0_compat.c: Likewise.
25471         * math/w_j0f_compat.c: Likewise.
25472         * math/w_j0l_compat.c: Likewise.
25473         * math/w_j1_compat.c: Likewise.
25474         * math/w_j1f_compat.c: Likewise.
25475         * math/w_j1l_compat.c: Likewise.
25476         * math/w_jn_compat.c: Likewise.
25477         * math/w_jnf_compat.c: Likewise.
25478         * math/w_jnl_compat.c: Likewise.
25479         * math/w_lgamma_main.c: Likewise.
25480         * math/w_lgamma_r_compat.c: Likewise.
25481         * math/w_lgammaf_main.c: Likewise.
25482         * math/w_lgammaf_r_compat.c: Likewise.
25483         * math/w_lgammal_main.c: Likewise.
25484         * math/w_lgammal_r_compat.c: Likewise.
25485         * math/w_log10_compat.c: Likewise.
25486         * math/w_log10f_compat.c: Likewise.
25487         * math/w_log10l_compat.c: Likewise.
25488         * math/w_log2_compat.c: Likewise.
25489         * math/w_log2f_compat.c: Likewise.
25490         * math/w_log2l_compat.c: Likewise.
25491         * math/w_log_compat.c: Likewise.
25492         * math/w_logf_compat.c: Likewise.
25493         * math/w_logl_compat.c: Likewise.
25494         * math/w_pow_compat.c: Likewise.
25495         * math/w_powf_compat.c: Likewise.
25496         * math/w_powl_compat.c: Likewise.
25497         * math/w_remainder_compat.c: Likewise.
25498         * math/w_remainderf_compat.c: Likewise.
25499         * math/w_remainderl_compat.c: Likewise.
25500         * math/w_scalb_compat.c: Likewise.
25501         * math/w_scalbf_compat.c: Likewise.
25502         * math/w_scalbl_compat.c: Likewise.
25503         * math/w_sinh_compat.c: Likewise.
25504         * math/w_sinhf_compat.c: Likewise.
25505         * math/w_sinhl_compat.c: Likewise.
25506         * math/w_sqrt_compat.c: Likewise.
25507         * math/w_sqrtf_compat.c: Likewise.
25508         * math/w_sqrtl_compat.c: Likewise.
25509         * math/w_tgamma_compat.c: Likewise.
25510         * math/w_tgammaf_compat.c: Likewise.
25511         * math/w_tgammal_compat.c: Likewise.
25512         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
25513         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
25514         * sysdeps/ieee754/k_standard.c: Likewise.
25515         * sysdeps/ieee754/k_standardf.c: Likewise.
25516         * sysdeps/ieee754/k_standardl.c: Likewise.
25517         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
25518         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
25519         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
25520         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
25521         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
25522         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
25523         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
25524         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
25525         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
25526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
25527         Likewise.
25528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
25529         Likewise.
25530         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
25531         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
25532         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
25533         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
25535 2017-08-21  Florian Weimer  <fweimer@redhat.com>
25537         [BZ #21864]
25538         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
25539         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
25540         Move before inclusion of ../Rules.
25542 2017-08-21  Florian Weimer  <fweimer@redhat.com>
25544         [BZ #21972]
25545         * assert/assert.h (assert): Use static_cast (bool) for C++.
25546         Use the ternary operator in the warning branch for GNU C.
25547         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
25548         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
25549         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
25550         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
25551         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
25553 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25555         [BZ #18822]
25556         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25557         (__syscall_clock_gettime): Add attribute_hidden.
25558         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
25559         (__start_context): Likewise.
25561 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25563         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
25564         building libc.a.
25565         (hidden_proto): Likewise.
25566         (hidden_tls_proto): Likewise.
25567         (__hidden_proto): Likewise.
25569 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25571         * include/libc-symbols.h (attribute_hidden): Enable hidden
25572         visibility in libc.a compiled with PIE.
25574 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25576         [BZ #18822]
25577         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
25578         Add attribute_hidden.
25580 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25582         [BZ #21864]
25583         * Makerules (all-nonlib): Add $(others-extras).
25584         * catgets/Makefile (others-extras): New.
25585         * elf/Makefile (others-extras): Likewise.
25586         * nss/Makefile (others-extras): Likewise.
25588 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25590         [BZ #18822]
25591         * csu/libc-start.c (__libc_multiple_libcs): Removed.
25592         * elf/dl-open.c: Include <libc-internal.h>.
25593         (__libc_multiple_libcs): Removed.
25594         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
25595         <hp-timing.h>.
25596         * include/libc-internal.h (__libc_multiple_libcs): New.
25597         * misc/sbrk.c: Include <libc-internal.h>.
25598         (__libc_multiple_libcs): Removed.
25600 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
25602         [BZ #18822]
25603         * grp/initgroups.c (__nss_group_database): Removed.
25604         (__nss_initgroups_database): Likewise.
25605         * nscd/gai.c (__nss_hosts_database): Likewise.
25606         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
25607         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
25608         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
25609         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
25610         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
25611         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
25612         attribute_hidden.
25613         * nss/nsswitch.c (__nss_database_custom): Define only if
25614         USE_NSCD is defined.
25615         (__nss_configure_lookup): Use __nss_database_custom only if
25616         USE_NSCD is defined.
25617         * nss/nsswitch.h (__nss_database_custom): Declare only if
25618         USE_NSCD is defined.  Add attribute_hidden.
25619         (__nss_setent): Add attribute_hidden.
25620         (__nss_endent): Likewise.
25621         (__nss_getent_r): Likewise.
25622         (__nss_getent): Likewise.
25623         (DEFINE_DATABASE): Declare __nss_##arg##_database.
25625 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
25627         [BZ #18822]
25628         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
25629         libc_hidden_proto and libc_hidden_def.
25631 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
25633         [BZ #18822]
25634         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
25635         Add libc_hidden_proto.
25636         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
25637         Add libc_hidden_def.
25639 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
25641         [BZ #21974]
25642         * gmon/Makefile (routines): Remove bb_init_func and
25643         bb_exit_func.
25644         (elide-routines.os): Removed.
25645         * gmon/bb_exit_func.c: Likewise.
25646         * gmon/bb_init_func.c: Likewise.
25647         * include/sys/gmon.h (__bb): Likewise.
25648         (__bb_init_func): Likewise.
25649         (__bb_exit_func): Likewise.
25650         * sysdeps/alpha/bb_init_func.S: Likewise.
25652 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
25654         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
25655         * include/setjmp.h (____longjmp_chk): Here.  Add
25656         attribute_hidden.
25658 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
25660         [BZ #18822]
25661         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
25662         attribute_hidden.
25663         (__strspn_sse2): Likewise.
25665 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25667         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
25668         (close_not_cancel_no_status): Likewise.
25669         (__close_nocancel): New macro.
25670         (__close_nocancel_nostatus): Likewise.
25671         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
25672         macro.
25673         (close_not_cancel): Likewise.
25674         (close_not_cancel_no_status): Likewise.
25675         (__close_nocancel): New prototype.
25676         (__close_nocancel_nostatus): New function.
25677         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
25678         * catgets/open_catalog.c (__open_catalog): Replace
25679         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
25680         * gmon/gmon.c (write_gmon): Likewise.
25681         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
25682         * intl/loadmsgcat.c (close): Likewise.
25683         * io/ftw.c (open_dir_stream): Likewise.
25684         (ftw_startup): Likewise.
25685         * libio/fileops.c (_IO_file_open): Likewise.
25686         (_IO_file_close_mmap): Likewise.
25687         (_IO_file_close): Likewise.
25688         * libio/iopopen.c (_IO_dup2): Likewise.
25689         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
25690         * locale/loadlocale.c (_nl_load_locale): Likewise.
25691         * login/utmp_file.c (pututline_file): Likewise.
25692         (endutent_file): Likewise.
25693         * misc/daemon.c (daemon): Likewise.
25694         * nscd/nscd_getai.c (__nscd_getai): Likewise.
25695         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
25696         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
25697         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
25698         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
25699         * nscd/nscd_helper.c (open_socket): Likewise.
25700         (__nscd_open_socket): Likewise.
25701         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
25702         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
25703         (__nscd_innetgr): Likewise.
25704         * nss/nss_db/db-open.c (internal_setent): Likewise.
25705         * resolv/res-close.c (__res_iclose): Likewise.
25706         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
25707         * sysdeps/posix/closedir.c (__closedir): Likewise.
25708         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
25709         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
25710         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
25711         (opendir_tail): Likewise.
25712         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
25713         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
25714         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
25715         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
25716         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
25717         (gethostid): Likewise.
25718         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
25719         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25720         Likewise.
25721         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
25722         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
25723         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
25724         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
25725         Likewise.
25726         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
25727         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
25728         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
25729         Likewise.
25730         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
25731         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
25732         Likewise.
25733         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
25734         Likewise.
25735         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
25736         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
25737         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25738         __close_nocancel.
25740         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
25741         (openat_not_cancel_3): Likewise.
25742         (openat64_not_cancel_3): Likewise).
25743         (openat_not_cancel_3): Likewise).
25744         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
25745         macro.
25746         (openat_not_cancel_3): Likewise.
25747         (openat64_not_cancel): Likewise.
25748         (openat64_not_cancel_3): Likewise.
25749         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
25750         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
25751         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
25752         __open{64}_nocancel.
25753         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
25754         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
25755         * sysdeps/posix/opendir.c (__opendirat): Likewise.
25757 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
25759         [BZ #18822]
25760         * include/argz.h (__argz_create_sep): New function prototype.
25761         (__argz_append): Likewise.
25762         (__argz_add): Likewise.
25763         (__argz_add_sep): Likewise.
25764         (__argz_delete): Likewise.
25765         (__argz_insert): Likewise.
25766         (__argz_replace): Likewise.
25767         * string/argz.h (__argz_create_sep): Removed.
25768         (__argz_append): Likewise.
25769         (__argz_add): Likewise.
25770         (__argz_add_sep): Likewise.
25771         (__argz_delete): Likewise.
25772         (__argz_insert): Likewise.
25773         (__argz_replace): Likewise.
25775 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
25777         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
25778         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
25779         (GNU_PROPERTY_STACK_SIZE): Likewie.
25780         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
25781         (GNU_PROPERTY_LOPROC): Likewise.
25782         (GNU_PROPERTY_HIPROC): Likewise.
25783         (GNU_PROPERTY_LOUSER): Likewise.
25784         (GNU_PROPERTY_HIUSER): Likewise.
25785         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
25786         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
25787         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
25788         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
25789         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
25790         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
25791         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
25792         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
25793         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
25794         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
25795         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
25796         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
25797         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
25798         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
25799         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
25800         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
25801         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
25802         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
25803         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
25804         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
25805         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
25806         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
25807         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
25809 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25811         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
25812         in C++ mode.
25814 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
25816         [BZ #21930]
25817         * math/math.h (isinf): Check if in C or C++ mode before using
25818         __builtin_types_compatible_p, since this is a C mode feature.
25820 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25822         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
25823         (__write_nocancel): New macro.
25824         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
25825         Rewrite as a function prototype.
25826         (write_not_cancel): Remove macro.
25827         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
25828         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
25829         (write_gmon): Likewise.
25830         * libio/fileops.c (_IO_new_file_write): Likewise.
25831         * login/utmp_file.c (pututline_file): Likewise.
25832         (updwtmp_file): Likewise.
25833         * stdio-common/psiginfo.c (psiginfo): Likewise.
25834         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
25835         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
25836         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
25837         Likewise.
25838         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
25839         Likewise.
25841         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
25842         (__read_nocancel): New macro.
25843         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25844         __read_nocancel.
25845         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
25846         macro.
25847         (__read_nocancel): New prototype.
25848         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
25849         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
25850         with __read_nocancel.
25851         * intl/loadmsgcat.c (read): Likewise.
25852         * libio/fileops.c (_IO_file_read): Likewise.
25853         * locale/loadlocale.c (_nl_load_locale): Likewise.
25854         * login/utmp_file.c (getutent_r_file): Likewise.
25855         (internal_getut_r): Likewise.
25856         (getutline_r_file): Likewise.
25857         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
25858         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
25859         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
25860         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25861         Likewise.
25862         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
25863         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
25864         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
25865         Likewise.
25866         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
25867         Likewise.
25868         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
25869         Likewise.
25870         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
25871         Likewise.
25872         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
25874 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
25876         [BZ #21966]
25877         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
25878         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
25879         usable.
25881 2017-08-17  DJ Delorie  <dj@redhat.com>
25883         * bug17079.c: Update to new test harness.
25884         * test-digits-dots.c: Likewise.
25885         * test-netdb.c: Likewise.
25886         * tst-field.c: Likewise.
25887         * tst-nss-getpwent.c: Likewise.
25888         * tst-nss-static.c: Likewise.
25889         * tst-nss-test1.c: Likewise.
25890         * tst-nss-test2.c: Likewise.
25891         * tst-nss-test3.c: Likewise.
25892         * tst-nss-test4.c: Likewise.
25893         * tst-nss-test5.c: Likewise.
25895 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
25897         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
25898         (open_not_cancel_2): Likewise.
25899         (open_nocancel): New macro.
25900         (open64_nocancel): Likewise.
25901         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
25902         (open_not_cancel_2): Likewise.
25903         (__open_nocancel): New prototype.
25904         (__open64_nocancel): Likewise.
25905         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25906         __open_nocancel.
25907         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
25908         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
25909         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
25910         with __open_nocancel.
25911         * csu/check_fds.c (check_one_fd): Likewise.
25912         * gmon/gmon.c (write_gmon): Likewise.
25913         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
25914         * intl/loadmsgcat.c (open): Likewise.
25915         * libio/fileops.c (_IO_file_open): Likewise.
25916         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
25917         * locale/loadlocale.c (_nl_load_locale): Likewise.
25918         * login/utmp_file.c (setutent_file): Likewise.
25919         * misc/daemon.c (daemon): Likewise.
25920         * nss/nss_db/db-open.c (internal_setent): Likewise.
25921         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
25922         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
25923         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
25924         (__opendir): Likewise.
25925         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
25926         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
25927         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
25928         (gethostid): Likewise.
25929         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
25930         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
25931         Likewise.
25932         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
25933         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
25934         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
25935         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
25936         Likewise.
25937         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
25938         Likewise.
25939         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
25940         Likewise.
25941         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
25942         Likewise.
25943         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
25944         Likewise.
25945         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
25946         Likewise.
25947         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
25948         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
25950 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
25952         * benchtests/bench-skeleton.c (main): Add support for
25953         latency benchmarking.
25954         * benchtests/scripts/bench.py: Add support for latency benchmarking.
25956 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
25958         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
25959         the startup object.
25961 2017-08-17  Florian Weimer  <fweimer@redhat.com>
25963         * include/sys/socket.h (__opensock): Remove internal_function.
25964         * socket/opensock.c (__opensock): Likewise.
25965         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
25967 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
25969         [BZ #21944]
25970         * signal/bits/types/__sigval_t.h: New file.
25971         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
25972         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
25973         and define sigval_t using __sigval_t.
25974         * include/bits/types/__sigval_t.h: New file.
25975         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
25976         instead of <bits/types/__sigval_t.h>.
25977         (struct sigevent): Use __sigval_t instead of sigval_t.
25978         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
25979         instead of <bits/types/__sigval_t.h>.
25980         (siginfo_t): Use __sigval_t instead of sigval_t.
25981         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
25982         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
25983         (struct sigevent): Use __sigval_t instead of sigval_t.
25984         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
25985         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
25986         (siginfo_t): Use __sigval_t instead of sigval_t.
25987         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
25989 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
25991         * NEWS: Remove "[Add new features here]" for 2.27.
25993 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
25995         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
25996         libc.so.
25998 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
26000         * NEWS: Mention x86-64 FMA optimization.
26002 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
26004         [BZ #21912]
26005         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26006         Add e_expf-fma.
26007         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
26008         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
26009         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
26011 2017-08-16  Andreas Schwab  <schwab@suse.de>
26013         [BZ #16750]
26014         CVE-2009-5064
26015         * elf/ldd.bash.in: Never run file directly.
26017 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
26019         [BZ #21955]
26020         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
26021         (L(SP_INF_0)): Likewise.
26023 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26025         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
26026         run-built-tests.
26028 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26030         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
26031         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
26032         BROKEN_THREAD_SIGNALS code.
26033         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
26034         request_list): Remove caller_pid member used for
26035         BROKEN_THREAD_SIGNALS.
26036         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
26037         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
26038         Remove BROKEN_THREAD_SIGNALS support.
26039         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
26040         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
26042 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26044         * gmon/Makefile (tests): Add tst-gmon.
26045         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
26046         Set.
26047         (tests-special): Add tst-gmon-prof.out.
26048         (tst-gmon.out): Depend on clean-tst-gmon-data.
26049         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
26050         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
26051         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
26052         startup object.
26053         * aclocal.m4 (GPROF): Set and substitute.
26054         * config.amke.in (GPROF): Set.
26055         * configure: Regenerate.
26057 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
26059         * elf/elf.h A (NT_PPC_TAR): New macro.
26060         (NT_PPC_PPR): Likewise.
26061         (NT_PPC_DSCR): Likewise.
26062         (NT_PPC_EBB): Likewise.
26063         (NT_PPC_PMU): Likewise.
26064         (NT_PPC_TM_CGPR): Likewise.
26065         (NT_PPC_TM_CFPR): Likewise.
26066         (NT_PPC_TM_CVMX): Likewise.
26067         (NT_PPC_TM_CVSX): Likewise.
26068         (NT_PPC_TM_SPR): Likewise.
26069         (NT_PPC_TM_CTAR): Likewise.
26070         (NT_PPC_TM_CPPR): Likewise.
26071         (NT_PPC_TM_CDSCR): Likewise.
26073 2017-08-15  Florian Weimer  <fweimer@redhat.com>
26075         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
26076         regparm (2) instead of internal_function.
26077         (_MCOUNT_DECL): Adjust.
26079 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
26081         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
26082         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
26084 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
26086         * conform/data/sys/wait.h-data (si_value): Do not expect for
26087         XPG42.
26089 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26091         [BZ #21962]
26092         NSS: Create stubs for accidentally exported lookup functions.
26093         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
26094         Remove declaration.
26095         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
26096         (ether_hostton): Call __nss_ethers_lookup2 instead.
26097         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
26098         (ether_ntohost): Call __nss_ethers_lookup2 instead.
26099         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
26100         (setup): Call __nss_netgroup_lookup2 instead.
26101         * nss/Makefile (routines): Add compat-lookup.
26102         * nss/Versions (GLIBC_2.27): Add symbol version.
26103         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
26104         (DB_COMPAT_FCT): Remove.
26105         * nss/compat-lookup.c: New file.
26106         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
26107         from databases.def.
26108         * nss/service-lookup.c (NO_COMPAT): Remove definition.
26109         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
26110         (netname2user): Call __nss_publickey_lookup2 instead.
26111         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
26112         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
26113         instead.
26115 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26116             Sergei Trofimovich  <slyfox@inbox.ru>
26118         [BZ #21908]
26119         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
26120         Rename to MMAP2_PAGE_UNIT.
26121         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
26122         __OFF_T_MATCHES_OFF64_T is not defined.
26123         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
26124         uint64_t.
26125         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
26126         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
26128 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26130         i386: Do not set internal_function.
26131         * config.h.in (USE_REGPARMS, internal_function): Remove.
26132         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
26133         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
26135 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26137         * elf/dl-init.c (_dl_init): Remove internal_function.
26138         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
26139         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
26141 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26143         * elf/rtld.c (_dl_start): Remove internal_function.
26144         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
26145         _dl_start.
26147 2017-08-14  Florian Weimer  <fweimer@redhat.com>
26149         * elf/dl-fini.c (_dl_fini): Remove internal_function
26150         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26152 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
26154         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
26155         (bit_cpu_SHSTK): Likewise.
26156         (index_cpu_IBT): Likewise.
26157         (index_cpu_SHSTK): Likewise.
26158         (reg_IBT): Likewise.
26159         (reg_SHSTK): Likewise.
26160         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26161         Handle index_cpu_IBT and index_cpu_SHSTK.
26163 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
26165         [BZ #19982]
26166         * po/fr.po: Fix spelling mistake.
26168 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26170         * elf/dl-addr.c (_dl_addr): Remove internal_function.
26171         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
26172         (_dl_catch_error, _dl_receive_error): Likewise.
26173         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
26174         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
26175         (_dl_deallocate_tls): Likewise.
26176         * include/dlfcn.h (_dl_addr): Likewise.
26177         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
26178         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
26179         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
26180         Likewise.
26182 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26184         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
26185         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
26186         internal_function.
26187         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
26189 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26191         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
26192         internal_function.
26193         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
26194         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
26195         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
26196         internal_function from _dl_make_stack_executable_hook member.
26197         (_dl_make_stack_executable): Remove internal_function.
26198         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
26199         Likewise.
26200         * sysdeps/unix/sysv/linux/dl-execstack.c
26201         (_dl_make_stack_executable): Likewise.
26203 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26205         * sysdeps/unix/sysv/linux/netlinkaccess.h
26206         (__netlink_assert_response): Remove internal_function.
26207         * sysdeps/unix/sysv/linux/netlink_assert_response.c
26208         (__netlink_assert_response): Likewise.
26210 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26212         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
26213         internal_function.
26214         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
26216 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26218         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
26219         internal_function.
26220         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
26221         * inet/netgroup.h (__internal_setnetgrent)
26222         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
26223         * inet/getnetgrent_r.c (__internal_setnetgrent)
26224         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
26225         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
26226         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
26227         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
26228         * nss/nsswitch.h (db_lookup_function): Likewise.
26230 2017-08-13  Florian Weimer  <fweimer@redhat.com>
26232         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
26233         Remove internal_function.
26234         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
26235         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
26236         message argument on the stack.
26237         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
26238         Likeweise.
26240 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
26242         Adapt test case data to the changes in the thousands
26243         separators.
26245         [BZ #20756]
26246         * localedata/tst-langinfo.sh: Adapt test case data.
26247         * stdlib/tst-strfmon_l.c: Likewise.
26248         * stdlib/tst-strtod4.c: Likewise.
26249         * stdlib/tst-strtod5i.c: Likewise.
26251 2017-08-11  Florian Weimer  <fweimer@redhat.com>
26253         [BZ #21242]
26254         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
26255         Suppress pedantic warning resulting from statement expression.
26256         (__ASSERT_FUNCTION): Add missing __extension__.
26258 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26260         * benchtests/bench-memmove-large.c: Print output in JSON
26261         format.
26262         * benchtests/bench-memmove.c: Likewise.
26264         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
26265         * benchtests/bench-memchr.c (do_one_test): Likewise.
26266         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
26267         * benchtests/bench-memcpy.c (do_one_test): Likewise.
26268         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
26269         * benchtests/bench-memmove.c (do_one_test): Likewise.
26270         * benchtests/bench-memset-large.c (do_one_test): Likewise.
26271         * benchtests/bench-memset.c (do_one_test): Likewise.
26272         * benchtests/bench-string.h (test_init): Remove memsets.
26274 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
26276         * manual/lang.texi
26277         (Computing the Width of an Integer Data Type): Rename section to
26278         "Width of an Integer Type".  Remove inaccurate statement regarding
26279         lack of C language facilities for determining width of integer
26280         types, and reorder content to improve flow and context of
26281         discussion.
26283 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
26285         * lang.texi (va_copy): Change standard from ISO to C99.
26286         (__va_copy): Add standard and header annotation.
26287         Update description for clarity of origins and current use.
26289 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
26291         [BZ #21941]
26292         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
26293         xssqrtqp requires operands to be in Vector Registers
26294         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
26295         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
26296         (__ieee754_sqrtf128): Likewise.
26298 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
26300         * sysdeps/aarch64/memcmp.S (memcmp):
26301         Rewrite of optimized memcmp.
26303 2017-08-10  Florian Weimer  <fweimer@redhat.com>
26305         Introduce ld.so exceptions.
26306         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
26307         (_dl_exception_create, _dl_exception_create_format)
26308         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
26309         (_dl_catch_exception): Declare.
26310         (_dl_catch_error): Update comment.
26311         * elf/dl-error-skeleton.c (struct catch): Replace objname,
26312         errstring, malloced members with exception member.
26313         (_dl_out_of_memory): Remove.
26314         (fatal_error): New function, extracted from _dl_signal_error.
26315         (_dl_signal_exception, _dl_signal_cexception): New functions.
26316         (_dl_signal_error): Call _dl_exception_create to allocate an
26317         exception object.
26318         (_dl_catch_exception): New function, based on _dl_catch_error.
26319         (_dl_catch_error): Implement using _dl_catch_exception.
26320         * elf/dl-exception.c: New file.
26321         * elf/Makefile (dl-routines): Add dl-exception.
26322         (elide-routines.os): Likewise.
26323         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
26324         _dl_exception_create_format, _dl_exception_free.
26325         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
26326         _dl_signal_exception.
26327         * elf/dl-lookup.c (make_string): Remove.
26328         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
26329         _dl_signal_cexception, _dl_exception_free.
26330         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
26331         _dl_signal_exception.
26332         * elf/dl-sym.c (do_sym): Likewise.
26333         * elf/dl-version.c (make_string): Remove.
26334         (match_symbol): Use _dl_exception_create_format,
26335         _dl_signal_cexception, _dl_exception_free.
26336         (_dl_check_map_versions): Likewise.
26337         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
26338         _dl_catch_exception.
26339         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
26340         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
26341         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
26342         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
26343         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
26344         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
26345         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
26346         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
26347         Likewise.
26348         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
26349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
26350         (ld.so): Likewise.
26351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
26352         (ld.so): Likewise.
26353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
26354         Likewise.
26355         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
26356         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
26357         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
26358         Likewise.
26359         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
26360         Likewise.
26361         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
26363 2017-08-10  Florian Weimer  <fweimer@redhat.com>
26365         * inet/net-internal.h (__inet6_scopeid_pton): Remove
26366         attribute_hidden, internal_function.
26367         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
26368         internal_function.
26370 2017-08-10  Florian Weimer  <fweimer@redhat.com>
26372         * malloc/malloc.c (get_max_fast): Reimplement as an inline
26373         function which calls __builtin_unreachable.
26375 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
26377         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
26378         Indian monetary formatting
26379         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
26380         test cases.
26382 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
26384         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
26385         Fix typo in comment.
26387         [BZ #21928]
26388         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
26389         PTRACE_SEIZE_DEVEL): Remove.
26390         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
26391         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26392         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
26393         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
26394         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
26396 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
26398         * posix/bits/types.h (__qaddr_t): Remove.
26400         [BZ #21457]
26401         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
26402         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
26403         __glibc_reserved1.
26404         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
26405         (ucontext_t): Use __ctx with uc_flags.
26406         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
26407         (__ctxt): Likewise.
26408         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
26409         __glibc_reserved1.
26410         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
26411         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
26412         __glibc_reserved1.
26413         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
26414         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
26415         __glibc_reserved1.
26416         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
26417         macro.
26418         (ucontext_t): Use __ctx with uc_flags.
26419         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
26420         (ucontext_t): Use __ctx with uc_flags.
26421         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
26422         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
26423         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
26424         (ucontext_t): Use __ctx with uc_flags.
26425         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
26426         undefine further down.
26427         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
26428         __glibc_reserved1.
26429         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
26430         undefine further down.
26431         (ucontext_t): Use __ctx with uc_flags.
26432         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
26433         undefine further down.
26434         (ucontext_t): Use __ctx with uc_flags.
26435         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
26436         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
26437         Rename uc_pad to __glibc_reserved1.
26438         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
26439         undefine further down.
26440         (ucontext_t): Use __ctx with uc_flags.
26441         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
26442         further down.
26443         (ucontext_t): Use __ctx with uc_flags.
26444         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
26445         __ctx with uc_flags.
26446         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
26447         (ucontext_t): Use __ctx with uc_flags.
26448         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
26449         __ctx with uc_flags.
26451 2017-08-09  Florian Weimer  <fweimer@redhat.com>
26453         [BZ #21932]
26454         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
26455         before early return.
26457 2017-08-09  Andreas Schwab  <schwab@suse.de>
26459         [BZ #21041]
26460         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
26461         renamed alias.
26463         [BZ #21041]
26464         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
26465         tst-compat-forwarder.
26466         (modules-names): Add tst-compat-forwarder-mod.
26467         ($(objpfx)tst-compat-forwarder): Depend on
26468         $(objpfx)tst-compat-forwarder-mod.so.
26469         * nptl/tst-compat-forwarder.c: New file.
26470         * nptl/tst-compat-forwarder-mod.c: New file.
26472 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26474         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
26475         comments.
26477         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
26478         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
26479         memcpy_falkor.
26480         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
26481         Bump.
26482         (__libc_ifunc_impl_list): Add __memcpy_falkor.
26483         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
26484         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
26485         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
26486         Add falkor.
26487         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
26488         New macro.
26490 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26492         [BZ #759]
26493         * manual/setjmp.texi (getcontex): Document uc_stack value
26494         compatibility differences.
26496 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
26498         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
26499         (old_malloc_hook): Likewise.
26500         (old_memalign_hook): Likewise.
26501         (old_realloc_hook): Likewise.
26502         (struct hdr): Likewise.
26503         (flood): Likewise.
26504         (freehook): Likewise.
26505         (mallochook): Likewise.
26506         (memalignhook): Likewise.
26507         (reallochook): Likewise.
26508         (mprobe): Likewise.
26509         * malloc/mtrace.c (mallwatch): Likewise.
26510         (tr_old_free_hook): Likewise.
26511         (tr_old_malloc_hook): Likewise.
26512         (tr_old_realloc_hook): Likewise.
26513         (tr_old_memalign_hook): Likewise.
26514         (tr_where): Likewise.
26515         (lock_and_info): Likewise.
26516         (tr_freehook): Likewise.
26517         (tr_mallochook): Likewise.
26518         (tr_reallochook): Likewise.
26519         (tr_memalignhook): Likewise.
26520         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
26521         * misc/mmap.c (__mmap): Likewise.
26522         * misc/mmap64.c (__mmap64): Likewise.
26523         * misc/mprotect.c (__mprotect): Likewise.
26524         * misc/msync.c (msync): Likewise.
26525         * misc/munmap.c (__munmap): Likewise.
26526         * posix/posix_madvise.c (posix_madvise): Likewise.
26527         * socket/send.c (__send): Likewise.
26528         * socket/sendto.c (__sendto): Likewise.
26529         * socket/setsockopt.c (__setsockopt): Likewise.
26530         * string/memcmp.c (__ptr_t): Remove macro.
26531         (MEMCMP): Use void * instead of ptr_t.
26532         * string/memrchr.c (__ptr_t): Remove macro.
26533         (__memrchr): Use void * instead of ptr_t.
26534         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
26535         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
26536         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
26537         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
26538         * sysdeps/mach/msync.c (msync): Likewise.
26539         * sysdeps/mach/munmap.c (__munmap): Likewise.
26540         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
26541         Likewise.
26542         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
26543         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
26544         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
26545         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
26546         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
26547         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
26548         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
26549         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
26550         Likewise.
26551         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
26552         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
26553         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
26554         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
26555         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
26556         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
26557         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
26558         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
26559         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
26560         Likewise.
26561         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
26562         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
26563         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
26564         (MEMCMP): Use void * instead of ptr_t.
26565         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
26566         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
26568 2017-08-08  Florian Weimer  <fweimer@redhat.com>
26570         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
26571         return statement.
26573 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
26575         [BZ #21913]
26576         * csu/libc-tls.c: Include <startup.h> first.
26577         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
26578         * elf/dl-tunables.c: Include <startup.h> first.
26579         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
26580         * sysdeps/generic/startup.h: New file.
26581         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
26582         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
26583         (I386_USE_SYSENTER): New.  Defined to 0.
26585 2017-08-08  Andreas Schwab  <schwab@suse.de>
26587         [BZ #21041]
26588         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
26589         * nptl/pt-system.c (system): Likewise.
26591 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26593         [BZ #21780]
26594         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
26595         EOPNOTSUPP.
26596         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
26597         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
26598         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
26599         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
26600         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
26601         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
26602         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
26604 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
26606         [BZ #21899]
26607         * bits/sigaction.h (struct sigaction): Define sa_handler and
26608         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
26609         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26610         [__USE_XOPEN_EXTENDED].
26611         (SA_RESTART): Likewise.
26612         (SA_NODEFER): Likewise.
26613         (SA_RESETHAND): Likewise.
26614         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
26615         (struct sigaction): Define sa_handler and sa_sigaction using union
26616         also for [__USE_XOPEN_EXTENDED].
26617         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26618         [__USE_XOPEN_EXTENDED].
26619         (SA_RESTART): Likewise.
26620         (SA_NODEFER): Likewise.
26621         (SA_RESETHAND): Likewise.
26622         * sysdeps/unix/sysv/linux/bits/sigaction.h
26623         (struct sigaction): Define sa_handler and sa_sigaction using union
26624         also for [__USE_XOPEN_EXTENDED].
26625         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26626         [__USE_XOPEN_EXTENDED].
26627         (SA_RESTART): Likewise.
26628         (SA_NODEFER): Likewise.
26629         (SA_RESETHAND): Likewise.
26630         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
26631         (struct sigaction): Define sa_handler and sa_sigaction using union
26632         also for [__USE_XOPEN_EXTENDED].
26633         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26634         [__USE_XOPEN_EXTENDED].
26635         (SA_RESTART): Likewise.
26636         (SA_NODEFER): Likewise.
26637         (SA_RESETHAND): Likewise.
26638         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
26639         (struct sigaction): Define sa_handler and sa_sigaction using union
26640         also for [__USE_XOPEN_EXTENDED].
26641         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26642         [__USE_XOPEN_EXTENDED].
26643         (SA_RESTART): Likewise.
26644         (SA_NODEFER): Likewise.
26645         (SA_RESETHAND): Likewise.
26646         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
26647         (struct sigaction): Define sa_handler and sa_sigaction using union
26648         also for [__USE_XOPEN_EXTENDED].
26649         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26650         [__USE_XOPEN_EXTENDED].
26651         (SA_RESTART): Likewise.
26652         (SA_NODEFER): Likewise.
26653         (SA_RESETHAND): Likewise.
26654         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
26655         (struct sigaction): Define sa_handler and sa_sigaction using union
26656         also for [__USE_XOPEN_EXTENDED].
26657         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26658         [__USE_XOPEN_EXTENDED].
26659         (SA_RESTART): Likewise.
26660         (SA_NODEFER): Likewise.
26661         (SA_RESETHAND): Likewise.
26662         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
26663         (struct sigaction): Define sa_handler and sa_sigaction using union
26664         also for [__USE_XOPEN_EXTENDED].
26665         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26666         [__USE_XOPEN_EXTENDED].
26667         (SA_RESTART): Likewise.
26668         (SA_NODEFER): Likewise.  Define directly rather than as alias.
26669         (SA_RESETHAND): Likewise.
26670         (SA_INTERRUPT): Define only for [__USE_MISC].
26671         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
26672         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
26673         [__USE_MISC].
26674         (SA_STACK): Define only for [__USE_MISC].
26675         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
26676         (struct sigaction): Define sa_handler and sa_sigaction using union
26677         also for [__USE_XOPEN_EXTENDED].
26678         (SA_ONSTACK): Change [__USE_UNIX98] condition to
26679         [__USE_XOPEN_EXTENDED].
26680         (SA_RESTART): Likewise.
26681         (SA_NODEFER): Likewise.
26682         (SA_RESETHAND): Likewise.
26683         (SA_NOPTRACE): Define only for [__USE_MISC].
26685         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
26686         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
26687         (struct catalog_info): Likewise.
26688         * inet/htontest.c (lo): Likewise.
26689         (foo): Likewise.
26690         * inet/inet_lnaof.c (inet_lnaof): Likewise.
26691         * inet/inet_net.c (inet_network): Likewise.
26692         * inet/inet_netof.c (inet_netof): Likewise.
26693         * inet/rcmd.c (__ivaliduser): Likewise.
26694         (iruserok): Likewise.
26695         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
26696         * locale/programs/locale-spec.c (locale_special): Likewise.
26697         * nis/nis_findserv.c (struct findserv_req): Likewise.
26698         (__nis_findfastest_with_timeout): Likewise.
26699         * nss/test-netdb.c (test_network): Likewise.
26700         * resolv/inet_neta.c (inet_neta): Likewise.
26701         * resolv/ns_date.c (ns_datetosecs): Likewise.
26702         (SECS_PER_DAY): Likewise.
26703         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
26704         Likewise.
26705         * resolv/res_comp.c (__putlong): Likewise.
26706         (__putshort): Likewise.
26707         (_getlong): Likewise.
26708         (_getshort): Likewise.
26709         * resolv/res_debug.c (p_time): Likewise.
26710         (precsize_ntoa): Likewise.
26711         (precsize_aton): Likewise.
26712         (latlon2ul): Likewise.
26713         (loc_aton): Likewise.
26714         (loc_ntoa): Likewise.
26715         * resolv/res_hconf.c (struct netaddr): Likewise.
26716         (_res_hconf_reorder_addrs): Likewise.
26717         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
26718         (clnttcp_control): Likewise.
26719         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
26720         (clntudp_control): Likewise.
26721         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
26722         (clntunix_control): Likewise.
26723         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
26724         * sunrpc/rpc/auth.h (union des_block): Likewise.
26725         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
26726         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
26727         (xdrrec_create): Likewise.
26728         (xdrrec_endofrecord): Likewise.
26729         (flush_out): Likewise.
26730         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
26731         (xdrstdio_putlong): Likewise.
26732         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
26733         Likewise.
26735         * misc/sys/cdefs.h (__long_double_t): Remove.
26736         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
26737         instead of __long_double_t,
26738         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
26740 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
26742         * benchtests/scripts/compare_strings.py: Avoid display error when
26743         running on a text terminal.
26745         * benchtests/scripts/compare_strings.py (main): Add an
26746         optional -base option.
26747         (process_results): New argument base_func.
26749         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
26750         hardcoding memcpy.
26751         * benchtests/bench-memcpy-large.c (test_name): Likewise.
26752         * benchtests/bench-memcpy-random.c (test_name): Likewise.
26754 2017-08-07  Andreas Schwab  <schwab@suse.de>
26756         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
26757         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
26758         * intl/Makefile ($(objpfx)tst-gettext.out)
26759         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
26760         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
26761         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
26762         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
26763         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
26764         * posix/Makefile ($(objpfx)globtest.out)
26765         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
26766         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
26767         ($(objpfx)tst-printf.out): Likewise.
26768         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
26769         ($(objpfx)tst-setcontext3.out): Likewise.
26771 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
26773         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26774         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
26775         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
26776         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
26777         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
26778         and mptan-fma.
26779         (CFLAGS-doasin-fma.c): New.
26780         (CFLAGS-dosincos-fma.c): Likewise.
26781         (CFLAGS-e_asin-fma.c): Likewise.
26782         (CFLAGS-e_atan2-fma.c): Likewise.
26783         (CFLAGS-e_exp-fma.c): Likewise.
26784         (CFLAGS-e_log-fma.c): Likewise.
26785         (CFLAGS-e_pow-fma.c): Likewise.
26786         (CFLAGS-halfulp-fma.c): Likewise.
26787         (CFLAGS-mpa-fma.c): Likewise.
26788         (CFLAGS-mpatan-fma.c): Likewise.
26789         (CFLAGS-mpatan2-fma.c): Likewise.
26790         (CFLAGS-mpexp-fma.c): Likewise.
26791         (CFLAGS-mplog-fma.c): Likewise.
26792         (CFLAGS-mpsqrt-fma.c): Likewise.
26793         (CFLAGS-mptan-fma.c): Likewise.
26794         (CFLAGS-s_atan-fma.c): Likewise.
26795         (CFLAGS-sincos32-fma.c): Likewise.
26796         (CFLAGS-slowexp-fma.c): Likewise.
26797         (CFLAGS-slowpow-fma.c): Likewise.
26798         (CFLAGS-s_sin-fma.c): Likewise.
26799         (CFLAGS-s_tan-fma.c): Likewise.
26800         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
26801         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
26802         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
26803         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
26804         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
26805         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
26806         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
26807         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
26808         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
26809         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
26810         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
26811         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
26812         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
26813         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
26814         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
26815         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
26816         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
26817         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
26818         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
26819         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
26820         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
26821         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
26822         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
26823         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
26824         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
26825         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26826         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26827         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
26828         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26829         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26830         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26832 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
26834         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
26835         (min_of_type_f): New macro.
26836         (min_of_type_): Likewise.
26837         (min_of_type_l): Likewise.
26838         (min_of_type_f128): Likewise.
26839         (min_of_type): Define using __MATH_TG and taking an expression
26840         argument.
26841         (math_check_force_underflow): Pass expression instead of type to
26842         min_of_type.
26843         (math_check_force_underflow_nonneg): Likewise.
26845 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
26847         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
26848         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
26849         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
26851 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
26853         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26854         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
26855         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
26856         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
26857         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
26858         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
26859         memcpy_chk-nonshared, mempcpy_chk-nonshared,
26860         memmove_chk-nonshared and memset_chk-nonshared
26861         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
26862         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
26863         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
26864         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
26865         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
26866         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
26867         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
26868         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
26869         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
26870         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
26871         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
26872         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
26873         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
26874         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
26875         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
26876         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
26877         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
26878         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
26879         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
26880         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
26881         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
26882         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
26883         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
26884         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
26885         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
26886         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
26887         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
26888         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
26889         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
26890         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
26891         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
26892         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
26893         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
26894         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
26895         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
26896         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
26897         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
26898         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
26899         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
26900         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
26901         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
26902         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
26903         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
26904         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
26905         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
26906         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
26907         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
26908         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
26909         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
26910         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
26911         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
26912         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
26913         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
26914         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
26915         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
26916         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
26917         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
26918         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
26919         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
26920         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
26921         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
26922         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
26923         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
26924         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
26925         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
26926         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
26927         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
26928         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
26929         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
26930         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
26931         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
26932         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26933         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26934         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26935         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26936         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26937         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26938         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26939         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26940         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26941         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26942         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26943         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26944         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26945         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26946         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26947         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26948         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26949         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26950         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26951         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26952         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26953         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26954         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26955         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26956         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26957         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26958         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26959         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26960         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26961         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26962         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26963         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26964         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26965         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26966         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26967         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26968         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26970 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
26972         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
26973         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
26974         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
26975         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
26976         svml_d_log2_core-sse2, svml_d_log4_core-sse,
26977         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
26978         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
26979         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
26980         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
26981         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
26982         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
26983         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
26984         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
26985         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
26986         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
26987         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
26988         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
26989         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
26990         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
26991         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
26992         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
26993         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
26994         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
26995         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
26996         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
26997         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
26998         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
26999         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
27000         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
27001         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
27002         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
27003         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
27004         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
27005         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
27006         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
27007         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
27008         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
27009         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
27010         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
27011         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
27012         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
27013         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
27014         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
27015         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
27016         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
27017         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
27018         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
27019         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
27020         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
27021         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
27022         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
27023         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
27024         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
27025         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
27026         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
27027         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
27028         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
27029         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
27030         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
27031         ...
27032         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
27033         Don't include <sysdep.h> nor <init-arch.h>.
27034         (_ZGVbN2v_cos): Removed.
27035         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
27036         ...
27037         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
27038         Don't include <sysdep.h> nor <init-arch.h>.
27039         (_ZGVdN4v_cos): Removed.
27040         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
27041         ...
27042         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
27043         Don't include <sysdep.h> nor <init-arch.h>.
27044         (_ZGVeN8v_cos): Removed.
27045         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
27046         ...
27047         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
27048         Don't include <sysdep.h> nor <init-arch.h>.
27049         (_ZGVbN2v_exp): Removed.
27050         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
27051         ...
27052         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
27053         Don't include <sysdep.h> nor <init-arch.h>.
27054         (_ZGVdN4v_exp): Removed.
27055         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
27056         ...
27057         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
27058         Don't include <sysdep.h> nor <init-arch.h>.
27059         (_ZGVeN8v_exp): Removed.
27060         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
27061         ...
27062         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
27063         Don't include <sysdep.h> nor <init-arch.h>.
27064         (_ZGVbN2v_log): Removed.
27065         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
27066         ...
27067         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
27068         Don't include <sysdep.h> nor <init-arch.h>.
27069         (_ZGVdN4v_log): Removed.
27070         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
27071         ...
27072         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
27073         Don't include <sysdep.h> nor <init-arch.h>.
27074         (_ZGVeN8v_log): Removed.
27075         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
27076         ...
27077         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
27078         Don't include <sysdep.h> nor <init-arch.h>.
27079         (_ZGVbN2vv_pow): Removed.
27080         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
27081         ...
27082         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
27083         Don't include <sysdep.h> nor <init-arch.h>.
27084         (_ZGVdN4vv_pow): Removed.
27085         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
27086         ...
27087         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
27088         Don't include <sysdep.h> nor <init-arch.h>.
27089         (_ZGVeN8vv_pow): Removed.
27090         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
27091         ...
27092         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
27093         Don't include <sysdep.h> nor <init-arch.h>.
27094         (_ZGVbN2v_sin): Removed.
27095         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
27096         ...
27097         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
27098         Don't include <sysdep.h> nor <init-arch.h>.
27099         (_ZGVbN4v_sin): Removed.
27100         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
27101         ...
27102         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
27103         Don't include <sysdep.h> nor <init-arch.h>.
27104         (_ZGVbN8v_sin): Removed.
27105         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
27106         ...
27107         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
27108         Don't include <sysdep.h> nor <init-arch.h>.
27109         (_ZGVbN2vvv_sincos): Removed.
27110         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
27111         ...
27112         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
27113         Don't include <sysdep.h> nor <init-arch.h>.
27114         (_ZGVdN4vvv_sincos): Removed.
27115         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
27116         ...
27117         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
27118         Don't include <sysdep.h> nor <init-arch.h>.
27119         (_ZGVeN8vvv_sincos): Removed.
27120         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
27121         ...
27122         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
27123         Don't include <sysdep.h> nor <init-arch.h>.
27124         (_ZGVeN16v_cosf): Removed.
27125         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
27126         ...
27127         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
27128         Don't include <sysdep.h> nor <init-arch.h>.
27129         (_ZGVbN4v_cosf): Removed.
27130         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
27131         ...
27132         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
27133         Don't include <sysdep.h> nor <init-arch.h>.
27134         (_ZGVdN8v_cosf): Removed.
27135         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
27136         ...
27137         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
27138         Don't include <sysdep.h> nor <init-arch.h>.
27139         (_ZGVeN16v_expf): Removed.
27140         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
27141         ...
27142         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
27143         Don't include <sysdep.h> nor <init-arch.h>.
27144         (_ZGVbN4v_expf): Removed.
27145         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
27146         ...
27147         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
27148         Don't include <sysdep.h> nor <init-arch.h>.
27149         (_ZGVdN8v_expf): Removed.
27150         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
27151         ...
27152         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
27153         Don't include <sysdep.h> nor <init-arch.h>.
27154         (_ZGVeN16v_logf): Removed.
27155         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
27156         ...
27157         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
27158         Don't include <sysdep.h> nor <init-arch.h>.
27159         (_ZGVbN4v_logf): Removed.
27160         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
27161         ...
27162         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
27163         Don't include <sysdep.h> nor <init-arch.h>.
27164         (_ZGVdN8v_logf): Removed.
27165         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
27166         ...
27167         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
27168         Don't include <sysdep.h> nor <init-arch.h>.
27169         (_ZGVeN16vv_powf): Removed.
27170         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
27171         ...
27172         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
27173         Don't include <sysdep.h> nor <init-arch.h>.
27174         (_ZGVbN4vv_powf): Removed.
27175         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
27176         ...
27177         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
27178         Don't include <sysdep.h> nor <init-arch.h>.
27179         (_ZGVdN8vv_powf): Removed.
27180         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
27181         ...
27182         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
27183         Don't include <sysdep.h> nor <init-arch.h>.
27184         (_ZGVeN16vvv_sincosf): Removed.
27185         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
27186         ...
27187         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
27188         Don't include <sysdep.h> nor <init-arch.h>.
27189         (_ZGVbN4vvv_sincosf): Removed.
27190         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
27191         ...
27192         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
27193         Don't include <sysdep.h> nor <init-arch.h>.
27194         (_ZGVdN8vvv_sincosf): Removed.
27195         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
27196         ...
27197         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
27198         Don't include <sysdep.h> nor <init-arch.h>.
27199         (_ZGVeN16v_sinf): Removed.
27200         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
27201         ...
27202         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
27203         Don't include <sysdep.h> nor <init-arch.h>.
27204         (_ZGVbN4v_sinf): Removed.
27205         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
27206         ...
27207         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
27208         Don't include <sysdep.h> nor <init-arch.h>.
27209         (_ZGVdN8v_sinf): Removed.
27211 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27213         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27214         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
27215         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
27216         s_rint-sse4_1 and s_rintf-sse4_1.
27217         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
27218         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
27219         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
27220         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
27221         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
27222         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
27223         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
27224         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
27225         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
27226         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
27227         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
27228         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27229         (__ceil): Removed.
27230         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
27231         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
27232         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27233         (__ceilf): Removed.
27234         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
27235         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
27236         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27237         (__floor): Removed.
27238         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
27239         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
27240         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27241         (__floorf): Removed.
27242         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
27243         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
27244         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27245         (__nearbyint): Removed.
27246         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
27247         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
27248         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27249         (__nearbyintf): Removed.
27250         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
27251         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
27252         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27253         (__rint): Removed.
27254         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
27255         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
27256         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
27257         (__rintf): Removed.
27259 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27261         * sysdeps/i386/start.S (_start): Check Check PIC instead of
27262         SHARED.  Avoid dynamic relocation against main in static PIE.
27264 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27266         [BZ #21815]
27267         * elf/Makefile (CFLAGS-tst-prelink.c): New.
27268         (LDFLAGS-tst-prelink): Likewise.
27270 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27272         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
27273         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
27274         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
27275         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
27276         (INTERNAL_SYSCALL_NCS): Likewise.
27277         (LOADARGS_1): Likewise.
27278         (LOADARGS_5): Likewise.
27279         (RESTOREARGS_1): Likewise.
27280         (RESTOREARGS_5): Likewise.
27282 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27284         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
27285         (MEMPCPY_SYMBOL): Likewise.
27286         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
27287         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
27288         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
27289         in libc.a.
27290         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
27291         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
27292         Likewise.
27293         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
27294         (__hidden_ver1): Don't use in libc.a.
27295         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
27296         (__mempcpy): Don't create a weak alias in libc.a.
27297         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
27298         libc.a.
27299         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
27300         (__hidden_ver1): Don't use in libc.a.
27302 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27304         * config.make.in (have-insert): New.
27305         * configure.ac (libc_cv_insert): New.  Set to yes if linker
27306         supports INSERT in linker script.
27307         (AC_SUBST(libc_cv_insert): New.
27308         * configure: Regenerated.
27309         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
27310         if $(have-insert) == yes.
27312 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27314         * elf/Makefile (tests): Add vismain only if
27315         $(have-protected-data) == yes.
27316         (tests-pie): Likewise.
27318 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27320         [BZ #21871]
27321         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
27322         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
27324 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
27326         [BZ #21790]
27327         * sysdeps/i386/i586/memset.S
27328         (__memset_zero_constant_len_parameter): Removed.
27329         * sysdeps/i386/i686/memset.S
27330         (__memset_zero_constant_len_parameter): Likewise.
27331         * sysdeps/i386/i686/multiarch/memset_chk.S
27332         (__memset_zero_constant_len_parameter): Likewise.
27333         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
27334         Likewise.
27336 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
27338         * stdlib/getentropy.c (getentropy): Change return type to int.
27340 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
27342         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
27344 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
27346         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
27347         u_intN_t.
27348         * math/s_nexttowardf.c (__nexttowardf): Likewise.
27349         * sysdeps/generic/math_private.h (ieee_double_shape_type):
27350         Likewise.
27351         (ieee_float_shape_type): Likewise.
27352         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
27353         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
27354         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
27355         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
27356         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
27357         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
27358         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
27359         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
27360         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
27361         Likewise.
27362         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
27363         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
27364         (__ieee754_yn): Likewise.
27365         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27366         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27367         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
27368         Likewise.
27369         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
27370         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
27371         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
27372         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
27373         (__erfc): Likewise.
27374         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
27375         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
27376         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
27377         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
27378         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
27379         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
27380         Likewise.
27381         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
27382         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
27383         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
27384         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
27385         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
27386         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
27387         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
27388         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
27389         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
27390         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
27391         (__issignaling): Likewise.
27392         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
27393         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
27394         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
27395         Likewise.
27396         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
27397         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27398         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
27399         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
27400         Likewise.
27401         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
27402         Likewise.
27403         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
27404         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
27405         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
27406         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
27407         (__erfcf): Likewise.
27408         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
27409         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
27410         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
27411         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
27412         Likewise.
27413         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
27414         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
27415         Likewise.
27416         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
27417         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
27418         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
27419         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
27420         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
27421         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
27422         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
27423         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
27424         Likewise.
27425         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
27426         Likewise.
27427         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
27428         Likewise.
27429         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
27430         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
27431         Likewise.
27432         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
27433         Likewise.
27434         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
27435         (__ieee754_ynl): Likewise.
27436         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
27437         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
27438         Likewise.
27439         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
27440         Likewise.
27441         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
27442         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
27443         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
27444         Likewise.
27445         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
27446         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
27447         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
27448         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
27449         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
27450         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
27451         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
27452         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
27453         Likewise.
27454         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
27455         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
27456         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
27457         Likewise.
27458         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
27459         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
27460         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
27461         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
27462         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
27463         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27464         Likewise.
27465         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
27466         Likewise.
27467         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
27468         Likewise.
27469         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
27470         Likewise.
27471         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
27472         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
27473         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
27474         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
27475         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
27476         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
27477         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
27478         Likewise.
27479         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
27480         Likewise.
27481         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
27482         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
27483         Likewise.
27484         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
27485         (__ieee754_remainderl): Likewise.
27486         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
27487         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
27488         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
27489         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
27490         Likewise.
27491         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
27492         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
27493         Likewise.
27494         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
27495         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
27496         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
27497         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
27498         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
27499         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
27500         Likewise.
27501         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
27502         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
27503         (__ieee754_y0l): Likewise.
27504         (pzero): Likewise.
27505         (qzero): Likewise.
27506         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
27507         (__ieee754_y1l): Likewise.
27508         (pone): Likewise.
27509         (qone): Likewise.
27510         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
27511         (__ieee754_ynl): Likewise.
27512         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
27513         (__ieee754_lgammal_r): Likewise.
27514         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
27515         Likewise.
27516         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
27517         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
27518         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
27519         (__erfcl): Likewise.
27520         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
27521         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
27522         Likewise.
27523         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
27524         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
27525         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
27526         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
27527         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
27528         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
27529         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
27530         Likewise.
27531         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
27532         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
27533         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
27534         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
27535         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
27536         Likewise.
27537         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
27538         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
27539         Likewise.
27540         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
27541         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
27542         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
27543         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
27544         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
27546 2017-08-03  Florian Weimer  <fweimer@redhat.com>
27548         [BZ #21885]
27549         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
27550         on memory allocation failure.
27552 2017-08-03  Alan Modra  <amodra@gmail.com>
27554         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
27555         tst-tlsopt-powerpc.c with function name change and no test harness.
27556         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
27557         Call tls_get_addr_opt_test.
27558         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
27559         (modules-names): Add mod-tlsopt-powerpc.
27560         (mod-tlsopt-powerpc.so-no-z-defs): Define.
27561         (tst-tlsopt-powerpc): Depend on .so.
27562         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
27563         define.  Expand use in TLS_GD and TLS_LD.
27565 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27567         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
27568         function.
27569         * sysdeps/posix/shm_open.c: Include <pthread.h>.
27571 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
27573         [BZ #21686]
27574         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
27575         comparing size with that of double.
27576         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27577         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27578         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
27579         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27580         (__TGMATH_BINARY_REAL_IMAG): Likewise.
27581         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
27582         unsigned __int128 types.
27584 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
27586         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
27587         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
27588         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
27589         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
27590         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
27592 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
27594         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
27596 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
27598         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
27599         of SHARED.
27600         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
27601         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27602         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27603         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27604         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27605         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27606         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27608 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
27610         [BZ #21685]
27611         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
27612         bit-field expressions passed to sizeof or typeof.
27613         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27614         (__TGMATH_F128): Likewise.
27615         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27616         (__TGMATH_CF128): Likewise.
27617         (__TGMATH_UNARY_REAL_ONLY): Likewise.
27618         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
27619         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
27620         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
27621         (__TGMATH_BINARY_REAL_ONLY): Likewise.
27622         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
27623         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
27624         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
27625         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
27626         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
27627         (__TGMATH_UNARY_REAL_IMAG): Likewise.
27628         (__TGMATH_UNARY_IMAG): Likewise.
27629         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
27630         (__TGMATH_BINARY_REAL_IMAG): Likewise.
27631         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
27632         type.
27633         (define_vars_for_type): Handle bit_field type specially.
27634         (Tests.__init__): Declare structure with bit-field element.
27636 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
27638         [BZ #21791]
27639         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
27640         (MEMCPY_CHK): Define only if SHARED is defined.
27641         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
27642         Likewise.
27643         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
27644         Likewise.
27646 See ChangeLog.18 for earlier changes.